Skip to content

Commit 7c26e0a

Browse files
committed
Shade: Add 16dp padding to title in Widget/App-info popup
1 parent 09482a4 commit 7c26e0a

File tree

3 files changed

+62
-1
lines changed

3 files changed

+62
-1
lines changed

shade/res/layout/app_info_bottom_sheet.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
android:layout_height="wrap_content"
1818
android:gravity="center_horizontal"
1919
android:textColor="?android:attr/textColorPrimary"
20-
android:textSize="24sp"/>
20+
android:textSize="24sp"
21+
android:paddingLeft="@dimen/bottom_sheet_title_padding"
22+
android:paddingRight="@dimen/bottom_sheet_title_padding" />
2123

2224
<TextView
2325
android:layout_width="match_parent"
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Copyright (C) 2017 The Android Open Source Project
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
-->
16+
17+
<com.android.launcher3.widget.WidgetsBottomSheet
18+
xmlns:android="http://schemas.android.com/apk/res/android"
19+
android:orientation="vertical"
20+
android:layout_width="match_parent"
21+
android:layout_height="wrap_content"
22+
android:paddingTop="28dp"
23+
android:background="@drawable/top_round_rect_primary"
24+
android:elevation="@dimen/deep_shortcuts_elevation"
25+
android:layout_gravity="bottom"
26+
android:theme="?attr/widgetsTheme">
27+
28+
<TextView
29+
style="@style/TextHeadline"
30+
android:id="@+id/title"
31+
android:layout_width="match_parent"
32+
android:layout_height="wrap_content"
33+
android:gravity="center_horizontal"
34+
android:textColor="?android:attr/textColorPrimary"
35+
android:textSize="24sp"
36+
android:paddingLeft="@dimen/bottom_sheet_title_padding"
37+
android:paddingRight="@dimen/bottom_sheet_title_padding" />
38+
39+
<TextView
40+
android:layout_width="match_parent"
41+
android:layout_height="wrap_content"
42+
android:gravity="center_horizontal"
43+
android:paddingTop="4dp"
44+
android:fontFamily="sans-serif"
45+
android:textColor="?android:attr/textColorTertiary"
46+
android:textSize="14sp"
47+
android:text="@string/long_press_widget_to_add"/>
48+
49+
<include layout="@layout/widgets_scroll_container"
50+
android:id="@+id/widgets"
51+
android:layout_width="wrap_content"
52+
android:layout_height="wrap_content"
53+
android:layout_marginTop="45dp"
54+
android:layout_marginBottom="40dp"/>
55+
56+
</com.android.launcher3.widget.WidgetsBottomSheet>

shade/res/values/dimens.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
<dimen name="all_apps_min_top_inset">16dp</dimen>
1919

20+
<!-- Bottom sheet -->
21+
<dimen name="bottom_sheet_title_padding">16dp</dimen>
22+
2023
<!-- Dock search bar -->
2124
<dimen name="qsb_wrapper_height">56dp</dimen>
2225
<dimen name="qsb_widget_padding">8dp</dimen>

0 commit comments

Comments
 (0)