Use 28dp statusbar in NoCutout overlay
All other cutout emulation overlays use this value and all of the known devices with notch are of 2:1 ratio or higher, so it makes ergonomical sense. Also helps with rounded corners.
This commit is contained in:
parent
69541d380d
commit
7f4c2d2a2a
@ -16,10 +16,10 @@
|
|||||||
|
|
||||||
<resources>
|
<resources>
|
||||||
<!-- Can't link to other dimensions here, but this should be status_bar_height_landscape -->
|
<!-- Can't link to other dimensions here, but this should be status_bar_height_landscape -->
|
||||||
<dimen name="quick_qs_offset_height">24dp</dimen>
|
<dimen name="quick_qs_offset_height">28dp</dimen>
|
||||||
<!-- Total height of QQS in landscape; quick_qs_offset_height + 128 -->
|
<!-- Total height of QQS in landscape; quick_qs_offset_height + 128 -->
|
||||||
<dimen name="quick_qs_total_height">152dp</dimen>
|
<dimen name="quick_qs_total_height">156dp</dimen>
|
||||||
<!-- Because we hardcode status_bar_height in Oreo device overlays,
|
<!-- Because we hardcode status_bar_height in Oreo device overlays,
|
||||||
we also need to do it here. -->
|
we also need to do it here. -->
|
||||||
<dimen name="status_bar_height">24dp</dimen>
|
<dimen name="status_bar_height">28dp</dimen>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -26,11 +26,11 @@
|
|||||||
<bool name="config_maskMainBuiltInDisplayCutout">true</bool>
|
<bool name="config_maskMainBuiltInDisplayCutout">true</bool>
|
||||||
|
|
||||||
<!-- Height of the status bar -->
|
<!-- Height of the status bar -->
|
||||||
<dimen name="status_bar_height_portrait">24dp</dimen>
|
<dimen name="status_bar_height_portrait">28dp</dimen>
|
||||||
<dimen name="status_bar_height_landscape">24dp</dimen>
|
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||||
<!-- Because we hardcode status_bar_height in Oreo device overlays,
|
<!-- Because we hardcode status_bar_height in Oreo device overlays,
|
||||||
we also need to do it here. -->
|
we also need to do it here. -->
|
||||||
<dimen name="status_bar_height">24dp</dimen>
|
<dimen name="status_bar_height">28dp</dimen>
|
||||||
<!-- For rounded corners to work, set rounded_corner_radius_bottom or rounded_corner_radius
|
<!-- For rounded corners to work, set rounded_corner_radius_bottom or rounded_corner_radius
|
||||||
in device overlay. -->
|
in device overlay. -->
|
||||||
<dimen name="rounded_corner_radius_top">@*android:dimen/rounded_corner_radius_bottom</dimen>
|
<dimen name="rounded_corner_radius_top">@*android:dimen/rounded_corner_radius_bottom</dimen>
|
||||||
|
Loading…
Reference in New Issue
Block a user