Add icons for display adjustment quick settings
BUG: 13028934 Change-Id: I437abc48ad34364995b37c504019f7a4871c8031
BIN
packages/SystemUI/res/drawable-hdpi/ic_qs_color_space_alpha.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
packages/SystemUI/res/drawable-hdpi/ic_qs_contrast_alpha.png
Normal file
After Width: | Height: | Size: 1.0 KiB |
BIN
packages/SystemUI/res/drawable-hdpi/ic_qs_inversion_alpha.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
packages/SystemUI/res/drawable-ldpi/ic_qs_color_space_alpha.png
Normal file
After Width: | Height: | Size: 543 B |
BIN
packages/SystemUI/res/drawable-ldpi/ic_qs_contrast_alpha.png
Normal file
After Width: | Height: | Size: 509 B |
BIN
packages/SystemUI/res/drawable-ldpi/ic_qs_inversion_alpha.png
Normal file
After Width: | Height: | Size: 532 B |
BIN
packages/SystemUI/res/drawable-mdpi/ic_qs_color_space_alpha.png
Normal file
After Width: | Height: | Size: 852 B |
BIN
packages/SystemUI/res/drawable-mdpi/ic_qs_contrast_alpha.png
Normal file
After Width: | Height: | Size: 800 B |
BIN
packages/SystemUI/res/drawable-mdpi/ic_qs_inversion_alpha.png
Normal file
After Width: | Height: | Size: 844 B |
BIN
packages/SystemUI/res/drawable-xhdpi/ic_qs_color_space_alpha.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
packages/SystemUI/res/drawable-xhdpi/ic_qs_contrast_alpha.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
packages/SystemUI/res/drawable-xhdpi/ic_qs_inversion_alpha.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.8 KiB |
BIN
packages/SystemUI/res/drawable-xxhdpi/ic_qs_contrast_alpha.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
packages/SystemUI/res/drawable-xxhdpi/ic_qs_inversion_alpha.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
20
packages/SystemUI/res/drawable/ic_qs_color_space_off.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/ic_qs_color_space_alpha"
|
||||
android:tint="@color/ic_qs_off" />
|
20
packages/SystemUI/res/drawable/ic_qs_color_space_on.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/ic_qs_color_space_alpha"
|
||||
android:tint="@color/ic_qs_on" />
|
20
packages/SystemUI/res/drawable/ic_qs_contrast_off.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/ic_qs_contrast_alpha"
|
||||
android:tint="@color/ic_qs_off" />
|
20
packages/SystemUI/res/drawable/ic_qs_contrast_on.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/ic_qs_contrast_alpha"
|
||||
android:tint="@color/ic_qs_on" />
|
20
packages/SystemUI/res/drawable/ic_qs_inversion_off.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/ic_qs_inversion_alpha"
|
||||
android:tint="@color/ic_qs_off" />
|
20
packages/SystemUI/res/drawable/ic_qs_inversion_on.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2014 The Android Open Source Project
|
||||
|
||||
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.
|
||||
-->
|
||||
|
||||
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:src="@drawable/ic_qs_inversion_alpha"
|
||||
android:tint="@color/ic_qs_on" />
|
@ -39,4 +39,10 @@
|
||||
<color name="status_bar_clock_color">#FFFFFFFF</color>
|
||||
<drawable name="notification_item_background_color">#ff111111</drawable>
|
||||
<drawable name="notification_item_background_color_pressed">#ff454545</drawable>
|
||||
|
||||
<!-- Tint color for inactive Quick Settings icons. -->
|
||||
<color name="ic_qs_off">#ff404040</color>
|
||||
|
||||
<!-- Tint color for active Quick Settings icons. -->
|
||||
<color name="ic_qs_on">#ffffffff</color>
|
||||
</resources>
|
||||
|
@ -996,8 +996,8 @@ class QuickSettingsModel implements BluetoothStateChangeCallback,
|
||||
mInversionState.toggled = enabled;
|
||||
mInversionState.type = type;
|
||||
// TODO: Add real icon assets.
|
||||
mInversionState.iconId = enabled ? R.drawable.ic_qs_bluetooth_on
|
||||
: R.drawable.ic_qs_bluetooth_off;
|
||||
mInversionState.iconId = enabled ? R.drawable.ic_qs_inversion_on
|
||||
: R.drawable.ic_qs_inversion_off;
|
||||
mInversionState.label = res.getString(R.string.quick_settings_inversion_label);
|
||||
mInversionCallback.refreshView(mInversionTile, mInversionState);
|
||||
}
|
||||
@ -1026,8 +1026,8 @@ class QuickSettingsModel implements BluetoothStateChangeCallback,
|
||||
mContrastState.contrast = contrast;
|
||||
mContrastState.brightness = brightness;
|
||||
// TODO: Add real icon assets.
|
||||
mContrastState.iconId = enabled ? R.drawable.ic_qs_bluetooth_on
|
||||
: R.drawable.ic_qs_bluetooth_off;
|
||||
mContrastState.iconId = enabled ? R.drawable.ic_qs_contrast_on
|
||||
: R.drawable.ic_qs_contrast_off;
|
||||
mContrastState.label = res.getString(R.string.quick_settings_contrast_label);
|
||||
mContrastCallback.refreshView(mContrastTile, mContrastState);
|
||||
}
|
||||
@ -1053,8 +1053,8 @@ class QuickSettingsModel implements BluetoothStateChangeCallback,
|
||||
mColorSpaceState.toggled = enabled;
|
||||
mColorSpaceState.type = type;
|
||||
// TODO: Add real icon assets.
|
||||
mColorSpaceState.iconId = enabled ? R.drawable.ic_qs_bluetooth_on
|
||||
: R.drawable.ic_qs_bluetooth_off;
|
||||
mColorSpaceState.iconId = enabled ? R.drawable.ic_qs_color_space_on
|
||||
: R.drawable.ic_qs_color_space_off;
|
||||
mColorSpaceState.label = res.getString(R.string.quick_settings_color_space_label);
|
||||
mColorSpaceCallback.refreshView(mColorSpaceTile, mColorSpaceState);
|
||||
}
|
||||
|