bar: introduce borderless mode

This commit is contained in:
end-4
2025-05-20 10:17:04 +02:00
parent 9816314749
commit e57bf529cd
7 changed files with 14 additions and 6 deletions
+2 -1
View File
@@ -11,6 +11,7 @@ import Quickshell.Hyprland
Item {
id: root
property bool borderless: ConfigOptions.bar.borderless
readonly property MprisPlayer activePlayer: MprisController.activePlayer
readonly property string cleanedTitle: StringUtils.cleanMusicTitle(activePlayer?.trackTitle) || qsTr("No media")
@@ -45,7 +46,7 @@ Item {
anchors.centerIn: parent
width: parent.width
implicitHeight: 32
color: Appearance.colors.colLayer1
color: borderless ? "transparent" : Appearance.colors.colLayer1
radius: Appearance.rounding.small
}