|
28 | 28 | import android.view.ViewGroup; |
29 | 29 | import android.widget.ImageView; |
30 | 30 | import android.widget.TextView; |
| 31 | +import android.graphics.Color; |
31 | 32 |
|
32 | 33 | import com.android.settingslib.Utils; |
33 | 34 | import com.android.systemui.FontSizeUtils; |
@@ -148,15 +149,33 @@ protected void handleStateChanged(QSTile.State state) { |
148 | 149 | mLabel.setTextColor(mColorLabelActive); |
149 | 150 | mSecondLine.setTextColor(mColorLabelActive); |
150 | 151 | mExpandIndicator.setImageTintList(mColorLabelActive); |
| 152 | + } else if (setQsLabelUseNewTint == 3) { |
| 153 | + mLabel.setTextColor(Color.WHITE); |
| 154 | + mSecondLine.setTextColor(Color.WHITE); |
| 155 | + mExpandIndicator.setImageTintList(mColorLabelActive); |
151 | 156 | } else { |
152 | 157 | mLabel.setTextColor(mColorLabelDefault); |
153 | 158 | mSecondLine.setTextColor(mColorLabelDefault); |
154 | 159 | mExpandIndicator.setImageTintList(mColorLabelDefault); |
155 | 160 | } |
156 | 161 | } else if (state.state == Tile.STATE_INACTIVE) { |
157 | | - mLabel.setTextColor(mColorLabelDefault); |
158 | | - mSecondLine.setTextColor(mColorLabelDefault); |
159 | | - mExpandIndicator.setImageTintList(mColorLabelDefault); |
| 162 | + if (setQsLabelUseNewTint == 1) { |
| 163 | + mLabel.setTextColor(mColorLabelActiveRandom); |
| 164 | + mSecondLine.setTextColor(mColorLabelActiveRandom); |
| 165 | + mExpandIndicator.setImageTintList(mColorLabelDefault); |
| 166 | + } else if (setQsLabelUseNewTint == 2) { |
| 167 | + mLabel.setTextColor(mColorLabelActive); |
| 168 | + mSecondLine.setTextColor(mColorLabelActive); |
| 169 | + mExpandIndicator.setImageTintList(mColorLabelActive); |
| 170 | + } else if (setQsLabelUseNewTint == 3) { |
| 171 | + mLabel.setTextColor(Color.WHITE); |
| 172 | + mSecondLine.setTextColor(Color.WHITE); |
| 173 | + mExpandIndicator.setImageTintList(mColorLabelActive); |
| 174 | + } else { |
| 175 | + mLabel.setTextColor(mColorLabelDefault); |
| 176 | + mSecondLine.setTextColor(mColorLabelDefault); |
| 177 | + mExpandIndicator.setImageTintList(mColorLabelDefault); |
| 178 | + } |
160 | 179 | } |
161 | 180 | boolean dualTarget = DUAL_TARGET_ALLOWED && state.dualTarget; |
162 | 181 | mExpandIndicator.setVisibility(View.GONE); |
|
0 commit comments