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;
border-radius: 25px;
.icon, .icon label {
font-family: "Material Symbols Outlined";
font-size: 1.15rem;
}
.value {
margin-left: 10px;
margin-right: 10px;
margin: 0 9px;
}
.focused {
// text-decoration: underline;
// text-decoration-color: red;
// text-decoration-style: double;
font-weight: 900;
// color: $sapphire;
color: #fff;
color: $fg;
}
.active {

View file

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

View file

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