added some styling

This commit is contained in:
2025-03-06 22:00:44 +01:00
parent 22bb8db705
commit 324f6685be
2 changed files with 17 additions and 14 deletions

View File

@@ -26,6 +26,11 @@
background: red; background: red;
color: black; color: black;
} }
&--tooltip{
background: darkgrey;
color: white;
}
} }
.music { .music {

View File

@@ -19,18 +19,16 @@
:icon-size: 12 :icon-size: 12
:icon {activewindow.class})) :icon {activewindow.class}))
(defwidget windowTitle []
(label
:class "windowTitle"
:limit-width 25
:unindent true
:text "${activewindow.title}"))
(defwidget hypr_active_window [] (defwidget hypr_active_window []
(box (tooltip
:class "activewindow${activewindow.xwayland == true ? '--xwayland' : ''}" (label :class "activewindow--tooltip" :text {activewindow.title})
:halign "left" (box
:valign "center" :class "activewindow${activewindow.xwayland == true ? '--xwayland' : ''}"
:spacing 1 :halign "left"
:tooltip {activewindow.class} :valign "center"
(windowTitle))) :spacing 1
(label
:limit-width 25
:unindent true
:text "${activewindow.class}"))))