improve styling, fix bottom bar underline bug
This commit is contained in:
@@ -17,6 +17,7 @@ class AppMenu extends Shadow {
|
||||
image.style.borderBottom = "1px solid transparent"
|
||||
const app = image.attributes.app.value
|
||||
if (app === global.currentApp()) {
|
||||
image.style.borderBottom = "1px solid var(--text)"
|
||||
image.src = util.cssVariable(this.images[app].src[1])
|
||||
} else {
|
||||
image.src = util.cssVariable(this.images[app].src[0])
|
||||
@@ -50,8 +51,6 @@ class AppMenu extends Shadow {
|
||||
.borderBottom(global.currentApp() === app ? "1px solid var(--text)" : "1px solid transparent")
|
||||
.onTouch(async (done, e) => {
|
||||
if(done) {
|
||||
console.log(e)
|
||||
e.target.style.borderBottom = "1px solid var(--text)"
|
||||
global.openApp(app)
|
||||
this.onNewSelection()
|
||||
await Haptics.impact({ style: ImpactStyle.Light });
|
||||
|
||||
Reference in New Issue
Block a user