vlc | branch: master | Prince Gupta <[email protected]> | Wed Nov 18 23:37:40 2020 +0530| [fb4a40905710185a5b96a3b68c196c71619beb7d] | committer: Pierre Lamot
qml: use size values from VLCStyle in CheckedDelegate widget Signed-off-by: Pierre Lamot <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb4a40905710185a5b96a3b68c196c71619beb7d --- modules/gui/qt/style/VLCStyle.qml | 1 + modules/gui/qt/widgets/qml/CheckedDelegate.qml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gui/qt/style/VLCStyle.qml b/modules/gui/qt/style/VLCStyle.qml index d32d24086f..4e7fadaafc 100644 --- a/modules/gui/qt/style/VLCStyle.qml +++ b/modules/gui/qt/style/VLCStyle.qml @@ -82,6 +82,7 @@ Item { property int icon_xlarge: dp(128, scale); property int icon_topbar: dp(38, scale) + property int icon_checkedDelegate: dp(40, scale) property int play_cover_small: dp(24, scale) diff --git a/modules/gui/qt/widgets/qml/CheckedDelegate.qml b/modules/gui/qt/widgets/qml/CheckedDelegate.qml index 0aaf1f2c17..e069a2af6d 100644 --- a/modules/gui/qt/widgets/qml/CheckedDelegate.qml +++ b/modules/gui/qt/widgets/qml/CheckedDelegate.qml @@ -27,6 +27,7 @@ T.ItemDelegate { id: control checkable: true + font.pixelSize: VLCStyle.fontSize_large leftPadding: VLCStyle.margin_xlarge rightPadding: VLCStyle.margin_xsmall @@ -41,7 +42,7 @@ T.ItemDelegate { text: VLCIcons.check visible: control.checked height: parent.height - font.pixelSize: 24 + font.pixelSize: VLCIcons.pixelSize(VLCStyle.icon_checkedDelegate) color: "white" verticalAlignment: Text.AlignVCenter } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
