Function: hproperty:cycle-but-color

hproperty:cycle-but-color is an interactive and byte-compiled function defined in hproperty.el.

Signature

(hproperty:cycle-but-color &optional COLOR)

Documentation

Switch button color.

Set color to optional COLOR name or next item referenced by hproperty:color-ptr.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hproperty.el
;;; ************************************************************************
;;; Public functions
;;; ************************************************************************

(defun hproperty:cycle-but-color (&optional color)
  "Switch button color.
Set color to optional COLOR name or next item referenced by
hproperty:color-ptr."
  (interactive "sHyperbole button color: ")
  (when (display-color-p)
    (when color (setq hproperty:color-ptr nil))
    (set-face-foreground
     hproperty:but-face (or color (car (hproperty:list-cycle hproperty:color-ptr hproperty:good-colors))))
    (redisplay t)
    t))