#🎨-theme-development

1 messages · Page 8 of 1

vast delta
#

if they still miss it they deserve it

#

i just played around with it

#
.childWrapper-1j_1ub{
visibility: hidden;
}

.wrapper-3kah-n{
background: url(https://shiggy.fun/api/v3/random?aspect-ratio=1);
background-size: contain;
}```
#

this is enough lol

eager night
#

ugh wait how do you do css formatting

#

in the block

#

i forgot

edgy sentinel
#

whar

#

just indent it

eager night
#

no but like the colours

edgy sentinel
#
.banana {
  background: balls;
}
eager night
#

the cute colours

edgy sentinel
#

```css
banana
```

eager night
#

thanks

#

kisses u with lots of tongue

#

holy shit i did it

#

im so good

vast delta
#
[class^=listItemWrapper]{
background: url(https://shiggy.fun/api/v3/random?aspect-ratio=1);
background-size: contain;
border-radius: 50%;
}
[class^=childWrapper]{
display:none;
}```
eager night
#

wait fuck i forgot hte preview

#

ugh

vast delta
#

not sure how it plays with transparency

vast delta
haughty totem
#

how to get this?

vast delta
#

then you can do usercss

#

search up usercss and click the github link by openstylus or something

haughty totem
#

thanks
the self building thing
i feel like that would get effortful, given that i’m on web hm
well at least it’s too late at night for that rn

vast delta
#

you cant tell me it doesnt work for you :)

haughty totem
#

b-but i want web for my chrome extensions

vast delta
#

use themes

haughty totem
#

ig i could hop on vesktop to do the gui config, then copy the values to my stylus css

#

themes aren’t enough

#

i was thinking of saying “show me a theme that can do what HoverZoom+ can and we’ll talk (unlikely)”. But i also need html5 video control hotkeys, which is def not in theme territory.
i also use Dark Reader, Stylus

#

i have a faint memory Armcord may be supporting chrome extensions. But i don’t see that it’s worth the hassle.
Since my browser profile is synched to the cloud, i have all my stuff ready relatively quickly when i’m on a new or interim pc.

#

plausibly at some point i’ll use Violentmonkey as a poor person’s client mod :^)

@edgy sentinel why doesn’t vc allow injecting js snippets (“QuickJS”)? an extension store policy thing?

edgy sentinel
#

why would it

haughty totem
#

confusing.
for the same reason it has QuickCSS?

#

it would be v easy to implement (i think?) and nice to have for power users in particular, rather than having to do the whole building thing or each time opening the console for pasting

glossy aurora
#

you can just use the dev console if you really need it

haughty totem
#

is that different from the chrome DevTools?

glossy aurora
#

no

#

since discord uses electron its basically identical

edgy sentinel
#

it is identical

haughty totem
#

then it’s inconvenient, cause not persistent. You wouldn’t want to paste your plugins or quickcss into console every time you load dc

#

maybe Local Overrides could be used, idk, but also less convenient than a QuickJS i suppose

edgy sentinel
#

it's out of scope, has potential security issues and i don't want to take responsibility for people potentially adding malicious or broken scripts

#

you can use openasar js

haughty totem
#

(well i personally would prbly use Violentmonkey then)

#

but good to know that openasar has that, just in case

haughty totem
#

omfg someone please fix dc’s newest fuckup: non-scrolling server profiles (which can be too high for the viewport)

rugged echo
#

well this happened before but it was fixed by clicking again on the profile, now it always happens

haughty totem
#

yh

midnight grail
#

theme nyaboom

eager night
#

is there a way to select w/ role

#

in css

#

nevermind

#

got it

eager night
#

nevermind i didnt

#

im going insane

#

/* home icon */
.childWrapper-1j_1ub{
background: url("/assets/37a397ee39fe0063db4a2b3221aa8425.webp");
background-size: contain;
visibility: hidden;
}

[aria-label='Direct Messages'].wrapper-3kah-n {
  background: url(/assets/37a397ee39fe0063db4a2b3221aa8425.webp);
  background-size: contain;
}

