1 From 92c569669b916a82eb8b7983514e49cb5d2b6281 Mon Sep 17 00:00:00 2001
2 From: daveyannihilation <daveyannihilation@hotmail.com>
3 Date: Sun, 1 Jan 2017 01:47:53 -0700
4 Subject: [PATCH 31/39] SystemUI: Expose switch bar title
6 This is needed for the power notifications switchbar in SystemUI Tuner, amongst other things.
8 Change-Id: I86f04840c2be46519509556b8d0061cefe26f631
10 packages/SystemUI/res/layout/switch_bar.xml | 3 +--
11 packages/SystemUI/res/values/projekt_styles.xml | 24 ++++++++++++++++++++++++
12 2 files changed, 25 insertions(+), 2 deletions(-)
13 create mode 100644 packages/SystemUI/res/values/projekt_styles.xml
15 diff --git a/packages/SystemUI/res/layout/switch_bar.xml b/packages/SystemUI/res/layout/switch_bar.xml
16 index 41cdb78392a..344c5aa0531 100644
17 --- a/packages/SystemUI/res/layout/switch_bar.xml
18 +++ b/packages/SystemUI/res/layout/switch_bar.xml
20 android:paddingStart="48dp"
22 android:ellipsize="end"
23 - android:textAppearance="@android:style/TextAppearance.Material.Title"
24 - android:textColor="?android:attr/textColorPrimaryInverse"
25 + android:textAppearance="@style/TextAppearance.SwitchBar"
26 android:textAlignment="viewStart"
27 android:text="@string/switch_bar_on" />
29 diff --git a/packages/SystemUI/res/values/projekt_styles.xml b/packages/SystemUI/res/values/projekt_styles.xml
31 index 00000000000..f49834bc202
33 +++ b/packages/SystemUI/res/values/projekt_styles.xml
35 +<?xml version="1.0" encoding="utf-8"?>
37 + Copyright (c) 2016 Projekt Substratum
39 + Licensed under the Apache License, Version 2.0 (the "License");
40 + you may not use this file except in compliance with the License.
41 + You may obtain a copy of the License at
43 + http://www.apache.org/licenses/LICENSE-2.0
45 + Unless required by applicable law or agreed to in writing, software
46 + distributed under the License is distributed on an "AS IS" BASIS,
47 + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
48 + See the License for the specific language governing permissions and
49 + limitations under the License.
53 + <!-- Switch bar text appearance -->
54 + <style name="TextAppearance.SwitchBar" parent="@android:style/TextAppearance.Material.Title">
55 + <item name="android:textColor">?android:attr/textColorPrimaryInverse</item>