#Better channel highlighter and thread

1 messages · Page 1 of 1 (latest)

old tendon
#

red

#

the same code but in red

#

`#app-mount .containerDefault-YUSmu3.selected-2TbFuo .content-1gYQeQ {
background: #00000025;
border: 2px solid #8b0202;
}

.icon-2W8DHg {
width: 15px;
height: 15px;
}

[aria-label="Channels"] [class^="content"],
[class^="popout-"] [class^="row-"]
{
border-style: solid;
border-width: 2px;
border-color: transparent;
background-color: transparent;
}

[aria-label="Channels"] [class^="content"]:hover,
[class^="popout-"] [class^="row-"]:hover
{
border-color: #b00b69 !important;
}

.unread-36eUEm {
display: none;
}

.modeUnread-3Cxepe .icon-2W8DHg,
#app-mount .containerDefault-YUSmu3.selected-2TbFuo .content-1gYQeQ .icon-2W8DHg,
#app-mount .containerDefault-YUSmu3:hover .content-1gYQeQ .icon-2W8DHg
{
color: #a10a0a !important;
}`

latent vortex
#

I mean ... you can change the color to anything you like

sturdy swallow
#

how can i change the color?
i want cyan pls...

#

oh should i just change the hex on the bottom...

#

got it

latent vortex
#

change the first 6 characters of the hex to something else, the latter two (on certain lines) represents the opacity

sturdy swallow
peak falcon
#

same but with a gradient :3

/* channel outlines and highlighted icons (Original code from hadeanMachine and ArjixWasTaken) */
#app-mount .containerDefault-YUSmu3.selected-2TbFuo .content-1gYQeQ {
  background: linear-gradient(145deg, #653a86a4 45%, #31a3a7ad);
  border: 1px solid #4fb0b5;
}

.icon-2W8DHg {
  width: 17px;
  height: 17px;
}

[aria-label="Channels"] [class^="content"],
[class^="popout-"] [class^="row-"]
{
    border-style: solid;
    border-width: 0px;  
    border-color: transparent;
    background-color: transparent;
}

[aria-label="Channels"] [class^="content"]:hover,
[class^="popout-"] [class^="row-"]:hover
{   border-color: #4fb0b5 !important; }

.modeUnread-3Cxepe .icon-2W8DHg,
#app-mount .containerDefault-YUSmu3.selected-2TbFuo .content-1gYQeQ .icon-2W8DHg,
#app-mount .containerDefault-YUSmu3:hover .content-1gYQeQ .icon-2W8DHg
{   color: #4fb0b5 !important;  }```
latent vortex
#

looks very nice, thank you thumbsup

peak falcon
#

🫡

#

is there a way to get the hover highlight also round?

latent vortex
#

i thought its already in there

peak falcon
#

hmm, maybe it's my theme

#

there's a global roundness var

#

got it

trail linden
#
#app-mount .containerDefault-YUSmu3.selected-2TbFuo .content-1gYQeQ {
  background: linear-gradient(90deg, 
    #5BCEFA 20%,
    #F5A9B8 20%,#F5A9B8 40%,
    #ffffff 40%,#ffffff 60%,
    #F5A9B8 60%,#F5A9B8 80%,
    #5BCEFA 80%
  )
}

🫡 🏳️‍⚧️

lavish mica
#

checked- it isnt because of any themes

peak falcon
#

it is also broken for me, no clue why

#

not just the gradient, the whole snippet stopped working

lavish mica
#

yeah ;-; it was working earlier

trail linden
#

i think it's because it uses hardcoded class names, which changed in the last discord update

#

the aeiou at the end of .something-aeiou

lavish mica
#

the coloring the channel icon still works

#

thats it though

latent vortex
#

Yeah hard coded classes changed

#

Working on a fix

#

I am changing them to attribute selectors

peak falcon
#

🙏

lavish mica
#

hell yeah tysm

latent vortex
#

I think I have found a fix

#

@peak falcon @lavish mica

:root {
  --channel-bg: #b00b6925;
  --channel-border: #b00b69ff;
  --channel-curve: 0.75rem;
  --channel-border-thickness: 2px;
}

:not([class*=container-]) > ul > [class*=containerDefault-][class*=selected-] > div > div > [class*=link],
[class*=container-] > ul > [class*=containerDefault-][class*=selected-] > [class*=wrapper-] > [class*=link-],
[class*=modeSelected-] > div > [class*=link-]
{
  background: var(--channel-bg);
  border: var(--channel-border-thickness) solid var(--channel-border);
  border-radius: var(--channel-curve);
}

[class*=containerDefault] > div > div > a > div > div > svg { width: 15px; height: 15px; }

:not([class*=container-]) > ul > [class*=containerDefault-] > div > div > [class*=link],
[class*=container-] > ul > [class*=containerDefault-] > [class*=wrapper-] > [class*=link-],
[class*=modeConnected-] > div > [class*=link-],
[class*=containerDefault-] > [class*=list-] > div > div > div
{
    border: var(--channel-border-thickness) solid transparent;
    background-color: transparent;
    border-radius: var(--channel-curve);
}

:not([class*=container-]) > ul > [class*=containerDefault-]:hover > div > div > [class*=link],
[class*=container-] > ul > [class*=containerDefault-]:hover > [class*=wrapper-] > [class*=link-],
[class*=modeConnected-]:hover > div > [class*=link-],
[class*=containerDefault-] > [class*=list-]:hover > div > div > div
{
    border-color: var(--channel-border) !important;
}

[class*=unread-] { display: none; }

[class*=modeUnread] [class*=icon-],
[class*=containerDefault-][class*=selected-] [class*=icon-], [class*=modeSelected-] [class*=icon-],
[class*=containerDefault-]:hover [class*=icon-] { color: var(--channel-border) !important; }
peak falcon
#

doesn't work for vc's trolley

lavish mica
#

the little icon lights up at least

peak falcon
#

true

lavish mica
#

it works for me!!! tyvm

latent vortex
latent vortex
lavish mica
#

hell yeah tysm

sturdy swallow
#

mine looks solid

latent vortex
#

add border-radius after you have defined the border width

lavish mica
#

broken with newest update D:

latent vortex
#

Deprecated, I don't maintain it anymore

lavish mica
#

fair

sturdy swallow
sturdy swallow
latent vortex
#

just

.element {
border: 3px solid salmon;
border-radius: 8px
}
#

.element being whatever you want to target

lavish mica
lavish mica
#

nevermind, found a tool and did it all :)

latent vortex
#

This one gets the job done faster, just place the file inside and classes will get automatically changed

lavish mica
#

ohm sick

sturdy swallow
latent vortex
#

Yes, change all "-" to "_"

sturdy swallow
#

hmm that doesn't seem to work either...

latent vortex
#

No, you have already set the color to salmon, remove also the border-color: transparent line