Add template usage information for icons #287

Merged
Nyeksenn merged 4 commits from feature/improve-icon-docs into main 2025-10-27 20:57:42 +01:00
Nyeksenn commented 2025-10-25 19:46:38 +02:00 (Migrated from github.com)

This PR contains updates to the Using icons chapters of the getting started tutorial.
It adds instructions to clarify how to use custom icons within a template.
It also fixes a typo.

This PR contains updates to the `Using icons` chapters of the getting started tutorial. It adds instructions to clarify how to use custom icons within a template. It also fixes a typo.
jwharm (Migrated from github.com) requested changes 2025-10-25 22:33:10 +02:00
jwharm (Migrated from github.com) left a comment

A couple small things, nothing major.

A couple small things, nothing major.
@ -61,15 +61,19 @@ Then, we create the GTK XML resource file in our Java resources folder (i.e `src
```xml
jwharm (Migrated from github.com) commented 2025-10-25 22:32:14 +02:00

typo: enabled

typo: enabled
@ -106,7 +110,26 @@ We now add a gradle task to ou Gradle build script to compile the GTK resources
We can now use the icon using `Image.fromResource` and the string name of the icon, which is this `prefix` of the icon, concatenated with its `alias`:
jwharm (Migrated from github.com) commented 2025-10-25 22:30:41 +02:00

Please indent the dots (so they are below <property)

Please indent the dots (so they are below `<property`)
jwharm (Migrated from github.com) commented 2025-10-25 22:31:13 +02:00

Unnecessary newline

Unnecessary newline
Nyeksenn commented 2025-10-27 16:17:04 +01:00 (Migrated from github.com)

I made the necessary changes. Thanks for the review.

I made the necessary changes. Thanks for the review.
Sign in to join this conversation.
No description provided.