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 6e62e91ed55589b633649dd6ddc06736ef46cc5c
Author: Alastair Poole <[email protected]>
AuthorDate: Sun Nov 29 20:48:52 2026 +0000

    sports: align text
---
 data/themes/gadget-sports.edc               | 20 ++++++++++----------
 data/themes/greeter-controls.edc            | 21 +++++++++++++++++++++
 src/greeter/gadgets/modules/sports/sports.c |  4 ++--
 3 files changed, 33 insertions(+), 12 deletions(-)

diff --git a/data/themes/gadget-sports.edc b/data/themes/gadget-sports.edc
index 4303262..4954db4 100644
--- a/data/themes/gadget-sports.edc
+++ b/data/themes/gadget-sports.edc
@@ -17,11 +17,11 @@
 #define SCORE_ACCENT 123 177 255 255
 #define SCORE_WELL 19 23 30 255
 #endif
-#define SCORE_TEXT(NAME, SIZE, COLOR, X1, Y1, X2, Y2, ALIGN) \
+#define SCORE_TEXT(NAME, SIZE, COLOR, X1, Y1, X2, Y2, ALIGN, FIT) \
    part { name: NAME; type: TEXT; mouse_events: 0; scale: 1; \
       description { state: "default" 0.0; color: COLOR; \
          rel1.relative: X1 Y1; rel2.relative: X2 Y2; \
-         text { font: SCORE_FONT; size: SIZE; align: ALIGN 0.5; fit: 1 1; size_range: 8 SIZE; } \
+         text { font: SCORE_FONT; size: SIZE; align: ALIGN 0.5; fit: FIT FIT; size_range: 8 SIZE; ellipsis: 1.0; } \
       } \
    }
 
@@ -44,8 +44,8 @@ group { name: "entrance/gadgets/sports";
             rel1.relative: 0.037 0.043; rel2.relative: 0.047 0.145;
          }
       }
-      SCORE_TEXT("sports.title", 21, SCORE_INK, 0.065, 0.035, 0.95, 0.105, 0)
-      SCORE_TEXT("sports.status", 12, SCORE_MUTED, 0.065, 0.105, 0.95, 0.15, 0)
+      SCORE_TEXT("sports.title", 21, SCORE_INK, 0.065, 0.035, 0.95, 0.105, 0, 1)
+      SCORE_TEXT("sports.status", 12, SCORE_MUTED, 0.065, 0.105, 0.95, 0.15, 0, 1)
       part { name: "sports.header"; type: RECT; mouse_events: 1;
          description { state: "default" 0.0; color: 0 0 0 0;
             rel2.relative: 1 0.155;
@@ -105,7 +105,7 @@ group { name: "entrance/gadgets/sports";
    }
 }
 
-group { name: "entrance/gadgets/sports/row"; min: 96 69;
+group { name: "entrance/gadgets/sports/row"; min: 96 88;
    parts {
       part { name: "row.well"; type: IMAGE; mouse_events: 0;
          description { state: "default" 0.0; color: SCORE_WELL;
@@ -118,11 +118,11 @@ group { name: "entrance/gadgets/sports/row"; min: 96 69;
          }
          description { state: "live" 0.0; inherit: "default" 0.0; visible: 1; }
       }
-      SCORE_TEXT("match.home", 14, SCORE_INK, 0.055, 0.065, 0.81, 0.355, 0)
-      SCORE_TEXT("match.away", 14, SCORE_INK, 0.055, 0.355, 0.81, 0.645, 0)
-      SCORE_TEXT("match.home_score", 15, SCORE_INK, 0.81, 0.065, 0.94, 0.355, 1)
-      SCORE_TEXT("match.away_score", 15, SCORE_INK, 0.81, 0.355, 0.94, 0.645, 1)
-      SCORE_TEXT("match.detail", 11, SCORE_ACCENT, 0.055, 0.685, 0.94, 0.96, 0)
+      SCORE_TEXT("match.home", 14, SCORE_INK, 0.055, 0.065, 0.81, 0.355, 0, 0)
+      SCORE_TEXT("match.away", 14, SCORE_INK, 0.055, 0.405, 0.81, 0.695, 0, 0)
+      SCORE_TEXT("match.home_score", 14, SCORE_INK, 0.81, 0.065, 0.94, 0.355, 1, 0)
+      SCORE_TEXT("match.away_score", 14, SCORE_INK, 0.81, 0.405, 0.94, 0.695, 1, 0)
+      SCORE_TEXT("match.detail", 11, SCORE_ACCENT, 0.055, 0.725, 0.94, 0.96, 0, 1)
    }
    programs {
       program { signal: "match,live"; source: "entrance";
diff --git a/data/themes/greeter-controls.edc b/data/themes/greeter-controls.edc
index c2a0588..47a0a68 100644
--- a/data/themes/greeter-controls.edc
+++ b/data/themes/greeter-controls.edc
@@ -334,6 +334,27 @@ group { name: "elm/hover/base/hoversel_vertical/entrance-radio";
    inherit: "elm/hover/base/hoversel_vertical/entrance-session";
    data.item: "max_size" "272";
 }
+group { name: "elm/button/base/hoversel_vertical/entrance-sports";
+   inherit: "elm/button/base/hoversel_vertical/entrance-session";
+   min: 0 32;
+   parts {
+      part { name: "elm.text";
+         description { state: "default" 0.0;
+            text { fit: 1 0; size_range: 8 13; min: 0 1; ellipsis: -1; }
+         }
+         description { state: "pressed" 0.0; inherit: "default" 0.0; }
+         description { state: "disabled" 0.0; inherit: "default" 0.0; color: MUTE; }
+      }
+   }
+}
+group { name: "elm/button/base/hoversel_vertical_entry/entrance-sports";
+   inherit: "elm/button/base/hoversel_vertical_entry/entrance-radio";
+   min: 148 32;
+}
+group { name: "elm/hover/base/hoversel_vertical/entrance-sports";
+   inherit: "elm/hover/base/hoversel_vertical/entrance-session";
+   data.item: "max_size" "256";
+}
 group { name: "elm/check/base/default";
    min: 118 26;
    parts {
diff --git a/src/greeter/gadgets/modules/sports/sports.c b/src/greeter/gadgets/modules/sports/sports.c
index 4a879b2..65b236d 100644
--- a/src/greeter/gadgets/modules/sports/sports.c
+++ b/src/greeter/gadgets/modules/sports/sports.c
@@ -532,8 +532,8 @@ entrance_sports_theme_set(Entrance_Sports *sports, const char *file, Eina_Bool t
         g_free(sports->theme);
         sports->theme = g_strdup(file);
         sports->themed = _theme_load(sports->card, sports, CARD);
-        elm_object_style_set(sports->country, themed ? "entrance-radio" : "default");
-        elm_object_style_set(sports->league, themed ? "entrance-radio" : "default");
+        elm_object_style_set(sports->country, themed ? "entrance-sports" : "default");
+        elm_object_style_set(sports->league, themed ? "entrance-sports" : "default");
         for (unsigned int i = 0; i < EINA_C_ARRAY_LENGTH(widgets); ++i)
            if (sports->themed && edje_object_part_swallow(sports->card, parts[i], widgets[i]))
               evas_object_show(widgets[i]);

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

Reply via email to