Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
HM100 committed Oct 24, 2021
1 parent 2e46802 commit cd6df36
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions templates/Java_Theming.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,6 @@ var visualColorNames = ['Factory', 'XP Luna', 'Windows Forced', 'Campbell Forced
SheShe = ($("body.server-mode").length != 0);
}
$('html').attr("she-she", SheShe);
if ( ($(".evelution-minibar").length) ) {
$("head").append(
'<meta name="theme-color" content="' + Color( getComputedStyle(document.querySelector('.evelution-minibar')).getPropertyValue("background-color") ).setAlpha(1).toString() + '">'
);
} else {
$("head").append(
'<meta name="theme-color" content="' + Color( getComputedStyle(document.querySelector('.body-background-color')).getPropertyValue("background-color") ).setAlpha(1).toString() + '">'
);
}
$("head").append('<style class="theming"></style>');
ManagerRows(); // For Task Manager Only
VisualStyleCompile(); // Compiles the Contrast Options
Expand Down Expand Up @@ -174,7 +165,6 @@ function VisualStyle(style,save=true) {
if (save) {
insertKey('style-active', style );
}
ThemeColorMetaTag();
}

function VisualColor(style,save=true) {
Expand All @@ -195,7 +185,6 @@ function VisualColor(style,save=true) {
insertKey('color-active', style );
}
ColorUpdate(true);
ThemeColorMetaTag();
}


Expand Down Expand Up @@ -448,21 +437,11 @@ var colors4= ['#8c8c8c', '#999999', '#a5a5a5', '#b2b2b2', '#bfbfbf', '#cccccc',
function CheckTheme() {
/* Wiki theme */
ColorUpdate(true);
ThemeColorMetaTag();
ManagerRows();
ContrastBanner();
}


function ThemeColorMetaTag() {
/* Top bar for Mobile Devices */
if ( ($(".evelution-minibar").length) ) {
$('meta[name*="theme-color"]').attr("content", Color(getComputedStyle(document.querySelector('.evelution-minibar')).getPropertyValue("background-color")).setAlpha(1).toString() );
} else {
$('meta[name*="theme-color"]').attr("content", Color( getComputedStyle(document.querySelector('.body-background-color')).getPropertyValue("background-color") ).setAlpha(1).toString() );
}

}

/* Used only on Task Manager, ignored elsewhere */
function ManagerRows() {
Expand Down Expand Up @@ -1290,7 +1269,6 @@ var messagecolor1 = ColorTest(message_color,false,false,true);



ThemeColorMetaTag();

if (refresh === true) {
CheckBG()
Expand Down Expand Up @@ -1418,6 +1396,7 @@ if (refresh === true) {
$("head .theming").html(':root {\n' + result + '}\n' + 'body {\n' + result2 + '}');



}


Expand Down

0 comments on commit cd6df36

Please sign in to comment.