mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-26 23:23:42 +02:00
fix: eww workspaces animation bug
This commit is contained in:
parent
bf192aa43f
commit
b1b23e5257
3 changed files with 11 additions and 17 deletions
|
@ -21,15 +21,17 @@
|
||||||
.workspaces {
|
.workspaces {
|
||||||
@extend .widget;
|
@extend .widget;
|
||||||
|
|
||||||
padding: 12px 6px;
|
padding: 12px;
|
||||||
|
|
||||||
* {
|
|
||||||
transition: all cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
.workspace {
|
.workspace {
|
||||||
border-radius: 6px;
|
transition: cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
|
||||||
margin: 0px 6px;
|
border-radius: get-token(border-radius);
|
||||||
|
min-height: 16px;
|
||||||
|
|
||||||
|
&.current {
|
||||||
|
min-height: 48px;
|
||||||
|
background-color: $accent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspacething {
|
.workspacething {
|
||||||
|
|
Binary file not shown.
|
@ -10,19 +10,11 @@
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:orientation "v"
|
:orientation "v"
|
||||||
:spacing spacing-default
|
:spacing spacing-default
|
||||||
|
:vexpand true
|
||||||
|
|
||||||
(for workspace in {workspacesJson}
|
(for workspace in {workspacesJson}
|
||||||
(button
|
(button
|
||||||
:onclick "hyprctl dispatch workspace ${workspace.id}"
|
:onclick "hyprctl dispatch workspace ${workspace.id}"
|
||||||
|
|
||||||
(box
|
(box
|
||||||
:height 20
|
:class "workspace ${workspace.id == currentWorkspace ? "current" : "workspacething"}"))))))
|
||||||
:class "workspace ${workspace.id == currentWorkspace ? "workspacethingactive" : "workspacething"}"
|
|
||||||
|
|
||||||
(revealer
|
|
||||||
:reveal { workspace.id == currentWorkspace}
|
|
||||||
:transition "slidedown"
|
|
||||||
:duration animation-duration-default
|
|
||||||
|
|
||||||
(box
|
|
||||||
:height 40))))))))
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue