forked from Shinonome/dots-hyprland
bar: add "hella shortened" form for even narrower screens
This commit is contained in:
@@ -6,6 +6,7 @@ import QtQuick.Layouts
|
||||
|
||||
Rectangle {
|
||||
property bool borderless: ConfigOptions.bar.borderless
|
||||
property bool showDate: true
|
||||
implicitWidth: rowLayout.implicitWidth + rowLayout.spacing * 6 // idk, text seems nicer w/ more padding
|
||||
implicitHeight: 32
|
||||
color: borderless ? "transparent" : Appearance.colors.colLayer1
|
||||
@@ -24,12 +25,14 @@ Rectangle {
|
||||
}
|
||||
|
||||
StyledText {
|
||||
visible: showDate
|
||||
font.pixelSize: Appearance.font.pixelSize.small
|
||||
color: Appearance.colors.colOnLayer1
|
||||
text: "•"
|
||||
}
|
||||
|
||||
StyledText {
|
||||
visible: showDate
|
||||
font.pixelSize: Appearance.font.pixelSize.small
|
||||
color: Appearance.colors.colOnLayer1
|
||||
text: DateTime.date
|
||||
|
||||
Reference in New Issue
Block a user