Use icons from Material font in workspaces

This commit is contained in:
ItsDrike 2023-01-29 17:23:23 +01:00
parent a5e1737cfa
commit d583587360
No known key found for this signature in database
GPG key ID: B014E761034AF742
3 changed files with 14 additions and 12 deletions

View file

@ -2,18 +2,20 @@
background-color: $bg1-a; background-color: $bg1-a;
border-radius: 25px; border-radius: 25px;
.icon, .icon label {
font-family: "Material Symbols Outlined";
font-size: 1.15rem;
}
.value { .value {
margin-left: 10px; margin: 0 9px;
margin-right: 10px;
} }
.focused { .focused {
// text-decoration: underline; // text-decoration: underline;
// text-decoration-color: red; // text-decoration-color: red;
// text-decoration-style: double; // text-decoration-style: double;
font-weight: 900; color: $fg;
// color: $sapphire;
color: #fff;
} }
.active { .active {

View file

@ -20,7 +20,7 @@
:onclick `scripts/workspaces --switch ${workspace.id}` :onclick `scripts/workspaces --switch ${workspace.id}`
(label (label
:class "value" :class "value icon"
:text {workspace.format_name})) :text {workspace.format_name}))
) )
)) ))

View file

@ -49,12 +49,12 @@ class OutputWorkspaceInfo(WorkspaceInfo):
# workspace id -> remapped name # workspace id -> remapped name
REMAPS = { REMAPS = {
1: "", 1: "󰞷",
2: "", 2: "󰈹",
3: "", 3: "󱕂",
4: "", 4: "󰭹",
5: "", 5: "󰝚",
6: "", 6: "󰋹",
7: "7", 7: "7",
8: "8", 8: "8",
9: "9", 9: "9",