Skip to content

Commit 2c3e9e1

Browse files
committed
New fonts in notifications.
Bug: 6418617 Change-Id: Ie7ed4530c737e1d4fe1f7fab61dfae162ea263a3
1 parent 70334ac commit 2c3e9e1

File tree

3 files changed

+12
-24
lines changed

3 files changed

+12
-24
lines changed

core/res/res/layout/notification_template_inbox.xml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@
9393
android:layout_height="0dp"
9494
android:singleLine="true"
9595
android:ellipsize="end"
96-
android:paddingTop="4dp"
97-
android:paddingBottom="4dp"
9896
android:visibility="gone"
9997
android:layout_weight="1"
10098
/>
@@ -104,8 +102,6 @@
104102
android:layout_height="0dp"
105103
android:singleLine="true"
106104
android:ellipsize="end"
107-
android:paddingTop="4dp"
108-
android:paddingBottom="4dp"
109105
android:visibility="gone"
110106
android:layout_weight="1"
111107
/>
@@ -115,8 +111,6 @@
115111
android:layout_height="0dp"
116112
android:singleLine="true"
117113
android:ellipsize="end"
118-
android:paddingTop="4dp"
119-
android:paddingBottom="4dp"
120114
android:visibility="gone"
121115
android:layout_weight="1"
122116
/>
@@ -126,8 +120,6 @@
126120
android:layout_height="0dp"
127121
android:singleLine="true"
128122
android:ellipsize="end"
129-
android:paddingTop="4dp"
130-
android:paddingBottom="4dp"
131123
android:visibility="gone"
132124
android:layout_weight="1"
133125
/>
@@ -137,8 +129,6 @@
137129
android:layout_height="0dp"
138130
android:singleLine="true"
139131
android:ellipsize="end"
140-
android:paddingTop="4dp"
141-
android:paddingBottom="4dp"
142132
android:visibility="gone"
143133
android:layout_weight="1"
144134
/>

core/res/res/values/styles.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -239,22 +239,25 @@ please see styles_device_defaults.xml.
239239
</style>
240240
<!-- Notification content styles -->
241241
<style name="TextAppearance.StatusBar.EventContent">
242-
<item name="android:textColor">?android:attr/textColorSecondary</item>
243-
<item name="android:textSize">12sp</item>
242+
<item name="android:textColor">#808080</item>
243+
<item name="android:textSize">14dp</item>
244244
</style>
245245
<style name="TextAppearance.StatusBar.EventContent.Title">
246-
<item name="android:textColor">?android:attr/textColorPrimary</item>
247-
<item name="android:textSize">16sp</item>
246+
<item name="android:textColor">#ffffff</item>
247+
<item name="android:fontFamily">sans-serif-light</item>
248+
<item name="android:textSize">18dp</item>
248249
<item name="android:textStyle">bold</item>
249250
</style>
250251
<style name="TextAppearance.StatusBar.EventContent.Line2">
251-
<item name="android:textSize">13sp</item>
252+
<!-- inherit all -->
252253
</style>
253254
<style name="TextAppearance.StatusBar.EventContent.Info">
254-
<!-- inherit all -->
255+
<item name="android:textSize">12sp</item>
256+
<item name="android:textColor">#666666</item>
255257
</style>
256258
<style name="TextAppearance.StatusBar.EventContent.Time">
257-
<!-- inherit all -->
259+
<item name="android:textSize">12sp</item>
260+
<item name="android:textColor">#666666</item>
258261
</style>
259262

260263
<style name="TextAppearance.Small.CalendarViewWeekDayView">

packages/SystemUI/res/values/styles.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616

1717
<resources xmlns:android="http://schemas.android.com/apk/res/android">
1818

19-
<style name="TextAppearance.StatusBar.Title" parent="@*android:style/TextAppearance.StatusBar">
20-
<item name="android:textAppearance">?android:attr/textAppearanceSmall</item>
21-
<item name="android:textStyle">bold</item>
22-
<item name="android:textColor">?android:attr/textColorPrimary</item>
23-
</style>
24-
2519
<style name="TextAppearance.StatusBar.IntruderAlert"
2620
parent="@*android:style/TextAppearance.StatusBar">
2721
</style>
@@ -48,7 +42,7 @@
4842
</style>
4943

5044
<style name="TextAppearance.StatusBar.Date" parent="@*android:style/TextAppearance.StatusBar.Icon">
51-
<item name="android:textSize">16sp</item>
45+
<item name="android:textSize">16dp</item>
5246
<item name="android:textStyle">normal</item>
5347
<item name="android:textColor">@android:color/holo_blue_light</item>
5448
</style>
@@ -57,6 +51,7 @@
5751

5852
<style name="TextAppearance.StatusBar.Expanded.Clock">
5953
<item name="android:textSize">32dp</item>
54+
<item name="android:fontFamily">sans-serif-light</item>
6055
<item name="android:textStyle">normal</item>
6156
<item name="android:textColor">#ffffff</item>
6257
</style>

0 commit comments

Comments
 (0)