added american timezone icon

This commit is contained in:
willifan 2024-06-21 14:41:54 +02:00
parent 3a76fd59df
commit b2796241d7
3 changed files with 36 additions and 33 deletions

View file

@ -186,7 +186,9 @@
:halign "end"
:valign "center"
:height 30
(testtime)))
(space)
(testtime)
(space)))
(defwidget mediaBox []
(box
@ -262,12 +264,19 @@
:height 30
:valign "center"
:halign "end"
(testtime
:name "US East"
:timezone "EST")
(testtime
:timezone "Asia/Seoul"
:image "../images/SamGuk-by_Sang_Min.png")
(box
:class "barbox"
:space-evenly false
:spacing 2
(space)
(testtime
:timezone "US/Eastern"
:image "../images/USTime.png")
(seperator)
(testtime
:timezone "Asia/Seoul"
:image "../images/SamGuk-by_Sang_Min.png")
(space))
(box
:class "barbox"
:spacing 2

View file

@ -89,32 +89,26 @@
(defwidget testtime [?name ?icon ?timezone ?image]
(box
:class "barbox"
:onclick ``
:class "smallBox"
:spacing 1
:space-evenly false
:spacing 3
:valign "center"
:height 20
(space)
(box
:onclick ``
:class "smallBox"
:spacing 1
:space-evenly false
:valign "center"
:height 20
(space)
(eventbox
(box
:spacing 3
:space-evenly false
:valign "center"
:height 20
(imageDPI
:image image
:size 16
:visible {image != "" ? true : false})
(label
:truncate {name != "" ? true : false }
:truncate-left {name != "" ? true : false }
:text {timezone != "" ? "${name} ${formattime(EWW_TIME, "%H:%M", timezone)}" : "${formattime(EWW_TIME, "%H:%M:%S")}"}
:tooltip {timezone != "" ? "${formattime(EWW_TIME, "%A %d.%m.%G", timezone)}" : "${formattime(EWW_TIME, "%A %d.%m.%G")}"})))
(space))
(eventbox
(box
:spacing 3
:space-evenly false
:valign "center"
:height 20
(imageDPI
:image image
:size 16
:visible {image != "" ? true : false})
(label
:truncate {name != "" ? true : false }
:truncate-left {name != "" ? true : false }
:text {timezone != "" ? "${name} ${formattime(EWW_TIME, "%H:%M", timezone)}" : "${formattime(EWW_TIME, "%H:%M:%S")}"}
:tooltip {timezone != "" ? "${formattime(EWW_TIME, "%A %d.%m.%G", timezone)}" : "${formattime(EWW_TIME, "%A %d.%m.%G")}"})))
(space)))

BIN
images/USTime.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB