we need bigger buttons on mobile

as is an hack, was tried to be removed, but it doesn't work
This commit is contained in:
Marco Martin 2019-09-19 11:53:32 +02:00
parent a4b74ea551
commit f301c7ea2d
2 changed files with 12 additions and 12 deletions

View File

@ -55,12 +55,12 @@ QtObject {
* * desktop * * desktop
*/ */
property QtObject iconSizes: QtObject { property QtObject iconSizes: QtObject {
property int small: fontMetrics.roundedIconSize(16 * devicePixelRatio) property int small: Math.floor(fontMetrics.roundedIconSize(16 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int smallMedium: fontMetrics.roundedIconSize(22 * devicePixelRatio) property int smallMedium: Math.floor(fontMetrics.roundedIconSize(22 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int medium: fontMetrics.roundedIconSize(32 * devicePixelRatio) property int medium: Math.floor(fontMetrics.roundedIconSize(32 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int large: fontMetrics.roundedIconSize(48 * devicePixelRatio) property int large: Math.floor(fontMetrics.roundedIconSize(48 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int huge: fontMetrics.roundedIconSize(64 * devicePixelRatio) property int huge: Math.floor(fontMetrics.roundedIconSize(64 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int enormous: 128 * devicePixelRatio property int enormous: Math.floor(128 * devicePixelRatio * (Settings.isMobile ? 1.5 : 1))
} }
/** /**

View File

@ -49,12 +49,12 @@ QtObject {
* * desktop * * desktop
*/ */
property QtObject iconSizes: QtObject { property QtObject iconSizes: QtObject {
property int small: fontMetrics.roundedIconSize(16 * devicePixelRatio) property int small: Math.floor(fontMetrics.roundedIconSize(16 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int smallMedium: fontMetrics.roundedIconSize(22 * devicePixelRatio) property int smallMedium: Math.floor(fontMetrics.roundedIconSize(22 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int medium: fontMetrics.roundedIconSize(32 * devicePixelRatio) property int medium: Math.floor(fontMetrics.roundedIconSize(32 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int large: fontMetrics.roundedIconSize(48 * devicePixelRatio) property int large: Math.floor(fontMetrics.roundedIconSize(48 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int huge: fontMetrics.roundedIconSize(64 * devicePixelRatio) property int huge: Math.floor(fontMetrics.roundedIconSize(64 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1))
property int enormous: 128 * devicePixelRatio property int enormous: Math.floor(128 * devicePixelRatio * (Settings.isMobile ? 1.5 : 1))
} }
/** /**