]> Stephen's Gitweb - donsol-js.git/commitdiff
Add Teenage theme
authorStephen Jianu <stephen@stephenjianu.com>
Sun, 25 Jan 2026 21:35:08 +0000 (15:35 -0600)
committerStephen Jianu <stephen@stephenjianu.com>
Sun, 25 Jan 2026 21:35:08 +0000 (15:35 -0600)
sources/scripts/donsol.js
sources/scripts/player.js
sources/scripts/settings.js

index bbd9d37e2bd9b3b09eb3f984c4b1b474e224121b..ad44b823f2ce94b2fadcb07f1ea697edc71ee9e1 100644 (file)
@@ -469,6 +469,17 @@ function Donsol () {
     b_low: '#e5e3dc',
     b_inv: '#eb3f48'
   }
+  this.teenageTheme = {
+    background: '#a1a1a1',
+    f_high: '#222222',
+    f_med: '#e00b30',
+    f_low: '#888888',
+    f_inv: '#ffffff',
+    b_high: '#555555',
+    b_med: '#fbba2d',
+    b_low: '#b3b3b3',
+    b_inv: '#0e7242'
+  }
 
   this.theme = new Theme(this.defaultTheme)
 
index 06cb89aa50db1411bc464fd239525c220472c263..69cef26f92457b6f81d0819acd7137370860aa84 100644 (file)
@@ -275,6 +275,9 @@ function Player () {
     if (theme_value.localeCompare('tape') === 0) {
       new_theme = donsol.tapeTheme
     }
+    if (theme_value.localeCompare('teenage') === 0) {
+      new_theme = donsol.teenageTheme
+    }
     donsol.theme = new Theme(new_theme)
     donsol.theme.load(new_theme)
     donsol.theme.install(document.body)
index 43f6cc3c80517e4245dfd0a0ece35998b57e9471..1e12e60fb20c9a4c448244436aa60a248c768aba 100644 (file)
@@ -52,6 +52,7 @@ function Settings () {
     this.theme_button.innerHTML += '<option value=\"sonicPi\">Sonic Pi</option>'
     this.theme_button.innerHTML += '<option value=\"soyuz\">Soyuz</option>'
     this.theme_button.innerHTML += '<option value=\"tape\">Tape</option>'
+    this.theme_button.innerHTML += '<option value=\"teenage\">Teenage</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) })