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

git pushed a commit to branch main
in repository entrance.

View the commit online.

commit 1b3878c46c5b2a743707e76f3903dde75e06ffaa
Author: Alastair Poole <[email protected]>
AuthorDate: Sat Nov 28 03:02:09 2026 +0000

    theme: animations
---
 README.md                                 |  15 ++--
 data/themes/atelier/meson.build           |   2 +-
 data/themes/atelier/motion.svg            |  10 +++
 data/themes/atelier/theme.edc             |   9 +-
 data/themes/crazy_lab/meson.build         |   2 +-
 data/themes/crazy_lab/motion.svg          |   9 ++
 data/themes/crazy_lab/theme.edc           |   9 +-
 data/themes/fonts/Cantarell-OFL.txt       | 111 +++++++++++++++++++++++
 data/themes/fonts/Cantarell-VF.otf        | Bin 0 -> 167244 bytes
 data/themes/fonts/NotoSerif-Bold.ttf      | Bin 0 -> 747144 bytes
 data/themes/fonts/NotoSerif-OFL.txt       | 109 +++++++++++++++++++++++
 data/themes/fonts/meson.build             |   5 ++
 data/themes/greeter-controls.edc          | 141 +++++++++++++++++++++---------
 data/themes/greeter-motion-parts.edc      |  30 +++++++
 data/themes/greeter-motion-programs.edc   |  50 +++++++++++
 data/themes/greeter-parts.edc             |  13 ++-
 data/themes/meson.build                   |   5 +-
 data/themes/midnight/meson.build          |   2 +-
 data/themes/midnight/motion.svg           |  10 +++
 data/themes/midnight/theme.edc            |   9 +-
 data/themes/observatory/meson.build       |   2 +-
 data/themes/observatory/motion.svg        |  11 +++
 data/themes/observatory/theme.edc         |   9 +-
 src/greeter/entrance_elementary_greeter.c |  33 +++++--
 src/greeter/entrance_form_controls.c      |  64 +++++++++++---
 src/greeter/entrance_form_controls.h      |   4 +-
 src/greeter/entrance_greeter_main.c       |  27 ++++++
 src/greeter/entrance_power_menu.c         |  32 ++++++-
 src/greeter/entrance_power_menu.h         |   1 +
 src/greeter/meson.build                   |   1 +
 30 files changed, 644 insertions(+), 81 deletions(-)

diff --git a/README.md b/README.md
index f4352fb..071d651 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ running the daemon, and users can change the theme and UI scale at login.
 ## Installation
 
 Install Meson 1.1+, Ninja, pkg-config, Python 3, C11 and C++17 compilers,
-Qt 6 Core, and the development packages for libdbus, PAM, and EFL 1.22+.
+Qt 6 Core, and the development packages for libdbus, PAM, Fontconfig, and EFL 1.22+.
 The commands below install dependencies for the full Qt 6 build with systemd
 support.
 
@@ -22,14 +22,14 @@ support.
 **Arch Linux**
 
 ```sh
-sudo pacman -S --needed base-devel meson ninja python qt6-base dbus pam efl systemd
+sudo pacman -S --needed base-devel meson ninja python qt6-base dbus pam efl fontconfig systemd
 ```
 
 **Fedora**
 
 ```sh
 sudo dnf install gcc gcc-c++ meson ninja-build pkgconf-pkg-config python3 \
-  qt6-qtbase-devel dbus-devel pam-devel efl-devel /usr/bin/edje_cc \
+  qt6-qtbase-devel dbus-devel pam-devel efl-devel fontconfig-devel /usr/bin/edje_cc \
   'pkgconfig(systemd)'
 ```
 
@@ -37,7 +37,7 @@ sudo dnf install gcc gcc-c++ meson ninja-build pkgconf-pkg-config python3 \
 
 ```sh
 sudo apt install build-essential meson ninja-build pkg-config python3 \
-  qt6-base-dev libdbus-1-dev libpam0g-dev libefl-all-dev libedje-bin \
+  qt6-base-dev libdbus-1-dev libpam0g-dev libefl-all-dev libedje-bin libfontconfig-dev \
   libecore-evas1-engines-x libecore-evas1-engines-wayland systemd-dev
 ```
 
@@ -75,7 +75,7 @@ greeter’s default scale, with an empty login history.
 
 ### Preview the greeter from source
 
