Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not define background variable with imported variable #76

Open
almofada1 opened this issue Oct 14, 2023 · 3 comments
Open

Can not define background variable with imported variable #76

almofada1 opened this issue Oct 14, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@almofada1
Copy link

When I replace the url("...") with a var of an imported file the image doesnt appear.

@import "./customWallPaper.css"
root{
--background-image: var(--customImg);
/rest of the code/
}

And in the same directory i have the customWallPaper.css:

:root {
--customImg: url("https://i.imgur.com/l7Bg8HJ.png");
}

Discord channel: Stable
OS: _Windows
Mod: BetterDiscord
Discord language: Portuguese

@almofada1 almofada1 added the bug Something isn't working label Oct 14, 2023
@Gibbu
Copy link
Member

Gibbu commented Oct 14, 2023

You can't link to local files with themes.

@almofada1
Copy link
Author

So how would you resolve this?

@Gibbu
Copy link
Member

Gibbu commented Oct 15, 2023

There are 2 ways:

  1. Paste the contents of ./customWallPaper.css into the FrostedGlass.theme.css file.
  2. Upload the contents of ./customWallPaper.css to GitHub and link it from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants