-
-
Notifications
You must be signed in to change notification settings - Fork 320
Open
Description
Material3/Fluent2 come with a huge collection of icons. Open source projects offering icon sets are available as well.
These icons are not only available as SVGs but also as Icon Fonts using the PUA ( https://en.wikipedia.org/wiki/Private_Use_Areas ) of the Unicode range.
- https://developers.google.com/fonts/docs/material_icons
- https://learn.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font
- https://github.com/FortAwesome
- ...
We can make use of these fonts this way:
QskGraphic icon( const QString& fontFamily, QChar symbol )
{
QFont font( fontFamily );
QskGraphic graphic;
QPainter painter( &graphic );
painter.setFont( font );
painter.setPen( Qt::black );
painter.drawText( 0, 0, symbol );
return graphic;
}
The keycodes in the various fonts are probably not aligned according to the type of operation ( search, dismiss, open ... ) and we might need to introduce some sort of IconRole that can be mapped by the skins to the keycode of the specific icon font.
Then all SVGs being loaded in the skins and examples can be replaced by this concept.
Reactions are currently unavailable