summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDave Kover <dkover@cyngn.com>2015-06-15 12:46:37 -0700
committerClark Scheff <clark@cyngn.com>2015-10-27 18:20:26 -0700
commit738f5a87a361c9c1027e3764072a37a50467fe6d (patch)
tree8659af941295b207a90a474c7e308080f3d46b31 /packages
parent6a12022505077f2c6cc06d89aa6214d1de1de978 (diff)
downloadframeworks_base-738f5a87a361c9c1027e3764072a37a50467fe6d.zip
frameworks_base-738f5a87a361c9c1027e3764072a37a50467fe6d.tar.gz
frameworks_base-738f5a87a361c9c1027e3764072a37a50467fe6d.tar.bz2
SystemUI: Expose values in status bar expanded header
Expose values related to weather and battery status. Consolidate attributes into styles and remove the separate values. Also expose the alarm status color. Themers gotta theme. Change-Id: I599cb2e697aa1b714c8c383eb6fb9577b7347180
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/res/layout/status_bar_expanded_header.xml10
-rw-r--r--packages/SystemUI/res/values/cm_colors.xml11
-rw-r--r--packages/SystemUI/res/values/cm_dimens.xml5
-rw-r--r--packages/SystemUI/res/values/cm_styles.xml31
4 files changed, 52 insertions, 5 deletions
diff --git a/packages/SystemUI/res/layout/status_bar_expanded_header.xml b/packages/SystemUI/res/layout/status_bar_expanded_header.xml
index eb2daa3..12c00cc 100644
--- a/packages/SystemUI/res/layout/status_bar_expanded_header.xml
+++ b/packages/SystemUI/res/layout/status_bar_expanded_header.xml
@@ -91,7 +91,7 @@
android:layout_gravity="center_vertical"
android:layout_marginStart="@dimen/header_battery_margin_expanded"
android:paddingEnd="@dimen/battery_level_padding_end"
- android:textColor="#ffffff"
+ android:textColor="@color/status_bar_battery_level_text_color"
android:textSize="@dimen/battery_level_text_size"
android:importantForAccessibility="noHideDescendants"/>
</LinearLayout>
@@ -159,7 +159,7 @@
android:layout_marginBottom="4dp"
android:drawablePadding="6dp"
android:drawableStart="@drawable/ic_access_alarms_small"
- android:textColor="#64ffffff"
+ android:textColor="@color/status_bar_alarm_status_text_color"
android:textAppearance="@style/TextAppearance.StatusBar.Expanded.Date"
android:paddingEnd="6dp"
android:paddingStart="6dp"
@@ -183,19 +183,21 @@
android:id="@+id/weather_line_1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingEnd="16dp"
+ android:paddingEnd="@dimen/status_bar_weather_padding_end"
android:gravity="right"
android:textColor="@color/status_bar_temperature_text_color"
android:textSize="@dimen/weather_text_size"
+ android:textAppearance="@style/TextAppearance.StatusBar.Expanded.WeatherTemp"
android:importantForAccessibility="noHideDescendants"/>
<TextView
android:id="@+id/weather_line_2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:paddingEnd="16dp"
+ android:paddingEnd="@dimen/status_bar_weather_padding_end"
android:gravity="right"
android:textColor="@color/status_bar_temperature_location_text_color"
android:textSize="@dimen/weather_text_size"
+ android:textAppearance="@style/TextAppearance.StatusBar.Expanded.WeatherLocation"
android:importantForAccessibility="noHideDescendants"/>
</LinearLayout>
diff --git a/packages/SystemUI/res/values/cm_colors.xml b/packages/SystemUI/res/values/cm_colors.xml
index fcb3e5e..74410bf 100644
--- a/packages/SystemUI/res/values/cm_colors.xml
+++ b/packages/SystemUI/res/values/cm_colors.xml
@@ -51,4 +51,15 @@
<!-- Navigation button ripple color -->
<color name="navbutton_ripple_color">#FFFFFFFF</color>
+
+ <!-- Expanded Status Bar Weather Text Colors -->
+ <color name="status_bar_temperature_text_color">#FFFFFFFF</color>
+ <color name="status_bar_temperature_location_text_color">#FFFFFFFF</color>
+
+ <!-- Expanded Status Bar Alarm Status Text Color -->
+ <color name="status_bar_alarm_status_text_color">#64ffffff</color>
+
+ <!-- Expanded Status Bar Battery Level Text Color -->
+ <color name="status_bar_battery_level_text_color">#ffffff</color>
+
</resources>
diff --git a/packages/SystemUI/res/values/cm_dimens.xml b/packages/SystemUI/res/values/cm_dimens.xml
index 5677b2c..8c3f91b 100644
--- a/packages/SystemUI/res/values/cm_dimens.xml
+++ b/packages/SystemUI/res/values/cm_dimens.xml
@@ -15,7 +15,7 @@
limitations under the License.
-->
<resources>
- <dimen name="weather_text_size">12sp</dimen>
+
<dimen name="detail_radio_group_padding_left">16dp</dimen>
<dimen name="detail_radio_group_padding">8dp</dimen>
@@ -36,4 +36,7 @@
<!-- Side padding for the Quick Settings panel -->
<dimen name="qs_panel_side_padding">@dimen/notification_side_padding</dimen>
+ <!-- Padding end for weather text -->
+ <dimen name="status_bar_weather_padding_end">16dp</dimen>
+
</resources>
diff --git a/packages/SystemUI/res/values/cm_styles.xml b/packages/SystemUI/res/values/cm_styles.xml
new file mode 100644
index 0000000..40b8929
--- /dev/null
+++ b/packages/SystemUI/res/values/cm_styles.xml
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2015 The CyanogenMod 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>
+
+ <style name="TextAppearance.StatusBar.Expanded.WeatherTemp">
+ <item name="android:textSize">12sp</item>
+ <item name="android:textStyle">normal</item>
+ <item name="android:textColor">@color/status_bar_temperature_text_color</item>
+ </style>
+
+ <style name="TextAppearance.StatusBar.Expanded.WeatherLocation">
+ <item name="android:textSize">12sp</item>
+ <item name="android:textStyle">normal</item>
+ <item name="android:textColor">@color/status_bar_temperature_location_text_color</item>
+ </style>
+
+</resources>