"Read a color using the minibuffer."
(let ((col (completing-read (or prompt "Color: ")
(or facemenu-color-alist
- (if (eq 'x window-system)
+ (if (or (eq window-system 'x) (eq window-system 'win32))
(mapcar 'list (x-defined-colors))))
nil t)))
(if (equal "" col)
colors to display. Otherwise, this command computes a list
of colors that the current display can handle."
(interactive)
- (if (and (null list) (eq 'x window-system))
+ (if (and (null list) (or (eq window-system 'x) (eq window-system 'win32)))
(progn
(setq list (x-defined-colors))
;; Delete duplicate colors.
color names mean. It returns nil if the colors differ or if it can't
determine the correct answer."
(cond ((equal a b) t)
- ((and (eq 'x window-system)
+ ((and (or (eq window-system 'x) (eq window-system 'win32))
(equal (x-color-values a) (x-color-values b))))))
(defun facemenu-add-face (face start end)
(color (substring name 3)))
(cond ((string-match "^fg:" name)
(set-face-foreground face color)
- (and (eq 'x window-system) (x-color-defined-p color)))
+ (and (or (eq window-system 'x) (eq window-system 'win32)) (x-color-defined-p color)))
((string-match "^bg:" name)
(set-face-background face color)
- (and (eq 'x window-system) (x-color-defined-p color)))
+ (and (or (eq window-system 'x) (eq window-system 'win32)) (x-color-defined-p color)))
(t))))
symbol))