[role="treeitem"] {
  visibility: visible !important;
}```
#

like

#

i figured out that the top rule also includes channels w/ no icon

haughty totem
eager night
#

hold

haughty totem
#

merci

eager night
#

but it does nothing, when it should?

#

unless visible isn't what it's meant to be set to

haughty totem
eager night
#

they don't have a visible value by default

#

i'm imposing one on it with the top and bottom rule

haughty totem
#

not sure where you are, but i meant

eager night
#

OH right hold on

#

yeah it's looking like it doesn't have one by default

#

i tried filtering

haughty totem
#

default shouldn’t matter, since you’re setting it

eager night
#

i'm looking in the list and the rule does apply to it

#

it's just not working

haughty totem
#

if it’s not showing up, then ig your selectors aren’t macthing that elem

#

ss?

eager night
#

hold

#

sigh

#

it's 'explicit'

haughty totem
#

not the same elem

eager night
#

wait no this wouldn't even work anyway then

haughty totem
eager night
#

because the home button has treeitem

haughty totem
#

oh lmao

eager night
#

ok well if the home button has treeitem i have no clue how to select server icons seperately and force them to be visible / not included

#

personally i do not care bc i have no servers without icon but

#

if someone else uses the css who does 🤷‍♀️

#

wait can css do partial wildcards

haughty totem
#

yeah *= if that’s what you mean

haughty totem
eager night
haughty totem
eager night
#

then why can i upload files ??

haughty totem
#

well not images, right?

eager night
#

lol

#

yes

haughty totem
eager night
haughty totem
#

oh lol whoops

eager night
#

i must be doing this wrong

#

hold on

#

right so the server icons have an id that has NO_LIST in it

haughty totem
eager night
#

[id*="NO_LIST"] { visibility: visible !important; }
would this work? i could've sworn there's a diff way to specify ids tho

haughty totem
#

i mean looks fine, but i’m not familiar with the elem you want to match so i can’t say for sure at a glance

haughty totem
eager night
#

im gonna fucking kill myself

#

apparently not

grand surge
#

who isn’t

eager night
#

they were hidden earlier by a selection of the wrapper, and i'm selecting SERVER icons specifically with the no_list wildcard

#

nevermind

#

nevermind

#

wrong element

#

RSIGJRSIHSIR

#

if i do it by aria-hidden it unhides the discord icon again

#

fuck me

#

i need to find something the server icon .childWrapper-1j_1ub has that the home doesn't

#

is it possible to exclude an entire selector from any rules at all, including it's children

#

because i could exclude aria-label="Servers"

#

found something, hold on

#

I FUCKING GOT IT

#

WOMAN IN STEM

haughty totem
#

you go girl! :D

#

(sorry for my silence, i was trying to dig up a server icon selector from my code, but vfghqfxghlvqhc)

eager night
#

this is why i stick to rust

haughty totem
#

x) tell me about dc bot rage

#

is the api shit?

eager night
#

no it was just the fact that occasionally discord.js barely made any sense to work with

#

sometimes it felt like i was being told to do government mandated spaghetti code

haughty totem
#

lol that bad

haughty totem
eager night
#

surprisingly clean

#

the acronym wildcard worked

haughty totem
#

nice
just not sure where i’d put my image url

haughty totem
#

whatever is that, doesn’t sound very servery

eager night
eager night
#

the icons are blank, so they use an [acronym] of the name

haughty totem
#

ahh gotcha

eager night
#

suffix for those icons im guessing

haughty totem
#

suffix for those icons
huh wdym?

eager night
#

well i dont know if the class for regular servers has acronym in it

#

if it does, it clearly doesn't affect them enough

haughty totem
#

are you interested in a suggestion?

eager night
#

will this make me even more suicidal

haughty totem
#

no

eager night
#

ok

haughty totem
#

ok. well first a question. the two url fields, can it make sense to assign different imgs or should they be the same one?

eager night
#

oh the first url field literally isnt necessary

#

bc it's hidden anyway

#

im just lazy

haughty totem
#

oh lol alr

eager night
#

there is no way it just fucking broke

#

my quickcss decided it'd be funny to randomly revert ig

clear siren
#

does anyone know if it's possible to change the font on the quickcss editor somehow

vast delta
#

nope

#

we cant theme the quickcss window yet

#

but maybe one day we get nested quickcss

mortal mantle
#

nested quick CSS is already available (according to Vee)

#

I won't risk ruining my theme doing that though

vast delta
#

im talking about a quickcss window for the quickcss window

glad urchin
#

isnt the quickcss window a vs embed or something

#

technically you would need to get a vs theme in there, but how

vast delta
#

the quickcss window is also html, you can open a Dev console in there

#

so in theory you just need to do whatever quickcss does in the first place and redirect it onto that

gilded cloak
#

Regarding #announcements
Is it just the numbers like they changed
.container-1594
To
.container-3821

So generic selectors like
[class^=container] still work?

Or did they change it from container-3821 to fuckYouDifferentNameNow-6329

haughty totem
#

yeah the first, just the hashes

#

and they added new classes, but that shouldn’t break anything

gilded cloak
#

Hopefully people learn this time and use generic selectors :p

#

This is totally the first time we have learned this lesson

haughty totem
#

ikr

glad urchin
#

performance issues:

mortal mantle
edgy sentinel
#

i ask this everyone who claims they do and noone can ever provide any evidence

cedar cairn
#

i wouldnt be surprised, not because theyre inherently slower but because Browsers Lol

vast delta
edgy sentinel
#

stop

#

this is worth nothing

#

if you want to talk about perf, create a proper benchmark

#

show how the differences in performance are and why it's relevant

#

otherwise you're just talking nonsense

haughty totem
#

@sharp shell made a snippo that converts the parametrized ones back to hashed: #1143123199832371200 We didn’t notice any clear difference

sharp shell
#

yop

edgy sentinel
#

computers are incredibly fast. yes, checking for substring instead of full match is most likely slightly slower but we're talking a minor difference at millions of checks per second

haughty totem
#

“optimization”

edgy sentinel
#

but at the same time, ^= might even be faster than normal class because it technically needs to check less

haughty totem
#

oh true lol

sharp shell
#

do not read chromium string comparison code you will go insane

haughty totem
#

i use *= tho, in case they add classes in front

edgy sentinel
#

point is, it's not possible to just say "yeah this is slower, don't use it". performance in 99.99% of cases does not matter, and in those cases where it does matter you should create a proper benchmark instead of making assumptions

sharp shell
#

it is not just strcmp

edgy sentinel
#

in any case ive seen many laggy discord themes (like frosted glass) and most of them don't even use attribute selectors

sharp shell
#

its that one meme

#

attribute selectors: 10ms
animations: 10000ms
can someone please help me budget my css performance

edgy sentinel
#

lmao

#

the only thing where you can absolutely say AVOID AT ALL COST is *

#

as in, the selector itself, not inside attribute selectors

sharp shell
#

* * * * * { color: red; }

gilded cloak
glad urchin
sharp shell
mortal mantle
sharp shell
#

that isn't really bad

#

because > *

balmy torrent
#

why wouldn't it be

gilded cloak
balmy torrent
#

oh

#

yeah that actually makes sense

mortal mantle
#

but how should I know whether to use [class^=] or [class*=]

balmy torrent
#

startsWith does less than equals

mortal mantle
#

because the former doesnt always work

gilded cloak
mortal mantle
#

I will attempt my best to switch generic classes to attr selectors

#

but this is gonna be very long process...

mortal mantle
#

negligible difference this time around

edgy sentinel
#

keep it in the back of ur mind but don't preemptively optimise

#

first write code however is most comfortable and maintainable to you, then if you later run into lag figure out why it happens and fix it

vast delta
glad wadi
#

app does not open it wasnt like this few days before

glad wadi
vast delta
#

what

#

the css change only affects themes

glad wadi
#

oh so it isnt theme problem

vast delta
#

(and snippets, which are just themes)

glad wadi
#

app just stays on blank screen and unresponsive

edgy sentinel
#

vns

cloud joltBOT
vast delta
#

actually unresponsive or just a blank screen?

glad wadi
vast delta
glad wadi
#

i need to wipe the snippets idk how damn

vast delta
#

its not css, so not a topic for here

rugged echo
#

if thats not the case idk

mortal mantle
#

llmao

vast delta
#

the way slower is true though, avatarWrapper i think is in every memberlist, userpopout and profile avatar as well as dm

#

nevermind my mistake

#

yeah that selector is good

#

only thing i would know to improve is css [class^=panels-]>[class^=container-]>[class^=avatarWrapper-]

#

maybe the bad selector is actually better in this situation since the checking doesnt branch out into different elements

#

so its either that or css [class^=panels-] [class^=avatarWrapper-]

haughty totem
# mortal mantle but this is gonna be very long process...

i can help you make a regex search and replace

you still need to check things manually, b/c some classes like wrapper-123xy are too general without hash. But for most occurrences the conversion would only take you a single keypress

mortal mantle
mortal mantle
#

they broke my onekoDM snippet ....

plucky moth
#

I just want to switch all the blues to pinks. ik the betterdiscord docs mention the variables but it's really confusing which one does what?

mortal mantle
#

pick a new --brand-experiment color of your choice

vestal field
plucky moth
#

ty

#

wait how exactly do I use that

mortal mantle
#

disclaimer: only works for Vesktop

#

paste that code in your quickCSS

#

If you want something that might work in other clients as well use this

plucky moth
#

wait so. could I just do:

:root {
--text-brand: #f7a8b8
}

or something?

mortal mantle
#

yeah, but brand-experiment is responsible for all the blue elements in discord

#

changing its core will allow you to change the accent color to pink

plucky moth
#

oh wait so I just take that huge block of code and add

--brand-experiment: #f7a8b8;
#

like that?

#

OOOOO it worked ty

#

oop wait it broke the invite button

mortal mantle
#

it shouldnt break

#

whar

plucky moth
#

ok also in right click/dropdown menus, hovering over stuff doesn't highlight it anymore

mortal mantle
#

but if there's still a problem, youll have to use the snippet I linked instead

plucky moth
#

assuming Vesktop just means the Vencord client on desktop, that's what I'm using

alpine cove
#

ventop

edgy sentinel
mortal mantle
#

Ventop

edgy sentinel
#

im not a top

rugged echo
#

venbottom

edgy sentinel
#

yes

mortal mantle
#

Now I know

alpine cove
#

how did you NOT know

mortal mantle
#

Very useful

alpine cove
#

look at ven.

mortal mantle
#

Cute

rugged echo
#

yeah did you heard his voice

mortal mantle
#

Yes

#

Cute hands also

edgy sentinel
#

😭

simple kiln
#

Best font: 'Rubik', san-serif global font and Jetbrains Mono code font...

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@100;400;600&display=swap');
@import url("https://catppuccin.github.io/discord/dist/catppuccin-macchiato.theme.css");


:root {
    --font: 'Rubik', sans-serif;
    --font-primary: var(--font);
    --font-display: var(--font);
    --font-header: var(--font);
    --font-code: 'JetBrains Mono', monospace;
    --text-link: #5865F2;
}

body,
html {
    font-size: 14px;
    tab-size: 4;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
mortal mantle
#

Inter and IBM Plex Mono/FiraCode Nerd Font for me

clear siren
#

I use roboto mono everywhere

glad urchin
#

iosevka
if not, default consolas

edgy glacier
#

Does anyone knoww how to change the background on screenshare so it matches themes isn't of being default grey.

vast delta
#

How exactly does the client process .class:has(.element)? does it do the exact same thing as .class .element?
or does it check from each .class down the tree to find .element?

#

also, is there a resource that i can bookmark where i can look it up myself?

clear siren
#

it wouldn't do the same thing obviously as x:has(y) applies to x when x y applies to y

#

for all your css reference needs I recommend MDN

vast delta
#

for example i think f53 or what the username was told us that css actually goes from right to left instead of left to right when computing the selectors

#

oh wait i think i might have found it

clear siren
#

the tree gets traversed up and down depending on the needs of the selector afaik

#

if you're worried about performance I don't think it makes a big difference tbh

#

my theme is nearing completion I think, I should start porting it to spotify, steam and firefox

gilded cloak
edgy sentinel
#

it most likely first checks the normal selector then processes things like not, has, etc

#

but we can not know for sure til someone reads chromium source code

#

or css spec (maybe)

balmy torrent
#

i'd guess it wouldn't be css spec if it doesn't affecft behaviour

clear siren
#

I doubt the spec helps, chromium isn't strictly following spec

balmy torrent
#

you probably already realised that now i think about it

#

guh

slim pond
mortal mantle
rugged echo
#

what the fuck

slim pond
#

first time seeing it?

#

i𝐭𝐬 𝐣𝐨𝐛 𝐢𝐬 𝐭𝐨 b𝐞 𝐞𝐱𝐭𝐫e𝐦𝐞𝐥𝐲 𝐣a𝐫𝐫𝐢𝐧𝐠 t𝐨 𝐥𝐨𝐨𝐤 𝐚𝐭

rugged echo
#

I don't even know what jarring means but it looks weird

glossy aurora
teal cave
#

jarring is when you are a horse statue and unfortunate things happen

rugged echo
#

uh?

mortal mantle
#

is there a way to remove this dot before the pronouns?

#

i want to pull something like this off, but the dots feel off for me

balmy torrent
vast delta
#

check if it is integrated in the text element that also holds other text

mortal mantle
balmy torrent
#

are you clever?

mortal mantle
#

no

balmy torrent
#

open a pr-oh

rugged echo
#

couldn't you use before or after on a selector or something for that kind of stuff?

brittle juniper
#

haiii

mortal mantle
#

haiiii

#

what I could try is a ::before element that covers that up

vast delta
#

try this

#

I'm not sure if it can do that

#

I'm not home to test

little agate
#

trolley

edgy sentinel
#

you can't theme parts of the inline text

#

you'd need to open a pr to put the delimiter in a separate span, or to move it to a ::before

vast delta
edgy sentinel
#

first-child will only match actual elements

mortal mantle
#

when I hover over it it says something along #text

edgy sentinel
#

not text nodes

#

not real

mortal mantle
edgy sentinel
#

yes

#

not real

mortal mantle
edgy sentinel
#

you could just use a transform with negative translateX

#

then overflow hidden (? does that work idk) or move it behind the other element and zindex

#

might work

mortal mantle
#

it somewhat works

edgy sentinel
#

pog

mortal mantle
#

Well I didn't manage to get any further with that though, so I just let the dot be

#

and change other tags to differentiate between each other a bit

mortal pebble
vast delta
#

that url sounds interesting

mortal mantle
#

adobe

#

will try later

mortal pebble
#

I copied the @font-face from an old davri snippet, you could probably use the github link, not sure

#
@font-face {
    font-family: "Blank Dot";
    src: url("https://raw.githubusercontent.com/adobe-fonts/adobe-blank/master/AdobeBlank.ttf.woff");
    unicode-range: U+2022;
}```This url also works
mortal mantle
#

