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

git pushed a commit to branch main
in repository ego.

View the commit online.

commit 84cad2b62923d9e35d5b6a2e5e60cd3e47168c93
Author: [email protected] <[email protected]>
AuthorDate: Wed Apr 1 19:45:20 2026 -0600

    fix(ego-docgen): use Eolian-known part names for text setting
    
    Add efl.title and reorder text part name list to prefer modern
    EFL naming (efl.*) over legacy (elm.*). Part names derived from
    Eolian part declarations on widgets like AlertPopup.
    
    Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
---
 cmd/ego-docgen/main.go | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/cmd/ego-docgen/main.go b/cmd/ego-docgen/main.go
index 5becc19..2e8e34e 100644
--- a/cmd/ego-docgen/main.go
+++ b/cmd/ego-docgen/main.go
@@ -201,12 +201,17 @@ func renderWidget(ws WidgetStyle, cfg WidgetConfig, themePath string) (*image.NR
 		labelText = humanize(ws.Widget)
 	}
 
-	// Set label text on the first matching text part, trying EFL-style part
-	// names before falling back to legacy elm-style names.
+	// Set label text on the first matching text part. Part names follow the
+	// convention "efl.<part_name>" in modern themes and "elm.<part_name>" in
+	// legacy themes. Common text-capable parts from Eolian: "text", "title".
 	{
 		cText := C.CString(labelText)
 		defer C.free(unsafe.Pointer(cText))
-		for _, partName := range []string{"efl.text", "elm.text", "efl.text.title", "elm.text.main", "efl.text.main"} {
+		for _, partName := range []string{
+			"efl.text", "efl.text.title", "efl.title",
+			"efl.text.main",
+			"elm.text", "elm.text.main", "elm.text.title",
+		} {
 			cPart := C.CString(partName)
 			if C.ego_part_text_set(obj, cPart, cText) != 0 {
 				C.free(unsafe.Pointer(cPart))

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

Reply via email to