added text outline

This commit is contained in:
Nickiel12 2023-11-11 10:07:02 -08:00
parent e2415a07aa
commit 95763bcb2e
3 changed files with 23 additions and 1 deletions

View file

@ -6,6 +6,8 @@
.dash_clock { .dash_clock {
// background-image: linear-gradient(45deg, #7d7d7d, #262626 30%, #262626 60%, #10384a); // background-image: linear-gradient(45deg, #7d7d7d, #262626 30%, #262626 60%, #10384a);
border-radius: 16px; border-radius: 16px;
background-repeat: no-repeat;
background-size: 400px 150px;
} }
.dash_clock_bg { .dash_clock_bg {
@ -15,10 +17,28 @@
.dash_clock_time { .dash_clock_time {
font-size: 30px; font-size: 30px;
text-shadow:
-1px -1px 0 #000,
0 -1px 0 #000,
1px -1px 0 #000,
1px 0 0 #000,
1px 1px 0 #000,
0 1px 0 #000,
-1px 1px 0 #000,
-1px 0 0 #000;
} }
.dash_clock_date { .dash_clock_date {
font-size: 20px; font-size: 20px;
text-shadow:
-1px -1px 0 #000,
0 -1px 0 #000,
1px -1px 0 #000,
1px 0 0 #000,
1px 1px 0 #000,
0 1px 0 #000,
-1px 1px 0 #000,
-1px 0 0 #000;
} }
.btn_logout, .btn_restart, .btn_shutdown, .btn_switch_windows { .btn_logout, .btn_restart, .btn_shutdown, .btn_switch_windows {

View file

@ -23,11 +23,13 @@
(defwidget dash_clock_bg [] (defwidget dash_clock_bg []
(box :class "dash_clock_bg" (box :class "dash_clock_bg"
;; :style "background-image: ${clock_gradient}"
:style "background-image: ${clock_gradient}" :style "background-image: ${clock_gradient}"
)) ))
(defwidget dash_clock [] (defwidget dash_clock []
(box :class "dash_clock" (box :class "dash_clock"
:style "background-image: url('images/dash_clock_bg.png');"
:orientation "v" :orientation "v"
:vexpand "false" :vexpand "false"
:hexpand "false" :hexpand "false"
@ -38,7 +40,7 @@
(label :class "dash_clock_date" (label :class "dash_clock_date"
:halign "center" :halign "center"
:text {formattime(EWW_TIME, "%B, %d %Y")}) :text {formattime(EWW_TIME, "%B, %d %Y")})
(box :vexpand "true") ;; (box :vexpand "true")
)) ))
(defwidget logout [] (defwidget logout []

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB