Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

[FR] Custom Home Logo #20

Closed
C0D6WasTaken opened this issue Oct 20, 2023 · 2 comments
Closed

[FR] Custom Home Logo #20

C0D6WasTaken opened this issue Oct 20, 2023 · 2 comments
Assignees
Labels
feature request request a feature

Comments

@C0D6WasTaken
Copy link

Suggestion

Hello there! I've been trying to change the Discord home logo, but I can't seem to resolve an issue. The replaced image seems to be overlain on servers without an icon, like in the image below.
Discord_kWmMiuB4PX
Here's the code:

/* Hide Left Discord Watermark */
.wordmark-3wYFg6 {
display: none
}

/* Change Home Screen Discord Logo */
.childWrapper-1j_1ub path {
fill: transparent;
}

.childWrapper-1j_1ub {
background: var(--home-icon) center/cover no-repeat;
width: 38px;
height: 38px;
}

:root {
--home-icon: url('https://r2.e-z.host/b4a4c775-45ca-4ccf-9e8b-a6e14f598ee1/sxa6o56y.png');
}

I found another class with a similar name, but I'm not sure how to eliminate this conflict childWrapper-1j_1ub acronym-2zrAHN. I'd appreciate any help since I have almost no knowledge when it comes to CSS.

@finnjosten
Copy link
Owner

I will look into this soon! Thank you for opening an FR.

@finnjosten finnjosten added enhancement New feature or request ON HOLD temporarily placed on hold and removed enhancement New feature or request labels Oct 26, 2023
@finnjosten
Copy link
Owner

finnjosten commented Jan 20, 2024

I fixed your code for you :)

/* Change Home Screen Discord Logo */
.wrapper_d281dd[ data-list-item-id="guildsnav___home"] .childWrapper__01b9c path {
    fill: transparent;
}

.wrapper_d281dd[ data-list-item-id="guildsnav___home"] .childWrapper__01b9c {
    --home-icon: url('https://r2.e-z.host/b4a4c775-45ca-4ccf-9e8b-a6e14f598ee1/sxa6o56y.png');
    background: var(--home-icon) center/contain no-repeat;
    width: 38px;
    height: 38px;
}

I will add this as an addon later

@finnjosten finnjosten removed the ON HOLD temporarily placed on hold label Jan 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request request a feature
Projects
None yet
Development

No branches or pull requests

2 participants