This commit is contained in:
Mirco Wittrien 2019-11-09 08:53:27 +01:00
parent 2a45d0fe14
commit 20ae030fbd
4 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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));
}