Replies: 1 comment
-
This is a good idea, but I'm not sure about how this could be implemented (since the default StyleBoxFlat properties would be changed only within the editor, and depending on the base StyleBoxFlat already used in the theme). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently (4.x), when creating style properties as theme overrides on a control node, new properties are created with fully default values, even if the project's default theme has been edited.
It could save a lot of time if instead of creating a 'blank' theme property, it would copy the theme property that the control would otherwise inherit from the theme / default theme. That way, minor adjustments can be made to the defaults which have been set, rather than having to completely restyle the Control from scratch, or go diving into the theme to copy the correct style.
Example scenario:
The developer has created a theme which sets the colours, margins, borders, etc on the Panel element. Some panels in the layout built with the theme need all corners to be rounded, and others need a subset of corners to be rounded depending on where it is used, but they otherwise have identical styling.
The developer would add a panel to the scene, override the StyleBoxFlat for its 'Panel' style, then modify the border radii for that control; the control's background color, border color, border width and etc would all already match the values from the current inherited theme, saving time and preventing any inconsistencies from being introduced in the theme.
Beta Was this translation helpful? Give feedback.
All reactions