From f9440e05b97a6cf7a97f90885c31bc3d4d628d02 Mon Sep 17 00:00:00 2001 From: cutefishd Date: Fri, 23 Apr 2021 23:20:00 +0800 Subject: [PATCH] Adjust background --- qml/ControlDialog.qml | 2 +- qml/main.qml | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/qml/ControlDialog.qml b/qml/ControlDialog.qml index 73d9da4..9cbc245 100644 --- a/qml/ControlDialog.qml +++ b/qml/ControlDialog.qml @@ -64,7 +64,7 @@ ControlCenterDialog { anchors.fill: parent radius: control.height * 0.05 color: FishUI.Theme.backgroundColor - backgroundOpacity: 0.4 + backgroundOpacity: FishUI.Theme.darkMode ? 0.4 : 0.7 } FishUI.WindowShadow { diff --git a/qml/main.qml b/qml/main.qml index 924d73f..ff599fb 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -16,7 +16,7 @@ Item { id: background anchors.fill: parent color: FishUI.Theme.backgroundColor - opacity: 0.6 + opacity: FishUI.Theme.darkMode ? 0.6 : 0.8 Behavior on color { ColorAnimation { @@ -80,8 +80,7 @@ Item { color: FishUI.Theme.darkMode ? 'white' : 'black' visible: text Layout.alignment: Qt.AlignVCenter - font.pointSize: parent.height ? parent.height / 3 : 1 - + font.pointSize: rootItem.height ? rootItem.height / 3 : 1 } } } @@ -201,7 +200,7 @@ Item { Label { text: battery.chargePercent + "%" - font.pointSize: parent.height ? parent.height / 2 : 1 + font.pointSize: rootItem.height ? rootItem.height / 3 : 1 color: FishUI.Theme.darkMode ? 'white' : 'black' visible: battery.showPercentage } @@ -210,7 +209,7 @@ Item { Label { id: timeLabel Layout.alignment: Qt.AlignCenter - font.pointSize: parent.height ? parent.height / 3 : 1 + font.pointSize: rootItem.height ? rootItem.height / 3 : 1 color: FishUI.Theme.darkMode ? 'white' : 'black' Timer {