Add nord theme with license header, update all theme files with license
This commit is contained in:
1 parent
6074d18018
commit
591f5b2f24
6 files changed
+94
-5
No files matched your search
+3
-2
@@ -8,7 +8,7 @@
|
||||
<script>
|
||||
(function() {
|
||||
var theme = (window.CONFIG && window.CONFIG.theme) || 'ash';
|
||||
var themeMap = { ash: 'ash.css', gruvbox: 'gruvbox.css' };
|
||||
var themeMap = { ash: 'ash.css', gruvbox: 'gruvbox.css', nord: 'nord.css' };
|
||||
var css = document.getElementById('theme-css');
|
||||
if (css) css.href = themeMap[theme] || themeMap.ash;
|
||||
})();
|
||||
@@ -313,6 +313,7 @@
|
||||
<select id="dbg-theme-select" class="debug-select" onchange="setDebugTheme(this.value)">
|
||||
<option value="ash">Ash</option>
|
||||
<option value="gruvbox">Gruvbox</option>
|
||||
<option value="nord">Nord</option>
|
||||
</select>
|
||||
<select id="dbg-units-select" class="debug-select" onchange="setDebugUnits(this.value)">
|
||||
<option value="metric">°C, km/h</option>
|
||||
@@ -1270,7 +1271,7 @@ window.weatherThemes = {
|
||||
}
|
||||
|
||||
function setDebugTheme(theme) {
|
||||
var themeMap = { ash: 'ash.css', gruvbox: 'gruvbox.css' };
|
||||
var themeMap = { ash: 'ash.css', gruvbox: 'gruvbox.css', nord: 'nord.css' };
|
||||
var css = document.getElementById('theme-css');
|
||||
if (css && themeMap[theme]) css.href = themeMap[theme];
|
||||
setTimeout(function() {
|
||||
|
||||
Reference in new issue
Block a user