mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-05 21:15:38 -05:00
dankbar: hide settings when bar is disabled
This commit is contained in:
@@ -1132,6 +1132,7 @@ Item {
|
|||||||
radius: Theme.cornerRadius
|
radius: Theme.cornerRadius
|
||||||
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
||||||
border.width: 0
|
border.width: 0
|
||||||
|
visible: selectedBarConfig?.enabled
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: screenAssignmentSection
|
id: screenAssignmentSection
|
||||||
@@ -1258,7 +1259,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Position Section
|
|
||||||
StyledRect {
|
StyledRect {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: positionSection.implicitHeight + Theme.spacingL * 2
|
height: positionSection.implicitHeight + Theme.spacingL * 2
|
||||||
@@ -1266,6 +1266,7 @@ Item {
|
|||||||
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
||||||
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
|
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
|
||||||
border.width: 0
|
border.width: 0
|
||||||
|
visible: selectedBarConfig?.enabled
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: positionSection
|
id: positionSection
|
||||||
@@ -1352,7 +1353,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// DankBar Auto-hide Section
|
|
||||||
StyledRect {
|
StyledRect {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: dankBarAutoHideSection.implicitHeight + Theme.spacingL * 2
|
height: dankBarAutoHideSection.implicitHeight + Theme.spacingL * 2
|
||||||
@@ -1360,6 +1360,7 @@ Item {
|
|||||||
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
||||||
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
|
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
|
||||||
border.width: 0
|
border.width: 0
|
||||||
|
visible: selectedBarConfig?.enabled
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: dankBarAutoHideSection
|
id: dankBarAutoHideSection
|
||||||
@@ -1608,7 +1609,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Spacing
|
|
||||||
StyledRect {
|
StyledRect {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: dankBarSpacingSection.implicitHeight + Theme.spacingL * 2
|
height: dankBarSpacingSection.implicitHeight + Theme.spacingL * 2
|
||||||
@@ -1616,6 +1616,7 @@ Item {
|
|||||||
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
||||||
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
|
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
|
||||||
border.width: 0
|
border.width: 0
|
||||||
|
visible: selectedBarConfig?.enabled
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: dankBarSpacingSection
|
id: dankBarSpacingSection
|
||||||
@@ -2614,7 +2615,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Widget Management Section
|
|
||||||
StyledRect {
|
StyledRect {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: widgetManagementSection.implicitHeight + Theme.spacingL * 2
|
height: widgetManagementSection.implicitHeight + Theme.spacingL * 2
|
||||||
@@ -2622,6 +2622,7 @@ Item {
|
|||||||
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
color: Theme.withAlpha(Theme.surfaceContainerHigh, Theme.popupTransparency)
|
||||||
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
|
border.color: Qt.rgba(Theme.outline.r, Theme.outline.g, Theme.outline.b, 0.2)
|
||||||
border.width: 0
|
border.width: 0
|
||||||
|
visible: selectedBarConfig?.enabled
|
||||||
|
|
||||||
Column {
|
Column {
|
||||||
id: widgetManagementSection
|
id: widgetManagementSection
|
||||||
@@ -2728,8 +2729,8 @@ Item {
|
|||||||
Column {
|
Column {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
spacing: Theme.spacingL
|
spacing: Theme.spacingL
|
||||||
|
visible: selectedBarConfig?.enabled
|
||||||
|
|
||||||
// Left/Top Section
|
|
||||||
StyledRect {
|
StyledRect {
|
||||||
width: parent.width
|
width: parent.width
|
||||||
height: leftSection.implicitHeight + Theme.spacingL * 2
|
height: leftSection.implicitHeight + Theme.spacingL * 2
|
||||||
|
|||||||
Reference in New Issue
Block a user