theme
This commit is contained in:
parent
2a45d0fe14
commit
20ae030fbd
|
@ -495,7 +495,6 @@ class ThemeRepo {
|
|||
titlebar = titlebar ? titlebar.outerHTML : null;
|
||||
frame.contentWindow.postMessage({origin:"ThemeRepo",reason:"OnLoad",classes:JSON.stringify(BDFDB.DiscordClasses),classmodules:JSON.stringify(BDFDB.DiscordClassModules),username,id,discriminator,avatar,nativecss,html:document.documentElement.className,titlebar},"*");
|
||||
frame.contentWindow.postMessage({origin:"ThemeRepo",reason:"DarkLight",checked:darklightinput.checked},"*");
|
||||
frame.contentWindow.postMessage({origin:"ThemeRepo",reason:"Normalize",checked:normalizeinput.checked},"*");
|
||||
break;
|
||||
case "KeyUp":
|
||||
keyPressed(e.data);
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -66,7 +66,7 @@ window.onmessage = function (e) {
|
|||
var newhtml = oldhtml.shift();
|
||||
for (let html of oldhtml) {
|
||||
html = html.split('"');
|
||||
newhtml += 'class="' + (e.data.checked ? html[0].replace(/([A-z0-9]+?)-([A-z0-9_-]{6})/g, "$1-$2 da-$1") : html[0].split(" ").filter(n => n.indexOf("da-") != 0).join(" ")) + '"' + html.slice(1).join('"');
|
||||
newhtml += 'class="' + (e.data.checked ? html[0].split(" ").map(n => n.replace(/([A-z0-9]+?)-([A-z0-9_-]{6})/g, "$1-$2 da-$1")).join(" ") : html[0].split(" ").filter(n => n.indexOf("da-") != 0).join(" ")) + '"' + html.slice(1).join('"');
|
||||
}
|
||||
document.body.innerHTML = newhtml;
|
||||
break;
|
||||
|
|
|
@ -1394,6 +1394,9 @@ body:before {
|
|||
.outer-2IVh5n .outer-2IVh5n {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
#app-mount .emptyCard-3CNsz2 { /* activitycard emptygamecard */
|
||||
background-color: rgba(var(--vtransparencycolor), 0.2);
|
||||
}
|
||||
.base-1x0h_U { /* activitycard title */
|
||||
color: rgb(var(--fontwhite1));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue