Skip to content

Commit

Permalink
[AlternativeTheme] WIP Add new theme NeoGlass
Browse files Browse the repository at this point in the history
  • Loading branch information
Flashacker-Neo committed Feb 6, 2022
1 parent c6167d3 commit ad869a5
Show file tree
Hide file tree
Showing 3 changed files with 878 additions and 5 deletions.
12 changes: 8 additions & 4 deletions src/app/mods/alternative-themes/alternativeTheme.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Select } from "@helpers/windowHelper/inputDtHelper/inputs/select";
import { neoDark } from "./themes/neoDark";
import { Mod } from "../mod";

import { neoDark } from "./themes/neoDark";
import { neoGlassTheme } from "./themes/neoGlass";

export class AlternativeTheme extends Mod {

private optionsWindow: any;
Expand All @@ -16,8 +18,9 @@ export class AlternativeTheme extends Mod {

// Set Theme list
this.themeList = [
{id: 'default', text: 'Thème par défaut'},
{id: 'neoBlack', text: 'Thème noir transparent'},
{id: 'default', text: 'Défaut'},
{id: 'neoBlack', text: 'Noir transparent'},
{id: 'neoGlass', text: 'Glass'},
];

this.init();
Expand All @@ -39,7 +42,7 @@ export class AlternativeTheme extends Mod {

// Create new elements
const headTitle = this.wGame.document.createElement('div');
headTitle.innerText = 'Choix du thème';
headTitle.innerText = 'Choix du thème (LINDO)';
headTitle.className = "header";

// Create select
Expand All @@ -65,6 +68,7 @@ export class AlternativeTheme extends Mod {

switch (themeId) {
case 'neoBlack': theme.innerHTML = neoDark; break;
case 'neoGlass': theme.innerHTML = neoGlassTheme(); break;
}

this.wGame.document.head.appendChild(theme);
Expand Down
Loading

0 comments on commit ad869a5

Please sign in to comment.