Hi
After migration to WinCC OA 3.14 version (patch 13) , content of stylesheet.css used in WinCC OA 3.13 is ignored by ui manager.
Example of settings used in stylesheet.css :
For button
QPushButton[type="rectType"]
{
font-family: "Arial";
font-size: 12px;
font-style:bold;
background: rgb(220,105,20);
}
For text field
QLineEdit[type = "navItem"]
{
background: rgb(220,105,20);
font-family: "Arial";
font-size: 12px;
font-style:bold;
}
Objects react on change of background colors in stylesheet.css file, but font settings are ignored. Parameter "useStylesheets" is used in config file.
Could someone help me to figure out what is the problem in stylesheet parametrization?
Thanks for help
Milan
Stylesheet.css file 3.13 vs 3.14
- schneebergera
- Posts:89
- Joined: Sun Apr 03, 2016 5:52 pm
Re: Stylesheet.css file 3.13 vs 3.14
Hello,
Please note that the font and color settings made in the stylesheet are only applied if the default settings for font and color are set inside of a panel/object. If the settings were changed within the GEDI, these manually defined settings from the GEDI are used!
If the font and color settings from CSS should be used the manual settings inside of the GEDI must be reverted to the configured default font and/or color inside of the panel.
As alternative a new default font can be set inside of the config file.
e.g.
[ui]
defaultFont = "Arial,-1,12,5,50,0,0,0,0,0"
best regards,
Andreas
Please note that the font and color settings made in the stylesheet are only applied if the default settings for font and color are set inside of a panel/object. If the settings were changed within the GEDI, these manually defined settings from the GEDI are used!
If the font and color settings from CSS should be used the manual settings inside of the GEDI must be reverted to the configured default font and/or color inside of the panel.
As alternative a new default font can be set inside of the config file.
e.g.
[ui]
defaultFont = "Arial,-1,12,5,50,0,0,0,0,0"
best regards,
Andreas