ayo it worked

#

THANK YOU

#
/* Timestamps */
[class^=timestamp] {
position: relative;
color: var(--text-normal) !important;
font-weight: bold;
letter-spacing: 0.05em;
border-radius: 4px;
font-size: 10px !important;
margin: 0 4px;
height: 16px;
top: -3px;
line-height: 1rem !important;
box-shadow: 0 0 0 1px var(--brand-experiment)
}
@font-face {
font-family: "Blank Dot";
src: url("https://raw.githubusercontent.com/adobe-fonts/adobe-blank/master/AdobeBlank.ttf.woff");
unicode-range: U+2022;
}
[class^="timestampInline-"] {
font-family: "Blank Dot", var(--font-primary);
}
[class^=timestamp]:has(time) {
background: var(--brand-experiment);
padding: 0 4px;
}
[class^=timestamp]:not(:has(time)) {
background: var(--brand-experiment-900);
padding: 0 4px 0 2px;
}
vast delta
#

couldn't you in theory give the element it's font directly?

mortal pebble
#

I am not sure I understand what you mean.
The @font-face is necessary even if you have the blank font installed because you need to specify unicode-range which makes it so only the character gets blanked out.

robust totem
#

hii @mortal pebble

mortal pebble
#

hi davri <3

true bloom
mortal mantle
#

