parent
554fc9879d
commit
8b3193be65
|
|
@ -3,30 +3,34 @@
|
||||||
:x "50%"
|
:x "50%"
|
||||||
:y "50%"
|
:y "50%"
|
||||||
:anchor "top left"
|
:anchor "top left"
|
||||||
:width "400px"
|
:width "500px"
|
||||||
:height "120px")
|
:height "150px")
|
||||||
:stacking "fg" ;; oder "bg", je nach Geschmack
|
:stacking "fg"
|
||||||
(box
|
(box
|
||||||
:orientation "h"
|
:orientation "h"
|
||||||
:halign "center"
|
:halign "center"
|
||||||
:spacing 40
|
:spacing 40
|
||||||
|
|
||||||
|
;; Remmina
|
||||||
(button
|
(button
|
||||||
:class "icon-btn"
|
:class "icon-btn"
|
||||||
:tooltip "Remmina"
|
|
||||||
:onclick "remmina"
|
:onclick "remmina"
|
||||||
(image :path "~/.config/eww/icons/remmina.png" :width 64 :height 64))
|
(box :orientation "v" :halign "center" :valign "center" :spacing 0
|
||||||
|
(label :class "icon" :text "")
|
||||||
|
(label :class "icon-text" :text "Remote Desktop")))
|
||||||
|
|
||||||
|
;; Support
|
||||||
(button
|
(button
|
||||||
:class "icon-btn"
|
:class "icon-btn"
|
||||||
:tooltip "Support (coming soon)"
|
|
||||||
:onclick "notify-send 'Support kommt später...'"
|
:onclick "notify-send 'Support kommt später...'"
|
||||||
(image :path "~/.config/eww/icons/help.png" :width 64 :height 64))
|
(box :orientation "v" :halign "center" :valign "center"
|
||||||
|
(label :class "icon" :text "")
|
||||||
|
(label :class "icon-text" :text "Stines Support")))
|
||||||
|
|
||||||
|
;; Reboot
|
||||||
(button
|
(button
|
||||||
:class "icon-btn"
|
:class "icon-btn"
|
||||||
:tooltip "Reboot"
|
|
||||||
:onclick "systemctl reboot"
|
:onclick "systemctl reboot"
|
||||||
(image :path "~/.config/eww/icons/reboot.png" :width 64 :height 64))
|
(box :orientation "v" :halign "center" :valign "center" :spacing 0
|
||||||
)
|
(label :class "icon" :text "")
|
||||||
)
|
(label :class "icon-text" :text "Neustarten")))))
|
||||||
|
|
|
||||||
32
eww.scss
32
eww.scss
|
|
@ -1,11 +1,35 @@
|
||||||
.icon-btn {
|
.icon-btn {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 10px;
|
min-width: 80px;
|
||||||
transition: all 0.2s ease;
|
min-height: 60px;
|
||||||
|
margin: 0px;
|
||||||
|
// display: flex;
|
||||||
|
// align-items: center;
|
||||||
|
// justify-content: center;
|
||||||
|
// transition: background 0.2s ease;
|
||||||
|
// padding: 5px;
|
||||||
|
// cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon-btn:hover {
|
.icon-btn:hover {
|
||||||
background: rgba(255, 255, 255, 0.15);
|
background: rgba(255, 255, 255, 0.15);
|
||||||
border-radius: 20px;
|
}
|
||||||
|
|
||||||
|
.icon-btn:hover .icon-text {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
font-family: "Symbols Nerd Font Mono";
|
||||||
|
font-size: 60px;
|
||||||
|
margin-left: -1rem;
|
||||||
|
margin-bottom: -1rem;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-text {
|
||||||
|
font-family: "sans";
|
||||||
|
font-size: 14px;
|
||||||
|
color: #dddddd;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
BIN
icons/help.png
BIN
icons/help.png
Binary file not shown.
|
Before Width: | Height: | Size: 973 B After Width: | Height: | Size: 32 KiB |
BIN
icons/reboot.png
BIN
icons/reboot.png
Binary file not shown.
|
Before Width: | Height: | Size: 166 B After Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 32 KiB |
Loading…
Reference in New Issue