add media truncate
This commit is contained in:
parent
d66cebb05d
commit
79d371e6ae
1 changed files with 19 additions and 16 deletions
35
eww/eww.yuck
35
eww/eww.yuck
|
@ -6,14 +6,20 @@
|
|||
|
||||
|
||||
(defwidget time []
|
||||
(eventbox
|
||||
:onclick ``
|
||||
:class "smallBox"
|
||||
:valign "center"
|
||||
:height 20
|
||||
:width 70
|
||||
(label
|
||||
:text "${formattime(EWW_TIME, "%H:%M:%S")}")))
|
||||
(box
|
||||
:class "barbox"
|
||||
:space-evenly false
|
||||
:spacing 3
|
||||
(space)
|
||||
(eventbox
|
||||
:onclick ``
|
||||
:class "smallBox"
|
||||
:valign "center"
|
||||
:height 20
|
||||
:width 70
|
||||
(label
|
||||
:text "${formattime(EWW_TIME, "%H:%M:%S")}"))
|
||||
(space)))
|
||||
|
||||
;; center
|
||||
|
||||
|
@ -100,24 +106,23 @@
|
|||
|
||||
(defwidget media []
|
||||
(box
|
||||
:class "barbox"
|
||||
:visible {media.status == "Playing" ? true : false}
|
||||
:spacing 3
|
||||
:space-evenly false
|
||||
:halign "end"
|
||||
:valign "center"
|
||||
:height 20
|
||||
(seperator)
|
||||
:height 30
|
||||
(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
|
||||
|
@ -193,14 +198,12 @@
|
|||
|
||||
(defwidget start []
|
||||
(box
|
||||
:class "barbox"
|
||||
:orientation "h"
|
||||
:space-evenly false
|
||||
:height 30
|
||||
:halign "start"
|
||||
:valign "center"
|
||||
:spacing 3
|
||||
(space)
|
||||
(time)
|
||||
(media)
|
||||
(space)))
|
||||
|
|
Loading…
Add table
Reference in a new issue