its back online again

true bloom
mortal mantle
#

@brittle juniper spotify player after 6 months of css blobcatcozy

clear siren
#

I set max-width:5ch and direction:rtl so only hh:mm shows up lol

mortal mantle
#

interesting

clear siren
#

I do use a monospace font so there's that, wouldn't work with all fonts

mortal mantle
#

i mean ...

#

thats with regular Roboto

clear siren
#
time[aria-label^="Today"],/*cut off "today at" */
.timestampVisibleOnHover-9PEuZS time::after 
 { display: inline-block;
   max-width: 5ch;
   overflow: hidden;
   direction: rtl;
   white-space: nowrap;
   vertical-align: bottom; }```
#

that's the code I have

mortal mantle
#

and it worked flawlessly

#

awesome

#

i havent used any of the parameters you have used that much so no idea

clear siren
#

yeah I haven't either, but I just throw random css at a problem until it works and I never look at it again

mortal mantle
#

I don't even know what they do lol

#

will have to learn more

#

thats gonna be a lot of changes for v2.0.0 lmao

mortal mantle
vast delta
#

ISANSE

magic cove
#

is there anyway to lower the typing thing down a little bit? (to fit the actual message bar)

vast delta
magic cove
#

yes

#

i did it

#

i did this

vast delta
#

o you wanna do this

#

i got a gift for you

magic cove
#

im listening

vast delta
#

they laughed at me

#

they gave me the question mark

magic cove
vast delta
#

this will rotate the entire element with all the messagebar stuff oupside down, and then again rotate the elements inside it upside down (so now right side up) so it looks normal

magic cove
#

ah okay

vast delta
#

and the margin thing just makes it look seemless

magic cove
#

i have a few questions regarding smth else im trying to do

vast delta
#

seamless? seemless? guh spelling

vast delta
magic cove
#

tryna make this entire thing black but the server list wont change colour

vast delta
#

this means that the elements inside it also have a background

#

thats just a discord thing, they do that a lot

magic cove
#

ah okay

#

thats very very goofy

vast delta
#

you can easily check which elements you need though by selecting the compute tab at the bottom instead of styles and looking if it has the background property

magic cove
#

ah okay

#

thank you

vast delta
#

this has background

magic cove
#

ah okay

vast delta
#

this does not

magic cove
#

yeah

vast delta
#

its such a quick check imo

magic cove
#

yeah

#

agreed

#

i agree

magic cove
#

im trying to round the banner here but i dont know how

#

ive tried

#

ive rounded it normall

#

just not in the profile settings

mortal mantle
#

.bannerSVGWrapper-2CLfzN

magic cove
#

thank you

mortal mantle
#

np blobcatcozy

magic cove
#

hey aoi

#

would you know how to colour the server list of the soundboard?

#

ive tried and am unsure on how

mortal mantle
#

I may be stupid but how do I access that soundboard

#

ah found it

magic cove
#

okay lol

mortal mantle
#
.wrapper-22rqw6 {
background: var(--background-floating)
}
magic cove
#

thank you

vast delta
#

aoi doing non future proof code

mortal mantle
#

too tired for that

rugged echo
#

its very unlikely that they are going to change that, not sure if discord decides elements to change

vast delta
#

they sometimes change the hash at the end

rugged echo
#

but its probably elements that they are going to work with, not random stuff for no reason

vast delta
#

they could

clear siren
#

I still really hate how modern websites do that, it entirely defeats the purpose of classes

#

unique elements should have ids and classes should be reusable

rugged echo
#

its probably just a mess for people not working on that, like style creatos idk

clear siren
#

but no let's have every element have 7 classes with random numbers

edgy sentinel
#

all my websites also use such classes

#

it's just scoped styles

#

very convenient

clear siren
#

I just don't understand, maybe I'm oldschool or maybe I'm dumb but as far as I understand ids should be unique but classes used across many elements

edgy sentinel
#

the point is quite simply styles scoped to the current component

#

you can write components without worrying about other classes in the dom

#
// Button.tsx
import Classes from "./Button.module.css";

export function Button({ text, onClick }) {
  return <button className={Classes.button}>{text}</button>;
}
#

then ur css can just be

.button {
}
edgy sentinel
# edgy sentinel

or even more extreme in the case of vencord's website, you can just target dom elements

#

and it only affects the current component, nothing else in the page

clear siren
#

I still don't get it but I think that's ok

edgy sentinel
#

if you have many different buttons in the same app

#

you have to be very careful that your classes dont collide

grand surge
edgy sentinel
#

you wouldn't want your styles for the create role button to affect the gift button

#

so you end up writing verbose classes like .chat-bar-gift-button

#

the point of scoped styles is that you don't have this problem, instead you just

/* ChatBar.module.css */

.button {
}
clear siren
#

if I have many different buttons in my app, I would have a class for each use case, or selectors that only select the ones I want

edgy sentinel
#

and your compiler turns it into .button-28aAx, whereas the create role button would be .button-10ajsA

#

no more conflicts and you don't have to come up with super verbose classes

vast delta
#

i agree with nvhhr

clear siren
#

I would rather have verbose classes and proper selectors instead of random character salad but then again I have never used anything but a text editor and pure html/css to make websites

vast delta
#

i think the elements should have an id to select it specifically and classes to select it based on what the use of that element is

#

id = #close-window-button
class = .button .secondary-accent .dark-theme
for example

#

that would be super simple to manage

clear siren
#

I have to admit I have no idea what a scoped style should even mean or accomplish when css has everything you should need builtin

edgy sentinel
vestal field
edgy sentinel
#

but for the first party developer it's way easier to use mangled classes

#

cause like refactor said u dont see it

#

you see ".button"

edgy sentinel
#

their point is that you can write super generic class names like "button" when you mean a very specific button

#

and never have to worry about conflicts

#

if you have a very large app like discord, managing thousands of classes is painful and introducing collisions will happen sooner or later

#

at some point u become tired of having to come up with thousands of unique super precise classnames

#

why name ur shit .member-list-nitro-boost-button when you could just name it .button and have the compiler make sure it doesn't collide with anything else

clear siren
#

bring back web 1.0, I hate this

edgy sentinel
#

why

#

it's way better developer experience

edgy sentinel
#

it's way faster/easier and more comfortable

clear siren
#

ok but if you have these components why not have them have a class of their own that would be included in selectors or something

edgy sentinel
#

?

#

why would i do that when i can just not

#

you need to stop thinking from a third party modder view

#

and start thinking from a first party app developer view

vestal field
#

it just gets annoying to create and type all of them

clear siren
#

my point is that every element shouldn't have hundreds of unique class names

mortal mantle
#

the main issue with discord's elements is that too many elements have the same classname

vast delta
#

and they shouldnt all be called wrapper or content :(

edgy sentinel
wicked sparrow
#

hey guys need some support

vast delta
#

you do [class^=content] {display:none} and its like doing * {display:none}

vestal field
wicked sparrow
vast delta
#

then ask your css related question

vestal field
wicked sparrow
#
.membersWrap-3GwLFp {
  min-width: 0 !important;
}
.member-2gU6Ar {
  max-width: unset !important;
}
.membersWrap-3GwLFp:hover .members-2y1nVj {
  width: 480px !important;
}

.members-2y1nVj {
  transition: 250ms ease all;
  width: 61px;
}```
#

