Skip to content

Commit

Permalink
Keep hex-color if originally in that format.
Browse files Browse the repository at this point in the history
  • Loading branch information
misohena committed Feb 16, 2025
1 parent 46f7e13 commit 387133c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion edraw-color.el
Original file line number Diff line number Diff line change
Expand Up @@ -1760,7 +1760,10 @@ Signals an error if there is a syntax or other problem, never returns nil."
(not (eq syntax 'css-color-function))
(not (plist-get options :disable-hex-color))
(or (edraw-opaque-p color)
(plist-get options :enable-hex-non-opaque)))
(plist-get options :enable-hex-non-opaque)
;; Original text is in #RRGGBBAA format
(and (eq syntax 'css-hex-color)
(eql (plist-get options :num-components) 4))))
(edraw-color-css-make-hex-color color options))
;; <function-color>
(edraw-color-css-make-color-function color options))))
Expand Down

0 comments on commit 387133c

Please sign in to comment.