aboutsummaryrefslogtreecommitdiffstats
path: root/src/quickcontrols/material/qquickmaterialstyle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/quickcontrols/material/qquickmaterialstyle.cpp')
-rw-r--r--src/quickcontrols/material/qquickmaterialstyle.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/quickcontrols/material/qquickmaterialstyle.cpp b/src/quickcontrols/material/qquickmaterialstyle.cpp
index cd191cd77b..7338dde84e 100644
--- a/src/quickcontrols/material/qquickmaterialstyle.cpp
+++ b/src/quickcontrols/material/qquickmaterialstyle.cpp
@@ -1302,6 +1302,31 @@ int QQuickMaterialStyle::menuItemVerticalPadding() const
return globalVariant == Dense ? 8 : 12;
}
+int QQuickMaterialStyle::switchIndicatorWidth() const
+{
+ return globalVariant == Dense ? 40 : 52;
+}
+
+int QQuickMaterialStyle::switchIndicatorHeight() const
+{
+ return globalVariant == Dense ? 22 : 32;
+}
+
+int QQuickMaterialStyle::switchNormalHandleHeight() const
+{
+ return globalVariant == Dense ? 10 : 16;
+}
+
+int QQuickMaterialStyle::switchCheckedHandleHeight() const
+{
+ return globalVariant == Dense ? 16 : 24;
+}
+
+int QQuickMaterialStyle::switchLargestHandleHeight() const
+{
+ return globalVariant == Dense ? 18 : 28;
+}
+
int QQuickMaterialStyle::switchDelegateVerticalPadding() const
{
// SwitchDelegate's indicator is much larger than the others due to the shadow,