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

index 3d419c23cee82e98e63067a54760564cabed363f..02b0dd30041b9c3390564deebf5fcf5c5cc78e28 100644 (file)
@@ -425,6 +425,17 @@ function Donsol () {
     b_low: '#002b36',
     b_inv: '#cb4b16'
   }
+  this.solarizedLightTheme = {
+    background: '#eee8d5',
+    f_high: '#586e75',
+    f_med: '#6c71c4',
+    f_low: '#93a1a1',
+    f_inv: '#fdf6e3',
+    b_high: '#002b36',
+    b_med: '#073642',
+    b_low: '#fdf6e3',
+    b_inv: '#cb4b16'
+  }
   this.tapeTheme = {
     background: '#dad7cd',
     f_high: '#696861',
index aa3c0d7b064b173d4e449088113ada3a132cfedc..29a9300adbce2d5c23a4b18adb63cb429e26948d 100644 (file)
@@ -263,6 +263,9 @@ function Player () {
     if (theme_value.localeCompare('solarizedDark') === 0) {
       new_theme = donsol.solarizedDarkTheme
     }
+    if (theme_value.localeCompare('solarizedLight') === 0) {
+      new_theme = donsol.solarizedLightTheme
+    }
     if (theme_value.localeCompare('tape') === 0) {
       new_theme = donsol.tapeTheme
     }
index d8cfdaaaa3c8c7f19f4c491448ad1467189734dd..d14a05af134cdaacee8881ac2ecbb357deb2eadf 100644 (file)
@@ -48,6 +48,7 @@ function Settings () {
     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=\"solarizedLight\">Solarized Light</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) })