Skip to content

Conversation

@JimB40
Copy link
Collaborator

@JimB40 JimB40 commented Nov 10, 2025

This PR

  • integrates Figma as source for SVG graphics
  • automated PNG build for color LCD radios via covert-gfx.sh

Summary of changes:

  1. changed img-src files names & folder structure
  • files follows naming <bmp_|mask_><type_>.svg scheme that follows Figma UI Design scheme
  • bmp_ & mask_ prefix defines PNG type
  • no subfolders to simplify PNG generation & review
  • all SVG vector sources simplified end re-exported to img-src
  1. Replaced PNG
  • PNGs now have new names
  • unused PNGs are removed
  • conversion done using rsvg-convert for smaller size
  1. Modified CMakeList.txt
  • simplified
  1. Modified *.cpp
  • all *.cpp with *.lbm references are updated to reflect naming change
  • _BuiltinIcon names left untouched to avoid conflicts (lots of changes in code)
  1. tools script to convert SVG to PNG
  • changed script name to convert-gfx.sh
  • added --resvg param to force using resvg insted of rsvg-convert (testing)

Other PRs @pfeerick

@JimB40
Copy link
Collaborator Author

JimB40 commented Nov 10, 2025

Figma Integration

Screenshot 2025-11-10 at 06 46 14
  • left > Design window
  • right > Export SVG window

Any changes in Design window are automatically refleced in Export SVG window that converts graphic to specified type (normal PNG or mask PNG)

@JimB40 JimB40 changed the title Main change & clean up SVG & PNG for color LCD radio - change & clean up Nov 10, 2025
1. changed img-src files names & folder structure
- files follows naming <bmp_|mask_><type_><name>.svg scheme that follows Figma UI Design scheme
- bmp_ & mask_ prefix defines PNG type
- no subfolders to simplify PNG generation & review
- all SVG vector sources simplified end re-exported to img-src

2. Replaced PNG
- PNGs now have new names
- unused PNGs are removed
- conversion done using rsvg-convert for smaller size

3. Modified CMakeList.txt
- simplified

4. Modified *.cpp
- all *.cpp with *.lbm references are updated to reflect naming change
- _BuiltinIcon names left untouched to avoid conflicts (lots of changes in code)

5. tools script to convert SVG to PNG
- changed name to convert-gfx
- added --resvg param to force using resvg insted of rsvg-convert (testing)
*.lbm names fix
1. add missing Favourite PNGs for EdgeTX#6753

2. added --update parameter to script
- CSV now keeps track of SVG modification date
- running ./convert-gfx.sh --make all --update  will only re-genarate PNGs for SVG s with newer modification date that the one in CSV
@JimB40 JimB40 requested a review from pfeerick November 28, 2025 10:54
@pfeerick pfeerick self-assigned this Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants