From b0d095b2cdff7b43ab3866a2d541d18e359a4125 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Sat, 3 Apr 2021 21:53:06 +0200 Subject: [PATCH] Add SVG icons for customize buffers * etc/images/checkbox-mixed.svg: * etc/images/checked.svg: * etc/images/down.svg: * etc/images/left.svg: * etc/images/radio-checked.svg: * etc/images/radio-mixed.svg: * etc/images/radio.svg: * etc/images/right.svg: * etc/images/unchecked.svg: * etc/images/up.svg: New files from the Adwaita Icon Theme (made by the GNOME project). The background color was changed from gray to none to use the same colors as the current face instead. (Bug#47074) * etc/images/README: Add license information for the above new files. * lisp/wid-edit.el (widget-image-conversion): Prefer SVG if it exists. (radio-button): Rename radio buttons to "radio-checked" and "radio". These files did not exist before. --- etc/images/README | 27 +++++++++++++++++++++++ etc/images/checkbox-mixed.svg | 6 ++++++ etc/images/checked.svg | 6 ++++++ etc/images/down.svg | 40 +++++++++++++++++++++++++++++++++++ etc/images/left.svg | 40 +++++++++++++++++++++++++++++++++++ etc/images/radio-checked.svg | 6 ++++++ etc/images/radio-mixed.svg | 6 ++++++ etc/images/radio.svg | 3 +++ etc/images/right.svg | 40 +++++++++++++++++++++++++++++++++++ etc/images/unchecked.svg | 3 +++ etc/images/up.svg | 40 +++++++++++++++++++++++++++++++++++ lisp/wid-edit.el | 6 +++--- 12 files changed, 220 insertions(+), 3 deletions(-) create mode 100644 etc/images/checkbox-mixed.svg create mode 100644 etc/images/checked.svg create mode 100644 etc/images/down.svg create mode 100644 etc/images/left.svg create mode 100644 etc/images/radio-checked.svg create mode 100644 etc/images/radio-mixed.svg create mode 100644 etc/images/radio.svg create mode 100644 etc/images/right.svg create mode 100644 etc/images/unchecked.svg create mode 100644 etc/images/up.svg diff --git a/etc/images/README b/etc/images/README index 00aac4f510a..9bbe796cc95 100644 --- a/etc/images/README +++ b/etc/images/README @@ -104,3 +104,30 @@ same conditions. The *.pbm files were generally converted from *.xpm by running GIMP or ImageMagick's 'convert'. + + +* The following icons are from the Adwaita Icon Theme (made by the +GNOME project). They are not part of Emacs, but are distributed and +used by Emacs. They are licensed under either the GNU LGPL v3 or the +Creative Commons Attribution-Share Alike 3.0 United States License. + +To view a copy of the CC-BY-SA licence, visit +http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative +Commons, 171 Second Street, Suite 300, San Francisco, California 94105, USA. + +For more information see the adwaita-icon-theme repository at: + + https://gitlab.gnome.org/GNOME/adwaita-icon-theme + +Emacs images and their source in the Adwaita/scalable directory: + + checked.svg ui/checkbox-checked-symbolic.svg + unchecked.svg ui/checkbox-symbolic.svg + checkbox-mixed.svg ui/checkbox-mixed-symbolic.svg + radio.svg ui/radio-symbolic.svg + radio-mixed.svg ui/radio-mixed-symbolic.svg + radio-checked.svg ui/radio-checked-symbolic.svg + down.svg ui/pan-down-symbolic.svg + left.svg ui/pan-start-symbolic.svg + right.svg ui/pan-end-symbolic.svg + up.svg ui/pan-up-symbolic.svg diff --git a/etc/images/checkbox-mixed.svg b/etc/images/checkbox-mixed.svg new file mode 100644 index 00000000000..13bccaa7ce1 --- /dev/null +++ b/etc/images/checkbox-mixed.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/etc/images/checked.svg b/etc/images/checked.svg new file mode 100644 index 00000000000..6fefd5569ef --- /dev/null +++ b/etc/images/checked.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/etc/images/down.svg b/etc/images/down.svg new file mode 100644 index 00000000000..e2760427d73 --- /dev/null +++ b/etc/images/down.svg @@ -0,0 +1,40 @@ + + + + + + + + + + image/svg+xml + + Gnome Symbolic Icons + + + + + + + + + + + + + Gnome Symbolic Icons + + + + + + + + + + + + + + + diff --git a/etc/images/left.svg b/etc/images/left.svg new file mode 100644 index 00000000000..d6429bc4109 --- /dev/null +++ b/etc/images/left.svg @@ -0,0 +1,40 @@ + + + + + + + + + + image/svg+xml + + Gnome Symbolic Icons + + + + + + + + + + + + + Gnome Symbolic Icons + + + + + + + + + + + + + + + diff --git a/etc/images/radio-checked.svg b/etc/images/radio-checked.svg new file mode 100644 index 00000000000..db711841cf0 --- /dev/null +++ b/etc/images/radio-checked.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/etc/images/radio-mixed.svg b/etc/images/radio-mixed.svg new file mode 100644 index 00000000000..5a8be0cf657 --- /dev/null +++ b/etc/images/radio-mixed.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/etc/images/radio.svg b/etc/images/radio.svg new file mode 100644 index 00000000000..0d649c99cd4 --- /dev/null +++ b/etc/images/radio.svg @@ -0,0 +1,3 @@ + + + diff --git a/etc/images/right.svg b/etc/images/right.svg new file mode 100644 index 00000000000..d58cd364359 --- /dev/null +++ b/etc/images/right.svg @@ -0,0 +1,40 @@ + + + + + + + + + + image/svg+xml + + Gnome Symbolic Icons + + + + + + + + + + + + + Gnome Symbolic Icons + + + + + + + + + + + + + + + diff --git a/etc/images/unchecked.svg b/etc/images/unchecked.svg new file mode 100644 index 00000000000..18cd25b43fd --- /dev/null +++ b/etc/images/unchecked.svg @@ -0,0 +1,3 @@ + + + diff --git a/etc/images/up.svg b/etc/images/up.svg new file mode 100644 index 00000000000..9e1a245be74 --- /dev/null +++ b/etc/images/up.svg @@ -0,0 +1,40 @@ + + + + + + + + + + image/svg+xml + + Gnome Symbolic Icons + + + + + + + + + + + + + Gnome Symbolic Icons + + + + + + + + + + + + + + + diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index 51c6b49e6df..49baab69199 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el @@ -750,7 +750,7 @@ automatically." :type 'boolean) (defcustom widget-image-conversion - '((xpm ".xpm") (gif ".gif") (png ".png") (jpeg ".jpg" ".jpeg") + '((svg ".svg") (xpm ".xpm") (gif ".gif") (png ".png") (jpeg ".jpg" ".jpeg") (xbm ".xbm")) "Conversion alist from image formats to file name suffixes." :group 'widgets @@ -2564,9 +2564,9 @@ Return an alist of (TYPE MATCH)." :button-suffix "" :button-prefix "" :on "(*)" - :on-glyph "radio1" + :on-glyph "radio-checked" :off "( )" - :off-glyph "radio0") + :off-glyph "radio") (defun widget-radio-button-notify (widget _child &optional event) ;; Tell daddy. -- 2.39.5