From 8e72fe23d65534bc851dfded2f4150099b194a8c Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Wed, 14 Apr 2021 13:00:21 -0400 Subject: Change brightness icon depending on level Test: manual Fixes: 185363990 Change-Id: Iffa04c53757d91c6cddff628ae4f86cadcb468f0 --- packages/SystemUI/res/drawable/ic_brightness.xml | 48 ++++++++++------------ .../SystemUI/res/drawable/ic_brightness_full.xml | 29 +++++++++++++ .../SystemUI/res/drawable/ic_brightness_low.xml | 10 +++++ .../SystemUI/res/drawable/ic_brightness_medium.xml | 10 +++++ .../SystemUI/res/drawable/ic_brightness_thumb.xml | 29 ------------- .../settings/brightness/BrightnessSliderView.java | 2 +- 6 files changed, 71 insertions(+), 57 deletions(-) create mode 100644 packages/SystemUI/res/drawable/ic_brightness_full.xml create mode 100644 packages/SystemUI/res/drawable/ic_brightness_low.xml create mode 100644 packages/SystemUI/res/drawable/ic_brightness_medium.xml delete mode 100644 packages/SystemUI/res/drawable/ic_brightness_thumb.xml diff --git a/packages/SystemUI/res/drawable/ic_brightness.xml b/packages/SystemUI/res/drawable/ic_brightness.xml index f44333236a12..842af26ddfd3 100644 --- a/packages/SystemUI/res/drawable/ic_brightness.xml +++ b/packages/SystemUI/res/drawable/ic_brightness.xml @@ -1,29 +1,23 @@ - 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. ---> - - - - - - + + + + + + + \ No newline at end of file diff --git a/packages/SystemUI/res/drawable/ic_brightness_full.xml b/packages/SystemUI/res/drawable/ic_brightness_full.xml new file mode 100644 index 000000000000..f44333236a12 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_brightness_full.xml @@ -0,0 +1,29 @@ + + + + + + + diff --git a/packages/SystemUI/res/drawable/ic_brightness_low.xml b/packages/SystemUI/res/drawable/ic_brightness_low.xml new file mode 100644 index 000000000000..b463556e20d0 --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_brightness_low.xml @@ -0,0 +1,10 @@ + + + diff --git a/packages/SystemUI/res/drawable/ic_brightness_medium.xml b/packages/SystemUI/res/drawable/ic_brightness_medium.xml new file mode 100644 index 000000000000..80acc4d565fa --- /dev/null +++ b/packages/SystemUI/res/drawable/ic_brightness_medium.xml @@ -0,0 +1,10 @@ + + + diff --git a/packages/SystemUI/res/drawable/ic_brightness_thumb.xml b/packages/SystemUI/res/drawable/ic_brightness_thumb.xml deleted file mode 100644 index d72198874b73..000000000000 --- a/packages/SystemUI/res/drawable/ic_brightness_thumb.xml +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - diff --git a/packages/SystemUI/src/com/android/systemui/settings/brightness/BrightnessSliderView.java b/packages/SystemUI/src/com/android/systemui/settings/brightness/BrightnessSliderView.java index dbd6758b090d..b60fd1326cd3 100644 --- a/packages/SystemUI/src/com/android/systemui/settings/brightness/BrightnessSliderView.java +++ b/packages/SystemUI/src/com/android/systemui/settings/brightness/BrightnessSliderView.java @@ -48,7 +48,7 @@ public class BrightnessSliderView extends FrameLayout { super(context, attrs); } - // Inflated from quick_settings_brightness_dialog or quick_settings_brightness_dialog_thick + // Inflated from quick_settings_brightness_dialog @Override protected void onFinishInflate() { super.onFinishInflate(); -- cgit v1.2.3-59-g8ed1b