#**Modal settings window**
1 messages · Page 1 of 1 (latest)
and if someone can figure out how to get rid of the animation when opening/closing settings that would be pretty neat as I use backdrop-filter on the settings window and that causes a lot of lag while it's animating
@fringe wraith i think i nuked most of the lag
/* settings dialog */
[class^=standardSidebarView_]
{ position: static !important;
overflow: auto !important;
opacity: 1 !important;}
.layer__2efaa + .layer__2efaa
{ border-radius: 10px !important;
box-shadow: 5px 5px 25px black !important;
width: calc(100% - 100px);
max-width: 1100px;
height: 80vh !important;
margin: auto !important;
padding: 0 !important;
opacity: 1 !important;
transform: unset !important;
}
.baseLayer__8fda3[aria-hidden="true"]::after {
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: #00000099;
content: '';
z-index: 100;
}
.layer__2efaa[aria-hidden="false"] + .layer__2efaa[aria-hidden="false"] {
display: none
}
#app-mount .baseLayer__8fda3 /*keep view under settings*/
{ opacity: 1 !important;
transform: scale(1) !important;
}
.baseLayer__8fda3[aria-hidden="true"] {
pointer-events: none;
}
.layers__1c917>.layer__2efaa.animating__27211 {
will-change: unset !important;
}
yeah you did, nice, much appreciated
let me clean it up actually
btw you should also change the standardSidebarView to be just top:0 instead of the position and overflow thing, it has a bug that makes some other layers such as audit log be cut off
okie
.standardSidebarView__1129a {
opacity: 1 !important;
}
.layer__2efaa + .layer__2efaa { border-radius: 10px !important;
opacity: 1 !important;
transform: unset !important;
}
.layer__2efaa[aria-hidden="false"] + .layer__2efaa[aria-hidden="false"] {
display: none
}
.baseLayer__8fda3[aria-hidden="true"] {
pointer-events: none;
}
.layers__1c917>.layer__2efaa.animating__27211 {
will-change: unset !important;
}
very nice
this is what I ended up with (background removal for the backdrop-filter is elsewhere in my theme)
[class^=standardSidebarView_]
{ backdrop-filter: blur(30px);
top: 0 !important;
opacity: 1 !important; }
.layer__2efaa + .layer__2efaa
{ border-radius: 10px !important;
background: oklch(.2 0 0 /.5) !important;
box-shadow: 5px 5px 25px oklch(0 0 0 /.7) !important;
border: 1px solid oklch(1 0 0 /.2);
width: 1100px !important;
height: 80vh !important;
margin: auto !important;
padding: 0 !important;
opacity: 1 !important;
transform: unset !important; }
#app-mount .baseLayer__8fda3 /*keep view under settings*/
{ opacity: 1 !important;
transform: unset !important; }
.layer__2efaa[aria-hidden="false"] + .layer__2efaa[aria-hidden="false"]
{ display: none; } /*fixes closing delay*/
.layers__1c917>.layer__2efaa.animating__27211
{ will-change: unset !important; }
I'm gonna change all selectors to attribute selectors later too because that's how I roll but for now it works perfectly
I dunno how but a while ago I had tried setting transforms, transitions and will-change globally and it wouldn't work right but the .layer__2efaa[aria-hidden="false"] + .layer__2efaa[aria-hidden="false"] is something I wouldn't have thought of, thank you for that
I made this before as well, I'll get it out soon and post my results
id like to see it :>
I forgor lol
so this is the final version?
it's the one I use in my theme, doesn't do anything special standalone and won't work right unless you use vesktop
the one in the OP is still probably better for you
that means: the original one?
i dont know the term
yeah
I've just added blur on it and used @fiery orchid's animation removal, and have other stuff in my theme to modify the backgrounds and stuff
how do i change it
no, that has to be there to make discord not hide everything when settings are open
like this
to make it seethrough you have to do .sidebarRegionScroller__1fa7e, .contentRegion__0bec1, .contentRegionScroller__86c79 { background: transparent !important; }
i add that?
yeah
to change background color i change the transparent in { background: transparent !important; }?
so like light blue i put { background: light blue !important; }?
you might rather just want to add background into the .layer__2efaa + .layer__2efaa block like I did, and that background has to have an alpha value like rgb(100 100 255 / .5) for a lightblue with 50% opacity
ok, im sry, but do i include that in .sidebarRegionScroller__1fa7e, .contentRegion__0bec1, .contentRegionScroller__86c79 { background: transparent !important; }?
if so where?
o i see to put that in .sidebarRegionScroller__1fa7e
no keep that as is and add background to the .layer__2efaa + .layer__2efaa block
I don't know how to rephrase this
ok
i see
so how would it look like?
i just want to change the background of the window to light blue
the window itself
yeah then it is like I said and how I have it here #1193869493492002816 message
and this is light blue?
no that's dark grey
replace the oklch() with an rgb(100 100 255 / .5)
play with the values
CSS (Cascading Style Sheets) is the code that styles web content. CSS basics walks through what you need to get started. We'll answer questions like: How do I make text red? How do I make content display at a certain location in the (webpage) layout? How do I decorate my webpage with background images and colors?
i will not be posting me results here, sorry
nvm
lol
it wont blur unless ive done smth wrong(?)
yeah if you want the blur you need some extra styling
how would i do that?
.sidebarRegionScroller__1fa7e, .contentRegion__0bec1, .contentRegionScroller__86c79 { background: transparent !important; }
add that
it should make it transparent
hmm
hmmm
the theme you use might be doing something
lemme see
because it should be completely seethrough after adding that line
that's weird
[class^=standardSidebarView_]
{ backdrop-filter: blur(30px);
top: 0 !important;
opacity: 1 !important; }
.layer__2efaa + .layer__2efaa
{ border-radius: 10px !important;
background: oklch(.2 0 0 /.5) !important;
box-shadow: 10px 10px 5px oklch(0 0 0 /.06) !important;
width: 1100px !important;
height: 80vh !important;
border: 3px solid oklch(0 0 0 / 1);
margin: auto !important;
padding: 0 !important;
opacity: 1 !important;
transform: unset !important; }
#app-mount .baseLayer__8fda3 /*keep view under settings*/
{ opacity: 1 !important;
transform: unset !important; }
.layer__2efaa[aria-hidden="false"] + .layer__2efaa[aria-hidden="false"]
{ display: none; } /*fixes closing delay*/
.layers__1c917>.layer__2efaa.animating__27211
{ will-change: unset !important; }
.sidebarRegionScroller__1fa7e, .contentRegion__0bec1, .contentRegionScroller__86c79 { background: transparent !important; }
thats what i did
ok yeah
hmm
.standardSidebarView__1129a, .sidebarRegionScroller__1fa7e, .contentRegion__0bec1, .contentRegionScroller__86c79 { background: transparent !important; }
change last line to that
that makes it transparent
doing some QoL things
can i make it resizeable and moveable?
or maybe pop out setting in another window?
neither is possible to do in css
@fringe wraith Sorry for the ping. But I've scrolled up and I don't seem to see a solution for this
Help would be really appreciated.
To add I'm on Vesktop, I don't what the issue is sadly
uhh not sure why that happens, you're using some kind of theme which breaks that I guess
Default theme also has this issue...
I've got some other CSS code in there but none change Settings
looks correct
Idk if it's too late, but it worked, then I synced the config on my Canary, then it just turned black
that should be fine
Found the issue lol, FastMenu makes it unable to work
Sorry for the hassle haha
I was so confused
you too :3
<3
yeah from a quick glance it looks like it sets the .baseLayer__8fda3 { visibility:hidden }, could probably be overridden
Yo @fringe wraith are you able to make it close if you click off of it?
technically possible but not easy
the one I took inspiration from did that I think or at least is supposed to, but it was a mess
DevilBro's version or someone else?
yeah :D
I found his code, want it?
Might help find out what he did to make it happen.
I have it open right now
ok
yeah it requires quite a bit of rewriting the code in a messy way
and even then I dunno if I can make it work, theirs doesn't work either
although judging by the code they certainly tried
ok I cooked and got it working
.standardSidebarView__1129a,
.contentRegionScroller__86c79,
.contentRegion__0bec1,
.sidebarRegionScroller__1fa7e,
.layer__2efaa ~ .layer__2efaa
{ background: transparent !important; }
.sidebarRegion__60457,
.contentColumn_dc7d36
{ height: 75vh !important;
min-height: unset !important;
overflow:scroll;
margin: auto 0;
background:hsl(0 0% 10% /.9) !important;
position:relative;
z-index: 1;
/*backdrop-filter: blur(10px);*/ }
.sidebarRegion__60457,
.sidebarRegionScroller__1fa7e
{ max-width: 200px !important;
display: block !important; }
.sidebarRegion__60457 { border-radius: 20px 0 0 20px }
.contentColumn_dc7d36 { border-radius: 0 20px 20px 0 }
.standardSidebarView__1129a { margin-left: 20vw; }
.standardSidebarView__1129a ::-webkit-scrollbar { width: 0 !important;}
.closeButton__34341
{ position: fixed;
width: 100vw;
height: 100vw;
top: 0;
left: 0;
border-radius: 0;
border: none !important; }
.closeButton__34341:hover
{ background: repeating-linear-gradient( 45deg, hsl(0 100% 10% /.1), hsl(0 100% 10% /.1) 20px, transparent 20px, transparent 40px); }
#app-mount .baseLayer__8fda3
{ opacity: 1 !important;
transform: unset !important; }
.layer__2efaa[aria-hidden="false"] + .layer__2efaa[aria-hidden="false"],
.keybind__57645
{ display: none; }
.layers__1c917> .layer__2efaa.animating__27211
{ will-change: unset !important; }
this is really terrible and very much a prototype but functional and looks kinda ok for now
really laggy without gpu acceleration
yeah the filter:blur does that lol
also it is NOT centered
this breaks some other dialogs atm btw

