Skip to content

button-N CSS classes not applied visually after yasb 2.0.0 #898

@efirlus

Description

@efirlus

Windows version

Windows 11

Windows OS build

windows 11 home 25H2

YASB version installed

2.0.0

Describe the bug

Image my komorebi workspace should look like this.

but after I update yasb from 1.9.0 to 2.0.0, it turns to

Image this. yellow icon and base background is my default widget color. it means no other button-specific css is not going well.

this bug is appeared at 1.8.5 once. I don't remember how to, when it fixed

my komorebi workspace config and css are here

  komorebi_workspaces:
    type: "komorebi.workspaces.WorkspaceWidget"
    options:
        label_offline: "Komorebi Offline"
        label_workspace_btn: "{name}"
        label_workspace_active_btn: "{name}"
        label_workspace_populated_btn: "{name}"
        label_default_name: "{index}"
        label_zero_index: false
        hide_empty_workspaces: false
        hide_if_offline: false
/* komorebi workspace */

.komorebi-workspaces {
    padding-left: 0;
    border-radius: 0;
}

.komorebi-workspaces .offline-status {
    color: var(--text3);
}

.komorebi-workspaces .ws-btn {
    font-size: 20px;
    background-color: transparent;
    border: none;
    margin: 0 0 0 0;
    padding: 7px 10px 7px 10px;
    color: var(--yellow);
}

.komorebi-workspaces .ws-btn.button-1,
.komorebi-workspaces .ws-btn.button-6 {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 7px;
}

.komorebi-workspaces .ws-btn.button-1.active,
.komorebi-workspaces .ws-btn.button-6.active {
    background-color: var(--yellow);
    color: var(--base);
}

.komorebi-workspaces .ws-btn.button-5,
.komorebi-workspaces .ws-btn.button-8 {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.komorebi-workspaces .ws-btn.button-2,
.komorebi-workspaces .ws-btn.button-7 {
    color: var(--blue);
    background-color: transparent;
}

.komorebi-workspaces .ws-btn.button-2.active,
.komorebi-workspaces .ws-btn.button-7.active {
    background-color: var(--blue);
    color: var(--base);
}

.komorebi-workspaces .ws-btn.button-3,
.komorebi-workspaces .ws-btn.button-8 {
    color: var(--peach);
    background-color: transparent;
}

.komorebi-workspaces .ws-btn.button-3.active,
.komorebi-workspaces .ws-btn.button-8.active {
    background-color: var(--peach);
    color: var(--base);
}

.komorebi-workspaces .ws-btn.button-4 {
    color: var(--mauve);
    background-color: transparent;
}

.komorebi-workspaces .ws-btn.button-4.active {
    background-color: var(--mauve);
    color: var(--base);
}

.komorebi-workspaces .ws-btn.button-5 {
    color: var(--rosewater);
    background-color: transparent;
}

.komorebi-workspaces .ws-btn.button-5.active {
    background-color: var(--rosewater);
    color: var(--base);
}

.komorebi-workspaces .ws-btn:hover {
    color: var(--red);
}

.komorebi-workspaces .ws-btn.populated {
    background-color: #313244;
}

Relevant log output

no logs related to the komorebi-workspaces widget.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions