updated style of workspaces widget
This commit is contained in:
@@ -7,29 +7,40 @@
|
|||||||
//$light: #fde10e;
|
//$light: #fde10e;
|
||||||
//$dark: #ff6520;
|
//$dark: #ff6520;
|
||||||
|
|
||||||
background: $dark;
|
background: transparent;
|
||||||
padding: 3px 1rem;
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
&--ws {
|
&--ws {
|
||||||
border-radius: 50%;
|
border-radius: 0;
|
||||||
font-family: 'Symbols Nerd Font Mono';
|
|
||||||
border: 1px solid blue;
|
|
||||||
color: black;
|
|
||||||
|
|
||||||
&--label {
|
&--label {
|
||||||
font-size: 0.7rem;
|
font-size: 1rem;
|
||||||
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--active {
|
&--active {
|
||||||
background: $light;
|
background: $light;
|
||||||
color: $dark;
|
|
||||||
border-color: $light;
|
border-color: $light;
|
||||||
}
|
}
|
||||||
|
|
||||||
&--inactive {
|
&--inactive {
|
||||||
background: $dark;
|
background: $dark;
|
||||||
color: $dark;
|
|
||||||
border-color: $light;
|
border-color: $light;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.first {
|
||||||
|
border-radius: 1.5rem 0 0 1rem;
|
||||||
|
border-right: 1px solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.middle {
|
||||||
|
border-radius: 0;
|
||||||
|
border-right: 1px solid black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.last {
|
||||||
|
border-radius: 0 1rem 1.5rem 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -10,15 +10,15 @@
|
|||||||
(box
|
(box
|
||||||
:class "workspaces"
|
:class "workspaces"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:spacing 3
|
:height 20
|
||||||
|
:spacing 0
|
||||||
(for workspace in workspaces
|
(for workspace in workspaces
|
||||||
(eventbox
|
(eventbox
|
||||||
:height 20
|
:width 35
|
||||||
:width 20
|
|
||||||
:onclick "hyprctl dispatch workspace ${workspace.id}"
|
:onclick "hyprctl dispatch workspace ${workspace.id}"
|
||||||
:cursor "pointer"
|
:cursor "pointer"
|
||||||
:tooltip "${workspace.name}"
|
:tooltip "${workspace.name}"
|
||||||
:class "workspaces--ws ${workspace.active == true ? 'workspaces--ws--active' : 'workspaces--ws--inactive'}"
|
:class "workspaces--ws ${workspace.active == true ? 'workspaces--ws--active' : 'workspaces--ws--inactive'} ${workspace.name == 1 ? 'first' : workspace.name == 10 ? 'last' : 'middle'}"
|
||||||
(label
|
(label
|
||||||
:class "workspaces--ws--label"
|
:class "workspaces--ws--label"
|
||||||
:text "${workspace.windows > 0 ? workspaceIcons.full : workspaceIcons.empty}")))))
|
:text "${workspace.name}${workspace.windows > 0 ? '+' : ''}")))))
|
||||||
|
Reference in New Issue
Block a user