This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch main
in repository endorse.

View the commit online.

commit 0b95255d43a6fa232ac5e0fcb8d2a1a58ed4c942
Author: Alastair Poole <[email protected]>
AuthorDate: Fri Nov 27 14:27:09 2026 +0000

    unify themes
---
 NEWS                                             |   5 +
 data/themes/AUTHORS.artwork                      |   6 +
 data/themes/COPYING.equation                     | 339 +++++++++++++++++++++++
 data/themes/COPYING.scribble                     |  14 +
 data/themes/artwork/endorse_blue_hour_body.svg   |  10 +
 data/themes/artwork/endorse_blue_hour_motion.svg |  12 +-
 data/themes/artwork/endorse_menu.svg             |   6 +-
 data/themes/artwork/endorse_midnight_body.svg    |   5 +
 data/themes/artwork/endorse_midnight_motion.svg  |  12 +-
 data/themes/artwork/endorse_parchment_body.svg   |   8 +
 data/themes/artwork/endorse_parchment_motion.svg |  11 +-
 data/themes/artwork/endorse_post_it_body.svg     |   3 +
 data/themes/artwork/endorse_voltage_body.svg     |  35 +++
 data/themes/artwork/endorse_voltage_motion.svg   |  10 +-
 data/themes/artwork/endorse_window_shadow.png    | Bin 552 -> 4707 bytes
 data/themes/endorse_theme.edc                    |  93 +++----
 data/themes/meson.build                          |  29 +-
 meson.build                                      |   2 +-
 src/lib/endorse.h                                |   1 +
 src/lib/endorse_theme.c                          |  73 ++---
 src/lib/endorse_ui.c                             |  92 ++++--
 21 files changed, 616 insertions(+), 150 deletions(-)

diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..9ead1a0
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,5 @@
+=============
+Endorse 0.1.1
+=============
+
+  * Unified themes.
diff --git a/data/themes/AUTHORS.artwork b/data/themes/AUTHORS.artwork
new file mode 100644
index 0000000..1769ee8
--- /dev/null
+++ b/data/themes/AUTHORS.artwork
@@ -0,0 +1,6 @@
+The window and control artwork copied from Scribble's Observatory, Atelier,
+Crazy Lab, and Midnight themes originated in Equation by the Enlightenment
+Development Team and Alastair Poole. It is licensed under GPL-2.0-only.
+See COPYING.equation.
+
+The shared icons copied from Scribble are covered by COPYING.scribble.
diff --git a/data/themes/COPYING.equation b/data/themes/COPYING.equation
new file mode 100644
index 0000000..d511905
--- /dev/null
+++ b/data/themes/COPYING.equation
@@ -0,0 +1,339 @@
+		    GNU GENERAL PUBLIC LICENSE
+		       Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+			    Preamble
+
+  The licenses for most software are designed to take away your
+freedom to share and change it.  By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users.  This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it.  (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.)  You can apply it to
+your programs, too.
+
+  When we speak of free software, we are referring to freedom, not
+price.  Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+  To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+  For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have.  You must make sure that they, too, receive or can get the
+source code.  And you must show them these terms so they know their
+rights.
+
+  We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+  Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software.  If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+  Finally, any free program is threatened constantly by software
+patents.  We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary.  To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+  The precise terms and conditions for copying, distribution and
+modification follow.
+
+		    GNU GENERAL PUBLIC LICENSE
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+  0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License.  The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language.  (Hereinafter, translation is included without limitation in
+the term "modification".)  Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope.  The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+  1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+  2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+    a) You must cause the modified files to carry prominent notices
+    stating that you changed the files and the date of any change.
+
+    b) You must cause any work that you distribute or publish, that in
+    whole or in part contains or is derived from the Program or any
+    part thereof, to be licensed as a whole at no charge to all third
+    parties under the terms of this License.
+
+    c) If the modified program normally reads commands interactively
+    when run, you must cause it, when started running for such
+    interactive use in the most ordinary way, to print or display an
+    announcement including an appropriate copyright notice and a
+    notice that there is no warranty (or else, saying that you provide
+    a warranty) and that users may redistribute the program under
+    these conditions, and telling the user how to view a copy of this
+    License.  (Exception: if the Program itself is interactive but
+    does not normally print such an announcement, your work based on
+    the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole.  If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works.  But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+  3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+    a) Accompany it with the complete corresponding machine-readable
+    source code, which must be distributed under the terms of Sections
+    1 and 2 above on a medium customarily used for software interchange; or,
+
+    b) Accompany it with a written offer, valid for at least three
+    years, to give any third party, for a charge no more than your
+    cost of physically performing source distribution, a complete
+    machine-readable copy of the corresponding source code, to be
+    distributed under the terms of Sections 1 and 2 above on a medium
+    customarily used for software interchange; or,
+
+    c) Accompany it with the information you received as to the offer
+    to distribute corresponding source code.  (This alternative is
+    allowed only for noncommercial distribution and only if you
+    received the program in object code or executable form with such
+    an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it.  For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable.  However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+  4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License.  Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+  5. You are not required to accept this License, since you have not
+signed it.  However, nothing else grants you permission to modify or
+distribute the Program or its derivative works.  These actions are
+prohibited by law if you do not accept this License.  Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+  6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions.  You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+  7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License.  If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all.  For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices.  Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+  8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded.  In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+  9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time.  Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number.  If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation.  If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+  10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission.  For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this.  Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+			    NO WARRANTY
+
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+		     END OF TERMS AND CONDITIONS
+
+	    How to Apply These Terms to Your New Programs
+
+  If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+  To do so, attach the following notices to the program.  It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+    <one line to give the program's name and a brief idea of what it does.>
+    Copyright (C) <year>  <name of author>
+
+    This program is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License along
+    with this program; if not, write to the Free Software Foundation, Inc.,
+    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+    Gnomovision version 69, Copyright (C) year name of author
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    This is free software, and you are welcome to redistribute it
+    under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License.  Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary.  Here is a sample; alter the names:
+
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+  <signature of Ty Coon>, 1 April 1989
+  Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs.  If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
diff --git a/data/themes/COPYING.scribble b/data/themes/COPYING.scribble
new file mode 100644
index 0000000..0364e0b
--- /dev/null
+++ b/data/themes/COPYING.scribble
@@ -0,0 +1,14 @@
+ Copyright (c) 2026 Alastair Poole <[email protected]>
+
+ Permission to use, copy, modify, and distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
diff --git a/data/themes/artwork/endorse_blue_hour_body.svg b/data/themes/artwork/endorse_blue_hour_body.svg
new file mode 100644
index 0000000..ad0f0de
--- /dev/null
+++ b/data/themes/artwork/endorse_blue_hour_body.svg
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="520" height="900" viewBox="0 0 520 900">
+  <rect x="1" y="1" width="518" height="898" rx="17" fill="#101927" stroke="#32465e" stroke-width="2"/>
+  <path d="M18 5h70" stroke="#72dbd0" stroke-width="3"/>
+  <g stroke="#6abcb8" stroke-opacity=".12" fill="none">
+    <path d="M350 8l40 24 30-18 50 31M390 32l10 24"/>
+    <circle cx="390" cy="32" r="3"/>
+    <circle cx="420" cy="14" r="2"/>
+  </g>
+</svg>
diff --git a/data/themes/artwork/endorse_blue_hour_motion.svg b/data/themes/artwork/endorse_blue_hour_motion.svg
index 36cd85b..0624f42 100644
--- a/data/themes/artwork/endorse_blue_hour_motion.svg
+++ b/data/themes/artwork/endorse_blue_hour_motion.svg
@@ -1,5 +1,11 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="166" height="28" viewBox="0 0 166 28">
-  <g fill="none" stroke="#91c8f6" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
-    <path d="M72 14h22M83 3v22M79 10l8 8m0-8-8 8M54 14h3m52 0h3"/>
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
+  <g fill="none" stroke="#77e4d7">
+    <circle cx="100" cy="100" r="78" stroke-opacity=".35"/>
+    <circle cx="100" cy="100" r="57" stroke-opacity=".12"/>
+    <ellipse cx="100" cy="100" rx="91" ry="34" transform="rotate(-35 100 100)" stroke-opacity=".4"/>
+    <path d="M100 8v15M100 177v15M8 100h15M177 100h15" stroke-opacity=".35"/>
   </g>
+  <circle cx="156" cy="46" r="4" fill="#b9fff4"/>
+  <circle cx="45" cy="155" r="2" fill="#77e4d7"/>
 </svg>
diff --git a/data/themes/artwork/endorse_menu.svg b/data/themes/artwork/endorse_menu.svg
index 36a6f0f..a9c13d8 100644
--- a/data/themes/artwork/endorse_menu.svg
+++ b/data/themes/artwork/endorse_menu.svg
@@ -1,3 +1,5 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24">
-  <path d="M4 6h16M4 12h16M4 18h16" fill="none" stroke="#fff" stroke-width="2.25" stroke-linecap="round"/>
+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
+  <g fill="none" stroke="#fff" stroke-width="1.65" stroke-linecap="round" stroke-linejoin="round">
+    <path d="M5 6.5h14M5 12h14M5 17.5h14"/>
+  </g>
 </svg>
diff --git a/data/themes/artwork/endorse_midnight_body.svg b/data/themes/artwork/endorse_midnight_body.svg
new file mode 100644
index 0000000..f51b37f
--- /dev/null
+++ b/data/themes/artwork/endorse_midnight_body.svg
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="520" height="900" viewBox="0 0 520 900">
+  <rect x="1" y="1" width="518" height="898" rx="17" fill="#131a2a" stroke="#30415b" stroke-width="2"/>
+  <path d="M18 5h70" stroke="#7bb1ff" stroke-width="3"/>
+</svg>
diff --git a/data/themes/artwork/endorse_midnight_motion.svg b/data/themes/artwork/endorse_midnight_motion.svg
index b8c9935..1a85d07 100644
--- a/data/themes/artwork/endorse_midnight_motion.svg
+++ b/data/themes/artwork/endorse_midnight_motion.svg
@@ -1,4 +1,10 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="168" height="28" viewBox="0 0 168 28">
-  <path d="M4 14h66m28 0h66" fill="none" stroke="#30415b"/>
-  <path d="m84 9 5 5-5 5-5-5z" fill="#7bb1ff"/>
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
+  <g fill="none" stroke="#7bb1ff">
+    <circle cx="100" cy="100" r="84" stroke-opacity=".65" stroke-dasharray="2 5"/>
+    <circle cx="100" cy="100" r="64" stroke-opacity=".35"/>
+    <path d="M29 100h27l12-24 16 50 17-69 17 86 16-64 12 21h25" stroke-width="3" stroke-linejoin="round"/>
+  </g>
+  <circle cx="100" cy="16" r="4" fill="#e2be78"/>
+  <circle cx="100" cy="184" r="3" fill="#7bb1ff"/>
 </svg>
diff --git a/data/themes/artwork/endorse_parchment_body.svg b/data/themes/artwork/endorse_parchment_body.svg
new file mode 100644
index 0000000..150ebee
--- /dev/null
+++ b/data/themes/artwork/endorse_parchment_body.svg
@@ -0,0 +1,8 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="520" height="900" viewBox="0 0 520 900">
+  <rect x="1" y="1" width="518" height="898" rx="6" fill="#eee8db" stroke="#c7bead" stroke-width="2"/>
+  <path d="M18 18v30" stroke="#b35136" stroke-width="4"/>
+  <g stroke="#68796f" stroke-opacity=".22">
+    <path d="M480 12v40M470 24h24M476 17h12M476 31h12M476 38h12M476 45h12"/>
+  </g>
+</svg>
diff --git a/data/themes/artwork/endorse_parchment_motion.svg b/data/themes/artwork/endorse_parchment_motion.svg
index c69ee18..8711c73 100644
--- a/data/themes/artwork/endorse_parchment_motion.svg
+++ b/data/themes/artwork/endorse_parchment_motion.svg
@@ -1,5 +1,10 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="166" height="28" viewBox="0 0 166 28">
-  <g fill="none" stroke="#9a503c" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
-    <path d="M40 14h18l6-4 6 4 13-8 13 8 6-4 6 4h18M83 6l10 8-10 8-10-8z"/>
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
+  <g fill="none" stroke="#778a76">
+    <circle cx="100" cy="100" r="75" stroke-dasharray="1 6"/>
+    <circle cx="100" cy="100" r="61" stroke-opacity=".4"/>
+    <path d="M100 10v180M10 100h180" stroke-opacity=".3"/>
+    <path d="M50 166L100 26l50 140M68 116h64" stroke-width="1.5"/>
+    <circle cx="100" cy="26" r="5"/>
   </g>
 </svg>
diff --git a/data/themes/artwork/endorse_post_it_body.svg b/data/themes/artwork/endorse_post_it_body.svg
new file mode 100644
index 0000000..108fae7
--- /dev/null
+++ b/data/themes/artwork/endorse_post_it_body.svg
@@ -0,0 +1,3 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120">
+  <rect x=".5" y=".5" width="119" height="119" fill="#fff1a1" stroke="#a87829"/>
+</svg>
diff --git a/data/themes/artwork/endorse_voltage_body.svg b/data/themes/artwork/endorse_voltage_body.svg
new file mode 100644
index 0000000..8ddb7c1
--- /dev/null
+++ b/data/themes/artwork/endorse_voltage_body.svg
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="520" height="900" viewBox="0 0 520 900">
+  <defs>
+    <linearGradient id="metal" x2="1" y2="1">
+      <stop stop-color="#30433f"/>
+      <stop offset=".5" stop-color="#152526"/>
+      <stop offset="1" stop-color="#1d2c28"/>
+    </linearGradient>
+    <pattern id="stripe" width="18" height="12" patternUnits="userSpaceOnUse" patternTransform="skewX(-35)">
+      <rect width="9" height="12" fill="#d0a556"/>
+      <rect x="9" width="9" height="12" fill="#252d25"/>
+    </pattern>
+  </defs>
+  <rect x="1" y="1" width="518" height="898" rx="12" fill="url(#metal)" stroke="#75806a" stroke-width="2"/>
+  <circle cx="9" cy="10" r="4" fill="#89917a"/>
+  <path d="M7 11l4-2" stroke="#28352d" stroke-width="1.5"/>
+  <circle cx="9" cy="890" r="4" fill="#89917a"/>
+  <path d="M7 891l4-2" stroke="#28352d" stroke-width="1.5"/>
+  <circle cx="511" cy="10" r="4" fill="#89917a"/>
+  <path d="M509 11l4-2" stroke="#28352d" stroke-width="1.5"/>
+  <circle cx="511" cy="890" r="4" fill="#89917a"/>
+  <path d="M509 891l4-2" stroke="#28352d" stroke-width="1.5"/>
+  <path d="M365 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M372 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M379 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M386 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M393 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M400 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M407 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M414 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M421 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M428 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M435 14v9" stroke="#0d1715" stroke-width="3"/>
+  <path d="M442 14v9" stroke="#0d1715" stroke-width="3"/>
+</svg>
diff --git a/data/themes/artwork/endorse_voltage_motion.svg b/data/themes/artwork/endorse_voltage_motion.svg
index 1b80d21..15cc7c1 100644
--- a/data/themes/artwork/endorse_voltage_motion.svg
+++ b/data/themes/artwork/endorse_voltage_motion.svg
@@ -1,5 +1,9 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="166" height="28" viewBox="0 0 166 28">
-  <g fill="none" stroke="#6de7cb" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round">
-    <path d="M34 21h22l14-9h13l13-8h36M42 25h24l12-9h23l9-8h11"/><circle cx="34" cy="21" r="2"/><circle cx="132" cy="4" r="2"/>
+<?xml version="1.0"?>
+<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
+  <g fill="none" stroke="#ffa154" stroke-width="2">
+    <circle cx="100" cy="100" r="74" stroke-dasharray="90 25"/>
+    <circle cx="100" cy="100" r="52" stroke-dasharray="2 13"/>
+    <path d="M100 20v30M100 150v30M20 100h30M150 100h30"/>
   </g>
+  <circle cx="100" cy="100" r="29" fill="#ffa154" fill-opacity=".15" stroke="#ffc67b"/>
 </svg>
diff --git a/data/themes/artwork/endorse_window_shadow.png b/data/themes/artwork/endorse_window_shadow.png
index 6c2e5f1..c666bb0 100644
Binary files a/data/themes/artwork/endorse_window_shadow.png and b/data/themes/artwork/endorse_window_shadow.png differ
diff --git a/data/themes/endorse_theme.edc b/data/themes/endorse_theme.edc
index bcb4f6b..551972f 100644
--- a/data/themes/endorse_theme.edc
+++ b/data/themes/endorse_theme.edc
@@ -1,72 +1,61 @@
 images {
+   image: "endorse_post_it_body.svg" COMP;
+   image: "endorse_post_it_header.svg" COMP;
+   image: "endorse_post_it_footer.svg" COMP;
+   image: "endorse_post_it_motion.svg" COMP;
+   image: "endorse_midnight_body.svg" COMP;
+   image: "endorse_voltage_body.svg" COMP;
+   image: "endorse_blue_hour_body.svg" COMP;
+   image: "endorse_parchment_body.svg" COMP;
    image: "endorse_window_shadow.png" COMP;
    image: "endorse_button_paper.svg" COMP;
    image: "endorse_menu.svg" COMP;
    image: "endorse_shuffle.svg" COMP;
    image: "endorse_favourite.svg" COMP;
    image: "endorse_favourite_empty.svg" COMP;
-   image: "endorse_post_it_header.svg" COMP;
-   image: "endorse_post_it_footer.svg" COMP;
-   image: "endorse_parchment_header.svg" COMP;
-   image: "endorse_parchment_footer.svg" COMP;
-   image: "endorse_blue_hour_header.svg" COMP;
-   image: "endorse_blue_hour_footer.svg" COMP;
    image: "endorse_blue_hour_motion.svg" COMP;
-   image: "endorse_console_footer.svg" COMP;
-   image: "endorse_eclair_classic_header.svg" COMP;
-   image: "endorse_eclair_classic_motion.svg" COMP;
-   image: "endorse_folio_header.svg" COMP;
-   image: "endorse_folio_motion.svg" COMP;
-   image: "endorse_frequency_header.svg" COMP;
-   image: "endorse_frequency_motion.svg" COMP;
-   image: "endorse_gant_header.svg" COMP;
-   image: "endorse_gant_motion.svg" COMP;
-   image: "endorse_midnight_header.svg" COMP;
    image: "endorse_midnight_motion.svg" COMP;
-   image: "endorse_nocturne_header.svg" COMP;
-   image: "endorse_nocturne_motion.svg" COMP;
    image: "endorse_parchment_motion.svg" COMP;
-   image: "endorse_post_it_motion.svg" COMP;
-   image: "endorse_undertow_header.svg" COMP;
-   image: "endorse_undertow_motion.svg" COMP;
-   image: "endorse_voltage_header.svg" COMP;
    image: "endorse_voltage_motion.svg" COMP;
 }
 
-#define ENDORSE_WINDOW(NAME, PAPER, EDGE, HEADER, FOOTER, MOTIF, START, LOW, END, HIGH, RISE, FALL, EASING) \
+#define ENDORSE_WINDOW(NAME, BODY, DECORATED, MOTIF, START, LOW, END, HIGH, RISE, FALL, EASING) \
    group { name: NAME; \
       parts { \
          part { name: "endorse.shadow"; type: IMAGE; mouse_events: 0; scale: 1; \
             description { state: "default" 0.0; \
                image.normal: "endorse_window_shadow.png"; \
-               image.border: 24 24 24 24; image.border_scale: 1; \
+               image.border: 96 96 96 96; image.border_scale: 1; image.border_scale_by: 0.5; \
             } \
             description { state: "maximized" 0.0; inherit: "default" 0.0; visible: 0; } \
          } \
          part { name: "endorse.body"; type: RECT; mouse_events: 0; scale: 1; \
-            description { state: "default" 0.0; color: EDGE 255; \
-               rel1.offset: 5 3; rel2.offset: -6 -9; offset_scale: 1; \
+            description { state: "default" 0.0; color: 0 0 0 0; \
+               rel1.offset: 8 5; rel2.offset: -9 -13; offset_scale: 1; \
             } \
             description { state: "maximized" 0.0; inherit: "default" 0.0; \
-               rel1.offset: 0 0; rel2.offset: -1 -1; \
+               rel1.offset: 0 0; rel2.offset: -1 -1; color: 255 255 255 255; color_class: "endorse.window.surface"; \
             } \
          } \
-         part { name: "endorse.paper"; type: RECT; mouse_events: 0; \
-            description { state: "default" 0.0; color: PAPER 255; \
-               rel.to: "endorse.body"; rel1.offset: 1 1; rel2.offset: -2 -2; \
+         part { name: "endorse.paper"; type: IMAGE; mouse_events: 0; scale: 1; \
+            description { state: "default" 0.0; \
+               image.normal: BODY; image.border: 24 24 56 24; \
+               rel.to: "endorse.body"; \
             } \
          } \
          part { name: "endorse.adhesive"; type: IMAGE; mouse_events: 0; scale: 1; \
             description { state: "default" 0.0; \
-               image.normal: HEADER; \
+               image.normal: "endorse_post_it_header.svg"; visible: DECORATED; \
                rel1.to: "endorse.paper"; rel1.offset: 0 0; \
                rel2.to_x: "endorse.paper"; rel2.to_y: "endorse.header"; rel2.offset: -1 8; \
                offset_scale: 1; \
             } \
          } \
          part { name: "endorse.footer_art"; type: IMAGE; mouse_events: 0; scale: 1; \
-            description { state: "default" 0.0; image.normal: FOOTER; \
-               rel.to: "endorse.paper"; rel1.relative: 0.0 1.0; rel1.offset: 0 -30; \
+            description { state: "default" 0.0; image.normal: "endorse_post_it_footer.svg"; visible: DECORATED; \
+               rel.to: "endorse.paper"; rel1.relative: 0.0 1.0; \
+               rel1.offset: 0 (-30 - 8 * (1 - DECORATED)); \
+               rel2.offset: -1 (-1 - 8 * (1 - DECORATED)); \
                offset_scale: 1; \
             } \
          } \
@@ -179,38 +168,20 @@ collections {
       }
    }
 
-   ENDORSE_WINDOW("endorse/post-it", 255 241 161, 168 120 41,
-                  "endorse_post_it_header.svg", "endorse_post_it_footer.svg",
+   ENDORSE_WINDOW("endorse/post-it", "endorse_post_it_body.svg",
+                  1,
                   "endorse_post_it_motion.svg", .50, 4, .50, -4, .22, .31, DECELERATE)
-   ENDORSE_WINDOW("endorse/parchment", 242 229 209, 125 78 65,
-                  "endorse_parchment_header.svg", "endorse_parchment_footer.svg",
+   ENDORSE_WINDOW("endorse/parchment", "endorse_parchment_body.svg",
+                  0,
                   "endorse_parchment_motion.svg", .50, 0, .50, -2, .34, .45, SINUSOIDAL)
-   ENDORSE_WINDOW("endorse/blue-hour", 26 40 64, 83 109 156,
-                  "endorse_blue_hour_header.svg", "endorse_blue_hour_footer.svg",
+   ENDORSE_WINDOW("endorse/blue-hour", "endorse_blue_hour_body.svg",
+                  0,
                   "endorse_blue_hour_motion.svg", .40, 3, .60, -4, .33, .49, SINUSOIDAL)
-   ENDORSE_WINDOW("endorse/eclair-classic", 238 217 174, 131 92 55,
-                  "endorse_eclair_classic_header.svg", "endorse_console_footer.svg",
-                  "endorse_eclair_classic_motion.svg", .46, 0, .56, 0, .31, .37, SINUSOIDAL)
-   ENDORSE_WINDOW("endorse/gant", 219 231 243, 94 130 167,
-                  "endorse_gant_header.svg", "endorse_console_footer.svg",
-                  "endorse_gant_motion.svg", .35, 0, .65, 0, .24, .32, DECELERATE)
-   ENDORSE_WINDOW("endorse/nocturne", 27 32 46, 85 119 113,
-                  "endorse_nocturne_header.svg", "endorse_console_footer.svg",
-                  "endorse_nocturne_motion.svg", .50, 3, .50, -5, .15, .41, SINUSOIDAL)
-   ENDORSE_WINDOW("endorse/folio", 231 210 178, 144 103 73,
-                  "endorse_folio_header.svg", "endorse_console_footer.svg",
-                  "endorse_folio_motion.svg", .49, 0, .52, -2, .37, .48, DECELERATE)
-   ENDORSE_WINDOW("endorse/frequency", 43 36 31, 146 99 61,
-                  "endorse_frequency_header.svg", "endorse_console_footer.svg",
-                  "endorse_frequency_motion.svg", .37, 0, .60, 0, .27, .26, LINEAR)
-   ENDORSE_WINDOW("endorse/voltage", 24 37 43, 73 148 136,
-                  "endorse_voltage_header.svg", "endorse_console_footer.svg",
+   ENDORSE_WINDOW("endorse/voltage", "endorse_voltage_body.svg",
+                  0,
                   "endorse_voltage_motion.svg", .34, 4, .66, -3, .14, .21, ACCELERATE)
-   ENDORSE_WINDOW("endorse/undertow", 22 49 54, 70 130 124,
-                  "endorse_undertow_header.svg", "endorse_console_footer.svg",
-                  "endorse_undertow_motion.svg", .48, 3, .54, -4, .42, .55, SINUSOIDAL)
-   ENDORSE_WINDOW("endorse/midnight", 19 26 42, 48 65 91,
-                  "endorse_midnight_header.svg", "endorse_console_footer.svg",
+   ENDORSE_WINDOW("endorse/midnight", "endorse_midnight_body.svg",
+                  0,
                   "endorse_midnight_motion.svg", .50, 2, .50, -2, .25, .40, SINUSOIDAL)
 
    group { name: "elm/button/base/endorse/action";
diff --git a/data/themes/meson.build b/data/themes/meson.build
index 01ed0d9..357c129 100644
--- a/data/themes/meson.build
+++ b/data/themes/meson.build
@@ -1,11 +1,13 @@
 endorse_edje_cc = find_program('edje_cc')
 endorse_theme_artwork = files(
+  'artwork/endorse_post_it_body.svg',
   'artwork/endorse_post_it_header.svg',
-  'artwork/endorse_parchment_header.svg',
-  'artwork/endorse_blue_hour_header.svg',
   'artwork/endorse_post_it_footer.svg',
-  'artwork/endorse_parchment_footer.svg',
-  'artwork/endorse_blue_hour_footer.svg',
+  'artwork/endorse_post_it_motion.svg',
+  'artwork/endorse_parchment_body.svg',
+  'artwork/endorse_blue_hour_body.svg',
+  'artwork/endorse_voltage_body.svg',
+  'artwork/endorse_midnight_body.svg',
   'artwork/endorse_window_shadow.png',
   'artwork/endorse_button_paper.svg',
   'artwork/endorse_menu.svg',
@@ -13,24 +15,8 @@ endorse_theme_artwork = files(
   'artwork/endorse_favourite.svg',
   'artwork/endorse_favourite_empty.svg',
   'artwork/endorse_blue_hour_motion.svg',
-  'artwork/endorse_console_footer.svg',
-  'artwork/endorse_eclair_classic_header.svg',
-  'artwork/endorse_eclair_classic_motion.svg',
-  'artwork/endorse_folio_header.svg',
-  'artwork/endorse_folio_motion.svg',
-  'artwork/endorse_frequency_header.svg',
-  'artwork/endorse_frequency_motion.svg',
-  'artwork/endorse_gant_header.svg',
-  'artwork/endorse_gant_motion.svg',
-  'artwork/endorse_midnight_header.svg',
   'artwork/endorse_midnight_motion.svg',
-  'artwork/endorse_nocturne_header.svg',
-  'artwork/endorse_nocturne_motion.svg',
   'artwork/endorse_parchment_motion.svg',
-  'artwork/endorse_post_it_motion.svg',
-  'artwork/endorse_undertow_header.svg',
-  'artwork/endorse_undertow_motion.svg',
-  'artwork/endorse_voltage_header.svg',
   'artwork/endorse_voltage_motion.svg',
 )
 endorse_theme = custom_target('endorse-theme', input: 'endorse_theme.edc',
@@ -38,3 +24,6 @@ endorse_theme = custom_target('endorse-theme', input: 'endorse_theme.edc',
   command: [endorse_edje_cc, '-id', meson.current_source_dir() / 'artwork', '@INPUT@', '@OUTPUT@'],
   depend_files: endorse_theme_artwork, build_by_default: true, install: true,
   install_dir: get_option('datadir') / 'endorse/themes')
+
+install_data('AUTHORS.artwork', 'COPYING.equation', 'COPYING.scribble',
+  install_dir: get_option('datadir') / 'endorse/themes')
diff --git a/meson.build b/meson.build
index 4194d0f..185a595 100644
--- a/meson.build
+++ b/meson.build
@@ -1,4 +1,4 @@
-project('endorse', 'c', version: '0.1.0', license: 'GPL-2.0-only', meson_version: '>=0.61',
+project('endorse', 'c', version: '0.1.1', license: 'GPL-2.0-only', meson_version: '>=0.61',
         default_options: ['c_std=gnu99', 'warning_level=2'])
 
 endorse_deps = [dependency('elementary'), dependency('eet'),
diff --git a/src/lib/endorse.h b/src/lib/endorse.h
index 8360901..11a6d39 100644
--- a/src/lib/endorse.h
+++ b/src/lib/endorse.h
@@ -68,6 +68,7 @@ void endorse_note_free(Endorse_Note *note);
 Eina_Bool endorse_ui_add(Endorse *app);
 void endorse_ui_shutdown(Endorse *app);
 const char *endorse_theme_name_get(Endorse_Theme theme);
+Evas_Object *endorse_theme_swatch_add(Evas_Object *parent, Endorse_Theme theme);
 Eina_Bool endorse_theme_set(Endorse *app, Endorse_Theme theme);
 Eina_Bool endorse_theme_config_changed(void *data, int type, void *event);
 void endorse_theme_animate(Evas_Object *frame);
diff --git a/src/lib/endorse_theme.c b/src/lib/endorse_theme.c
index dbdc7c2..c87bdcc 100644
--- a/src/lib/endorse_theme.c
+++ b/src/lib/endorse_theme.c
@@ -25,50 +25,26 @@ typedef struct
 } Endorse_Theme_Info;
 
 static const Endorse_Theme_Info _endorse_themes[ENDORSE_THEME_COUNT] = {
-   [ENDORSE_THEME_DEFAULT] = { N_("Default"), "endorse/default", NULL, { 0 } },
+   [ENDORSE_THEME_DEFAULT] = { N_("Default Elementary"), "endorse/default", NULL, { 0 } },
    [ENDORSE_THEME_POST_IT] = {
       N_("Post-it"), "endorse/post-it", "Sans",
       { 0x423017, 0x735725, 0xfff8ce, 0xffecaa, 0xfff3c0, 0xffdf79, 0xf4bf40, 0x3d2b11, 0x9b7229 }
    },
    [ENDORSE_THEME_PARCHMENT] = {
-      N_("Parchment"), "endorse/parchment", "Serif",
-      { 0x402a26, 0x76564c, 0xfff5e5, 0xf1e0c8, 0xfaeedc, 0xe4c5a5, 0x8c473a, 0xfff5e5, 0x966a54 }
+      N_("Atelier"), "endorse/parchment", "Serif",
+      { 0x2b3939, 0x67756f, 0xeee8db, 0xf7f2e7, 0xe2e2cf, 0xdbd2bb, 0xb35136, 0xeee8db, 0xc7bead }
    },
    [ENDORSE_THEME_BLUE_HOUR] = {
-      N_("Blue Hour"), "endorse/blue-hour", "Monospace",
-      { 0xe6f0ff, 0xa5bde1, 0x19263d, 0x223552, 0x2a4160, 0x314a70, 0x90bbfb, 0x13243d, 0x7898c5 }
-   },
-   [ENDORSE_THEME_ECLAIR_CLASSIC] = {
-      N_("Eclair Classic"), "endorse/eclair-classic", "Serif",
-      { 0x422f21, 0x6c513b, 0xfff1cd, 0xead4a7, 0xf5e3bb, 0xd9b681, 0xc28b51, 0x392519, 0x8a613b }
-   },
-   [ENDORSE_THEME_GANT] = {
-      N_("Gant"), "endorse/gant", "Sans",
-      { 0x223b54, 0x47617e, 0xf3f8ff, 0xdce8f3, 0xe9f2fc, 0xc4d8eb, 0x8bbceb, 0x112e4a, 0x6184aa }
-   },
-   [ENDORSE_THEME_NOCTURNE] = {
-      N_("Nocturne"), "endorse/nocturne", "Sans",
-      { 0xe9f3ec, 0xa9c1b8, 0x1b202b, 0x242d38, 0x2b3842, 0x384652, 0x92d9bd, 0x142f28, 0x648c85 }
-   },
-   [ENDORSE_THEME_FOLIO] = {
-      N_("Folio"), "endorse/folio", "Serif",
-      { 0x47301f, 0x78573f, 0xfcf1de, 0xebd6b6, 0xf1dfc3, 0xe0b887, 0x975f39, 0xfff6e8, 0x916749 }
-   },
-   [ENDORSE_THEME_FREQUENCY] = {
-      N_("Frequency"), "endorse/frequency", "Monospace",
-      { 0xffedcd, 0xcdb697, 0x28221e, 0x352b23, 0x413328, 0x534032, 0xf0ad62, 0x321e0e, 0xa87548 }
+      N_("Observatory"), "endorse/blue-hour", "Monospace",
+      { 0xe1ecf5, 0x879cb3, 0x101927, 0x19283c, 0x0b131f, 0x223a4b, 0x72dbd0, 0x101927, 0x32465e }
    },
    [ENDORSE_THEME_VOLTAGE] = {
-      N_("Voltage"), "endorse/voltage", "Monospace",
-      { 0xdcfff5, 0x99c9bb, 0x162027, 0x1d2d34, 0x243943, 0x344b50, 0xe5ef76, 0x20270c, 0x55a397 }
-   },
-   [ENDORSE_THEME_UNDERTOW] = {
-      N_("Undertow"), "endorse/undertow", "Sans",
-      { 0xdcf9ec, 0x9acabc, 0x142c32, 0x1b393e, 0x22454a, 0x2b5155, 0x82cdb7, 0x15362e, 0x518e88 }
+      N_("Crazy Lab"), "endorse/voltage", "Monospace",
+      { 0xe8d8ae, 0xa7b49c, 0x152526, 0x203334, 0x101713, 0x424d3a, 0xffa252, 0x152526, 0x5c6251 }
    },
    [ENDORSE_THEME_MIDNIGHT] = {
       N_("Midnight"), "endorse/midnight", "Sans",
-      { 0xe0e9f8, 0x8e96a5, 0x131a2a, 0x1c263a, 0x131a2a, 0x1c263a, 0x7bb1ff, 0x131a2a, 0x30415b }
+      { 0xe0e9f8, 0x8e96a5, 0x131a2a, 0x1c263a, 0x101624, 0x2b3e5c, 0x7bb1ff, 0x131a2a, 0x30415b }
    }
 };
 
@@ -78,6 +54,7 @@ static const struct
    Endorse_Color color;
 } _endorse_widget_colors[] = {
    { "/bg/normal/button", ENDORSE_BUTTON },
+   { "endorse.window.surface", ENDORSE_PAPER },
    { "endorse.chrome.hover", ENDORSE_BUTTON },
    { "endorse.action.fill", ENDORSE_ACCENT },
    { "endorse.action.text", ENDORSE_ACCENT_INK },
@@ -132,7 +109,17 @@ static const struct
 static Endorse_Theme
 _endorse_theme_valid(Endorse_Theme theme)
 {
-   return (unsigned int)theme < ENDORSE_THEME_COUNT ? theme : ENDORSE_THEME_DEFAULT;
+   switch (theme)
+     {
+      case ENDORSE_THEME_POST_IT:
+      case ENDORSE_THEME_BLUE_HOUR:
+      case ENDORSE_THEME_MIDNIGHT:
+      case ENDORSE_THEME_PARCHMENT:
+      case ENDORSE_THEME_VOLTAGE:
+        return theme;
+      default:
+        return ENDORSE_THEME_DEFAULT;
+     }
 }
 
 static const char *
@@ -158,6 +145,24 @@ endorse_theme_name_get(Endorse_Theme theme)
    return _(_endorse_themes[_endorse_theme_valid(theme)].name);
 }
 
+Evas_Object *
+endorse_theme_swatch_add(Evas_Object *parent, Endorse_Theme theme)
+{
+   unsigned int rgb = 0x717b86;
+   Evas_Object *swatch = evas_object_rectangle_add(evas_object_evas_get(parent));
+   int size = ELM_SCALE_SIZE(10);
+
+   theme = _endorse_theme_valid(theme);
+   if (theme != ENDORSE_THEME_DEFAULT)
+     rgb = _endorse_themes[theme].colors[theme == ENDORSE_THEME_PARCHMENT ?
+                                         ENDORSE_SIDEBAR_ALT : ENDORSE_ACCENT];
+   evas_object_color_set(swatch, rgb >> 16, (rgb >> 8) & 255, rgb & 255, 255);
+   evas_object_size_hint_min_set(swatch, size, size);
+   evas_object_size_hint_max_set(swatch, size, size);
+   evas_object_show(swatch);
+   return swatch;
+}
+
 void
 endorse_theme_label_set(Endorse *app, Evas_Object *label, const char *text, int size)
 {
@@ -312,7 +317,7 @@ endorse_theme_window_state_set(Evas_Object *window, Evas_Object *frame, Eina_Boo
       elm_win_borderless_set(window, borderless);
    if (has_shadow)
       {
-         elm_layout_signal_emit(frame, elm_win_maximized_get(window) ?
+         elm_layout_signal_emit(frame, (elm_win_maximized_get(window) || elm_win_fullscreen_get(window)) ?
                                 "endorse,maximized" : "endorse,restored", "endorse");
          edje_object_message_signal_process(edje);
          _endorse_shadow_update(NULL, canvas, frame, NULL);
diff --git a/src/lib/endorse_ui.c b/src/lib/endorse_ui.c
index 6c004c7..dc59176 100644
--- a/src/lib/endorse_ui.c
+++ b/src/lib/endorse_ui.c
@@ -540,21 +540,78 @@ _endorse_menu_about(void *data, Evas_Object *object EINA_UNUSED, void *event EIN
 }
 
 static void
-_endorse_menu_theme(void *data, Evas_Object *object EINA_UNUSED, void *event)
+_endorse_settings_close(void *data, Evas_Object *object EINA_UNUSED, void *event EINA_UNUSED)
 {
-   Endorse *app;
-   Endorse_Theme theme;
-   int index;
+   evas_object_del(data);
+}
 
-   app = data;
-   index = elm_menu_item_index_get(event);
-   theme = index == 0 ? ENDORSE_THEME_DEFAULT :
-           index <= ENDORSE_THEME_DEFAULT ? index - 1 : index;
+static void
+_endorse_settings_apply(void *data, Evas_Object *button, void *event EINA_UNUSED)
+{
+   Endorse *app = data;
+   Evas_Object *radio = evas_object_data_get(button, "theme");
+   Endorse_Theme theme = elm_radio_value_get(radio);
+   Evas_Object *popup = evas_object_data_get(button, "settings");
 
    if (!endorse_theme_set(app, theme))
-      _endorse_status_set(app, _("Could not load the theme."));
+     _endorse_status_set(app, _("Could not load the theme."));
    else if (!endorse_config_save(app->config))
-      _endorse_status_set(app, _("Could not save preferences."));
+     _endorse_status_set(app, _("Could not save preferences."));
+   evas_object_del(popup);
+}
+
+static void
+_endorse_settings_show(void *data, Evas_Object *object EINA_UNUSED, void *event EINA_UNUSED)
+{
+   static const Endorse_Theme themes[] = {
+      ENDORSE_THEME_DEFAULT, ENDORSE_THEME_BLUE_HOUR, ENDORSE_THEME_MIDNIGHT,
+      ENDORSE_THEME_PARCHMENT, ENDORSE_THEME_VOLTAGE, ENDORSE_THEME_POST_IT
+   };
+   Endorse *app = data;
+   Evas_Object *popup = elm_popup_add(app->win);
+   Evas_Object *box = elm_box_add(popup);
+   Evas_Object *heading = elm_label_add(box);
+   Evas_Object *table = elm_table_add(box);
+   Evas_Object *group = NULL;
+   Evas_Object *cancel = elm_button_add(popup);
+   Evas_Object *apply = elm_button_add(popup);
+
+   elm_object_part_text_set(popup, "title,text", _("Settings"));
+   elm_object_text_set(heading, _("Theme"));
+   elm_box_padding_set(box, 0, ELM_SCALE_SIZE(8));
+   elm_object_content_set(popup, box);
+   elm_box_pack_end(box, heading);
+   evas_object_size_hint_align_set(heading, 0, 0.5);
+   evas_object_show(heading);
+   elm_table_homogeneous_set(table, EINA_TRUE);
+   elm_table_padding_set(table, ELM_SCALE_SIZE(10), ELM_SCALE_SIZE(3));
+   elm_box_pack_end(box, table);
+   evas_object_show(table);
+   for (size_t i = 0; i < EINA_C_ARRAY_LENGTH(themes); i++)
+     {
+        Evas_Object *radio = elm_radio_add(table);
+        elm_object_text_set(radio, endorse_theme_name_get(themes[i]));
+        elm_radio_state_value_set(radio, themes[i]);
+        elm_object_part_content_set(radio, "icon", endorse_theme_swatch_add(radio, themes[i]));
+        if (group) elm_radio_group_add(radio, group);
+        else group = radio;
+        evas_object_size_hint_align_set(radio, 0, 0.5);
+        evas_object_size_hint_weight_set(radio, EVAS_HINT_EXPAND, 0);
+        elm_table_pack(table, radio, i % 2, i / 2, 1, 1);
+        evas_object_show(radio);
+     }
+   elm_radio_value_set(group, app->config->theme);
+   elm_object_text_set(cancel, _("Cancel"));
+   elm_object_text_set(apply, _("Apply"));
+   evas_object_data_set(apply, "theme", group);
+   evas_object_data_set(apply, "settings", popup);
+   evas_object_smart_callback_add(cancel, "clicked", _endorse_settings_close, popup);
+   evas_object_smart_callback_add(apply, "clicked", _endorse_settings_apply, app);
+   evas_object_smart_callback_add(popup, "block,clicked", _endorse_settings_close, popup);
+   elm_object_part_content_set(popup, "button1", cancel);
+   elm_object_part_content_set(popup, "button2", apply);
+   evas_object_show(box);
+   evas_object_show(popup);
 }
 
 static void
@@ -562,8 +619,6 @@ _endorse_menu_clicked(void *data, Evas_Object *button, void *event EINA_UNUSED)
 {
    Endorse *app;
    Evas_Coord x, y, height;
-   Elm_Object_Item *themes;
-   Endorse_Theme theme;
 
    app = data;
 
@@ -571,13 +626,8 @@ _endorse_menu_clicked(void *data, Evas_Object *button, void *event EINA_UNUSED)
       {
          app->menu = elm_menu_add(app->win);
          elm_menu_item_add(app->menu, NULL, "document-new", _("New note"), _endorse_add_clicked, app);
-         themes = elm_menu_item_add(app->menu, NULL, NULL, _("Themes"), NULL, NULL);
-         elm_menu_item_add(app->menu, themes, NULL, endorse_theme_name_get(ENDORSE_THEME_DEFAULT),
-                           _endorse_menu_theme, app);
-         for (theme = ENDORSE_THEME_POST_IT; theme < ENDORSE_THEME_COUNT; ++theme)
-            if (theme != ENDORSE_THEME_DEFAULT)
-               elm_menu_item_add(app->menu, themes, NULL, endorse_theme_name_get(theme),
-                              _endorse_menu_theme, app);
+         elm_menu_item_add(app->menu, NULL, "preferences-system", _("Settings"),
+                           _endorse_settings_show, app);
          elm_menu_item_separator_add(app->menu, NULL);
          elm_menu_item_add(app->menu, NULL, "help-about", _("About Endorse"), _endorse_menu_about, app);
          elm_menu_item_add(app->menu, NULL, "application-exit", _("Quit"), _endorse_close, app);
@@ -655,7 +705,7 @@ _endorse_resize(void *data, Evas *evas EINA_UNUSED, Evas_Object *object EINA_UNU
    app = data;
    mouse = event;
 
-   if (mouse->button == 1)
+   if (mouse->button == 1 && !elm_win_maximized_get(app->win) && !elm_win_fullscreen_get(app->win))
       elm_win_move_resize_start(app->win, ELM_WIN_MOVE_RESIZE_BOTTOM | ELM_WIN_MOVE_RESIZE_RIGHT);
 }
 
@@ -795,6 +845,8 @@ endorse_ui_add(Endorse *app)
       }
    evas_object_smart_callback_add(app->win, "maximized", _endorse_maximized_changed, app);
    evas_object_smart_callback_add(app->win, "unmaximized", _endorse_maximized_changed, app);
+   evas_object_smart_callback_add(app->win, "fullscreen", _endorse_maximized_changed, app);
+   evas_object_smart_callback_add(app->win, "unfullscreen", _endorse_maximized_changed, app);
 
    panes = elm_panes_add(root);
    _endorse_pack(root, panes, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to