QuickSettings: System accent color for seekbars.

Decouple system ui's seekbar's color from the platform
default.

Bug:15186962
Change-Id: I8e4f5605bf5f8be32b290e588d2d854e908f2387
This commit is contained in:
John Spurlock
2014-06-04 00:15:51 -04:00
parent 856edebad7
commit ed33da1734
3 changed files with 2 additions and 9 deletions

View File

@@ -35,7 +35,6 @@
android:layout_height="wrap_content"
android:layout_weight="1">
<SeekBar
style="?android:attr/seekBarStyle"
android:id="@+id/seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"

View File

@@ -197,6 +197,7 @@
<style name="systemui_theme" parent="@android:style/Theme.DeviceDefault">
<item name="android:colorPrimary">@color/primary_color</item>
<item name="android:colorControlActivated">@color/system_accent_color</item>
</style>
<style name="NotificationsQuickSettings">
@@ -213,11 +214,6 @@
<item name="android:colorControlActivated">#ffffffff</item>
</style>
<style name="QSAccentTheme" parent="@android:style/Theme.DeviceDefault">
<item name="android:colorControlNormal">@color/system_accent_color</item>
<item name="android:colorControlActivated">@color/system_accent_color</item>
</style>
<style name="BorderlessButton" parent="@android:style/Widget.Quantum.Button.Borderless" />
<style name="BorderlessButton.Tiny">

View File

@@ -22,7 +22,6 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.media.AudioManager;
import android.util.Log;
import android.view.ContextThemeWrapper;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnAttachStateChangeListener;
@@ -49,8 +48,7 @@ public class NotificationsTile extends QSTile<NotificationsTile.NotificationsSta
@Override
public View createDetailView(Context context, ViewGroup root) {
final Context themedContext = new ContextThemeWrapper(mContext, R.style.QSAccentTheme);
final View v = LayoutInflater.from(themedContext).inflate(R.layout.qs_detail, root, false);
final View v = LayoutInflater.from(context).inflate(R.layout.qs_detail, root, false);
final TextView title = (TextView) v.findViewById(android.R.id.title);
title.setText(R.string.quick_settings_notifications_label);
final View close = v.findViewById(android.R.id.button1);