Yo this is nice, but are you able to get rid of that weird bubble?
like just make it invisible.
you mean this part?
No...
I just thought of something...
If you click off of a focused image, it closes..
So can't you grab what ever it's doing and use it on the settings modal?
the 'bubble' is something in your theme, not sure what it is specifically but something is adding a background to the closebutton
it's doing js, what I'm doing is taking the closebutton from the settings dialog, making it full screensize and under the rest of the settings' content
that's the only way to do this in css
I see...
what you can do is add .closeButton__34341 { opacity: 0 !important } to hide it entirely
I just noticed that theirs no settings tabs and the modal isn't fully rounded.
yeah it did that also for another user in #🎨-theme-development, no idea what's going on
I'm sure I'll be able to fix that, currently it's pretty hacky
Can you upload this script to a github repo?
may i ask if it is possible to make the settings "window" movable and if someone could do that ?
How can I reduce the padding on the left?
.sidebar__9e3e2 {padding-left: 0;}
tysm
is there a way to reduce the whole padding?
or do I have to do that for each element?
change paddings on.contentColumnDefault_c66386 and maybe reduce the width on the .layer__2efaa + .layer__2efaa block
The block padding changes only the right container, how can I change the user settings top padding too?
I think you want .sidebar__9e3e2 { padding-top: 10px; } or something?
ah yes this is the one
it kinda broke
yeah I didn't use attribute selectors on this one like I usually do, you'll need to update the classes
used https://syndishanx.github.io/Website/Update_Classes.html seems to work fine for me (my own version you gave me not the one in this snippet)
is it just me or is the blur broken?
I have no idea why the blur is broken
ight hmu if you find out anytime
blur breaks if you have any transparency option enabled in vencord/vesktop settings
it works fine for me
It does have a blur effect
I just can't really notice it without squeezing my eyes
@fringe wraith got any idea on how to make the transparency higher? I tried to edit the background colors and it didn't really do anything
not sure what you mean
I mean assuming your opacity is already at 1 (full) you can change the blur radius
wait does vesktop update css immediately
yes
5px blur radius
30px blur radius
oh and you can change the background color's alpha value
you're using background: oklch(.2 0 0 /.5) like I am
which is a 20% brightness grey with a 50% alpha
idk why but my vesktop needs a restart to update the css
play with the color to something you like
strange, mine has always updated on the fly (quickcss updates as I type, any css file I edit updates as soon as I save)
instead of restarting the whole client you can also ctrl+r
Also I have now just realized what a attribute selection is, but I can't see how it can be done to classes with generic names like layer and container.
yeah those often need a parent element in the selector to make them actually only apply where you want them
in the case of this snippet I didn't do any of that though, this is what I'm running:
[class^=standardSidebarView_]
{ backdrop-filter: blur(30px);
top: 0 !important;
opacity: 1 !important; }
[class^=layer_] + [class^=layer_]
{ border-radius: 10px !important;
background: oklch(.2 0 0 /.5) !important;
box-shadow: 5px 5px 25px oklch(0 0 0 /.7) !important;
border: 1px solid oklch(1 0 0 /.2);
width: 1100px !important;
height: 80vh !important;
margin: auto !important;
padding: 0 !important;
opacity: 1 !important;
transform: unset !important; }
#app-mount [class*=baseLayer_] /*keep view under settings*/
{ opacity: 1 !important;
transform: unset !important; }
[class^=layer_][aria-hidden="false"] + [class^=layer_][aria-hidden="false"]
{ display: none; } /*fixes closing delay*/
[class^=layers_]> [class^=layer_][class*=animating_]
{ will-change: unset !important; }
nothing seems to have gone wrong so far :D
devilbro
hopefully soon I can put this in https://github.com/nvhhr/discordcss/tree/main/snippets
How is the layer attribute selector only effecting the layer you need?
I think it's doing the same as before, effecting any layer+layer like when viewing audit log for an example it is applied there too
but I don't mind
I could make it not apply there if I really wanted to but I don't see a reason
dropped this into a standalone css (no blurs or anything in here) https://github.com/nvhhr/discordcss/blob/main/snippets/modalsettings.theme.css
Fire
I made it blur the background and darken it in case anyone wants it:
/* Modal Settings */
[class^=standardSidebarView_] {
backdrop-filter: blur(30px);
top: 0 !important;
opacity: 1 !important;
}
[class^=layer_] + [class^=layer_] {
border-radius: 10px !important;
background: oklch(.2 0 0 /.5) !important;
box-shadow: 5px 5px 25px oklch(0 0 0 /.7) !important;
border: 1px solid oklch(1 0 0 /.2);
width: 1100px !important;
height: 80vh !important;
margin: auto !important;
padding: 0 !important;
opacity: 1 !important;
transform: unset !important;
}
/* keep view under settings */
[class*=baseLayer_]:nth-last-child(2) {
opacity: .45 !important;
transform: unset !important;
filter: blur(5px);
pointer-events: none !important;
}
That looks very nice.
any way to make it close when its clicked outside of
yes, I had a version with that function
you might find it in this thread but you need to change/update the classes
I plan on putting that in its own snippet file at some point
yes but that was also really ugly
bug caused by this
oh yeah i did find that before
it happens cause there are 2 sibiling layers to make that focuslock.
I think it can be easily fixed if you have an idea how attribute selectors actually work.
try this
[class^=layer_]:not(.layer_c14d31) + [class^=layer_]
instead of
[class^=layer_] + [class^=layer_]
yep thats it ty
@hoary raft
[class^=layer_]:not([class^=layerContainer_] [class^=layer_]) + [class^=layer_]
use this one instead cause it won't break with discord class rerolls.
🔥
updated classes
.standardSidebarView_c25c6d
{ top: 0 !important; }
.layer_d4b6c5 + .layer_d4b6c5
{ border-radius: 10px !important;
box-shadow: 5px 5px 25px black;
border: 1px solid var(--border-strong);
width: 1100px !important;
height: 80vh !important;
margin: auto !important;
padding: 0 !important; }
#app-mount .baseLayer_d4b6c5 /*keep view under settings*/
{ opacity: 1 !important;
transform: unset !important; }```
Is there a new version?
I think this should still work but I'll check it later today and update if necessary:
https://github.com/nvhhr/discordcss/blob/main/snippets/modalsettings.theme.css
yeah still works fine with and without visual refresh
.standardSidebarView__23e6b
{ top: 0 !important; }
.layer__960e4 + .layer__960e4
{ border-radius: 10px !important;
box-shadow: 5px 5px 25px black;
border: 1px solid var(--border-strong);
width: 1100px !important;
height: 80vh !important;
margin: auto !important;
padding: 0 !important; }
#app-mount .baseLayer__960e4 /*keep view under settings*/
{ opacity: 1 !important;
transform: unset !important; }```
class fixes
