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

Transparency not working #45

Open
driftywinds opened this issue Nov 22, 2023 · 5 comments
Open

Transparency not working #45

driftywinds opened this issue Nov 22, 2023 · 5 comments

Comments

@driftywinds
Copy link

The theme is not transparent as in the README.md even though I've gone into Better Discord settings and enabled transparency

@CarlosGT7274
Copy link

try from picom, of if are on linux.

@highbaud
Copy link

Same issue for me - on Windows 11

@iamgrave
Copy link

iamgrave commented Jul 8, 2024

The custom CSS settings, from what I see, doesn't have a transparent hex color. I played around with them in VS Code to get my own use case but you can see if it works for you. Otherwise, you can google the color and transparency you need and plug it in.

--background-solid: #16192129;
--background-solid-dark: #10121836;
--background-solid-darker: #0c0e123c;

@highbaud
Copy link

nice catch, thanks @iamgrave

@froopy090
Copy link

froopy090 commented Jul 31, 2024

I had to manually make changes to my css file. I removed the background image and made sure everything was transparent using rgba values (where the last value "alpha" tells you how transparent it is). I also went ahead and changed the rgb values because it had a weird greenish tint for me. Play around with the values until you get something you like.

@import url('https://DiscordStyles.github.io/DarkMatter/src/base.css');

/* Variables */
:root {
    --avatar-size: 32px;
    --background-image: url('https://i.imgur.com/7SbtKvw.png');
    --home-image: url('https://i.imgur.com/233d55Y.gif');
    --background-solid: rgba(0, 15, 25, 0.3); /* Adjusted transparency */
    --background-solid-dark: rgba(0, 10, 20, 0.25); /* Adjusted transparency */
    --background-solid-darker: rgba(0, 5, 15, 0.2); /* Adjusted transparency */
    --accent: 37, 172, 232;
    --accent-alt: 29, 101, 134;
}

/* Apply transparent backgrounds to necessary elements */
body, .app, .container, .container-3baos1, .layer, .layer-3QrUeG {
    background-color: var(--background-solid-dark) !important; /* Apply the darker transparent background */
}

.sidebar, .sidebar-1tnWFu, .channels, .members, .content, .container-2o3qEW {
    background-color: var(--background-solid-darker) !important; /* Apply the darkest transparent background */
}

/* Additional transparency for specific elements */
.header, .header-2Mx0tC, .title, .title-3FQ39c {
    background-color: var(--background-solid) !important; /* Apply the solid transparent background */
}

/* Remove existing background images */
body, .app, .container, .container-3baos1, .layer, .layer-3QrUeG,
.sidebar, .sidebar-1tnWFu, .channels, .members, .content, .container-2o3qEW,
.header, .header-2Mx0tC, .title, .title-3FQ39c {
    background-image: none !important;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants