* etc/images/outline-open.svg:
* etc/images/outline-close.svg: New files.
* lisp/outline.el (outline-open, outline-close): Use images
outline-open.svg and outline-close.svg.
* lisp/emacs-lisp/icons.el (icons--create): Add :ascent 'center'.
--- /dev/null
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
+<title>outline-close</title>
+<g transform="rotate(-90, 10, 10)">
+<path d="m17.5 4.75-7.5 7.5-7.5-7.5L1 6.25l9 9 9-9z"/>
+</g>
+</svg>
--- /dev/null
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
+<title>outline-open</title>
+<path d="m17.5 4.75-7.5 7.5-7.5-7.5L1 6.25l9 9 9-9z"/>
+</svg>
:height (if (eq height 'line)
(window-default-line-height)
height)
- :scale 1)
+ :scale 1 :ascent 'center)
(create-image file))))))
(cl-defmethod icons--create ((_type (eql 'emoji)) icon _keywords)
:safe #'booleanp
:version "29.1")
-(define-icon outline-open button
- '((emoji "🔽")
+(define-icon outline-open nil
+ '((image "outline-open.svg" :height 15 :ascent center)
+ (emoji "🔽")
(symbol " ▼ ")
(text " open "))
"Icon used for buttons for opening a section in outline buffers."
:version "29.1"
:help-echo "Open this section")
-(define-icon outline-close button
- '((emoji "▶️")
+(define-icon outline-close nil
+ '((image "outline-close.svg" :height 15 :ascent center)
+ (emoji "▶️")
(symbol " ▶ ")
(text " close "))
"Icon used for buttons for closing a section in outline buffers."