Skip to content

Commit 94e4997

Browse files
committed
common: theme: add more colors, organize them, add docstring
1 parent 55b73fb commit 94e4997

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

src/common.lisp

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -159,15 +159,24 @@ See also: `ask-confirmation'"
159159
;; perhaps have a "fallback" item, specifying a theme to fall back to if a color is not defined in this one.
160160
;; maybe use mcclim indirect inks instead of colors directly?
161161

162-
(defvar *theme* (list :background (make-gray-color 0.2)
163-
:foreground +white+
164-
:grid (make-gray-color 0.8)
165-
:stopped +red+
166-
:playing +green+
167-
:ending +red4+
168-
:starting +greenyellow+
169-
:note-fill +red+
170-
:selected-note-fill +blue+))
162+
(defvar *theme* (list
163+
;; general
164+
:background (make-gray-color 0.2)
165+
:foreground +white+
166+
;; patterns
167+
:stopped +red+
168+
:playing +green+
169+
:ending +red4+
170+
:starting +greenyellow+
171+
;; piano-roll
172+
:grid (make-gray-color 0.8)
173+
:note-fill +red+
174+
:selected-note-fill +blue+
175+
;; keyboard-gui
176+
:white-key +white+
177+
:black-key +black+
178+
:octave-separator +red+)
179+
"The active Thundersnow theme. These are the default colors for all included graphical interfaces, though colors can still be changed on a per-instance basis through the slots of the associated objects.")
171180

172181
(defun theme-color (element)
173182
"Get the theme's color for a type of GUI element, i.e. :foreground, :background, :accent, etc.

0 commit comments

Comments
 (0)