Merge pull request #293 from goose121/goose121-patch-1

Make stumptray work with explicit background/foreground colors
This commit is contained in:
David 2024-11-29 10:59:04 -05:00 committed by GitHub
commit 21def0c2af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,13 +103,19 @@ The tray is aligned right."
window coordinates.")
;; Colors
(defparameter *tray-win-background* (nth 7 stumpwm:*colors*)
(defun nth-color (n)
(let ((c (nth n stumpwm:*colors*)))
(typecase c
(cons (cadr c))
(t c))))
(defparameter *tray-win-background* (nth-color 7)
"Tray main container window background color.")
(defparameter *tray-viwin-background* stumpwm:*mode-line-background-color*
"Tray visible icons container window color.")
(defparameter *tray-hiwin-background* stumpwm:*mode-line-border-color*
"Tray hidden icons container window color.")
(defparameter *tray-cursor-color* (nth 2 stumpwm:*colors*)
(defparameter *tray-cursor-color* (nth-color 2)
"Tray icon selection cursor color.")
;;; Sorting and hiding