refactor: eww workspace active

This commit is contained in:
hesam-init 2024-07-01 19:37:34 +03:30
parent b1b23e5257
commit 4fcdb25eec
4 changed files with 7 additions and 14 deletions

View file

@ -27,18 +27,12 @@
transition: cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
border-radius: get-token(border-radius);
min-height: 16px;
background-color: $surface2;
&.current {
min-height: 48px;
background-color: $accent;
}
}
.workspacething {
background-color: $surface2;
}
.workspacethingactive {
background-color: $accent;
}
}

View file

@ -10,7 +10,7 @@ $design-tokens: (
large: 12px,
),
margin: (
small: 2px,
small: 4px 2px,
default: 4px,
large: 6px,
),

View file

@ -17,4 +17,4 @@
:onclick "hyprctl dispatch workspace ${workspace.id}"
(box
:class "workspace ${workspace.id == currentWorkspace ? "current" : "workspacething"}"))))))
:class `workspace ${workspace.id == currentWorkspace ? "current" : ""}`))))))

View file

@ -30,7 +30,7 @@
(Logo)
(Workspaces)
;; (Shortcuts)
(Shortcuts)
))
(defwidget Middle []
@ -38,9 +38,8 @@
:orientation "v"
:space-evenly false
:valign "center"
:height 200
;; (PlayerCtl)
(PlayerCtl)
))
(defwidget Bottom []
@ -50,7 +49,7 @@
:valign "end"
;; (systemtray)
(Language)
;; (Language)
(Sliders)
(Clock)
;; (battery)