add media truncate

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

View file

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