Add font-size and font-weight properties to CheckBox#11282
Add font-size and font-weight properties to CheckBox#11282dfaure-kdab wants to merge 1 commit intoslint-ui:masterfrom
Conversation
Expose font-size and font-weight as input properties on CheckBox across all non-native styles (fluent, material, cupertino, cosmic), defaulting to each style's existing font settings. This matches the pattern already used by TextEdit, TextInput, and LineEdit. These properties have no effect when using the Qt style, where the entire widget (including text rendering) is delegated to NativeCheckBox which paints via QStyle::drawControl.
baf78ed to
8e9c42b
Compare
|
Yeah. This solution is consistent with TextEdit, TextInput, and LineEdit, but means it's still missing from ComboBox etc. A font property would make sense but only if one can specify the size without having to specify everything (especially hardcoding a font family name). |
Agreed.
Yes. The idea is to carry a Font struct in the implementation and additionally offer font-* properties for convenience (the example you described). IMO this PR adds the API we want, and I want to make the implementation more lightweight. |
Expose font-size and font-weight as input properties on CheckBox across
all non-native styles (fluent, material, cupertino, cosmic), defaulting
to each style's existing font settings. This matches the pattern already
used by TextEdit, TextInput, and LineEdit.
These properties have no effect when using the Qt style, where the
entire widget (including text rendering) is delegated to NativeCheckBox
which paints via QStyle::drawControl.