Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a490b4d authored by Kshitij's avatar Kshitij
Browse files

fix: Upscale icons to 1.6x and improve hotseat spacing

parent 56696038
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -723,7 +723,7 @@ public class DeviceProfile {

        // The side space with inline buttons should be what is defined in InvariantDeviceProfile
        int sideSpacePx = inlineNavButtonsEndSpacingPx;
        int maxHotseatWidthPx = availableWidthPx - sideSpacePx - hotseatBarEndOffset;
        int maxHotseatWidthPx = availableWidthPx - sideSpacePx - (hotseatBarEndOffset / 4);
        int maxHotseatIconsWidthPx = maxHotseatWidthPx - (isQsbInline ? hotseatQsbWidth : 0);
        hotseatBorderSpace = calculateHotseatBorderSpace(maxHotseatIconsWidthPx,
                (isQsbInline ? 1 : 0) + /* border between nav buttons and first icon */ 1);
+2 −2
Original line number Diff line number Diff line
@@ -390,8 +390,8 @@ public class InvariantDeviceProfile implements OnSharedPreferenceChangeListener
        for (WindowBounds bounds : displayInfo.supportedBounds) {
            boolean isTablet = displayInfo.isTablet(bounds);
            if (isTablet) {
                iconSize[INDEX_DEFAULT] *= 1.25f;
                iconSize[INDEX_LANDSCAPE] *= 1.25f;
                iconSize[INDEX_DEFAULT] *= 1.6f;
                iconSize[INDEX_LANDSCAPE] *= 1.6f;
                break;
            }
        }