From 501fe43ba73ae4edd1cf9b8faa64603626327f95 Mon Sep 17 00:00:00 2001 From: reionwong Date: Sat, 28 Aug 2021 01:35:06 +0800 Subject: [PATCH] Adjust the size of the control center --- qml/ControlCenter.qml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/qml/ControlCenter.qml b/qml/ControlCenter.qml index ac8c4ee..d2f660a 100644 --- a/qml/ControlCenter.qml +++ b/qml/ControlCenter.qml @@ -31,7 +31,7 @@ import FishUI 1.0 as FishUI ControlCenterDialog { id: control - width: 450 + width: 420 height: _mainLayout.implicitHeight + FishUI.Units.largeSpacing * 3 Behavior on height { @@ -120,8 +120,8 @@ ControlCenterDialog { id: _mainLayout anchors.fill: parent anchors.leftMargin: FishUI.Units.largeSpacing * 1.5 - anchors.topMargin: FishUI.Units.largeSpacing * 1.5 anchors.rightMargin: FishUI.Units.largeSpacing * 1.5 + anchors.topMargin: FishUI.Units.largeSpacing anchors.bottomMargin: FishUI.Units.largeSpacing spacing: FishUI.Units.largeSpacing @@ -198,7 +198,7 @@ ControlCenterDialog { Item { id: cardItems Layout.fillWidth: true - height: 110 + height: 100 visible: wirelessItem.visible || bluetoothItem.visible RowLayout { @@ -248,7 +248,7 @@ ControlCenterDialog { } MprisItem { - height: 100 + height: 96 Layout.fillWidth: true } @@ -277,6 +277,8 @@ ControlCenterDialog { height: parent.height * 0.8 sourceSize: Qt.size(width, height) source: "qrc:/images/" + (FishUI.Theme.darkMode ? "dark" : "light") + "/brightness.svg" + smooth: false + antialiasing: true } Timer { @@ -324,6 +326,8 @@ ControlCenterDialog { height: parent.height * 0.8 sourceSize: Qt.size(width, height) source: "qrc:/images/" + (FishUI.Theme.darkMode ? "dark" : "light") + "/" + volume.iconName + ".svg" + smooth: false + antialiasing: true } Slider {