Scribusoid

Author Topic: IndigoUI: Dynamic Icon Theme  (Read 235 times)

tim_occ

  • Full Member
  • ***
  • Posts: 112
  • Karma: 8
  • Scribus User
IndigoUI: Dynamic Icon Theme
« on: August 07, 2022, 12:10:18 am »
Hi all,

I have collected and tried to solve some problems with the current Scribus iconset.
- Icons are too small for 4k screens (static PNGs)
- Icons have to be specially adapted (recolored) for a dark UI theme.

As a solution, I thought of replacing all icons with SVG files and automating the icon coloring based on the UI theme.

The basis of this concept comes from Inkscape. All icons are SVG based and support both inline styles and embedded CSS files. Separate colors can be set for each icon as it is rendered on a light background or dark background.

If a graphic element in an icon has no color specified by inline style or class, then the current font color of the UI theme is applied to this element. This saves a separate icon set for light and dark backgrounds, since everything can now be configured in one go.

PNG files are still supported and are excluded from automatic changes.

The screenshots below show an example of the toolbar. Icons on a dark background are slightly lighter than on a light background.

best,
Martin

 

palmate