From 8f64c601f86555674239c177d7bee7f49632d97a Mon Sep 17 00:00:00 2001 From: cutefishd Date: Mon, 19 Apr 2021 03:49:12 +0800 Subject: [PATCH] Fix background color --- src/qml/AccountsPage.qml | 2 +- src/qml/SideBar.qml | 3 ++- src/qml/main.qml | 5 ++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/qml/AccountsPage.qml b/src/qml/AccountsPage.qml index d149b73..6849cc3 100644 --- a/src/qml/AccountsPage.qml +++ b/src/qml/AccountsPage.qml @@ -31,7 +31,7 @@ ItemPage { ColumnLayout { id: layout anchors.fill: parent - spacing: FishUI.Units.largeSpacing + spacing: FishUI.Units.largeSpacing * 2 RoundedItem { ListView { diff --git a/src/qml/SideBar.qml b/src/qml/SideBar.qml index c01e1db..dd12a62 100644 --- a/src/qml/SideBar.qml +++ b/src/qml/SideBar.qml @@ -15,7 +15,8 @@ Item { Rectangle { anchors.fill: parent - color: FishUI.Theme.backgroundColor + + color: FishUI.Theme.darkMode ? "#333333" : "#E5E5EB" Behavior on color { ColorAnimation { diff --git a/src/qml/main.qml b/src/qml/main.qml index a0ee889..4363c5e 100644 --- a/src/qml/main.qml +++ b/src/qml/main.qml @@ -16,8 +16,7 @@ FishUI.Window { minimumHeight: 600 headerBarHeight: 50 - backgroundColor: FishUI.Theme.darkMode ? Qt.rgba(38 / 255, 38 / 255, 38 / 255, 255) - : Qt.rgba(237 / 255, 237 / 255, 242 / 255, 255) + backgroundColor: FishUI.Theme.darkMode ? "#262626" : "#F2F2F7" headerBar: Item { Rectangle { @@ -26,7 +25,7 @@ FishUI.Window { anchors.top: parent.top anchors.bottom: parent.bottom implicitWidth: sideBar.width - color: FishUI.Theme.backgroundColor + color: FishUI.Theme.darkMode ? "#333333" : "#E5E5EB" Behavior on color { ColorAnimation {