add media truncate

This commit is contained in:
willifan 2024-06-03 13:47:23 +02:00
parent d66cebb05d
commit a0b84bf7dc

View file

@ -6,6 +6,11 @@
(defwidget time []
(box
:class "barbox"
:space-evenly false
:spacing 3
(space)
(eventbox
:onclick ``
:class "smallBox"
@ -13,7 +18,8 @@
:height 20
:width 70
(label
:text "${formattime(EWW_TIME, "%H:%M:%S")}")))
:text "${formattime(EWW_TIME, "%H:%M:%S")}"))
(space)))
;; center
@ -106,18 +112,16 @@
:halign "end"
:valign "center"
:height 20
(seperator)
(space)
(box
:class "smallBox"
:height 20
:valign "center"
:space-evenly false
(space)
(label
:text {media.name}
:tooltip {media.name}
:limit-width 40)
(space))))
:truncate true))
(space)))
(defwidget processing []
(eventbox
@ -192,6 +196,13 @@
(defwidget start []
(box
:orientation "h"
:space-evenly false
:height 30
:halign "start"
:valign "center"
:spacing 3
(box
:class "barbox"
:orientation "h"
@ -200,9 +211,16 @@
:halign "start"
:valign "center"
:spacing 3
(space)
(time)
(media)
(time))
(box
:class "barbox"
:orientation "h"
:space-evenly false
:height 30
:halign "start"
:valign "center"
:spacing 3
(media))
(space)))
(defwidget center [monitor]