revert icons scaling on mobile

plasma mobile can't handle that
This commit is contained in:
Marco Martin 2018-10-23 12:18:26 +02:00
parent 72ca2f79e0
commit a1269ad059
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: Math.floor(fontMetrics.roundedIconSize(16 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1)) property int small: fontMetrics.roundedIconSize(16 * devicePixelRatio)
property int smallMedium: Math.floor(fontMetrics.roundedIconSize(22 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1)) property int smallMedium: fontMetrics.roundedIconSize(22 * devicePixelRatio)
property int medium: Math.floor(fontMetrics.roundedIconSize(32 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1)) property int medium: fontMetrics.roundedIconSize(32 * devicePixelRatio)
property int large: Math.floor(fontMetrics.roundedIconSize(48 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1)) property int large: fontMetrics.roundedIconSize(48 * devicePixelRatio)
property int huge: Math.floor(fontMetrics.roundedIconSize(64 * devicePixelRatio) * (Settings.isMobile ? 1.5 : 1)) property int huge: fontMetrics.roundedIconSize(64 * devicePixelRatio)
property int enormous: Math.floor(128 * devicePixelRatio * (Settings.isMobile ? 1.5 : 1)) property int enormous: 128 * devicePixelRatio
} }
/** /**

View File

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