Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13a44f71 authored by Nicholas Chum's avatar Nicholas Chum Committed by Gerrit Code Review
Browse files

SystemUI: Expose Add Tiles DetailedView Title and Icon Color

Completely expose all QS Add Tiles DetailedView Texts and Icon tints
for the themer.

Change-Id: I02793acd749dcdf66a2c7fcacc4b79b89556ca01
parent b8d357d0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -97,4 +97,10 @@
    <color name="play_button_text_color">#000000</color>
    <color name="zen_ic_close_tint_color">@android:color/white</color>
    <color name="header_debug_info_text_color">#00A040</color>

    <!-- QS Detailed View Text and Icon Colors -->
    <color name="qs_detailed_default_text_color">@android:color/white</color>
    <color name="qs_detailed_expansion_indicator_color">@color/qs_title_text_color</color>
    <color name="qs_detailed_title_text_color">@color/qs_title_text_color</color>
    <color name="qs_detailed_icon_tint_color">@color/qs_title_text_color</color>
</resources>
+7 −4
Original line number Diff line number Diff line
@@ -1838,11 +1838,14 @@ public class QSDragPanel extends QSPanel implements View.OnDragListener, View.On
            title.setText(group);

            if (isExpanded) {
                expansionIndicator.setColorFilter(0xFF80cbc4, PorterDuff.Mode.SRC_ATOP);
                systemOrAppIcon.setColorFilter(0xFF80cbc4, PorterDuff.Mode.SRC_ATOP);
                title.setTextColor(0xFF80cbc4);
                expansionIndicator.setColorFilter(
                  context.getColor(
                    R.color.qs_detailed_expansion_indicator_color), PorterDuff.Mode.SRC_ATOP);
                systemOrAppIcon.setColorFilter(
                  context.getColor(R.color.qs_detailed_icon_tint_color), PorterDuff.Mode.SRC_ATOP);
                title.setTextColor(context.getColor(R.color.qs_detailed_title_text_color));
            } else {
                title.setTextColor(Color.WHITE);
                title.setTextColor(context.getColor(R.color.qs_detailed_default_text_color);
                systemOrAppIcon.setColorFilter(null);
                expansionIndicator.setColorFilter(null);
            }