Skip to content

Stylus: Colors no longer apply #412

@thesmilingdoggo

Description

@thesmilingdoggo

Using Stylus, the colors are not being applied to discord. I tried Mocha + Pink, as well as several other choices after I noticed the colors did not change.

As a test, I added...

.visual-refresh {
        /* swy: change the CSS variable so that the rest of the layout that goes below complies :) */
        --custom-app-top-bar-height: 0px !important;
    
        /* swy: hide the top bar contents, otherwise some icons bleed through */
        div[class^='container_'] > div[class^='base_'] > div[class^='bar_'] {
            display: none !important;
        }
    
        /* swy: restore the top padding for the sidebar server icon list (so that the Direct Messages button doesn't look weird) */
        div[class^='sidebar_'] > nav[class^='wrapper_'] > ul[class^='tree_'] > div[class^='itemsContainer_'] > div[class^='stack_'] {
            padding-top: 12px !important; /* swy: 12px is the original value */
        }
    }

...to the theme to see if it was making any changes, and this did succeed in removing the top bar (The one that shows the name of the server), so we at least know that it is being loaded for the proper URL.

I did verify that CSP Patching is enabled, and I have a feeling this is related to the new custom themes they are adding.

EDIT: This is on Arch using Zen Browser.

EDIT 2: I Disabled CSP Patching and it is now working as expected. Is this a typo where it says to enable it on the readme page?

EDIT 3: I woke up this morning, and now it is failing to apply the theme no matter if CSP Patching is on or off. The top bar removal is still working though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions