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

Commit 1a028bcb authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

More fine tuning of dialog width

Test: Looked at dialog in portait, splitscreen, and landscape mode
Change-Id: I54f40cdb1f76ade988cd011966c4f4035bfe7eb7
parent 8e79d875
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -17,6 +17,8 @@

<!-- Landscape dimensions for the permission grant dialog. -->
<resources>
    <!-- 37:20 == 65% width -->
    <dimen name="permissionGrantDialogWidth">37</dimen>
    <!-- Assuming the dimension of a sailfish, this yields 95% width in splitscreen and 65% in
         landscape -->
    <dimen name="permissionGrantDialogWeight">8.6</dimen>
    <dimen name="permissionGrantDialogWidth">334dp</dimen>
</resources>
+3 −2
Original line number Diff line number Diff line
@@ -17,6 +17,7 @@

<!-- portrait dimensions for the permission grant dialog. -->
<resources>
    <!-- 380:20 == 95% width -->
    <dimen name="permissionGrantDialogWidth">380</dimen>
    <!-- This yields 95% width -->
    <dimen name="permissionGrantDialogWeight">380</dimen>
    <dimen name="permissionGrantDialogWidth">0dp</dimen>
</resources>
+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@
    <style name="PermissionGrantDialog">
        <item name="background">?attr/windowBackground</item>
        <item name="elevation">?attr/windowElevation</item>
        <item name="layout_weight">@dimen/permissionGrantDialogWidth</item>
        <item name="layout_width">320dp</item>
        <item name="layout_weight">@dimen/permissionGrantDialogWeight</item>
        <item name="layout_width">@dimen/permissionGrantDialogWidth</item>
    </style>

    <style name="PermissionGrantTitleIcon">