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

Commit 3bdfe8a0 authored by Aran Ink's avatar Aran Ink
Browse files

Use default sizes for global actions.

Test: Manual -- phone does not crash when opening power menu with smallest width <320dp.
Fixes: 156060935
Change-Id: Id8e61aecf3931e3611c95e35a928ab54bc4b4d63
parent d43ac6b4
Loading
Loading
Loading
Loading
+0 −36
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2019 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License
  -->
<resources>
    <!-- Global actions grid -->
    <dimen name="global_actions_grid_vertical_padding">3dp</dimen>
    <dimen name="global_actions_grid_horizontal_padding">3dp</dimen>

    <dimen name="global_actions_grid_item_side_margin">5dp</dimen>
    <dimen name="global_actions_grid_item_vertical_margin">4dp</dimen>
    <dimen name="global_actions_grid_item_width">64dp</dimen>
    <dimen name="global_actions_grid_item_height">64dp</dimen>

    <dimen name="global_actions_grid_item_icon_width">20dp</dimen>
    <dimen name="global_actions_grid_item_icon_height">20dp</dimen>
    <dimen name="global_actions_grid_item_icon_top_margin">12dp</dimen>
    <dimen name="global_actions_grid_item_icon_side_margin">22dp</dimen>
    <dimen name="global_actions_grid_item_icon_bottom_margin">4dp</dimen>

    <!-- Home Controls -->
    <dimen name="global_actions_side_margin">10dp</dimen>
</resources>
+16 −1
Original line number Diff line number Diff line
@@ -1031,8 +1031,23 @@
    <dimen name="global_actions_grid_container_shadow_offset">20dp</dimen>
    <dimen name="global_actions_grid_container_negative_shadow_offset">-20dp</dimen>

    <!-- Global actions grid -->
    <dimen name="global_actions_grid_vertical_padding">3dp</dimen>
    <dimen name="global_actions_grid_horizontal_padding">3dp</dimen>

    <dimen name="global_actions_grid_item_side_margin">5dp</dimen>
    <dimen name="global_actions_grid_item_vertical_margin">4dp</dimen>
    <dimen name="global_actions_grid_item_width">64dp</dimen>
    <dimen name="global_actions_grid_item_height">64dp</dimen>

    <dimen name="global_actions_grid_item_icon_width">20dp</dimen>
    <dimen name="global_actions_grid_item_icon_height">20dp</dimen>
    <dimen name="global_actions_grid_item_icon_top_margin">12dp</dimen>
    <dimen name="global_actions_grid_item_icon_side_margin">22dp</dimen>
    <dimen name="global_actions_grid_item_icon_bottom_margin">4dp</dimen>

    <!-- Margins at the left and right of the power menu and home controls widgets. -->
    <dimen name="global_actions_side_margin">16dp</dimen>
    <dimen name="global_actions_side_margin">10dp</dimen>

    <!-- Amount to shift the layout when exiting/entering for controls activities -->
    <dimen name="global_actions_controls_y_translation">20dp</dimen>