From f709007d4613b30a3f0b877d8b3f783ea01ee596 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 1 Mar 2021 14:29:16 +0100 Subject: [PATCH] add missing sizeForLabels --- src/declarativeimports/kirigamiplasmadesktopstyle/Units.qml | 1 + src/declarativeimports/kirigamiplasmastyle/Units.qml | 1 + 2 files changed, 2 insertions(+) diff --git a/src/declarativeimports/kirigamiplasmadesktopstyle/Units.qml b/src/declarativeimports/kirigamiplasmadesktopstyle/Units.qml index 7c0a5eadd..f9b0e85d9 100644 --- a/src/declarativeimports/kirigamiplasmadesktopstyle/Units.qml +++ b/src/declarativeimports/kirigamiplasmadesktopstyle/Units.qml @@ -45,6 +45,7 @@ QtObject { * * desktop */ property QtObject iconSizes: QtObject { + property int sizeForLabels: fontMetrics.roundedIconSize(fontMetrics.height) property int small: Math.floor(fontMetrics.roundedIconSize(16 * devicePixelRatio) * (QtQuickControlsPrivate.Settings.isMobile ? 1.5 : 1)) property int smallMedium: Math.floor(fontMetrics.roundedIconSize(22 * devicePixelRatio) * (QtQuickControlsPrivate.Settings.isMobile ? 1.5 : 1)) property int medium: Math.floor(fontMetrics.roundedIconSize(32 * devicePixelRatio) * (QtQuickControlsPrivate.Settings.isMobile ? 1.5 : 1)) diff --git a/src/declarativeimports/kirigamiplasmastyle/Units.qml b/src/declarativeimports/kirigamiplasmastyle/Units.qml index 8afc7839d..b29eddd29 100644 --- a/src/declarativeimports/kirigamiplasmastyle/Units.qml +++ b/src/declarativeimports/kirigamiplasmastyle/Units.qml @@ -40,6 +40,7 @@ QtObject { * * desktop */ property QtObject iconSizes: QtObject { + property int sizeForLabels: fontMetrics.roundedIconSize(fontMetrics.height) property int small: Math.floor(fontMetrics.roundedIconSize(16 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1)) property int smallMedium: Math.floor(fontMetrics.roundedIconSize(22 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1)) property int medium: Math.floor(fontMetrics.roundedIconSize(32 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))