had this snippet in my theme

vast delta
#

discord rehash

wicked sparrow
#

class names changed, i updated them

vast delta
#

o

mortal mantle
#

fair, my bad

wicked sparrow
#

container behind memberswraper does not become small

#

but it does resize to bigger than normal when hovered

vestal field
vast delta
# edgy sentinel

yes but a third party modder and a first party app developer have basically the same intentions: understand what the previous person wrote and what everything does, only that third party modders probably have different intentions

wicked sparrow
#

nothing else in the theme conflicts with it i tried just having the snippet there

clear siren
wicked sparrow
edgy sentinel
#

what it wraps would be obvious based on the component it's used in

vast delta
#

im talking about potential new employees that dont know much about discords code

edgy sentinel
#

ids are only meant for truly unique items, as in there is literally at most ONE SINGLE ELEMENT at once, no more

edgy sentinel
#

them too

#

if you see wrapper inside UserProfile.css you will have no trouble understanding what it wraps

vestal field
edgy sentinel
#

but there might be hundreds of instances of that component

#

like this messageListItem class

vestal field
edgy sentinel
#

ya

#

you should almost always avoid ids

#

unless you fully know it's unique

#

like this uses an id

vestal field
clear siren
#

I get it, and I'm not debating or arguing with you, but I still don't like it, even from the dev perspective I would never do this

wicked sparrow
edgy sentinel
clear siren
#

possibly

wicked sparrow
#

why does discord randomly update a bunch of class names?

edgy sentinel
#

they dont

#

their compiler just decided to

#

which usually means they changed their styles or added new classes

mortal mantle
#

so the compiler will just randomize everything again after a new class is added, instead of just inserting that new class in with an available name?

vast delta
#

not everything it seems

#

just where it changed i guess

mortal mantle
#

well, certain classes got changed

vestal field
# wicked sparrow please do because i am Stumped

ok try this

