diff options
| author | 2010-08-05 21:09:38 -0700 | |
|---|---|---|
| committer | 2010-08-11 11:25:39 -0700 | |
| commit | 8584909e7fa0fba19077b789f9b5482d7feafbfd (patch) | |
| tree | f6dfa587bd6c9c9b3fbe158aa44fe1ff27f70014 | |
| parent | 4c2d70d4e7a51c52adfbf09431b4ecf73886008a (diff) | |
New assets for checkboxes and radio buttons.
Added a dark/light variation.
Other files that might also need an update:
btn_check_label_background_light.9.png
btn_radio_label_background_light.9.png
btn_check_label_background.9.png
btn_radio_label_background.9.png
Pressed state is nearly invisible in light theme. To be tested with new background color.
Change-Id: Ibd312044364e08f1e789830ddd4c3af5cef30be1
72 files changed, 127 insertions, 11 deletions
diff --git a/core/res/res/drawable-hdpi/btn_check_label_background_light.9.png b/core/res/res/drawable-hdpi/btn_check_label_background_light.9.png Binary files differnew file mode 100644 index 000000000000..97e680664755 --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_label_background_light.9.png diff --git a/core/res/res/drawable-hdpi/btn_check_off.png b/core/res/res/drawable-hdpi/btn_check_off.png Binary files differindex aad9ef7800fd..911e1aa6598c 100644 --- a/core/res/res/drawable-hdpi/btn_check_off.png +++ b/core/res/res/drawable-hdpi/btn_check_off.png diff --git a/core/res/res/drawable-hdpi/btn_check_off_disable.png b/core/res/res/drawable-hdpi/btn_check_off_disable.png Binary files differindex eaee9e0bec4d..d72e2b95b810 100644 --- a/core/res/res/drawable-hdpi/btn_check_off_disable.png +++ b/core/res/res/drawable-hdpi/btn_check_off_disable.png diff --git a/core/res/res/drawable-hdpi/btn_check_off_disable_focused.png b/core/res/res/drawable-hdpi/btn_check_off_disable_focused.png Binary files differindex 6d2c2938a5a5..d72e2b95b810 100644 --- a/core/res/res/drawable-hdpi/btn_check_off_disable_focused.png +++ b/core/res/res/drawable-hdpi/btn_check_off_disable_focused.png diff --git a/core/res/res/drawable-hdpi/btn_check_off_disable_focused_light.png b/core/res/res/drawable-hdpi/btn_check_off_disable_focused_light.png Binary files differnew file mode 100644 index 000000000000..240a0444e1eb --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_off_disable_focused_light.png diff --git a/core/res/res/drawable-hdpi/btn_check_off_disable_light.png b/core/res/res/drawable-hdpi/btn_check_off_disable_light.png Binary files differnew file mode 100644 index 000000000000..240a0444e1eb --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_off_disable_light.png diff --git a/core/res/res/drawable-hdpi/btn_check_off_light.png b/core/res/res/drawable-hdpi/btn_check_off_light.png Binary files differnew file mode 100644 index 000000000000..4ca3c56d3f3c --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_off_light.png diff --git a/core/res/res/drawable-hdpi/btn_check_off_pressed.png b/core/res/res/drawable-hdpi/btn_check_off_pressed.png Binary files differindex 1c442e9b45b9..08f41812ff45 100644 --- a/core/res/res/drawable-hdpi/btn_check_off_pressed.png +++ b/core/res/res/drawable-hdpi/btn_check_off_pressed.png diff --git a/core/res/res/drawable-hdpi/btn_check_off_pressed_light.png b/core/res/res/drawable-hdpi/btn_check_off_pressed_light.png Binary files differnew file mode 100644 index 000000000000..d3754ddb42ad --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_off_pressed_light.png diff --git a/core/res/res/drawable-hdpi/btn_check_off_selected.png b/core/res/res/drawable-hdpi/btn_check_off_selected.png Binary files differindex b852b2cb2f06..264f102132ed 100644 --- a/core/res/res/drawable-hdpi/btn_check_off_selected.png +++ b/core/res/res/drawable-hdpi/btn_check_off_selected.png diff --git a/core/res/res/drawable-hdpi/btn_check_off_selected_light.png b/core/res/res/drawable-hdpi/btn_check_off_selected_light.png Binary files differnew file mode 100644 index 000000000000..48506bf721ba --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_off_selected_light.png diff --git a/core/res/res/drawable-hdpi/btn_check_on.png b/core/res/res/drawable-hdpi/btn_check_on.png Binary files differindex cd5c1814344a..5541c67ba042 100644 --- a/core/res/res/drawable-hdpi/btn_check_on.png +++ b/core/res/res/drawable-hdpi/btn_check_on.png diff --git a/core/res/res/drawable-hdpi/btn_check_on_disable.png b/core/res/res/drawable-hdpi/btn_check_on_disable.png Binary files differindex b4fc51a1bf34..7805458d2cdc 100644 --- a/core/res/res/drawable-hdpi/btn_check_on_disable.png +++ b/core/res/res/drawable-hdpi/btn_check_on_disable.png diff --git a/core/res/res/drawable-hdpi/btn_check_on_disable_focused.png b/core/res/res/drawable-hdpi/btn_check_on_disable_focused.png Binary files differindex bf346471edd5..7805458d2cdc 100644 --- a/core/res/res/drawable-hdpi/btn_check_on_disable_focused.png +++ b/core/res/res/drawable-hdpi/btn_check_on_disable_focused.png diff --git a/core/res/res/drawable-hdpi/btn_check_on_disable_focused_light.png b/core/res/res/drawable-hdpi/btn_check_on_disable_focused_light.png Binary files differnew file mode 100644 index 000000000000..4e268d5168cb --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_on_disable_focused_light.png diff --git a/core/res/res/drawable-hdpi/btn_check_on_disable_light.png b/core/res/res/drawable-hdpi/btn_check_on_disable_light.png Binary files differnew file mode 100644 index 000000000000..4e268d5168cb --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_on_disable_light.png diff --git a/core/res/res/drawable-hdpi/btn_check_on_light.png b/core/res/res/drawable-hdpi/btn_check_on_light.png Binary files differnew file mode 100644 index 000000000000..768c4afaed20 --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_on_light.png diff --git a/core/res/res/drawable-hdpi/btn_check_on_pressed.png b/core/res/res/drawable-hdpi/btn_check_on_pressed.png Binary files differindex fa5c7a23d932..37e3953c87b3 100644 --- a/core/res/res/drawable-hdpi/btn_check_on_pressed.png +++ b/core/res/res/drawable-hdpi/btn_check_on_pressed.png diff --git a/core/res/res/drawable-hdpi/btn_check_on_pressed_light.png b/core/res/res/drawable-hdpi/btn_check_on_pressed_light.png Binary files differnew file mode 100644 index 000000000000..fc29e46248ab --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_on_pressed_light.png diff --git a/core/res/res/drawable-hdpi/btn_check_on_selected.png b/core/res/res/drawable-hdpi/btn_check_on_selected.png Binary files differindex a6a21adc1e02..a0beac44afc8 100644 --- a/core/res/res/drawable-hdpi/btn_check_on_selected.png +++ b/core/res/res/drawable-hdpi/btn_check_on_selected.png diff --git a/core/res/res/drawable-hdpi/btn_check_on_selected_light.png b/core/res/res/drawable-hdpi/btn_check_on_selected_light.png Binary files differnew file mode 100644 index 000000000000..5df45c74f140 --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_check_on_selected_light.png diff --git a/core/res/res/drawable-hdpi/btn_radio_label_background_light.9.png b/core/res/res/drawable-hdpi/btn_radio_label_background_light.9.png Binary files differnew file mode 100644 index 000000000000..45c5c6a76e19 --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_radio_label_background_light.9.png diff --git a/core/res/res/drawable-hdpi/btn_radio_off.png b/core/res/res/drawable-hdpi/btn_radio_off.png Binary files differindex c0b14aa4db86..301c97df691b 100644 --- a/core/res/res/drawable-hdpi/btn_radio_off.png +++ b/core/res/res/drawable-hdpi/btn_radio_off.png diff --git a/core/res/res/drawable-hdpi/btn_radio_off_light.png b/core/res/res/drawable-hdpi/btn_radio_off_light.png Binary files differnew file mode 100644 index 000000000000..657c8e55b8e9 --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_radio_off_light.png diff --git a/core/res/res/drawable-hdpi/btn_radio_off_pressed.png b/core/res/res/drawable-hdpi/btn_radio_off_pressed.png Binary files differindex 318958187c0e..5e6ef2b947df 100644 --- a/core/res/res/drawable-hdpi/btn_radio_off_pressed.png +++ b/core/res/res/drawable-hdpi/btn_radio_off_pressed.png diff --git a/core/res/res/drawable-hdpi/btn_radio_off_pressed_light.png b/core/res/res/drawable-hdpi/btn_radio_off_pressed_light.png Binary files differnew file mode 100644 index 000000000000..342bf1168c3f --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_radio_off_pressed_light.png diff --git a/core/res/res/drawable-hdpi/btn_radio_off_selected.png b/core/res/res/drawable-hdpi/btn_radio_off_selected.png Binary files differindex f337703e2180..d11ae858a507 100644 --- a/core/res/res/drawable-hdpi/btn_radio_off_selected.png +++ b/core/res/res/drawable-hdpi/btn_radio_off_selected.png diff --git a/core/res/res/drawable-hdpi/btn_radio_off_selected_light.png b/core/res/res/drawable-hdpi/btn_radio_off_selected_light.png Binary files differnew file mode 100644 index 000000000000..68bd1dfee468 --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_radio_off_selected_light.png diff --git a/core/res/res/drawable-hdpi/btn_radio_on.png b/core/res/res/drawable-hdpi/btn_radio_on.png Binary files differindex c90d2eb05e93..5b0dbe842358 100644 --- a/core/res/res/drawable-hdpi/btn_radio_on.png +++ b/core/res/res/drawable-hdpi/btn_radio_on.png diff --git a/core/res/res/drawable-hdpi/btn_radio_on_light.png b/core/res/res/drawable-hdpi/btn_radio_on_light.png Binary files differnew file mode 100644 index 000000000000..45ae36b5e040 --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_radio_on_light.png diff --git a/core/res/res/drawable-hdpi/btn_radio_on_pressed.png b/core/res/res/drawable-hdpi/btn_radio_on_pressed.png Binary files differindex d79450b8e86a..c3a0d48f9fab 100644 --- a/core/res/res/drawable-hdpi/btn_radio_on_pressed.png +++ b/core/res/res/drawable-hdpi/btn_radio_on_pressed.png diff --git a/core/res/res/drawable-hdpi/btn_radio_on_pressed_light.png b/core/res/res/drawable-hdpi/btn_radio_on_pressed_light.png Binary files differnew file mode 100644 index 000000000000..ca223587650a --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_radio_on_pressed_light.png diff --git a/core/res/res/drawable-hdpi/btn_radio_on_selected.png b/core/res/res/drawable-hdpi/btn_radio_on_selected.png Binary files differindex db50c437c5a2..6c05f472aca7 100644 --- a/core/res/res/drawable-hdpi/btn_radio_on_selected.png +++ b/core/res/res/drawable-hdpi/btn_radio_on_selected.png diff --git a/core/res/res/drawable-hdpi/btn_radio_on_selected_light.png b/core/res/res/drawable-hdpi/btn_radio_on_selected_light.png Binary files differnew file mode 100644 index 000000000000..a17fa1edd124 --- /dev/null +++ b/core/res/res/drawable-hdpi/btn_radio_on_selected_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_label_background_light.9.png b/core/res/res/drawable-mdpi/btn_check_label_background_light.9.png Binary files differnew file mode 100644 index 000000000000..79367b8c5393 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_label_background_light.9.png diff --git a/core/res/res/drawable-mdpi/btn_check_off.png b/core/res/res/drawable-mdpi/btn_check_off.png Binary files differindex 56d3861542ea..5e44c293ca33 100644 --- a/core/res/res/drawable-mdpi/btn_check_off.png +++ b/core/res/res/drawable-mdpi/btn_check_off.png diff --git a/core/res/res/drawable-mdpi/btn_check_off_disable.png b/core/res/res/drawable-mdpi/btn_check_off_disable.png Binary files differindex e012afd28ddd..a603fb1aff9c 100644 --- a/core/res/res/drawable-mdpi/btn_check_off_disable.png +++ b/core/res/res/drawable-mdpi/btn_check_off_disable.png diff --git a/core/res/res/drawable-mdpi/btn_check_off_disable_focused.png b/core/res/res/drawable-mdpi/btn_check_off_disable_focused.png Binary files differindex 0837bbdb89f7..a603fb1aff9c 100644 --- a/core/res/res/drawable-mdpi/btn_check_off_disable_focused.png +++ b/core/res/res/drawable-mdpi/btn_check_off_disable_focused.png diff --git a/core/res/res/drawable-mdpi/btn_check_off_disable_focused_light.png b/core/res/res/drawable-mdpi/btn_check_off_disable_focused_light.png Binary files differnew file mode 100644 index 000000000000..69e9ff9eb1a2 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_off_disable_focused_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_off_disable_light.png b/core/res/res/drawable-mdpi/btn_check_off_disable_light.png Binary files differnew file mode 100644 index 000000000000..69e9ff9eb1a2 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_off_disable_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_off_light.png b/core/res/res/drawable-mdpi/btn_check_off_light.png Binary files differnew file mode 100644 index 000000000000..5b2ec928e324 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_off_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_off_pressed.png b/core/res/res/drawable-mdpi/btn_check_off_pressed.png Binary files differindex 984dfd750d30..611bb1d7a05b 100644 --- a/core/res/res/drawable-mdpi/btn_check_off_pressed.png +++ b/core/res/res/drawable-mdpi/btn_check_off_pressed.png diff --git a/core/res/res/drawable-mdpi/btn_check_off_pressed_light.png b/core/res/res/drawable-mdpi/btn_check_off_pressed_light.png Binary files differnew file mode 100644 index 000000000000..5a0ea441f37a --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_off_pressed_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_off_selected.png b/core/res/res/drawable-mdpi/btn_check_off_selected.png Binary files differindex 20842d41c8f1..aa28df22a4fb 100644 --- a/core/res/res/drawable-mdpi/btn_check_off_selected.png +++ b/core/res/res/drawable-mdpi/btn_check_off_selected.png diff --git a/core/res/res/drawable-mdpi/btn_check_off_selected_light.png b/core/res/res/drawable-mdpi/btn_check_off_selected_light.png Binary files differnew file mode 100644 index 000000000000..ade1136e0214 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_off_selected_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_on.png b/core/res/res/drawable-mdpi/btn_check_on.png Binary files differindex 791ac1d92c32..130d5629237c 100644 --- a/core/res/res/drawable-mdpi/btn_check_on.png +++ b/core/res/res/drawable-mdpi/btn_check_on.png diff --git a/core/res/res/drawable-mdpi/btn_check_on_disable.png b/core/res/res/drawable-mdpi/btn_check_on_disable.png Binary files differindex 6cb02f3e4674..f19972a447b0 100644 --- a/core/res/res/drawable-mdpi/btn_check_on_disable.png +++ b/core/res/res/drawable-mdpi/btn_check_on_disable.png diff --git a/core/res/res/drawable-mdpi/btn_check_on_disable_focused.png b/core/res/res/drawable-mdpi/btn_check_on_disable_focused.png Binary files differindex 8a73b33f0df5..f19972a447b0 100644 --- a/core/res/res/drawable-mdpi/btn_check_on_disable_focused.png +++ b/core/res/res/drawable-mdpi/btn_check_on_disable_focused.png diff --git a/core/res/res/drawable-mdpi/btn_check_on_disable_focused_light.png b/core/res/res/drawable-mdpi/btn_check_on_disable_focused_light.png Binary files differnew file mode 100644 index 000000000000..13ef46e2c39d --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_on_disable_focused_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_on_disable_light.png b/core/res/res/drawable-mdpi/btn_check_on_disable_light.png Binary files differnew file mode 100644 index 000000000000..13ef46e2c39d --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_on_disable_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_on_light.png b/core/res/res/drawable-mdpi/btn_check_on_light.png Binary files differnew file mode 100644 index 000000000000..6b7808bbb6a6 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_on_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_on_pressed.png b/core/res/res/drawable-mdpi/btn_check_on_pressed.png Binary files differindex 300d64afecb9..df753f51eb49 100644 --- a/core/res/res/drawable-mdpi/btn_check_on_pressed.png +++ b/core/res/res/drawable-mdpi/btn_check_on_pressed.png diff --git a/core/res/res/drawable-mdpi/btn_check_on_pressed_light.png b/core/res/res/drawable-mdpi/btn_check_on_pressed_light.png Binary files differnew file mode 100644 index 000000000000..6a4dd2ce7c76 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_on_pressed_light.png diff --git a/core/res/res/drawable-mdpi/btn_check_on_selected.png b/core/res/res/drawable-mdpi/btn_check_on_selected.png Binary files differindex 0b36adbe2712..7586881cc458 100644 --- a/core/res/res/drawable-mdpi/btn_check_on_selected.png +++ b/core/res/res/drawable-mdpi/btn_check_on_selected.png diff --git a/core/res/res/drawable-mdpi/btn_check_on_selected_light.png b/core/res/res/drawable-mdpi/btn_check_on_selected_light.png Binary files differnew file mode 100644 index 000000000000..24701ce9d59a --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_check_on_selected_light.png diff --git a/core/res/res/drawable-mdpi/btn_radio_label_background_light.9.png b/core/res/res/drawable-mdpi/btn_radio_label_background_light.9.png Binary files differnew file mode 100644 index 000000000000..16e89397baec --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_radio_label_background_light.9.png diff --git a/core/res/res/drawable-mdpi/btn_radio_off.png b/core/res/res/drawable-mdpi/btn_radio_off.png Binary files differindex 407632b1c0d5..16c1c6bc7b51 100644 --- a/core/res/res/drawable-mdpi/btn_radio_off.png +++ b/core/res/res/drawable-mdpi/btn_radio_off.png diff --git a/core/res/res/drawable-mdpi/btn_radio_off_light.png b/core/res/res/drawable-mdpi/btn_radio_off_light.png Binary files differnew file mode 100644 index 000000000000..e8287f30693e --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_radio_off_light.png diff --git a/core/res/res/drawable-mdpi/btn_radio_off_pressed.png b/core/res/res/drawable-mdpi/btn_radio_off_pressed.png Binary files differindex d6d8a9d4b685..b25217b6c214 100644 --- a/core/res/res/drawable-mdpi/btn_radio_off_pressed.png +++ b/core/res/res/drawable-mdpi/btn_radio_off_pressed.png diff --git a/core/res/res/drawable-mdpi/btn_radio_off_pressed_light.png b/core/res/res/drawable-mdpi/btn_radio_off_pressed_light.png Binary files differnew file mode 100644 index 000000000000..b63b9b0250e6 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_radio_off_pressed_light.png diff --git a/core/res/res/drawable-mdpi/btn_radio_off_selected.png b/core/res/res/drawable-mdpi/btn_radio_off_selected.png Binary files differindex 53f3e870e77d..bef757299c1a 100644 --- a/core/res/res/drawable-mdpi/btn_radio_off_selected.png +++ b/core/res/res/drawable-mdpi/btn_radio_off_selected.png diff --git a/core/res/res/drawable-mdpi/btn_radio_off_selected_light.png b/core/res/res/drawable-mdpi/btn_radio_off_selected_light.png Binary files differnew file mode 100644 index 000000000000..af754e145cfa --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_radio_off_selected_light.png diff --git a/core/res/res/drawable-mdpi/btn_radio_on.png b/core/res/res/drawable-mdpi/btn_radio_on.png Binary files differindex 25a3ccc54e4a..4ed74712e28c 100644 --- a/core/res/res/drawable-mdpi/btn_radio_on.png +++ b/core/res/res/drawable-mdpi/btn_radio_on.png diff --git a/core/res/res/drawable-mdpi/btn_radio_on_light.png b/core/res/res/drawable-mdpi/btn_radio_on_light.png Binary files differnew file mode 100644 index 000000000000..62aaa41318d1 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_radio_on_light.png diff --git a/core/res/res/drawable-mdpi/btn_radio_on_pressed.png b/core/res/res/drawable-mdpi/btn_radio_on_pressed.png Binary files differindex c904a35c742b..7cf91c6c7fa9 100644 --- a/core/res/res/drawable-mdpi/btn_radio_on_pressed.png +++ b/core/res/res/drawable-mdpi/btn_radio_on_pressed.png diff --git a/core/res/res/drawable-mdpi/btn_radio_on_pressed_light.png b/core/res/res/drawable-mdpi/btn_radio_on_pressed_light.png Binary files differnew file mode 100644 index 000000000000..0d93507b66f4 --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_radio_on_pressed_light.png diff --git a/core/res/res/drawable-mdpi/btn_radio_on_selected.png b/core/res/res/drawable-mdpi/btn_radio_on_selected.png Binary files differindex 78e1fc0227ca..56f6f5b43fa8 100644 --- a/core/res/res/drawable-mdpi/btn_radio_on_selected.png +++ b/core/res/res/drawable-mdpi/btn_radio_on_selected.png diff --git a/core/res/res/drawable-mdpi/btn_radio_on_selected_light.png b/core/res/res/drawable-mdpi/btn_radio_on_selected_light.png Binary files differnew file mode 100644 index 000000000000..48dd8e9d3c6c --- /dev/null +++ b/core/res/res/drawable-mdpi/btn_radio_on_selected_light.png diff --git a/core/res/res/drawable/btn_check_light.xml b/core/res/res/drawable/btn_check_light.xml new file mode 100644 index 000000000000..85f119a3151a --- /dev/null +++ b/core/res/res/drawable/btn_check_light.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <!-- Enabled states --> + + <item android:state_checked="true" android:state_window_focused="false" + android:state_enabled="true" + android:drawable="@drawable/btn_check_on_light" /> + <item android:state_checked="false" android:state_window_focused="false" + android:state_enabled="true" + android:drawable="@drawable/btn_check_off_light" /> + + <item android:state_checked="true" android:state_pressed="true" + android:state_enabled="true" + android:drawable="@drawable/btn_check_on_pressed_light" /> + <item android:state_checked="false" android:state_pressed="true" + android:state_enabled="true" + android:drawable="@drawable/btn_check_off_pressed_light" /> + + <item android:state_checked="true" android:state_focused="true" + android:state_enabled="true" + android:drawable="@drawable/btn_check_on_selected_light" /> + <item android:state_checked="false" android:state_focused="true" + android:state_enabled="true" + android:drawable="@drawable/btn_check_off_selected_light" /> + + <item android:state_checked="false" + android:state_enabled="true" + android:drawable="@drawable/btn_check_off_light" /> + <item android:state_checked="true" + android:state_enabled="true" + android:drawable="@drawable/btn_check_on_light" /> + + + <!-- Disabled states --> + + <item android:state_checked="true" android:state_window_focused="false" + android:drawable="@drawable/btn_check_on_disable_light" /> + <item android:state_checked="false" android:state_window_focused="false" + android:drawable="@drawable/btn_check_off_disable_light" /> + + <item android:state_checked="true" android:state_focused="true" + android:drawable="@drawable/btn_check_on_disable_focused_light" /> + <item android:state_checked="false" android:state_focused="true" + android:drawable="@drawable/btn_check_off_disable_focused_light" /> + + <item android:state_checked="false" android:drawable="@drawable/btn_check_off_disable_light" /> + <item android:state_checked="true" android:drawable="@drawable/btn_check_on_disable_light" /> + +</selector> diff --git a/core/res/res/drawable/btn_radio_light.xml b/core/res/res/drawable/btn_radio_light.xml new file mode 100644 index 000000000000..51c930bae4c6 --- /dev/null +++ b/core/res/res/drawable/btn_radio_light.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_checked="true" android:state_window_focused="false" + android:drawable="@drawable/btn_radio_on_light" /> + <item android:state_checked="false" android:state_window_focused="false" + android:drawable="@drawable/btn_radio_off_light" /> + + <item android:state_checked="true" android:state_pressed="true" + android:drawable="@drawable/btn_radio_on_pressed_light" /> + <item android:state_checked="false" android:state_pressed="true" + android:drawable="@drawable/btn_radio_off_pressed_light" /> + + <item android:state_checked="true" android:state_focused="true" + android:drawable="@drawable/btn_radio_on_selected_light" /> + <item android:state_checked="false" android:state_focused="true" + android:drawable="@drawable/btn_radio_off_selected_light" /> + + <item android:state_checked="false" android:drawable="@drawable/btn_radio_off_light" /> + <item android:state_checked="true" android:drawable="@drawable/btn_radio_on_light" /> +</selector> diff --git a/core/res/res/values/styles.xml b/core/res/res/values/styles.xml index 993048d95d89..e0dc3a92055e 100644 --- a/core/res/res/values/styles.xml +++ b/core/res/res/values/styles.xml @@ -279,11 +279,21 @@ <item name="android:button">@android:drawable/btn_check</item> </style> + <style name="Widget.CompoundButton.CheckBox.Inverse"> + <item name="android:background">@android:drawable/btn_check_label_background_light</item> + <item name="android:button">@android:drawable/btn_check_light</item> + </style> + <style name="Widget.CompoundButton.RadioButton"> <item name="android:background">@android:drawable/btn_radio_label_background</item> <item name="android:button">@android:drawable/btn_radio</item> </style> + <style name="Widget.CompoundButton.RadioButton.Inverse"> + <item name="android:background">@android:drawable/btn_radio_label_background_light</item> + <item name="android:button">@android:drawable/btn_radio_light</item> + </style> + <style name="Widget.CompoundButton.Star"> <item name="android:background">@android:drawable/btn_star_label_background</item> <item name="android:button">@android:drawable/btn_star</item> diff --git a/core/res/res/values/themes.xml b/core/res/res/values/themes.xml index 739912a1a00d..3348b4ee90b7 100644 --- a/core/res/res/values/themes.xml +++ b/core/res/res/values/themes.xml @@ -84,9 +84,9 @@ <item name="searchResultListItemHeight">58dip</item> <item name="listDivider">@drawable/divider_horizontal_dark</item> <item name="listSeparatorTextViewStyle">@android:style/Widget.TextView.ListSeparator</item> - - <item name="listChoiceIndicatorSingle">@android:drawable/btn_radio</item> - <item name="listChoiceIndicatorMultiple">@android:drawable/btn_check</item> + + <item name="listChoiceIndicatorSingle">@android:drawable/btn_radio</item> + <item name="listChoiceIndicatorMultiple">@android:drawable/btn_check</item> <item name="expandableListPreferredItemPaddingLeft">40dip</item> <item name="expandableListPreferredChildPaddingLeft"> @@ -160,8 +160,8 @@ <item name="progressBarStyleSmallTitle">@android:style/Widget.ProgressBar.Small.Title</item> <item name="progressBarStyleLarge">@android:style/Widget.ProgressBar.Large</item> <item name="progressBarStyleInverse">@android:style/Widget.ProgressBar.Inverse</item> - <item name="progressBarStyleSmallInverse">@android:style/Widget.ProgressBar.Small.Inverse</item> - <item name="progressBarStyleLargeInverse">@android:style/Widget.ProgressBar.Large.Inverse</item> + <item name="progressBarStyleSmallInverse">@android:style/Widget.ProgressBar.Small.Inverse</item> + <item name="progressBarStyleLargeInverse">@android:style/Widget.ProgressBar.Large.Inverse</item> <item name="seekBarStyle">@android:style/Widget.SeekBar</item> <item name="ratingBarStyle">@android:style/Widget.RatingBar</item> <item name="ratingBarStyleIndicator">@android:style/Widget.RatingBar.Indicator</item> @@ -253,18 +253,24 @@ <item name="textCheckMark">@android:drawable/indicator_check_mark_light</item> <item name="textCheckMarkInverse">@android:drawable/indicator_check_mark_dark</item> + <!-- List attributes --> + <item name="listChoiceIndicatorSingle">@android:drawable/btn_radio_light</item> + <item name="listChoiceIndicatorMultiple">@android:drawable/btn_check_light</item> + + <!-- Widget styles --> + <item name="checkboxStyle">@android:style/Widget.CompoundButton.CheckBox.Inverse</item> <item name="gestureOverlayViewStyle">@android:style/Widget.GestureOverlayView.White</item> <item name="expandableListViewStyle">@android:style/Widget.ExpandableListView.White</item> <item name="listViewStyle">@android:style/Widget.ListView.White</item> <item name="listDivider">@drawable/divider_horizontal_bright</item> <item name="listSeparatorTextViewStyle">@android:style/Widget.TextView.ListSeparator.White</item> - <item name="progressBarStyle">@android:style/Widget.ProgressBar.Inverse</item> - <item name="progressBarStyleSmall">@android:style/Widget.ProgressBar.Small.Inverse</item> - <item name="progressBarStyleLarge">@android:style/Widget.ProgressBar.Large.Inverse</item> - <item name="progressBarStyleInverse">@android:style/Widget.ProgressBar</item> - <item name="progressBarStyleSmallInverse">@android:style/Widget.ProgressBar.Small</item> - <item name="progressBarStyleLargeInverse">@android:style/Widget.ProgressBar.Large</item> + <item name="progressBarStyleSmall">@android:style/Widget.ProgressBar.Small.Inverse</item> + <item name="progressBarStyleLarge">@android:style/Widget.ProgressBar.Large.Inverse</item> + <item name="progressBarStyleInverse">@android:style/Widget.ProgressBar</item> + <item name="progressBarStyleSmallInverse">@android:style/Widget.ProgressBar.Small</item> + <item name="progressBarStyleLargeInverse">@android:style/Widget.ProgressBar.Large</item> + <item name="radioButtonStyle">@android:style/Widget.CompoundButton.RadioButton.Inverse</item> </style> <!-- Variant of the light theme with no title bar --> |