diff --git a/Bar/Bar.qml b/Bar/Bar.qml index 83c3ae7..201e336 100644 --- a/Bar/Bar.qml +++ b/Bar/Bar.qml @@ -159,6 +159,7 @@ Scope { offsetX: -39 offsetY: 0 anchors.top: parent.top + visible: Settings.settings.showCorners } } @@ -185,6 +186,7 @@ Scope { offsetX: 39 offsetY: 0 anchors.top: parent.top + visible: Settings.settings.showCorners } } @@ -210,6 +212,7 @@ Scope { offsetX: -39 offsetY: 0 anchors.top: parent.top + visible: Settings.settings.showCorners } } @@ -235,6 +238,7 @@ Scope { offsetX: 39 offsetY: 0 anchors.top: parent.top + visible: Settings.settings.showCorners } } } diff --git a/Settings/Settings.qml b/Settings/Settings.qml index 95fe8b3..2e42e7a 100644 --- a/Settings/Settings.qml +++ b/Settings/Settings.qml @@ -44,6 +44,7 @@ Singleton { property string videoPath: "~/Videos/" property bool showActiveWindowIcon: false property bool showSystemInfoInBar: false + property bool showCorners: false property bool showMediaInBar: false property bool useSWWW: false property bool randomWallpaper: false diff --git a/Widgets/Sidebar/Config/ProfileSettings.qml b/Widgets/Sidebar/Config/ProfileSettings.qml index b1b800f..bc32af2 100644 --- a/Widgets/Sidebar/Config/ProfileSettings.qml +++ b/Widgets/Sidebar/Config/ProfileSettings.qml @@ -252,6 +252,61 @@ Rectangle { } } + // Show Corners In Bar Setting + RowLayout { + spacing: 8 + Layout.fillWidth: true + Layout.topMargin: 8 + + Text { + text: "Show Corners" + font.family: Theme.fontFamily + font.pixelSize: 13 + font.bold: true + color: Theme.textPrimary + Layout.alignment: Qt.AlignVCenter + } + + Item { + Layout.fillWidth: true + } + + // Custom Material 3 Switch + Rectangle { + id: customSwitch4 + width: 52 + height: 32 + radius: 16 + color: Settings.settings.showCorners ? Theme.accentPrimary : Theme.surfaceVariant + border.color: Settings.settings.showCorners ? Theme.accentPrimary : Theme.outline + border.width: 2 + + Rectangle { + id: thumb4 + width: 28 + height: 28 + radius: 14 + color: Theme.surface + border.color: Theme.outline + border.width: 1 + y: 2 + x: Settings.settings.showCorners ? customSwitch4.width - width - 2 : 2 + + Behavior on x { + NumberAnimation { duration: 200; easing.type: Easing.OutCubic } + } + } + + MouseArea { + anchors.fill: parent + cursorShape: Qt.PointingHandCursor + onClicked: { + Settings.settings.showCorners = !Settings.settings.showCorners + } + } + } + } + // Show Media In Bar Setting RowLayout { spacing: 8