/*Minifiedmemberlist*/
.members-2y1nVj,
.container-2vWgD2 {
    width: 64px;
    transition: 0.3s ease;
}
.membersWrap-3GwLFp {
    min-width: 0;
    width: min-content;
}
.container-2vWgD2:hover,
.container-2vWgD2:hover .members-2y1nVj {
      width: 480px;
}
.member-2gU6Ar {
    max-width: unset;
}```
mortal mantle
#

probably whereever a change was introduced then the elements around there will get their classes changed

vestal field
#

they added a container around the member list

vestal field
#

this snippet is actually quite cool im keeping it

mortal mantle
# edgy sentinel ya

I see, that somewhat makes sense then, but I wonder that if there are enough class names to accommodate one more element (which there obviously should be), then why is a name change for all the others necessary?

#

Does it have something to do with security

wicked sparrow
#

thx for the fix

#

i am not the best with css

mortal mantle
#

There are approximately 64^6 options for class names, and there definitely cannot be that many button elements in a webpage

edgy sentinel
#

if they add a new class, it gets in the middle

#

and shifts all elements, which changes the hashes?

#

idk how it works but smth like that probably

vast delta
dark dragon
#

On their end they probably just use the names anyway right? Then the hashes would just be added after the fact and all the changes need automated? I can't imagine it really matters to them if 1 class changes or they all do

vast delta
#

yes

#

they dont have to deal with the hashes

#

well we cant know that for sure

mortal mantle
#

Go to bed

vast delta
#

maybe

dim bluff
#

What are some good places for someone that has has very little programming experience to learn css?

dark dragon
#

The Odin Project is a decent place to start. It goes a bit further but it should cover most of what you need to know in the first few chapters

cerulean pine
#

hey, would anyone be able to fix this css to make the discord title bar more like windows (i don't like the vencord one) that broke in the latest update?

.winButton-3UMjdg {
  height: 32px;
  width: 32px;
  margin-top: 0px;
  padding-left: 8px;
  padding-right: 8px;
}
.withFrame-2dL45i {
  height: fit-content;
  margin-top: 0px;
}
.wordmarkWindows-2dq6rw {
  margin-top: 8px;
  margin-left: 8px;
  padding: 0px;
}
edgy sentinel
#

what

#

wdym you don't like the vencord one

#

vesktop has a setting to use discords windows title bar, or wdym

cerulean pine
#

yeah but imo it looks weird cause it uses the windows translucent colour

#

whereas the css i used to use just keeps the regular black title bar and makes the buttons fit in more

vast delta
#

seems like you didn't understand what Ven said

slim pond
#

if you are using vesktop, you can enable the discord titlebar setting in vesktop settings

rugged echo
#

I don't know why, but I did this thing

#

wait a theme already made this, but anyways

mortal mantle
#

I already integrated the unreads into the channel icons themselves

rugged echo
#

it looks nice somehow

simple kiln
#
[class*="unread-"] {
    display:none
}
gilded radish
#

hey, does anyone have the selectors for the mute and deafen buttons?

toxic yew
#

[aria-label="Mute"],
[aria-label="Deafen"]

gilded radish
#

thank you

gilded radish
toxic yew
gilded radish
#

Ight lemme try

#

thanks!

rugged echo
#

why do you want to hide those? lol

oak plover
#

Guess they don’t use vc often idk

#

There’s keyboard commands for those buttons anyways

rugged echo
#

oh right, I forgot about keybinds

gilded radish
mortal mantle
vast delta
#

replaces the old ugly 🥺 with the cooler one

mortal mantle
#

The old one is better

edgy sentinel
vast delta
haughty totem
vast delta
haughty totem
#

did you just admit to using client mods

vast delta
#

no this is a custom discord skin i got from the official discord staff

haughty totem
#

oh makes sense, i just had to check, carry on

#

the old one pleading_face_ORG was better fr.
(new one e_pleadingface arguably looks more sad than pleading if you’re not familiar with it)

edgy sentinel
#

the old one is way better

vast delta
#

🥺

#

this one best

cedar cairn
#

candycorn lookin ass eyes

#

and only used by terminally online people being way too public with their exploits

oak plover
#

They both suck

toxic yew
#

class names are now name_hash instead of -

edgy sentinel
#

yop

gilded cloak
#

yea

#

most of my css still works

#

including classic client theme, the best theme

grand surge
mortal mantle
#

Did discord change everything again

grand surge
#

yop

mortal mantle
#

welp I can say goodbye to theme making

grand surge
#

they made it easier apparently

grand surge
mortal mantle
#

am I gonna spend 24 hours fixing every selector to that?

#

hell nah

grand surge
#

yes trolley

safe python
#

or what changed

mortal mantle
clear siren
#

don't you need the ""? 🤔

vast delta
#

try it :)

clear siren
#

well I tried it on another selector in my css and it definitely needs the "" to work

vast delta
#

show

clear siren
#

hmm that actually works for classes but not other attributes as far as I can tell

vast delta
#

other attributes may not but it does for classes

clear siren
#

interesting, I think I'll change my class attribute selectors to that as it is cleaner

vast delta
#

🥺

#

other attributes work without it

clear siren
#

button[aria-label^=Send a gift] doesn't work without the ""

vast delta
#

yes because "send a gift" is text and with spaces

clear siren
#

oh yeah spaces break that

vast delta
#

i think "" is "this is one value together, do not see anything in here as potential selectors or anything"

#

aka "this is just text, no selector, no link, just text"

#

even the comment thing is seen as text

clear siren
#

yeah

#

I've always used the "" without giving it much thought but this will definitely make the css easier to read especially since I'm gonna be using a lot of class attr selectors from now on

vast delta
#

i love your use of ^= though

vast delta
#

i feel like they impact performance a bunch but shhh, they will never break

clear siren
#

if my discord becomes too slow to run on my overclocked 12700K and 3080 I'll think of optimizing

vast delta
#

lol

clear siren
#

I'm already abusing filter:blur, filter:drop-shadow, box-shadows and text-shadows, gradients..

mortal mantle
#

I'm changing all attr back to class names

#

Because even the attr also don't work anymore

clear siren
#

depends on what attribute you were using, a lot of people used "class-" but changing the - to _ or dropping it should fix like 98% of selectors

#

as far as I can tell hashes were regenerated and dashes became underscores but not a whole lot else changed with classnames

teal cave
#

would recommend replacing with _ rather than dropping it, because then weird stuff may happen eg. class^=button would match button_123456 as expected, but will also match buttoncontainer_123456 (probably not what you intend)

clear siren
#

true

mortal mantle
#

hashes now aren't capitalized anymore

vast delta
mortal mantle
#

so only lowercases and numbers remain

teal cave
#

epic

mortal mantle
#

But well since I'm fairly busy today it's unlikely i will get many things fixed

vast delta
#

what this?

vast delta
#

_

#

.class-19812kdf

#

[class^=class]

glad urchin
#

what is

#

oh.

vast delta
#

vc

glad urchin
#

oh vc
have fun

vast delta
#

you too bbg

glad urchin
mortal mantle
#

coolesding could you go through my theme and fix it 🥺🥺

vast delta
#

sorry, your theme is too much work cutie

#

you worked too much

mortal mantle
#

I have been overworked for the past 6 months

glad urchin
#

rest

mortal mantle
#

I can't afford it anymore in the near future ....

glad urchin
#

eep well

vast delta
#

dont worry about your theme cutie

mortal mantle
#

I was ready to release v2.0

vast delta
#

maybe i will look at it soon

mortal mantle
#

And then all classes changed

#

I will give myself 4 weeks to fix

vast delta
#

we can fix it together cutie, dont stress yourself

mortal mantle
#

Ty ❤️

mortal mantle
#

Idk if this will work

#

But I will give it a try when possible

stone goblet
#

doubt it would work with scss

mortal mantle
#

will try

clear siren
#

I just thought I want serverrings back and looked at its code.. what the hell

#

I'll write it from scratch easier than try to fix this mess

mortal mantle
#

the og radial status was highly inefficient

#

i discovered that i could just use box-shadow in tandem with the platform indicator icons

clear siren
#

doesn't make any sense to do it this way

mortal mantle
#

yeah that was my method

#

instead of having to do the cx cy thing like radial status

clear siren
#

but still, pointless

vast delta
#

awful

clear siren
#

same author, who clearly knows css but does the most backwards things with it

vast delta
#

the serverrings css was awful though haha

#

what exactly does it do? do you have screenshots?

#

i might just remake it for you if i like it

clear siren
#

I can do it myself easy

#

it just makes a configurable ring+glow around server icons based on selected/hovered/unread/mentioned

vast delta
#

ohhh

clear siren
#

the only css I'd like someone else to make is moving things into the titlebar lol

#

oh I think your code might still work

mortal mantle
#

The only reason they would do that selector 40 times is to animate the entire sequence the server ring pops up

#

I only style it once for 40px

clear siren
#

they are taking the height of the indicator on the left to determine the state, resize/move the indicator and color it, no animation

#

well there would be a transition if you use the softx theme as that has a transition var set

#

but it has nothing to do with the selectors used

clear siren
vast delta
#

well my vesktop isnt showing the discord titlebar so i cant officially fix it :(

#

i could take your word for it and just searchreplace

clear siren
#

mine started working randomly at some point today

vast delta
#

GIMME

clear siren
#

I dunno I had the same issue and I tried toggling it on and off, then after the first patch wave I decided to try again and it just worked

#

even though I saw nothing in the patches that would have anything to do with it

vast delta
#

i tried turning it off restarting and turning it on and restarting

#

didnt work

clear siren
#

one small problem though, can't drag the window when [class^=typeWindows_]{height:0}

vast delta
#

yes

#

i already asked if someone could add a theming attribute to detect if the window is maximized, i got positive feedback for the idea so it might get added soon when everything is fine again

clear siren
#

I think I'll try to have the .typeWindows_ be a region somewhere but not one that pushes content down

#

position:fixed maybe

vast delta
#

could probably just do html:is(IsMaximized) [class^=typeWindows_]{height:20px}

clear siren
#

yeah I don't care about maximizing

mortal mantle
#

I always use discord maximized

vast delta
#

no need to drag if you are maxed

mortal mantle
#

I want to drag it still

#

Because I have more than 1 monitor

clear siren
#

I run 3440*1440 with windows scaling 100%

vast delta
#

to drag it you have to unmaximize, which would then show your bar again when it gets added

clear siren
#

discord usually only takes a quarter of my screen

vast delta
mortal mantle
#

I will just change my bar back to the windows style when the theme is finished

vast delta
#

i could also make a hover zone to be able to drag

#

well not right now

clear siren
#

making .typeWindows_ a small position:fixed box could work, might add some repeating diagonal gradient to indicate a dragger or something

vast delta
#

for indicators i just use svg arrow

clear siren
#

or another fun idea would have it be invisible but use cursor:move on it

vast delta
#

what if we make the entire app draggable trolley

#

holy shit im making that as a troll snippet

mortal mantle
#

the amount of blank spaces in this 😭

#

and then there's this at the bottom

glad urchin
#

so many tabs

mortal mantle
#

average devilbro theme

glad urchin
#

devilbro makes themes??

toxic yew
#

yes

mortal mantle
glad urchin
mortal mantle
#

i was not ready for the global font weight change

glad urchin
#

font: "Comic Sans MS";

safe python
#

devilbro my beloved

glad urchin
#

what did he cook

mortal mantle
#

* { font-weight: 900 !important }

#

why

glad urchin
vast delta
mortal mantle
#

i can do that background change in less than 20 lines

scenic musk
#

discord but you can see your desktop trolley

* { background : none !important; }
clear siren
#

true vencord desktop

ember raven
#

is it just me or the shop tab display code doesn't work

toxic yew
#

[href="/shop"]{display:none}

ember raven
#

ty 🙏

scenic musk
#

Did you enabled transparancy in Vesktop settings ?

vast delta
#

yes

#

wait nevermind now it works

#

???

#

im so confused

scenic musk
#

😎

#

Enjoy your new theme

vast delta
#

now i just need the ugly top bar gone :(

#

oh i fixed it

#

sometimes i hate vesktop

#

oh wait nevermind

#

grrrrr

#

even with the setting, it doesnt show the discord titlebar

#

which also means i cant theme it

mortal mantle
#

whar

#

the titlebar works again

scenic musk
#

Did you updated Vencord ? Like going into Vesktop tray icon and update

vast delta
#

is it time for me to reinstall vesktop?

mortal mantle
vast delta
mortal mantle
#

it worked since yesterday

scenic musk
#

If you have Vesktop 0.4.1 you just need to update Vencord from the tray icon

vast delta
#

nope (devtools select element on)

vast delta
#

ill reinstall, brb

scenic musk
#

💀 what is this w7 titlebar

clear siren
#

it's drawing the os titlebar and app content in the same area? that's impossible

vast delta
#

not fixed

#

guhh

scenic musk
#

Isnt it a Vesktop setting iirc ?

vast delta
#

WHAT

scenic musk
vast delta
#

???????????

scenic musk
#

that

#

should be turned on

vast delta
#

i reset vesktop and it works, and just turned it on

#

it works

vast delta
#

well it works now

scenic musk
#

probably you hard coded it in the config file

vast delta
#

@grand surge what do you need?

grand surge
#

huh

#

that theme you were working on

vast delta
#

the theme of that website voiidiot sent?

grand surge
#

yoppp

vast delta
#

guh i dont even have that website anymore

grand surge
#

LMAO

#

it’s okay

#

i will remake

paper plinth
#

anyone know how to remove that dark overlay and make it transparent?

clear siren
#

.overlayBackground__86b78 {background:none!important;}

#

or you can set --profile-body-background-color to transparent in :root to remove all instances of that background being used

paper plinth
#

ty

#

i put this and its not working, did i write something wrong im pretty new to css

clear siren
#

add !important before the ;

#

I gotta go

paper plinth
#

ok np

paper plinth
#

i still cant figure out, been trying for the past 20 mins now

#

anyone else help?

glad urchin
alpine current
paper plinth
#

still dont working anyway i gtg i will try later maybe in 2hrs

gilded radish
vestal field
#

you need to change both of them

vestal field
gilded radish
#

Thank you, it's borked now because of stupid asf Discord pressing a button

vestal field
#

life of a theme dev husk

gilded radish
#

Yeah
Anyways if anyone can help me out it would be great

mortal mantle
#

every theme dev been busy working on their own stuff :(((

gilded radish
#

I will when I get to a PC

toxic remnant
#

How do i hide this crap :c
Why is this not working, i tried everything, using every class there is and also the !important thingy and the stupid shop button will not hide itself what am i doing wrong

alpine current
paper plinth
toxic remnant
paper plinth
hot cedar
#

any% how to get permission sharing at #🎨-css-snippets?
Just finished horizontal server list instead waiting (idk who made this just found on random server) can post the fixed one SilvThumbsup

hot cedar
#

doesnt matter for me sure ya

vast delta
hot cedar
#

change your root settings server-size, server-spacing,server-direction or server-alignment whatever your settings is, just fixed the visible stuff so not full fix but its just work.
Topserverlist aka HorizontalServerList just edited for myself SilvThumbsup

mortal mantle
#

Cursed code detected

#

@vast delta you showed me this yesterday

vestal field
hot cedar
paper plinth
#

is there like a css line for like when you press a keybind it disables all themes or is it plugins

#

or maybe even from developer console

leaden scaffold
#

when i try adding the blur effect to the user profile background the switch user tab just glitches out, anyone have idea how to fix?

#
.userProfileInnerThemedNonPremium__3d0a6 {
  backdrop-filter: blur(10px) !important;
}
#

code if you want ig

rain dove
#

I dont know if i can post that here, but ClearVision need a CSS fix, but the fix i had is broken, can someone help ?

#

.theme-dark [class*=container]:has([aria-label*="able Game Activity"]) [class*=withTagAsButton> {
min-width: calc(100% - 122px);
}

the fix i have, and i lost the fix for spotify background :/

simple kiln
#

if the clearvision not using wildcard selector,. it takes a lot of time to fix it,.

rain dove
simple kiln
rain dove
#

ok sorry but i dont understand ><

simple kiln
#

if they use like .userProfileInnerThemedNonPremium__3d0a6 it takes a lot of time to find the tag selector

rain dove
#

ok so i have to wait someone fix the problem of clearvision

solid ore
#

seems to work more often with just _ instead of __ for me tho

simple kiln
lament lagoon
#

hey yall if i were to attempt to fix a custom theme with very little css knowledge how would i go about this (i really like the vibrant glass theme but the creator isnt planning on fixing it and i have nothing better to do rn)

clear siren
lament lagoon
#

oh thx! ill see if it works, much appreciated

clear siren
#

should fix most of any theme

lament lagoon
#

YAAAY ITS FIXED

#

ty!

sacred ice
#

anyone could help me with fixing this? its a bit broken after latest update

#

its supposed to make my spotify above the VC tab rather than under it

#

and this also seems to be broken, i used it to fix my issue where eeryone on phone would be in green color regardless of their status like this:

south pewter
#
.container_b2ce9c {
    width: 64px;
    transition: 0.3s ease;
}
.membersWrap__90226 {
    min-width: 0;
    width: min-content;
}
.container_b2ce9c:hover,
.container_b2ce9c:hover .members__9f47b {
      width: 250px;
}
.member_aa4760 {
    max-width: unset;
}

fixed minified memberlist

#

to work with the new thing that made vencord completely not work for about a day

runic lake
#

is quick css still broken i cant apply many of my snippets ?

south pewter
runic lake
#

thats a lot of code

south pewter
#

wait for the person who made the snippit to fix it

#

or someone willing to fix it

runic lake
south pewter
#

it updates the classes

runic lake
#

dude i love you it worked :D how sick is this webiste omg

sacred ice
south pewter
runic lake
#

do ya think it works for my extrme long quick css ?

south pewter
#

give it a shot

runic lake
south pewter
rugged echo
#

I was wondering if there is really any difference when using ^ or * in class selectors, I think the last one selects more stuff but idk if that happens in most cases

clear siren
#

can't use ^ for elements that have another class listed before for an example

rugged echo
#

ok I think I get it, I just don't usually check where elements are lol

runic lake
runic lake
solid ore
south pewter
vast delta
#

nothing is more satisfying than sending a message like this

vast delta
south pewter
vast delta
#

send your import link

south pewter
vast delta
#

the link you use to have radialstatus

#

i might have a little present for you

#

(a present i have to fix apparently)

south pewter
#

oh i just pasted the raw code into the quickcss

vast delta
#

guh show screenshot

#

ill recognise it probably

south pewter
#

alr

#

cant all fit in one screenshot

vast delta
#

just send whatever you can fit

south pewter
runic lake
south pewter
#

i made it a css file if you wanna go over the whole thing

runic lake