#**Modal settings window**

1 messages · Page 1 of 1 (latest)

fringe wraith
#

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

fiery orchid
#

@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;
}
fringe wraith
#

yeah you did, nice, much appreciated

fiery orchid
#

let me clean it up actually

fringe wraith
#

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

fiery orchid
#

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;
}
fringe wraith
#

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

stark trench
#

I made this before as well, I'll get it out soon and post my results

fiery orchid
stark trench
#

I forgor lol

carmine ermine
fringe wraith
#

the one in the OP is still probably better for you

carmine ermine
#

i dont know the term

fringe wraith
#

yeah

carmine ermine
#

lol

#

o ok, thank you

fringe wraith
#

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

carmine ermine
#

you made a custome theme?

#

btw i dont want the background to be clear

fringe wraith
carmine ermine
carmine ermine
#

this to change the see through thing background?

fringe wraith
#

no, that has to be there to make discord not hide everything when settings are open

carmine ermine
#

o

#

how do i change its background?

carmine ermine
fringe wraith
#

to make it seethrough you have to do .sidebarRegionScroller__1fa7e, .contentRegion__0bec1, .contentRegionScroller__86c79 { background: transparent !important; }

carmine ermine
#

i add that?

fringe wraith
#

yeah

carmine ermine
#

to change background color i change the transparent in { background: transparent !important; }?

#

so like light blue i put { background: light blue !important; }?

fringe wraith
#

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

carmine ermine
#

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

fringe wraith
#

no keep that as is and add background to the .layer__2efaa + .layer__2efaa block

carmine ermine
#

ok

#

like this ?

fringe wraith
#

I don't know how to rephrase this

carmine ermine
#

ok

#

i see

#

so how would it look like?

#

i just want to change the background of the window to light blue

fringe wraith
#

ok wait

#

do you mean the window itself or like what's around it

carmine ermine
#

the window itself

fringe wraith
carmine ermine
#

and this is light blue?

fringe wraith
#

no that's dark grey

#

replace the oklch() with an rgb(100 100 255 / .5)

#

play with the values

fringe wraith
stark trench
#

i will not be posting me results here, sorry

half gull
#

hi

#

uh

half gull
#

lol

#

it wont blur unless ive done smth wrong(?)

fringe wraith
#

yeah if you want the blur you need some extra styling

half gull
#

how would i do that?

fringe wraith
#

.sidebarRegionScroller__1fa7e, .contentRegion__0bec1, .contentRegionScroller__86c79 { background: transparent !important; }

#

add that

half gull
#

is there any place where lol

#

i added it at the bottom and it did nothin

fringe wraith
#

it should make it transparent

half gull
fringe wraith
#

hmm

half gull
#

hmmm

fringe wraith
#

the theme you use might be doing something

half gull
#

lemme see

fringe wraith
#

because it should be completely seethrough after adding that line

half gull
#

ah okay

#

turned it off n still nothin

fringe wraith
#

that's weird