-The greeter-only build needs EFL, a C compiler, and iconv. It can preview themes
+The greeter-only build needs EFL, Fontconfig, a C compiler, and iconv. It can preview themes
 on its own. Signing in requires the Entrance daemon.
 
 ```sh
@@ -112,7 +112,10 @@ For EFL installed in a custom prefix, add its pkg-config directory to
 Open the top-left **Settings** menu on the login screen to choose a theme
 and adjust the UI scale from 75% to 300%. Entrance saves both choices.
 Elementary is the default. The four custom themes use panel and button artwork
-from Scribble.
+from Scribble. Their animated wallpaper instruments use the matching artwork
+and motion from Equation.
+The custom themes bundle Cantarell for the login controls and Noto Serif Bold
+for the welcome heading. The greeter loads them privately through Fontconfig.
 To preview any theme in a window, run `entrance-greeter-efl --test-mode`
 and choose it in the Settings menu.
 
diff --git a/data/themes/atelier/meson.build b/data/themes/atelier/meson.build
index ba87ff6..0066657 100644
--- a/data/themes/atelier/meson.build
+++ b/data/themes/atelier/meson.build
@@ -1,7 +1,7 @@
 theme_install = entrance_data / 'themes/atelier'
 custom_target('atelier-theme', input: 'theme.edc', output: 'theme.edj',
   command: [edje_cc, '-id', theme_image_dir, '-id', meson.current_source_dir(), '@INPUT@', '@OUTPUT@'],
-  depend_files: theme_parts + theme_surfaces + files('artwork.edc', 'panel.svg', 'button.svg', 'button-hover.svg', 'button-pressed.svg'),
+  depend_files: theme_parts + theme_surfaces + files('artwork.edc', 'motion.svg', 'panel.svg', 'button.svg', 'button-hover.svg', 'button-pressed.svg'),
   install: true, install_dir: theme_install, install_mode: 'rw-r--r--'
 )
 install_data('metadata.desktop', install_dir: theme_install)
diff --git a/data/themes/atelier/motion.svg b/data/themes/atelier/motion.svg
new file mode 100644
index 0000000..8711c73
--- /dev/null
+++ b/data/themes/atelier/motion.svg
@@ -0,0 +1,10 @@
+<?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/atelier/theme.edc b/data/themes/atelier/theme.edc
index 87bdb45..a5f2680 100644
--- a/data/themes/atelier/theme.edc
+++ b/data/themes/atelier/theme.edc
@@ -9,7 +9,7 @@
 #define ACCENT_INK_HEX "fff6e9"
 #define MENU_HEX "f1e9db"
 #define THEMED_CONTROLS
-#define UI_FONT "Sans"
+#define UI_FONT "Cantarell"
 #define INK 43 57 57 255
 #define MUTE 79 98 92 255
 #define CONTROL 228 219 202 255
@@ -22,4 +22,11 @@
 #define CONTROL_STENCIL "curve-12.png"
 #define CONTROL_RADIUS 12 12 12 12
 #define CONTROL_GLOW 164 95 58 135
+#define WALL_MOTION
+#define MOTION_LEFT .135
+#define MOTION_RIGHT .385
+#define MOTION_ALPHA 190
+#define MOTION_DURATION 60
+#define MOTION_ANGLE 360
+#define MOTION_LED 119 138 118
 #include "../greeter-parts.edc"
diff --git a/data/themes/crazy_lab/meson.build b/data/themes/crazy_lab/meson.build
index 3d1c4f0..0a7945b 100644
--- a/data/themes/crazy_lab/meson.build
+++ b/data/themes/crazy_lab/meson.build
@@ -1,7 +1,7 @@
 theme_install = entrance_data / 'themes/crazy_lab'
 custom_target('crazy_lab-theme', input: 'theme.edc', output: 'theme.edj',
   command: [edje_cc, '-id', theme_image_dir, '-id', meson.current_source_dir(), '@INPUT@', '@OUTPUT@'],
-  depend_files: theme_parts + theme_surfaces + files('artwork.edc', 'panel.svg', 'button.svg', 'button-hover.svg', 'button-pressed.svg'),
+  depend_files: theme_parts + theme_surfaces + files('artwork.edc', 'motion.svg', 'panel.svg', 'button.svg', 'button-hover.svg', 'button-pressed.svg'),
   install: true, install_dir: theme_install, install_mode: 'rw-r--r--'
 )
 install_data('metadata.desktop', install_dir: theme_install)
diff --git a/data/themes/crazy_lab/motion.svg b/data/themes/crazy_lab/motion.svg
new file mode 100644
index 0000000..15cc7c1
--- /dev/null
+++ b/data/themes/crazy_lab/motion.svg
@@ -0,0 +1,9 @@
+<?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/crazy_lab/theme.edc b/data/themes/crazy_lab/theme.edc
index 0510834..ce0c514 100644
--- a/data/themes/crazy_lab/theme.edc
+++ b/data/themes/crazy_lab/theme.edc
@@ -14,7 +14,7 @@
 #define ACCENT_INK_HEX "101713"
 #define MENU_HEX "203334"
 #define THEMED_CONTROLS
-#define UI_FONT "Sans"
+#define UI_FONT "Cantarell"
 #define ACCENT_HOVER 255 187 126 255
 #define PANEL_ALIGN 0.18 0.5
 #define PANEL_SIZE 550 550
@@ -22,4 +22,11 @@
 #define CONTROL_STENCIL "curve-6.png"
 #define CONTROL_RADIUS 6 6 6 6
 #define CONTROL_GLOW 255 162 82 140
+#define WALL_MOTION
+#define MOTION_LEFT .61
+#define MOTION_RIGHT .86
+#define MOTION_ALPHA 210
+#define MOTION_DURATION 12
+#define MOTION_ANGLE 360
+#define MOTION_LED 255 162 82
 #include "../greeter-parts.edc"
diff --git a/data/themes/fonts/Cantarell-OFL.txt b/data/themes/fonts/Cantarell-OFL.txt
new file mode 100644
index 0000000..d9765dc
--- /dev/null
+++ b/data/themes/fonts/Cantarell-OFL.txt
@@ -0,0 +1,111 @@
+Copyright (c) 2009--2019, The Cantarell Authors
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is copied below, and is also available with a FAQ at:
+http://scripts.sil.org/OFL
+
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
+
+-------------------------------------------------------------------------------
+
+Scripts contain parts of the source code of glyphsLib:
+
+# Copyright 2015 Google Inc. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/data/themes/fonts/Cantarell-VF.otf b/data/themes/fonts/Cantarell-VF.otf
new file mode 100644
index 0000000..d45148a
Binary files /dev/null and b/data/themes/fonts/Cantarell-VF.otf differ
diff --git a/data/themes/fonts/NotoSerif-Bold.ttf b/data/themes/fonts/NotoSerif-Bold.ttf
new file mode 100644
index 0000000..352b807
Binary files /dev/null and b/data/themes/fonts/NotoSerif-Bold.ttf differ
diff --git a/data/themes/fonts/NotoSerif-OFL.txt b/data/themes/fonts/NotoSerif-OFL.txt
new file mode 100644
index 0000000..29e3d11
--- /dev/null
+++ b/data/themes/fonts/NotoSerif-OFL.txt
@@ -0,0 +1,109 @@
+Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic)
+
+This Font Software is licensed under the SIL Open Font License, Version 1.1.
+This license is available with a FAQ at: https://scripts.sil.org/OFL
+
+-----------------------------------------------------------
+SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
+-----------------------------------------------------------
+
+PREAMBLE
+The goals of the Open Font License (OFL) are to stimulate worldwide
+development of collaborative font projects, to support the font creation
+efforts of academic and linguistic communities, and to provide a free and
+open framework in which fonts may be shared and improved in partnership
+with others.
+
+The OFL allows the licensed fonts to be used, studied, modified and
+redistributed freely as long as they are not sold by themselves. The
+fonts, including any derivative works, can be bundled, embedded,
+redistributed and/or sold with any software provided that any reserved
+names are not used by derivative works. The fonts and derivatives,
+however, cannot be released under any other type of license. The
+requirement for fonts to remain under this license does not apply
+to any document created using the fonts or their derivatives.
+
+DEFINITIONS
+"Font Software" refers to the set of files released by the Copyright
+Holder(s) under this license and clearly marked as such. This may
+include source files, build scripts and documentation.
+
+"Reserved Font Name" refers to any names specified as such after the
+copyright statement(s).
+
+"Original Version" refers to the collection of Font Software components as
+distributed by the Copyright Holder(s).
+
+"Modified Version" refers to any derivative made by adding to, deleting,
+or substituting -- in part or in whole -- any of the components of the
+Original Version, by changing formats or by porting the Font Software to a
+new environment.
+
+"Author" refers to any designer, engineer, programmer, technical
+writer or other person who contributed to the Font Software.
+
+PERMISSION & CONDITIONS
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of the Font Software, to use, study, copy, merge, embed, modify,
+redistribute, and sell modified and unmodified copies of the Font
+Software, subject to the following conditions:
+
+1) Neither the Font Software nor any of its individual components,
+in Original or Modified Versions, may be sold by itself.
+
+2) Original or Modified Versions of the Font Software may be bundled,
+redistributed and/or sold with any software, provided that each copy
+contains the above copyright notice and this license. These can be
+included either as stand-alone text files, human-readable headers or
+in the appropriate machine-readable metadata fields within text or
+binary files as long as those fields can be easily viewed by the user.
+
+3) No Modified Version of the Font Software may use the Reserved Font
+Name(s) unless explicit written permission is granted by the corresponding
+Copyright Holder. This restriction only applies to the primary font name as
+presented to the users.
+
+4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
+Software shall not be used to promote, endorse or advertise any
+Modified Version, except to acknowledge the contribution(s) of the
+Copyright Holder(s) and the Author(s) or with their explicit written
+permission.
+
+5) The Font Software, modified or unmodified, in part or in whole,
+must be distributed entirely under this license, and must not be
+distributed under any other license. The requirement for fonts to
+remain under this license does not apply to any document created
+using the Font Software.
+
+TERMINATION
+This license becomes null and void if any of the above conditions are
+not met.
+
+DISCLAIMER
+THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
+OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
+COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
+DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
+OTHER DEALINGS IN THE FONT SOFTWARE.
+
+-------------------------------------------------------------------------------
+
+Scripts contain parts of the source code of glyphsLib:
+
+# Copyright 2015 Google Inc. All Rights Reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
diff --git a/data/themes/fonts/meson.build b/data/themes/fonts/meson.build
new file mode 100644
index 0000000..680ee27
--- /dev/null
+++ b/data/themes/fonts/meson.build
@@ -0,0 +1,5 @@
+foreach font_file : ['Cantarell-VF.otf', 'NotoSerif-Bold.ttf',
+                     'Cantarell-OFL.txt', 'NotoSerif-OFL.txt']
+  configure_file(input: font_file, output: font_file, copy: true,
+    install: true, install_dir: entrance_data / 'themes/fonts')
+endforeach
diff --git a/data/themes/greeter-controls.edc b/data/themes/greeter-controls.edc
index 4e90ccb..5324909 100644
--- a/data/themes/greeter-controls.edc
+++ b/data/themes/greeter-controls.edc
@@ -11,31 +11,32 @@ group { name: "elm/button/base/default";
          description { state: "hover" 0.0; inherit: "default" 0.0; color: CONTROL_GLOW; }
          description { state: "disabled" 0.0; inherit: "default" 0.0; color: 0 0 0 0; }
       }
+      part { name: "focus_ring"; type: IMAGE; mouse_events: 0;
+         description { state: "default" 0.0; color: 255 255 255 0;
+            rel2.offset: -1 -1;
+            CONTROL_IMAGE
+            image.middle: NONE;
+         }
+         description { state: "focused" 0.0; inherit: "default" 0.0;
+            color: ACCENT;
+         }
+      }
       part { name: "face"; type: IMAGE; mouse_events: 0;
          description { state: "default" 0.0;
-            rel2.offset: -1 -3;
+            rel1.offset: 2 2; rel2.offset: -3 -4;
             BUTTON_IMAGE
          }
          description { state: "hover" 0.0; inherit: "default" 0.0;
             image.normal: "button-hover.svg";
          }
          description { state: "pressed" 0.0; inherit: "default" 0.0;
-            rel1.offset: 0 1; rel2.offset: -1 -2;
+            rel1.offset: 2 3; rel2.offset: -3 -3;
             image.normal: "button-pressed.svg";
          }
          description { state: "disabled" 0.0; inherit: "default" 0.0;
             color: 255 255 255 150;
          }
       }
-      part { name: "light"; type: RECT; mouse_events: 0;
-         description { state: "default" 0.0; color: ACCENT; visible: 0;
-            rel1.relative: 0.5 1.0; rel1.offset: 0 -4;
-            rel2.relative: 0.5 1.0; rel2.offset: 0 -4;
-         }
-         description { state: "hover" 0.0; inherit: "default" 0.0; visible: 1;
-            rel1.relative: 0.18 1.0; rel2.relative: 0.82 1.0;
-         }
-      }
       part { name: "elm.swallow.content"; type: SWALLOW;
          description { state: "default" 0.0;
             rel1.offset: 10 4; rel2.offset: -11 -5;
@@ -44,7 +45,7 @@ group { name: "elm/button/base/default";
       part { name: "elm.text"; type: TEXT; mouse_events: 0; scale: 1;
          description { state: "default" 0.0; color: INK;
             rel1.offset: 12 5; rel2.offset: -13 -6;
-            text { font: UI_FONT; size: 11; min: 1 1; ellipsis: -1; }
+            text { font: UI_FONT; size: 13; min: 1 1; ellipsis: -1; }
          }
          description { state: "pressed" 0.0; inherit: "default" 0.0;
             rel1.offset: 12 6; rel2.offset: -13 -5;
@@ -58,11 +59,11 @@ group { name: "elm/button/base/default";
    }
    programs {
       program { name: "hover"; signal: "mouse,in"; source: "hit";
-         action: STATE_SET "hover" 0.0; target: "face"; target: "light"; target: "depth";
+         action: STATE_SET "hover" 0.0; target: "face"; target: "depth";
          transition: DECELERATE 0.13;
       }
       program { name: "idle"; signal: "mouse,out"; source: "hit";
-         action: STATE_SET "default" 0.0; target: "face"; target: "light"; target: "depth"; target: "elm.text";
+         action: STATE_SET "default" 0.0; target: "face"; target: "depth"; target: "elm.text";
          transition: DECELERATE 0.17;
       }
       program { signal: "mouse,down,1"; source: "hit";
@@ -82,13 +83,13 @@ group { name: "elm/button/base/default";
          action: SIGNAL_EMIT "elm,action,click" "elm";
       }
       program { signal: "elm,action,focus_highlight,show"; source: "elm";
-         action: STATE_SET "hover" 0.0; target: "face"; target: "light";
+         action: STATE_SET "focused" 0.0; target: "focus_ring";
       }
-      program { signal: "elm,action,focus_highlight,hide"; source: "elm";
-         action: STATE_SET "default" 0.0; target: "face"; target: "light";
+      program { name: "hide_focus"; signal: "elm,action,focus_highlight,hide"; source: "elm";
+         action: STATE_SET "default" 0.0; target: "focus_ring";
       }
       program { signal: "elm,state,disabled"; source: "elm";
-         action: STATE_SET "disabled" 0.0; target: "face"; target: "elm.text"; target: "hit"; target: "depth";
+         action: STATE_SET "disabled" 0.0; target: "face"; target: "elm.text"; target: "hit"; target: "depth"; after: "hide_focus";
       }
       program { signal: "elm,state,enabled"; source: "elm";
          action: STATE_SET "default" 0.0; target: "face"; target: "elm.text"; target: "hit"; target: "depth";
@@ -105,30 +106,28 @@ group { name: "elm/button/base/entrance-primary";
          description { state: "pressed" 0.0; color: ACCENT_HOVER; CONTROL_IMAGE }
          description { state: "disabled" 0.0; color: EDGE; CONTROL_IMAGE }
       }
-      part { name: "light";
-         description { state: "hover" 0.0; color: ACCENT_INK; }
-      }
       part { name: "elm.text";
-         description { state: "default" 0.0; color: ACCENT_INK; text.size: 13; }
-         description { state: "pressed" 0.0; color: ACCENT_INK; text.size: 13; }
+         description { state: "default" 0.0; color: ACCENT_INK; text.size: 15; }
+         description { state: "pressed" 0.0; color: ACCENT_INK; text.size: 15; }
       }
    }
 }
 group { name: "entrance/field";
    min: 40 38;
    parts {
-      part { name: "rim"; type: RECT; mouse_events: 0;
-         description { state: "default" 0.0; color: EDGE; }
+      part { name: "rim"; type: IMAGE; mouse_events: 0;
+         description { state: "default" 0.0; color: EDGE; CONTROL_IMAGE }
          description { state: "focus" 0.0; inherit: "default" 0.0; color: ACCENT; }
       }
-      part { name: "well"; type: RECT; mouse_events: 0;
+      part { name: "well"; type: IMAGE; mouse_events: 0;
          description { state: "default" 0.0; color: WELL;
-            rel1.offset: 1 1; rel2.offset: -2 -2;
+            rel1.offset: 2 2; rel2.offset: -3 -3;
+            CONTROL_IMAGE
          }
       }
       part { name: "entrance.content"; type: SWALLOW;
          description { state: "default" 0.0;
-            rel1.offset: 7 5; rel2.offset: -8 -6;
+            rel1.offset: 11 5; rel2.offset: -12 -6;
          }
       }
    }
@@ -145,31 +144,64 @@ group { name: "entrance/field";
 }
 group { name: "elm/button/base/hoversel_vertical/entrance-session";
    inherit: "elm/button/base/default";
-   min: 80 32;
+   min: 100 36;
    parts {
+      part { name: "depth";
+         description { state: "default" 0.0; visible: 0; }
+         description { state: "hover" 0.0; visible: 0; }
+      }
+      part { name: "focus_ring";
+         description { state: "default" 0.0; color: EDGE; image.middle: DEFAULT; }
+         description { state: "focused" 0.0; image.middle: DEFAULT; }
+      }
+      part { name: "face";
+         description { state: "default" 0.0; color: WELL;
+            rel1.offset: 2 2; rel2.offset: -3 -3;
+            CONTROL_IMAGE
+         }
+         description { state: "hover" 0.0; color: CONTROL;
+            rel1.offset: 2 2; rel2.offset: -3 -3;
+            CONTROL_IMAGE
+         }
+         description { state: "pressed" 0.0; color: CONTROL;
+            rel1.offset: 2 2; rel2.offset: -3 -3;
+            CONTROL_IMAGE
+         }
+         description { state: "disabled" 0.0; color: WELL;
+            rel1.offset: 2 2; rel2.offset: -3 -3;
+            CONTROL_IMAGE
+         }
+      }
       part { name: "elm.text";
          description { state: "default" 0.0;
-            rel2.offset: -30 -6; text.align: 0.0 0.5;
+            rel2.offset: -36 -6; text.align: 0.0 0.5;
          }
          description { state: "pressed" 0.0;
-            rel2.offset: -30 -5; text.align: 0.0 0.5;
+            rel2.offset: -36 -5; text.align: 0.0 0.5;
          }
          description { state: "disabled" 0.0;
-            rel2.offset: -30 -6; text.align: 0.0 0.5;
+            rel2.offset: -36 -6; text.align: 0.0 0.5;
          }
       }
       part { name: "selector"; type: TEXT; mouse_events: 0; scale: 1;
          description { state: "default" 0.0; color: ACCENT;
-            rel1.relative: 1.0 0.0; rel1.offset: -28 0;
-            rel2.offset: -7 -1;
-            text { text: "â–¾"; font: "Sans"; size: 13; }
+            rel1.relative: 1.0 0.0; rel1.offset: -33 0;
+            rel2.offset: -9 -3;
+            text { text: "⌄"; font: UI_FONT; size: 16; }
          }
       }
    }
 }
 group { name: "elm/button/base/hoversel_vertical_entry/entrance-session";
    inherit: "elm/button/base/default";
+   min: 100 34;
    parts {
+      part { name: "face";
+         description { state: "default" 0.0; color: WELL; CONTROL_IMAGE }
+         description { state: "hover" 0.0; color: CONTROL; CONTROL_IMAGE }
+         description { state: "pressed" 0.0; color: EDGE; CONTROL_IMAGE }
+         description { state: "disabled" 0.0; color: WELL; CONTROL_IMAGE }
+      }
       part { name: "elm.text";
          description { state: "default" 0.0; text.align: 0.0 0.5; }
          description { state: "pressed" 0.0; text.align: 0.0 0.5; }
@@ -222,7 +254,7 @@ group { name: "elm/check/base/default";
          description { state: "default" 0.0; color: CONTROL;
             offset_scale: 1;
             align: 0.0 0.5; min: 32 15; max: 32 15;
-            rel1.offset: 4 0; rel2.relative: 0.0 1.0; rel2.offset: 36 -1;
+            rel1.offset: 11 0; rel2.relative: 0.0 1.0; rel2.offset: 43 -1;
             CONTROL_IMAGE
          }
          description { state: "on" 0.0; inherit: "default" 0.0; color: ACCENT; }
@@ -243,7 +275,7 @@ group { name: "elm/check/base/default";
             offset_scale: 1;
             rel1.to_x: "track"; rel1.relative: 1.0 0.0; rel1.offset: 9 0;
             rel2.offset: -5 -1;
-            text { font: UI_FONT; size: 10; align: 0.0 0.5; min: 1 1; ellipsis: -1; }
+            text { font: UI_FONT; size: 12; align: 0.0 0.5; min: 1 1; ellipsis: -1; }
          }
          description { state: "disabled" 0.0; inherit: "default" 0.0; color: MUTE; }
       }
@@ -300,9 +332,6 @@ group { name: "elm/button/base/entrance-menu";
    inherit: "elm/button/base/default";
    min: 34 34;
    parts {
-      part { name: "face";
-         description { state: "default" 0.0; rel2.offset: -1 -2; }
-      }
       part { name: "elm.swallow.content"; scale: 1;
          description { state: "default" 0.0;
             align: 0.5 0.5; max: 18 18;
@@ -311,3 +340,35 @@ group { name: "elm/button/base/entrance-menu";
       }
    }
 }
+
+group { name: "elm/button/base/entrance-power";
+   inherit: "elm/button/base/entrance-menu";
+   parts {
+      part { name: "depth";
+         description { state: "default" 0.0;
+            rel1.offset: -8 -8; rel2.offset: 7 7;
+            image { normal: "shadow.png"; border: 0 0 0 0; }
+            color: 255 255 255 0;
+         }
+         description { state: "hover" 0.0; inherit: "default" 0.0;
+#ifdef ATELIER_ART
+            color: 250 169 104 220;
+#else
+            color: ACCENT;
+#endif
+         }
+      }
+      part { name: "face";
+         description { state: "default" 0.0; rel2.offset: -3 -3; }
+         description { state: "hover" 0.0;
+            rel2.offset: -3 -3;
+#ifdef ATELIER_ART
+            color: 255 241 218 255;
+            CONTROL_IMAGE
+#endif
+         }
+         description { state: "pressed" 0.0; rel2.offset: -3 -2; }
+         description { state: "disabled" 0.0; rel2.offset: -3 -3; }
+      }
+   }
+}
diff --git a/data/themes/greeter-motion-parts.edc b/data/themes/greeter-motion-parts.edc
new file mode 100644
index 0000000..943b4ae
--- /dev/null
+++ b/data/themes/greeter-motion-parts.edc
@@ -0,0 +1,30 @@
+/* The instrument stays in the outer half of the wallpaper as the window resizes. */
+part { name: "motion-orbit"; type: VECTOR; mouse_events: 0;
+   description { state: "default" 0.0;
+      rel1.relative: MOTION_LEFT 0.16;
+      rel2.relative: MOTION_RIGHT 0.81;
+      aspect: 1.0 1.0; aspect_preference: BOTH;
+      image.normal: "motion.svg";
+      color: 255 255 255 MOTION_ALPHA;
+      map.on: 1;
+#ifdef MIDNIGHT_ART
+      map.rotation.z: -24;
+#endif
+   }
+   description { state: "turn" 0.0; inherit: "default" 0.0;
+      map.rotation.z: MOTION_ANGLE;
+   }
+}
+
+#define MOTION_INDICATOR(NAME, LEFT, RIGHT) \
+part { name: NAME; type: RECT; mouse_events: 0; \
+   description { state: "default" 0.0; color: MOTION_LED 55; \
+      rel1 { to_x: "motion-orbit"; relative: LEFT 0.83; } \
+      rel2 { to_x: "motion-orbit"; relative: RIGHT 0.833; } \
+   } \
+   description { state: "lit" 0.0; inherit: "default" 0.0; color: MOTION_LED 215; } \
+}
+MOTION_INDICATOR("motion-led-left", 0.452, 0.474)
+MOTION_INDICATOR("motion-led-centre", 0.489, 0.511)
+MOTION_INDICATOR("motion-led-right", 0.526, 0.548)
+#undef MOTION_INDICATOR
diff --git a/data/themes/greeter-motion-programs.edc b/data/themes/greeter-motion-programs.edc
new file mode 100644
index 0000000..ed967be
--- /dev/null
+++ b/data/themes/greeter-motion-programs.edc
@@ -0,0 +1,50 @@
+program { signal: "show"; source: "";
+   after: "motion-turn";
+   after: "motion-left-rise";
+   after: "motion-centre-rise";
+   after: "motion-right-rise";
+}
+program { name: "motion-turn";
+   action: STATE_SET "turn" 0.0; target: "motion-orbit";
+#ifdef MIDNIGHT_ART
+   transition: SINUSOIDAL MOTION_DURATION;
+#else
+   transition: LINEAR MOTION_DURATION;
+#endif
+   after: "motion-return";
+}
+program { name: "motion-return";
+   action: STATE_SET "default" 0.0; target: "motion-orbit";
+#ifdef MIDNIGHT_ART
+   transition: SINUSOIDAL MOTION_DURATION;
+#endif
+   after: "motion-turn";
+}
+
+#define MOTION_PULSE(RISE, FALL, LED, DELAY, UP, DOWN) \
+program { name: RISE; in: DELAY 0; \
+   action: STATE_SET "lit" 0.0; target: LED; \
+   transition: SINUSOIDAL UP; after: FALL; \
+} \
+program { name: FALL; \
+   action: STATE_SET "default" 0.0; target: LED; \
+   transition: SINUSOIDAL DOWN; after: RISE; \
+}
+MOTION_PULSE("motion-left-rise", "motion-left-fall", "motion-led-left", 0.0, 1.20, 1.40)
+MOTION_PULSE("motion-centre-rise", "motion-centre-fall", "motion-led-centre", 0.21, 1.33, 1.53)
+MOTION_PULSE("motion-right-rise", "motion-right-fall", "motion-led-right", 0.42, 1.46, 1.66)
+#undef MOTION_PULSE
+
+program { signal: "hide"; source: "";
+   action: ACTION_STOP;
+   target: "motion-turn"; target: "motion-return";
+   target: "motion-left-rise"; target: "motion-left-fall";
+   target: "motion-centre-rise"; target: "motion-centre-fall";
+   target: "motion-right-rise"; target: "motion-right-fall";
+   after: "motion-reset";
+}
+program { name: "motion-reset";
+   action: STATE_SET "default" 0.0;
+   target: "motion-orbit";
+   target: "motion-led-left"; target: "motion-led-centre"; target: "motion-led-right";
+}
diff --git a/data/themes/greeter-parts.edc b/data/themes/greeter-parts.edc
index 161a892..874ee01 100644
--- a/data/themes/greeter-parts.edc
+++ b/data/themes/greeter-parts.edc
@@ -20,6 +20,10 @@ images {
 #define SHADOW_IMAGE image { normal: "shadow.png"; border: 48 48 48 48; }
 #endif
 
+#ifdef WALL_MOTION
+images.vector: "motion.svg";
+#endif
+
 #ifdef E_LOGO
 images.image: "enlightenment.svg" COMP;
 #endif
@@ -31,6 +35,9 @@ collections {
 #ifdef NATIVE_FORM
          item: "native_form" "1";
 #endif
+#ifdef UI_FONT
+         item: "ui_font" UI_FONT;
+#endif
 #ifdef INK_HEX
          item: "ink" INK_HEX;
          item: "muted" MUTED_HEX;
@@ -90,6 +97,9 @@ collections {
 #ifdef CRAZY_LAB_ART
          #include "crazy_lab/artwork.edc"
 #endif
+#ifdef WALL_MOTION
+         #include "greeter-motion-parts.edc"
+#endif
 #ifdef SCRIM
          part { name: "scrim"; type: RECT; mouse_events: 0;
             description { state: "default" 0.0; color: SCRIM; }
@@ -134,8 +144,9 @@ collections {
             }
          }
       }
-#if defined(ATELIER_ART) || defined(MIDNIGHT_ART)
+#ifdef WALL_MOTION
       programs {
+         #include "greeter-motion-programs.edc"
 #ifdef ATELIER_ART
          program { signal: "show"; source: "";
             action: STATE_SET "drawn" 0.0; target: "registration";
diff --git a/data/themes/meson.build b/data/themes/meson.build
index d5dab86..6b42a11 100644
--- a/data/themes/meson.build
+++ b/data/themes/meson.build
@@ -1,4 +1,5 @@
-theme_parts = files('greeter-parts.edc', 'greeter-controls.edc')
+theme_parts = files('greeter-parts.edc', 'greeter-controls.edc',
+  'greeter-motion-parts.edc', 'greeter-motion-programs.edc')
 theme_surfaces = files([
   'surfaces/curve-6.png',
   'surfaces/curve-12.png',
@@ -6,6 +7,8 @@ theme_surfaces = files([
 ])
 theme_image_dir = meson.current_source_dir() / 'surfaces'
 
+subdir('fonts')
+
 foreach name : [ 'atelier', 'crazy_lab', 'elementary', 'midnight', 'observatory' ]
   subdir(name)
 endforeach
diff --git a/data/themes/midnight/meson.build b/data/themes/midnight/meson.build
index 340d5a1..d3cffb1 100644
--- a/data/themes/midnight/meson.build
+++ b/data/themes/midnight/meson.build
@@ -1,7 +1,7 @@
 theme_install = entrance_data / 'themes/midnight'
 custom_target('midnight-theme', input: 'theme.edc', output: 'theme.edj',
   command: [edje_cc, '-id', theme_image_dir, '-id', meson.current_source_dir(), '@INPUT@', '@OUTPUT@'],
-  depend_files: theme_parts + theme_surfaces + files('artwork.edc', 'panel.svg', 'button.svg', 'button-hover.svg', 'button-pressed.svg'),
+  depend_files: theme_parts + theme_surfaces + files('artwork.edc', 'motion.svg', 'panel.svg', 'button.svg', 'button-hover.svg', 'button-pressed.svg'),
   install: true, install_dir: theme_install, install_mode: 'rw-r--r--'
 )
 install_data('metadata.desktop', install_dir: theme_install)
diff --git a/data/themes/midnight/motion.svg b/data/themes/midnight/motion.svg
new file mode 100644
index 0000000..1a85d07
--- /dev/null
+++ b/data/themes/midnight/motion.svg
@@ -0,0 +1,10 @@
+<?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/midnight/theme.edc b/data/themes/midnight/theme.edc
index ffe83ae..4d80b36 100644
--- a/data/themes/midnight/theme.edc
+++ b/data/themes/midnight/theme.edc
@@ -9,7 +9,7 @@
 #define ACCENT_INK_HEX "131a2a"
 #define MENU_HEX "1c263a"
 #define THEMED_CONTROLS
-#define UI_FONT "Sans"
+#define UI_FONT "Cantarell"
 #define INK 224 233 248 255
 #define MUTE 165 181 205 255
 #define CONTROL 48 65 91 255
@@ -22,4 +22,11 @@
 #define CONTROL_STENCIL "curve-6.png"
 #define CONTROL_RADIUS 6 6 6 6
 #define CONTROL_GLOW 123 177 255 140
+#define WALL_MOTION
+#define MOTION_LEFT .615
+#define MOTION_RIGHT .865
+#define MOTION_ALPHA 190
+#define MOTION_DURATION 2.8
+#define MOTION_ANGLE 24
+#define MOTION_LED 226 190 120
 #include "../greeter-parts.edc"
diff --git a/data/themes/observatory/meson.build b/data/themes/observatory/meson.build
index ee302d4..0837525 100644
--- a/data/themes/observatory/meson.build
+++ b/data/themes/observatory/meson.build
@@ -1,7 +1,7 @@
 theme_install = entrance_data / 'themes/observatory'
 custom_target('observatory-theme', input: 'theme.edc', output: 'theme.edj',
   command: [edje_cc, '-id', theme_image_dir, '-id', meson.current_source_dir(), '@INPUT@', '@OUTPUT@'],
-  depend_files: theme_parts + theme_surfaces + files('artwork.edc', 'panel.svg', 'button.svg', 'button-hover.svg', 'button-pressed.svg'),
+  depend_files: theme_parts + theme_surfaces + files('artwork.edc', 'motion.svg', 'panel.svg', 'button.svg', 'button-hover.svg', 'button-pressed.svg'),
   install: true, install_dir: theme_install, install_mode: 'rw-r--r--'
 )
 install_data('metadata.desktop', install_dir: theme_install)
diff --git a/data/themes/observatory/motion.svg b/data/themes/observatory/motion.svg
new file mode 100644
index 0000000..0624f42
--- /dev/null
+++ b/data/themes/observatory/motion.svg
@@ -0,0 +1,11 @@
+<?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/observatory/theme.edc b/data/themes/observatory/theme.edc
index bad2318..a5f7733 100644
--- a/data/themes/observatory/theme.edc
+++ b/data/themes/observatory/theme.edc
@@ -14,7 +14,7 @@
 #define ACCENT_INK_HEX "0b131f"
 #define MENU_HEX "19283c"
 #define THEMED_CONTROLS
-#define UI_FONT "Sans"
+#define UI_FONT "Cantarell"
 #define ACCENT_HOVER 153 234 225 255
 #define PANEL_ALIGN 0.82 0.5
 #define PANEL_SIZE 550 550
@@ -22,4 +22,11 @@
 #define CONTROL_STENCIL "curve-6.png"
 #define CONTROL_RADIUS 6 6 6 6
 #define CONTROL_GLOW 114 219 208 140
+#define WALL_MOTION
+#define MOTION_LEFT .145
+#define MOTION_RIGHT .395
+#define MOTION_ALPHA 240
+#define MOTION_DURATION 36
+#define MOTION_ANGLE 360
+#define MOTION_LED 114 219 208
 #include "../greeter-parts.edc"
diff --git a/src/greeter/entrance_elementary_greeter.c b/src/greeter/entrance_elementary_greeter.c
index dff902b..1db2d0d 100644
--- a/src/greeter/entrance_elementary_greeter.c
+++ b/src/greeter/entrance_elementary_greeter.c
@@ -42,6 +42,7 @@ typedef struct
    Evas_Object *menu_overlay;
    Evas_Object *native_frame;
    Evas_Object *login;
+   Evas_Object *login_spacing;
    Evas_Object *title;
    Evas_Object *status;
    char *status_message;
@@ -331,10 +332,19 @@ _scale_geometry(Greeter *greeter)
 static void
 _update_heights(Greeter *greeter)
 {
-   int height;
+   Evas_Object *picker;
+   int height, padding;
 
    height = entrance_control_height_get();
+   picker = entrance_session_picker_widget(greeter->picker);
+   if (picker)
+      evas_object_size_hint_min_set(picker, -1, height);
    entrance_form_controls_height_set(greeter->controls, height);
+   evas_object_size_hint_min_set(greeter->fields.show_password, -1,
+                                 greeter->widget_theme ? height - 3 : height);
+   elm_box_padding_get(greeter->form, NULL, &padding);
+   /* The box adds its regular padding on both sides of the spacer. */
+   evas_object_size_hint_min_set(greeter->login_spacing, 0, height - 2 * padding);
    evas_object_size_hint_min_set(greeter->login, -1, height);
 }
 
@@ -366,7 +376,7 @@ _load_theme(Greeter *greeter, const char *path)
    const char *file, *suffix;
    char *overlay;
    Evas_Object *theme;
-   const char *ink;
+   const char *ink, *font;
    Entrance_Theme_File theme_file;
    Eina_Bool themed;
 
@@ -425,6 +435,7 @@ _load_theme(Greeter *greeter, const char *path)
    _scale_geometry(greeter);
    elm_win_focus_highlight_enabled_set(greeter->window, themed);
    ink = entrance_theme_color_string_get(theme, "ink");
+   font = edje_object_data_get(theme, "ui_font");
    greeter->muted = entrance_theme_color_string_get(theme, "muted");
    if (greeter->native_frame)
      {
@@ -433,14 +444,17 @@ _load_theme(Greeter *greeter, const char *path)
      }
    else
      {
-        _set_label(greeter->title, "<font_size=28><b>Welcome</b></font_size>", ink);
+        if (font)
+           _set_label(greeter->title, "<font='Noto Serif' font_size=32><b>Welcome</b></font>", ink);
+        else
+           _set_label(greeter->title, "<font_size=28><b>Welcome</b></font_size>", ink);
         if (!evas_object_visible_get(greeter->title))
           {
              elm_box_pack_start(greeter->form, greeter->title);
              evas_object_show(greeter->title);
           }
      }
-   entrance_login_fields_style_set(&greeter->fields, themed, ink);
+   entrance_login_fields_style_set(&greeter->fields, themed, ink, font);
    _render_status(greeter);
    entrance_compiled_theme_free(greeter->compiled);
    greeter->compiled = compiled;
@@ -547,7 +561,12 @@ _build_form(Greeter *greeter, const char *socket)
    greeter->picker = entrance_session_picker_add(form, window, _populate_picker, greeter);
    picker = entrance_session_picker_widget(greeter->picker);
    if (picker)
-      entrance_form_control_pack(&greeter->controls, form, picker);
+      entrance_form_pack(form, picker);
+
+   greeter->login_spacing = evas_object_rectangle_add(evas_object_evas_get(form));
+   evas_object_color_set(greeter->login_spacing, 0, 0, 0, 0);
+   evas_object_pass_events_set(greeter->login_spacing, EINA_TRUE);
+   entrance_form_pack(form, greeter->login_spacing);
 
    greeter->login = elm_button_add(form);
    elm_object_text_set(greeter->login, "Sign in");
@@ -567,7 +586,9 @@ _build_form(Greeter *greeter, const char *socket)
    greeter->appearance = entrance_appearance_add(
        window, greeter->menu_overlay, ENTRANCE_GREETER_SCALE_MIN, ENTRANCE_GREETER_SCALE_MAX,
        _scale_changed, _theme_selected, greeter);
-   greeter->power_menu = entrance_power_menu_add(window, actions, _power_selected, greeter);
+   greeter->power_menu = entrance_power_menu_add(
+       window, actions, entrance_form_controls_first_row_get(greeter->controls),
+       _power_selected, greeter);
 
    if (!greeter->preview)
       greeter->connection = greeter_connect(socket, _daemon_event, greeter);
diff --git a/src/greeter/entrance_form_controls.c b/src/greeter/entrance_form_controls.c
index beda732..0c80baa 100644
--- a/src/greeter/entrance_form_controls.c
+++ b/src/greeter/entrance_form_controls.c
@@ -2,7 +2,6 @@
 
 #include "entrance_form_controls.h"
 
-#include <stdio.h>
 #include <stdlib.h>
 
 static const char field_group[] = "entrance/field";
@@ -65,6 +64,12 @@ entrance_form_control_pack(Eina_Inlist **controls, Evas_Object *form, Evas_Objec
    evas_object_smart_callback_add(widget, "unfocused", _control_focus, control);
 }
 
+Evas_Object *
+entrance_form_controls_first_row_get(Eina_Inlist *controls)
+{
+   return controls ? EINA_INLIST_CONTAINER_GET(controls, Form_Control)->row : NULL;
+}
+
 Eina_Bool
 entrance_form_controls_theme_supported(const char *file)
 {
@@ -191,7 +196,7 @@ entrance_login_fields_add(Entrance_Login_Fields *fields, Evas_Object *form, Eina
    elm_object_text_set(fields->show_password, "Show password");
    evas_object_smart_callback_add(fields->show_password, "changed", _password_visibility_changed,
                                   fields->password);
-   entrance_form_control_pack(controls, form, fields->show_password);
+   entrance_form_pack(form, fields->show_password);
 }
 
 void
@@ -208,28 +213,59 @@ entrance_login_fields_user_set(Entrance_Login_Fields *fields, const char *userna
 }
 
 static void
-_style_label(Evas_Object *label, const char *text, Eina_Bool themed, const char *color)
+_style_label(Evas_Object *label, const char *text, Eina_Bool themed, const char *color,
+             const char *font)
 {
-   const char *start, *end;
-   char markup[96];
+   Eina_Strbuf *markup;
+
+   markup = eina_strbuf_new();
+   if (!markup)
+      return;
 
-   start = themed ? "<b>" : "";
-   end = themed ? "</b>" : "";
    if (color && *color)
-      snprintf(markup, sizeof(markup), "<color=#%s>%s%s%s</color>", color, start, text, end);
-   else
-      snprintf(markup, sizeof(markup), "%s%s%s", start, text, end);
-   elm_object_text_set(label, markup);
+      eina_strbuf_append_printf(markup, "<color=#%s>", color);
+   if (font)
+      eina_strbuf_append_printf(markup, "<font='%s' font_size=13>", font);
+   if (themed)
+      eina_strbuf_append(markup, "<b>");
+   eina_strbuf_append(markup, text);
+   if (themed)
+      eina_strbuf_append(markup, "</b>");
+   if (font)
+      eina_strbuf_append(markup, "</font>");
+   if (color && *color)
+      eina_strbuf_append(markup, "</color>");
+   elm_object_text_set(label, eina_strbuf_string_get(markup));
    elm_object_style_set(label, themed ? "left" : "default");
+   eina_strbuf_free(markup);
 }
 
 void
-entrance_login_fields_style_set(Entrance_Login_Fields *fields, Eina_Bool themed, const char *color)
+entrance_login_fields_style_set(Entrance_Login_Fields *fields, Eina_Bool themed,
+                               const char *color, const char *font)
 {
+   Eina_Strbuf *style;
+
+   if (fields->custom_font)
+     {
+        elm_entry_text_style_user_pop(fields->user);
+        elm_entry_text_style_user_pop(fields->password);
+        fields->custom_font = EINA_FALSE;
+     }
    elm_object_style_set(fields->user, themed ? "blank" : "default");
    elm_object_style_set(fields->password, themed ? "blank" : "default");
-   _style_label(fields->user_label, username_label, themed, color);
-   _style_label(fields->password_label, password_label, themed, color);
+   if (font && (style = eina_strbuf_new()))
+     {
+        if (eina_strbuf_append_printf(style, "DEFAULT='font=%s font_size=15'", font))
+          {
+             elm_entry_text_style_user_push(fields->user, eina_strbuf_string_get(style));
+             elm_entry_text_style_user_push(fields->password, eina_strbuf_string_get(style));
+             fields->custom_font = EINA_TRUE;
+          }
+        eina_strbuf_free(style);
+     }
+   _style_label(fields->user_label, username_label, themed, color, font);
+   _style_label(fields->password_label, password_label, themed, color, font);
 }
 
 void
diff --git a/src/greeter/entrance_form_controls.h b/src/greeter/entrance_form_controls.h
index a21148f..eea6db2 100644
--- a/src/greeter/entrance_form_controls.h
+++ b/src/greeter/entrance_form_controls.h
@@ -11,6 +11,7 @@ extern "C" {
 
 void entrance_form_pack(Evas_Object *form, Evas_Object *widget);
 void entrance_form_control_pack(Eina_Inlist **controls, Evas_Object *form, Evas_Object *widget);
+Evas_Object *entrance_form_controls_first_row_get(Eina_Inlist *controls);
 Eina_Bool entrance_form_controls_theme_supported(const char *file);
 void entrance_form_controls_theme_set(Eina_Inlist *controls, const char *file);
 void entrance_form_controls_height_set(Eina_Inlist *controls, int height);
@@ -22,13 +23,14 @@ typedef struct
    Evas_Object *show_password;
    Evas_Object *user_label;
    Evas_Object *password_label;
+   Eina_Bool custom_font;
 } Entrance_Login_Fields;
 
 void entrance_login_fields_add(Entrance_Login_Fields *fields, Evas_Object *form,
                                Eina_Inlist **controls, Evas_Smart_Cb submit, void *data);
 void entrance_login_fields_user_set(Entrance_Login_Fields *fields, const char *username);
 void entrance_login_fields_style_set(Entrance_Login_Fields *fields, Eina_Bool themed,
-                                     const char *color);
+                                     const char *color, const char *font);
 void entrance_login_fields_password_clear(Entrance_Login_Fields *fields);
 
 /* Release the controls after deleting the form and its widgets. */
diff --git a/src/greeter/entrance_greeter_main.c b/src/greeter/entrance_greeter_main.c
index 4bc7bdc..5b0ec9b 100644
--- a/src/greeter/entrance_greeter_main.c
+++ b/src/greeter/entrance_greeter_main.c
@@ -6,6 +6,7 @@
 #include <Ecore_Getopt.h>
 #include <ctype.h>
 #include <errno.h>
+#include <fontconfig/fontconfig.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -25,6 +26,31 @@ static const Ecore_Getopt options
             ECORE_GETOPT_STORE_METAVAR_STR(0, "scale", "Initial UI scale in percent.", "percent"),
             ECORE_GETOPT_SENTINEL } };
 
+static void
+_register_theme_fonts(const char *preview_theme)
+{
+   FcConfig *config;
+   char *directory;
+   size_t size;
+
+   config = FcConfigGetCurrent();
+   if (!config)
+      return;
+
+   FcConfigAppFontAddDir(config, (const FcChar8 *)(DATA_INSTALL_DIR "/themes/fonts"));
+   if (!preview_theme || !*preview_theme)
+      return;
+
+   size = strlen(preview_theme) + sizeof("/../fonts");
+   directory = malloc(size);
+   if (directory)
+     {
+        snprintf(directory, size, "%s/../fonts", preview_theme);
+        FcConfigAppFontAddDir(config, (const FcChar8 *)directory);
+        free(directory);
+     }
+}
+
 static void
 _configure_engine(Eina_Bool preview)
 {
@@ -162,6 +188,7 @@ main(int argc, char **argv)
      }
 
    _configure_engine(preview);
+   _register_theme_fonts(preview ? theme : NULL);
    if (elm_init(1, argv) <= 0)
 
       return 1;
diff --git a/src/greeter/entrance_power_menu.c b/src/greeter/entrance_power_menu.c
index 7f555a4..478933e 100644
--- a/src/greeter/entrance_power_menu.c
+++ b/src/greeter/entrance_power_menu.c
@@ -10,6 +10,7 @@ struct Entrance_Power_Menu
    Evas_Object *window;
    Evas_Object *actions;
    Evas_Object *button;
+   Evas_Object *entry_row;
    Evas_Object *trailing_space;
    Evas_Object *popup;
    Evas_Object *items;
@@ -66,9 +67,29 @@ _dismiss_popup(void *data, Evas_Object *object EINA_UNUSED, void *event EINA_UNU
    evas_object_hide(data);
 }
 
+static void
+_size_power_button(Entrance_Power_Menu *menu)
+{
+   int size = 0;
+
+   if (menu->entry_row)
+      evas_object_geometry_get(menu->entry_row, NULL, NULL, NULL, &size);
+   if (size <= 0)
+      size = entrance_control_height_get();
+   evas_object_size_hint_min_set(menu->button, size, size);
+   evas_object_size_hint_max_set(menu->button, size, size);
+}
+
+static void
+_entry_resized(void *data, Evas *canvas EINA_UNUSED, Evas_Object *row EINA_UNUSED,
+               void *event EINA_UNUSED)
+{
+   _size_power_button(data);
+}
+
 Entrance_Power_Menu *
-entrance_power_menu_add(Evas_Object *window, Evas_Object *actions, Entrance_Power_Selected selected,
-                        void *data)
+entrance_power_menu_add(Evas_Object *window, Evas_Object *actions, Evas_Object *entry_row,
+                        Entrance_Power_Selected selected, void *data)
 {
    Entrance_Power_Menu *menu;
    Evas_Object *space, *cancel, *viewport, *scroller;
@@ -85,6 +106,9 @@ entrance_power_menu_add(Evas_Object *window, Evas_Object *actions, Entrance_Powe
    menu->selected = selected;
    menu->data = ""
    menu->button = elm_button_add(actions);
+   menu->entry_row = entry_row;
+   if (entry_row)
+      evas_object_event_callback_add(entry_row, EVAS_CALLBACK_RESIZE, _entry_resized, menu);
    menu->trailing_space = evas_object_rectangle_add(evas_object_evas_get(actions));
    spaces[0] = evas_object_rectangle_add(evas_object_evas_get(actions));
    spaces[1] = menu->trailing_space;
@@ -199,9 +223,9 @@ entrance_power_menu_update(Entrance_Power_Menu *menu, unsigned int available, Ei
 
       return;
 
-   elm_object_style_set(menu->button, themed ? "entrance-menu" : "default");
+   elm_object_style_set(menu->button, themed ? "entrance-power" : "default");
    entrance_button_symbol_set(menu->button, ENTRANCE_SYMBOL_POWER, color);
-   entrance_square_button_size_set(menu->button);
+   _size_power_button(menu);
 
    elm_box_clear(menu->items);
    menu->count = 0;
diff --git a/src/greeter/entrance_power_menu.h b/src/greeter/entrance_power_menu.h
index 4e51fec..531a035 100644
--- a/src/greeter/entrance_power_menu.h
+++ b/src/greeter/entrance_power_menu.h
@@ -22,6 +22,7 @@ typedef struct Entrance_Power_Menu Entrance_Power_Menu;
 typedef void (*Entrance_Power_Selected)(void *data, Entrance_Power_Action action);
 
 Entrance_Power_Menu *entrance_power_menu_add(Evas_Object *window, Evas_Object *actions,
+                                             Evas_Object *entry_row,
                                              Entrance_Power_Selected selected, void *data);
 void entrance_power_menu_update(Entrance_Power_Menu *menu, unsigned int available, Eina_Bool themed,
                                 unsigned int color);
diff --git a/src/greeter/meson.build b/src/greeter/meson.build
index 6e5ed84..228b32d 100644
--- a/src/greeter/meson.build
+++ b/src/greeter/meson.build
@@ -6,6 +6,7 @@ greeter_deps = [
   dependency('efreet', version: '>=1.22'),
   ecore_file,
   dependency('eio', version: '>=1.22'),
+  dependency('fontconfig'),
   iconv,
 ]
 

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

Reply via email to