Hi,
I am trying to create a stylesheet for the whole project where the default font style of widgets (button, text field, text, label and etc.) are defined. The project does parse the styles (background, padding, color and etc.) from the my config/stylesheet.css, but the font style does not change - even if I just a widget and only change the type name field to define the css style id.
How I am able to make the widgets to apply the style from the stylesheets and not from the properties?
Defining defualt font in custom stylesheet
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: Defining defualt font in custom stylesheet
If you want to replace fonts using a stylesheet you define the default font in the config file
[ui]
defaultFont = ""
E.g.
[ui]
defaultFont = "Noto Sans,-1,19,5,50,0,0,0,0,0,Regular"
For all objects which have this font defined in the panel file the font can be changed using stylesheets.
Best Regards
Leopold Knipp
Senior Support Specialist
[ui]
defaultFont = ""
E.g.
[ui]
defaultFont = "Noto Sans,-1,19,5,50,0,0,0,0,0,Regular"
For all objects which have this font defined in the panel file the font can be changed using stylesheets.
Best Regards
Leopold Knipp
Senior Support Specialist