]> git.eshelyaron.com Git - emacs.git/commitdiff
(checkbox): Swap bg/fg colors in images, and invert
authorMiles Bader <miles@gnu.org>
Sat, 20 Oct 2001 15:16:30 +0000 (15:16 +0000)
committerMiles Bader <miles@gnu.org>
Sat, 20 Oct 2001 15:16:30 +0000 (15:16 +0000)
image bits to compensate.  Use `make-string' instead of
`make-bool-vector' (XBM apparently wants byte-aligned rows).

lisp/ChangeLog
lisp/wid-edit.el

index 7713340b855754ebf0b2bec81644736f0c5db7d7..96403ac69e54eff2b3c965a6e527ef7bf1fefffd 100644 (file)
@@ -1,3 +1,9 @@
+2001-10-21  Miles Bader  <miles@gnu.org>
+
+       * wid-edit.el (checkbox): Swap bg/fg colors in image, and invert
+       image bits to compensate.  Use `make-string' instead of
+       `make-bool-vector' (XBM apparently wants byte-aligned rows).
+
 2001-10-20  Kim F. Storm  <storm@cua.dk>
 
        * simple.el (kill-ring-save): Don't show extent of copied region
index 71af16d28bfb2946d16ef218a79137056231e792..17f507949481cd89c63b262c1bd109cd38a66042 100644 (file)
@@ -2020,16 +2020,17 @@ when he invoked the menu."
   ;; We could probably do the same job as the images using single
   ;; space characters in a boxed face with a stretch specification to
   ;; make them square.
-  :on-glyph (create-image "\377\311\301\343\301\311\377"  ; this is an `X'
+  :on-glyph (create-image "\000\066\076\034\076\066\000"
                          'xbm t :width 7 :height 7
-                         :foreground "grey75" ; like default mode line
-                         :background "black"
+                         :background "grey75" ; like default mode line
+                         :foreground "black"
                          :relief -3
                          :ascent 'center)
   :off "[ ]"
-  :off-glyph (create-image (make-bool-vector 49 1)
+  :off-glyph (create-image (make-string 7 0)
                           'xbm t :width 7 :height 7
-                          :foreground "grey75"
+                          :background "grey75"
+                          :foreground "black"
                           :relief 3
                           :ascent 'center)
   :help-echo "Toggle this item."