Improve window active color

pull/28/head
reionwong 4 years ago
parent 42859d377a
commit 20a0f88f69

@ -51,7 +51,7 @@ ItemPage {
id: battery id: battery
Component.onCompleted: { Component.onCompleted: {
battery.refresh() // battery.refresh()
batteryBackground.value = battery.chargePercent batteryBackground.value = battery.chargePercent
} }
} }

@ -42,6 +42,7 @@ Page {
bottomPadding: 0 bottomPadding: 0
font.pointSize: 12 font.pointSize: 12
text: page.headerTitle text: page.headerTitle
color: rootWindow.active ? FishUI.Theme.textColor : FishUI.Theme.disabledTextColor
} }
} }
} }

@ -228,6 +228,7 @@ Item {
Label { Label {
text: rootWindow.title text: rootWindow.title
color: rootWindow.active ? FishUI.Theme.textColor : FishUI.Theme.disabledTextColor
Layout.preferredHeight: rootWindow.header.height Layout.preferredHeight: rootWindow.header.height
leftPadding: FishUI.Units.largeSpacing + FishUI.Units.smallSpacing leftPadding: FishUI.Units.largeSpacing + FishUI.Units.smallSpacing
rightPadding: FishUI.Units.largeSpacing + FishUI.Units.smallSpacing rightPadding: FishUI.Units.largeSpacing + FishUI.Units.smallSpacing

Loading…
Cancel
Save