Adjust background

pull/7/head
cutefishd 5 years ago
parent bec4833bed
commit f9440e05b9

@ -64,7 +64,7 @@ ControlCenterDialog {
anchors.fill: parent anchors.fill: parent
radius: control.height * 0.05 radius: control.height * 0.05
color: FishUI.Theme.backgroundColor color: FishUI.Theme.backgroundColor
backgroundOpacity: 0.4 backgroundOpacity: FishUI.Theme.darkMode ? 0.4 : 0.7
} }
FishUI.WindowShadow { FishUI.WindowShadow {

@ -16,7 +16,7 @@ Item {
id: background id: background
anchors.fill: parent anchors.fill: parent
color: FishUI.Theme.backgroundColor color: FishUI.Theme.backgroundColor
opacity: 0.6 opacity: FishUI.Theme.darkMode ? 0.6 : 0.8
Behavior on color { Behavior on color {
ColorAnimation { ColorAnimation {
@ -80,8 +80,7 @@ Item {
color: FishUI.Theme.darkMode ? 'white' : 'black' color: FishUI.Theme.darkMode ? 'white' : 'black'
visible: text visible: text
Layout.alignment: Qt.AlignVCenter 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 { Label {
text: battery.chargePercent + "%" 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' color: FishUI.Theme.darkMode ? 'white' : 'black'
visible: battery.showPercentage visible: battery.showPercentage
} }
@ -210,7 +209,7 @@ Item {
Label { Label {
id: timeLabel id: timeLabel
Layout.alignment: Qt.AlignCenter 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' color: FishUI.Theme.darkMode ? 'white' : 'black'
Timer { Timer {

Loading…
Cancel
Save