]> Stephen's Gitweb - donsol-js.git/commitdiff
Add Solarized Dark theme
authorStephen Jianu <stephen@stephenjianu.com>
Wed, 24 Dec 2025 18:00:42 +0000 (12:00 -0600)
committerStephen Jianu <stephen@stephenjianu.com>
Wed, 24 Dec 2025 18:00:42 +0000 (12:00 -0600)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index 328db8efcacaf68e0e4b971b7da2b11a5d6d0497..3d419c23cee82e98e63067a54760564cabed363f 100644 (file)
@@ -414,6 +414,17 @@ function Donsol () {
     b_low: '#f5f5f5',
     b_inv: '#ed2c3e'
   }
+  this.solarizedDarkTheme = {
+    background: '#073642',
+    f_high: '#93a1a1',
+    f_med: '#6c71c4',
+    f_low: '#586e75',
+    f_inv: '#002b36',
+    b_high: '#fdf6e3',
+    b_med: '#eee8d5',
+    b_low: '#002b36',
+    b_inv: '#cb4b16'
+  }
   this.tapeTheme = {
     background: '#dad7cd',
     f_high: '#696861',
index 74c5d02fd39390480f0f6b2633e48b85058d769b..aa3c0d7b064b173d4e449088113ada3a132cfedc 100644 (file)
@@ -260,6 +260,9 @@ function Player () {
     if (theme_value.localeCompare('snow') === 0) {
       new_theme = donsol.snowTheme
     }
+    if (theme_value.localeCompare('solarizedDark') === 0) {
+      new_theme = donsol.solarizedDarkTheme
+    }
     if (theme_value.localeCompare('tape') === 0) {
       new_theme = donsol.tapeTheme
     }
index 09537d1cf9b44a5b50db1b6652ff634f77069a2a..d8cfdaaaa3c8c7f19f4c491448ad1467189734dd 100644 (file)
@@ -47,6 +47,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"roguelite\">Roguelite</option>'
     this.theme_button.innerHTML += '<option value=\"sk\">SK</option>'
     this.theme_button.innerHTML += '<option value=\"snow\">Snow</option>'
+    this.theme_button.innerHTML += '<option value=\"solarizedDark\">Solarized Dark</option>'
     this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'
     this.theme_button.addEventListener('mousedown', () => { donsol.player.change_theme(this.theme_button.value) })
     this.theme_button.addEventListener('change', () => { donsol.player.change_theme(this.theme_button.value) })