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 beb6f94dc3525808dc6d58203819e0d7f10be627
Author: Alastair Poole <[email protected]>
AuthorDate: Sat Nov 28 12:26:11 2026 +0000

    greeter: placeholder text align
---
 src/greeter/entrance_elementary_greeter.c |  2 +-
 src/greeter/entrance_form_controls.c      | 14 ++++++++------
 src/greeter/entrance_form_controls.h      |  3 ++-
 3 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/greeter/entrance_elementary_greeter.c b/src/greeter/entrance_elementary_greeter.c
index 43cf090..268c7c4 100644
--- a/src/greeter/entrance_elementary_greeter.c
+++ b/src/greeter/entrance_elementary_greeter.c
@@ -476,7 +476,7 @@ _render_entry_text(Greeter *greeter, Evas_Object *theme)
                                          greeter->animations, greeter->text_glow_color, alpha);
    entrance_login_fields_guides_set(&greeter->fields, EINA_TRUE,
                                     entrance_theme_color_string_get(theme, "ink"),
-                                    greeter->text_glow_color, alpha);
+                                    greeter->animations, greeter->text_glow_color, alpha);
 }
 
 static void
diff --git a/src/greeter/entrance_form_controls.c b/src/greeter/entrance_form_controls.c
index f557554..df19e96 100644
--- a/src/greeter/entrance_form_controls.c
+++ b/src/greeter/entrance_form_controls.c
@@ -279,13 +279,14 @@ _field_label_visible_set(Evas_Object *form, Evas_Object *label, Evas_Object *row
 
 static void
 _field_guide_set(Evas_Object *entry, const char *text, const char *color,
-                 unsigned int glow, unsigned int alpha)
+                 Eina_Bool animated, unsigned int glow, unsigned int alpha)
 {
    const char *markup = text;
 
    if (markup && color)
       markup = eina_slstr_printf("<color=#%s>%s</color>", color, markup);
-   if (markup && alpha)
+   /* Preserve the guide geometry when the glow becomes transparent. */
+   if (markup && animated)
       markup = eina_slstr_printf("<style=glow glow_color=#%06x%02x glow2_color=#%06x%02x>%s</style>",
                                  glow, alpha, glow, alpha / 2, markup);
    elm_object_part_text_set(entry, "guide", markup);
@@ -293,10 +294,11 @@ _field_guide_set(Evas_Object *entry, const char *text, const char *color,
 
 void
 entrance_login_fields_guides_set(Entrance_Login_Fields *fields, Eina_Bool themed,
-                                 const char *color, unsigned int glow, unsigned int alpha)
+                                 const char *color, Eina_Bool animated,
+                                 unsigned int glow, unsigned int alpha)
 {
-   _field_guide_set(fields->user, themed ? _(username_label) : NULL, color, glow, alpha);
-   _field_guide_set(fields->password, themed ? _(password_label) : NULL, color, glow, alpha);
+   _field_guide_set(fields->user, themed ? _(username_label) : NULL, color, animated, glow, alpha);
+   _field_guide_set(fields->password, themed ? _(password_label) : NULL, color, animated, glow, alpha);
 }
 
 void
@@ -351,7 +353,7 @@ entrance_login_fields_text_set(Entrance_Login_Fields *fields, Eina_Bool themed,
    elm_object_access_info_set(fields->user, user);
    elm_object_access_info_set(fields->password, password);
    elm_object_text_set(fields->show_password, _("Show password"));
-   entrance_login_fields_guides_set(fields, themed, color, 0, 0);
+   entrance_login_fields_guides_set(fields, themed, color, EINA_FALSE, 0, 0);
    _style_label(fields->user_label, user, themed, color, font);
    _style_label(fields->password_label, password, themed, color, font);
 }
diff --git a/src/greeter/entrance_form_controls.h b/src/greeter/entrance_form_controls.h
index b8f6aa5..ca6f662 100644
--- a/src/greeter/entrance_form_controls.h
+++ b/src/greeter/entrance_form_controls.h
@@ -39,7 +39,8 @@ void entrance_login_fields_text_set(Entrance_Login_Fields *fields, Eina_Bool the
 void entrance_login_fields_entry_style_set(Entrance_Login_Fields *fields, const char *font,
                                           Eina_Bool animated, unsigned int glow, unsigned int alpha);
 void entrance_login_fields_guides_set(Entrance_Login_Fields *fields, Eina_Bool themed,
-                                      const char *color, unsigned int glow, unsigned int alpha);
+                                      const char *color, Eina_Bool animated,
+                                      unsigned int glow, unsigned int alpha);
 void entrance_login_fields_password_clear(Entrance_Login_Fields *fields);
 
 /* Release the controls after deleting the form and its widgets. */

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

Reply via email to