From 20a0f88f69669b8560d8558b656d4e247d33aa44 Mon Sep 17 00:00:00 2001 From: reionwong Date: Thu, 14 Oct 2021 17:55:38 +0800 Subject: [PATCH] Improve window active color --- src/qml/Battery/Main.qml | 2 +- src/qml/ItemPage.qml | 1 + src/qml/SideBar.qml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/qml/Battery/Main.qml b/src/qml/Battery/Main.qml index 43447d1..e4544e8 100644 --- a/src/qml/Battery/Main.qml +++ b/src/qml/Battery/Main.qml @@ -51,7 +51,7 @@ ItemPage { id: battery Component.onCompleted: { - battery.refresh() + // battery.refresh() batteryBackground.value = battery.chargePercent } } diff --git a/src/qml/ItemPage.qml b/src/qml/ItemPage.qml index f5c25a9..b044efe 100644 --- a/src/qml/ItemPage.qml +++ b/src/qml/ItemPage.qml @@ -42,6 +42,7 @@ Page { bottomPadding: 0 font.pointSize: 12 text: page.headerTitle + color: rootWindow.active ? FishUI.Theme.textColor : FishUI.Theme.disabledTextColor } } } diff --git a/src/qml/SideBar.qml b/src/qml/SideBar.qml index f441840..b18b268 100644 --- a/src/qml/SideBar.qml +++ b/src/qml/SideBar.qml @@ -228,6 +228,7 @@ Item { Label { text: rootWindow.title + color: rootWindow.active ? FishUI.Theme.textColor : FishUI.Theme.disabledTextColor Layout.preferredHeight: rootWindow.header.height leftPadding: FishUI.Units.largeSpacing + FishUI.Units.smallSpacing rightPadding: FishUI.Units.largeSpacing + FishUI.Units.smallSpacing