* lisp/facemenu.el (list-colors-print): In help-echo format use %.2f
instead of %d because now HSV values are floating-point components between 0.0 and 1.0.
This commit is contained in:
parent
50802fa8e2
commit
b08e34f03a
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-07-08 Juri Linkov <juri@jurta.org>
|
||||
|
||||
* facemenu.el (list-colors-print): In help-echo format use %.2f
|
||||
instead of %d because now HSV values are floating-point components
|
||||
between 0.0 and 1.0.
|
||||
|
||||
2014-07-06 Glenn Morris <rgm@gnu.org>
|
||||
|
||||
* emulation/cua-rect.el (cua--activate-rectangle):
|
||||
|
|
|
@ -620,7 +620,7 @@ color. The function should accept a single argument, the color name."
|
|||
'help-echo
|
||||
(let ((hsv (apply 'color-rgb-to-hsv
|
||||
(color-name-to-rgb (car color)))))
|
||||
(format "H:%d S:%d V:%d"
|
||||
(format "H:%.2f S:%.2f V:%.2f"
|
||||
(nth 0 hsv) (nth 1 hsv) (nth 2 hsv)))))
|
||||
(when callback
|
||||
(make-text-button
|
||||
|
|
Loading…
Add table
Reference in a new issue