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:
@@ -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"
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user