half gull
#
[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

fringe wraith
#

ok yeah

half gull
#

hmm

fringe wraith
#

.standardSidebarView__1129a, .sidebarRegionScroller__1fa7e, .contentRegion__0bec1, .contentRegionScroller__86c79 { background: transparent !important; }

#

change last line to that

#

that makes it transparent

half gull
#

it workeddd

half gull
#

doing some QoL things

rocky dagger
#

can i make it resizeable and moveable?
or maybe pop out setting in another window?

fringe wraith
#

neither is possible to do in css

half gull
#

in js yes

#

i think

#

but css though

shut dock
#

@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

fringe wraith
#

uhh not sure why that happens, you're using some kind of theme which breaks that I guess

shut dock
fringe wraith
#

oh

#

assuming you put it in quickcss, can you screenshot that

shut dock
#

I've got some other CSS code in there but none change Settings

fringe wraith
#

looks correct

shut dock
#

Idk if it's too late, but it worked, then I synced the config on my Canary, then it just turned black

fringe wraith
#

that should be fine

shut dock
fringe wraith
#

oh

#

ok :D

shut dock
#

Sorry for the hassle haha

fringe wraith
#

I was so confused

shut dock
#

Have a great day

#

Yeah same here

fringe wraith
#

you too :3

shut dock
#

<3

fringe wraith
#

yeah from a quick glance it looks like it sets the .baseLayer__8fda3 { visibility:hidden }, could probably be overridden

opal trout
#

Yo @fringe wraith are you able to make it close if you click off of it?

fringe wraith
#

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

opal trout
fringe wraith
#

yeah :D

opal trout
#

Might help find out what he did to make it happen.

fringe wraith
#

I have it open right now

opal trout
#

ok

fringe wraith
#

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

fringe wraith
#

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

lofty otter
#

really laggy without gpu acceleration

fringe wraith
#

yeah the filter:blur does that lol

lofty otter
#

also it is NOT centered

fringe wraith
#

I know lol

#

I commented out the backdrop-filter

fringe wraith
#

this breaks some other dialogs atm btw

lofty otter
opal trout
#

like just make it invisible.

fringe wraith
#

you mean this part?

opal trout
#

No...

fringe wraith
#

or what do you mean

#

ohh I see it

opal trout
#

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?

fringe wraith
#

the 'bubble' is something in your theme, not sure what it is specifically but something is adding a background to the closebutton

fringe wraith
#

that's the only way to do this in css

opal trout
#

I see...

fringe wraith
#

what you can do is add .closeButton__34341 { opacity: 0 !important } to hide it entirely

opal trout
#

I just noticed that theirs no settings tabs and the modal isn't fully rounded.

fringe wraith
#

I'm sure I'll be able to fix that, currently it's pretty hacky

sweet lichen
#

Can you upload this script to a github repo?

proven linden
vernal imp
#

How can I reduce the padding on the left?

fringe wraith
#

.sidebar__9e3e2 {padding-left: 0;}

vernal imp
#

tysm

#

is there a way to reduce the whole padding?

#

or do I have to do that for each element?

fringe wraith
#

change paddings on.contentColumnDefault_c66386 and maybe reduce the width on the .layer__2efaa + .layer__2efaa block

vernal imp
#

bet

#

thx again

vernal imp
fringe wraith
#

I think you want .sidebar__9e3e2 { padding-top: 10px; } or something?

vernal imp
#

ah yes this is the one

signal dust
#

it kinda broke

fringe wraith
#

yeah I didn't use attribute selectors on this one like I usually do, you'll need to update the classes

signal dust
vernal imp
signal dust
#

Mine works fine.'

#

oh wait

#

the blur is indeed broken

#

I just never noticed

signal dust
vernal imp
fringe wraith
#

blur breaks if you have any transparency option enabled in vencord/vesktop settings

#

it works fine for me

signal dust
#

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

fringe wraith
#

not sure what you mean

signal dust
#

I want to increase opacity.

#

so that the blur can be easier to notice.

fringe wraith
#

I mean assuming your opacity is already at 1 (full) you can change the blur radius

signal dust
#

wait does vesktop update css immediately

fringe wraith
#

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

signal dust
#

idk why but my vesktop needs a restart to update the css

fringe wraith
#

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)

signal dust
#

Mine did the same on vencord discord

#

vesktop for some reason needs a restart

fringe wraith
#

instead of restarting the whole client you can also ctrl+r

signal dust
#

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.

fringe wraith
#

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

fringe wraith
signal dust
fringe wraith
#

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

fringe wraith
ionic eagle
#

Fire

signal dust
#

I think I finally found an example of it working in the wrong place

indigo halo
#

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;
}
hoary raft
#

any way to make it close when its clicked outside of

fringe wraith
#

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

nova garnet
hoary raft
#

bug caused by this

signal dust
#

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.

signal dust
hoary raft
#

yep thats it ty

signal dust
#

@hoary raft

[class^=layer_]:not([class^=layerContainer_] [class^=layer_]) + [class^=layer_] 

use this one instead cause it won't break with discord class rerolls.

hoary raft
#

🔥

lapis shard
#

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; }```
severe crater
#

Is there a new version?

fringe wraith
fringe wraith
#

yeah still works fine with and without visual refresh

lapis shard
#
.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