forked from Shinonome/dots-hyprland
bar: borderless: add separators, no longer default
This commit is contained in:
@@ -19,6 +19,14 @@ Scope {
|
|||||||
readonly property int osdHideMouseMoveThreshold: 20
|
readonly property int osdHideMouseMoveThreshold: 20
|
||||||
property bool showBarBackground: ConfigOptions.bar.showBackground
|
property bool showBarBackground: ConfigOptions.bar.showBackground
|
||||||
|
|
||||||
|
component VerticalBarSeparator: Rectangle {
|
||||||
|
Layout.topMargin: barHeight / 3
|
||||||
|
Layout.bottomMargin: barHeight / 3
|
||||||
|
Layout.fillHeight: true
|
||||||
|
implicitWidth: 1
|
||||||
|
color: Appearance.m3colors.m3outlineVariant
|
||||||
|
}
|
||||||
|
|
||||||
Variants { // For each monitor
|
Variants { // For each monitor
|
||||||
model: Quickshell.screens
|
model: Quickshell.screens
|
||||||
|
|
||||||
@@ -180,7 +188,7 @@ Scope {
|
|||||||
RowLayout { // Middle section
|
RowLayout { // Middle section
|
||||||
id: middleSection
|
id: middleSection
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
spacing: 8
|
spacing: ConfigOptions?.bar.borderless ? 4 : 8
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: leftCenterGroup
|
id: leftCenterGroup
|
||||||
@@ -201,9 +209,10 @@ Scope {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VerticalBarSeparator {visible: ConfigOptions?.bar.borderless}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: middleCenterGroup
|
id: middleCenterGroup
|
||||||
Layout.fillWidth: true
|
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
|
|
||||||
Workspaces {
|
Workspaces {
|
||||||
@@ -222,6 +231,8 @@ Scope {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VerticalBarSeparator {visible: ConfigOptions?.bar.borderless}
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: rightCenterGroup
|
id: rightCenterGroup
|
||||||
Layout.preferredWidth: leftCenterGroup.width
|
Layout.preferredWidth: leftCenterGroup.width
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ Singleton {
|
|||||||
|
|
||||||
property QtObject bar: QtObject {
|
property QtObject bar: QtObject {
|
||||||
property bool bottom: false // Instead of top
|
property bool bottom: false // Instead of top
|
||||||
property bool borderless: true
|
property bool borderless: false // true for no grouping of items
|
||||||
property string topLeftIcon: "spark" // Options: distro, spark
|
property string topLeftIcon: "spark" // Options: distro, spark
|
||||||
property bool showBackground: true
|
property bool showBackground: true
|
||||||
property QtObject resources: QtObject {
|
property QtObject resources: QtObject {
|
||||||
|
|||||||
Reference in New Issue
Block a user