diff options
Diffstat (limited to 'mobile/android/base/resources/drawable')
83 files changed, 1489 insertions, 0 deletions
diff --git a/mobile/android/base/resources/drawable/action_bar_button.xml b/mobile/android/base/resources/drawable/action_bar_button.xml new file mode 100644 index 000000000..fe36bc43d --- /dev/null +++ b/mobile/android/base/resources/drawable/action_bar_button.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" + android:state_enabled="true"> + <shape> + <solid android:color="@color/highlight" /> + </shape> + </item> + + <item android:state_focused="true" + android:state_pressed="false"> + <shape> + <solid android:color="@color/highlight_focused" /> + </shape> + </item> + + <item android:drawable="@android:color/transparent"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/action_bar_button_inverse.xml b/mobile/android/base/resources/drawable/action_bar_button_inverse.xml new file mode 100644 index 000000000..b85387331 --- /dev/null +++ b/mobile/android/base/resources/drawable/action_bar_button_inverse.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true"> + <shape> + <solid android:color="@color/highlight_dark" /> + </shape> + </item> + + <item android:state_focused="true" + android:state_pressed="false"> + <shape> + <solid android:color="@color/highlight_dark_focused" /> + </shape> + </item> + + <item android:drawable="@android:color/transparent"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/action_bar_button_negative.xml b/mobile/android/base/resources/drawable/action_bar_button_negative.xml new file mode 100644 index 000000000..7611d70ba --- /dev/null +++ b/mobile/android/base/resources/drawable/action_bar_button_negative.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="false"> + <shape> + <solid android:color="@color/toolbar_menu_dark_grey" /> + </shape> + </item> + + <item android:state_pressed="true"> + <shape> + <solid android:color="@color/toolbar_grey_pressed" /> + </shape> + </item> + +</selector> diff --git a/mobile/android/base/resources/drawable/action_bar_button_positive.xml b/mobile/android/base/resources/drawable/action_bar_button_positive.xml new file mode 100644 index 000000000..ac7020b97 --- /dev/null +++ b/mobile/android/base/resources/drawable/action_bar_button_positive.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="false"> + <shape> + <solid android:color="@color/link_blue"/> + </shape> + </item> + + <item android:state_pressed="true"> + <shape> + <solid android:color="@color/link_blue_pressed" /> + </shape> + </item> + +</selector> diff --git a/mobile/android/base/resources/drawable/alert_download_animation.xml b/mobile/android/base/resources/drawable/alert_download_animation.xml new file mode 100644 index 000000000..e50472f0b --- /dev/null +++ b/mobile/android/base/resources/drawable/alert_download_animation.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<animation-list xmlns:android="http://schemas.android.com/apk/res/android" + android:oneshot="false"> + + <item android:drawable="@drawable/alert_download_animation_1" android:duration="150" /> + <item android:drawable="@drawable/alert_download_animation_2" android:duration="150" /> + <item android:drawable="@drawable/alert_download_animation_3" android:duration="150" /> + <item android:drawable="@drawable/alert_download_animation_4" android:duration="150" /> + <item android:drawable="@drawable/alert_download_animation_5" android:duration="150" /> + <item android:drawable="@drawable/alert_download_animation_6" android:duration="150" /> + +</animation-list> diff --git a/mobile/android/base/resources/drawable/arrow_down.xml b/mobile/android/base/resources/drawable/arrow_down.xml new file mode 100644 index 000000000..cfb14ed4c --- /dev/null +++ b/mobile/android/base/resources/drawable/arrow_down.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<rotate xmlns:android="http://schemas.android.com/apk/res/android" + android:drawable="@drawable/arrow_up" + android:fromDegrees="180" + android:toDegrees="180"/> + diff --git a/mobile/android/base/resources/drawable/as_bin.xml b/mobile/android/base/resources/drawable/as_bin.xml new file mode 100644 index 000000000..46de6104e --- /dev/null +++ b/mobile/android/base/resources/drawable/as_bin.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M20.75,5L16,5v-2.75a1.252,1.252 0,0 0,-1.25 -1.25h-5.5a1.252,1.252 0,0 0,-1.25 1.25L8,5h-4.75a1.25,1.25 0,0 0,0 2.5L5,7.5v14.25a1.252,1.252 0,0 0,1.25 1.25h11.5a1.252,1.252 0,0 0,1.25 -1.25L19,7.5h1.75A1.25,1.25 0,0 0,20.75 5ZM10.5,3.5h3v1.5h-3v-1.5ZM16.5,20.5h-9v-13h9v13ZM10.5,18h0a0.5,0.5 0,0 1,-0.5 -0.5v-7a0.5,0.5 0,0 1,0.5 -0.5h0a0.5,0.5 0,0 1,0.5 0.5v7A0.5,0.5 0,0 1,10.5 18ZM13.5,18h0a0.5,0.5 0,0 1,-0.5 -0.5v-7a0.5,0.5 0,0 1,0.5 -0.5h0a0.5,0.5 0,0 1,0.5 0.5v7A0.5,0.5 0,0 1,13.5 18Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/as_bookmark.xml b/mobile/android/base/resources/drawable/as_bookmark.xml new file mode 100644 index 000000000..890838be3 --- /dev/null +++ b/mobile/android/base/resources/drawable/as_bookmark.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M12.037,5.333l1.706,3.361 0.569,1.121 1.239,0.211 3.617,0.619 -2.617,2.851 -0.81,0.884 0.181,1.185 0.583,3.8 -3.312,-1.758 -1.179,-0.626 -1.176,0.632 -3.232,1.736 0.582,-3.788 0.184,-1.194 -0.822,-0.886 -2.633,-2.84 3.676,-0.619 1.272,-0.214 0.563,-1.161 1.609,-3.319M12.01,1a1.335,1.335 0,0 0,-1.085 0.895l-2.747,5.667 -5.877,0.99c-1.345,0.219 -1.679,1.186 -0.744,2.148l4.16,4.486 -0.969,6.311c-0.147,0.948 0.242,1.5 0.925,1.5a2,2 0,0 0,0.891 -0.249l5.457,-2.931 5.521,2.931a2,2 0,0 0,0.892 0.249c0.683,0 1.07,-0.555 0.926,-1.5l-0.966,-6.311 4.111,-4.481c0.936,-0.966 0.6,-1.934 -0.744,-2.153l-5.789,-0.99L13.1,1.9A1.333,1.333 0,0 0,12.01 1h0Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/as_contextmenu_divider.xml b/mobile/android/base/resources/drawable/as_contextmenu_divider.xml new file mode 100644 index 000000000..f24f9a238 --- /dev/null +++ b/mobile/android/base/resources/drawable/as_contextmenu_divider.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:insetLeft="72dp"> + <shape> + <size + android:height="1dp"/> + <solid android:color="@color/disabled_grey"/> + </shape> +</inset>
\ No newline at end of file diff --git a/mobile/android/base/resources/drawable/as_copy.xml b/mobile/android/base/resources/drawable/as_copy.xml new file mode 100644 index 000000000..516459edb --- /dev/null +++ b/mobile/android/base/resources/drawable/as_copy.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M21.75,23h-12.5a1.25,1.25 0,0 1,-1.25 -1.25v-14.5a1.25,1.25 0,0 1,1.25 -1.25h9a1.252,1.252 0,0 1,0.884 0.366l3.5,3.5a1.252,1.252 0,0 1,0.366 0.884v11A1.25,1.25 0,0 1,21.75 23ZM10.5,20.5h10v-9.232l-2.768,-2.768L10.5,8.5v12ZM7,15.5h-3.5v-12h7.232l1.5,1.5h3.511a1.16,1.16 0,0 0,-0.109 -0.134l-3.5,-3.5A1.252,1.252 0,0 0,11.25 1h-9a1.25,1.25 0,0 0,-1.25 1.25v14.5a1.25,1.25 0,0 0,1.25 1.25L7,18v-2.5ZM18.5,12L17,12v-1.5a0.5,0.5 0,0 0,-1 0v2a0.5,0.5 0,0 0,0.5 0.5h2A0.5,0.5 0,0 0,18.5 12Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/as_dimiss.xml b/mobile/android/base/resources/drawable/as_dimiss.xml new file mode 100644 index 000000000..ccc028e48 --- /dev/null +++ b/mobile/android/base/resources/drawable/as_dimiss.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M13.779,12l7.867,-7.866a1.25,1.25 0,0 0,-1.768 -1.768l-7.866,7.866 -7.866,-7.866a1.25,1.25 0,1 0,-1.768 1.768L10.244,12l-7.866,7.866a1.25,1.25 0,0 0,1.768 1.768l7.866,-7.866 7.866,7.866a1.25,1.25 0,0 0,1.768 -1.768Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/as_home.xml b/mobile/android/base/resources/drawable/as_home.xml new file mode 100644 index 000000000..aece2b195 --- /dev/null +++ b/mobile/android/base/resources/drawable/as_home.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M18.012,22.969h-4v-6h-4v6h-4a1.075,1.075 0,0 1,-1 -1v-8.5a1.091,1.091 0,0 1,0.5 -1l5.5,-5.5a1.413,1.413 0,0 1,2 0l5.5,5.5a1.538,1.538 0,0 1,0.5 1v8.5A1.075,1.075 0,0 1,18.012 22.969ZM22.012,13.281a1.246,1.246 0,0 1,-0.884 -0.366l-9.116,-9.116 -9.116,9.116a1.25,1.25 0,0 1,-1.768 -1.768l10,-10a1.251,1.251 0,0 1,1.768 0l10,10A1.25,1.25 0,0 1,22.012 13.281Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/as_private.xml b/mobile/android/base/resources/drawable/as_private.xml new file mode 100644 index 000000000..96c8fbdd2 --- /dev/null +++ b/mobile/android/base/resources/drawable/as_private.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M18,17.823c-2.29,0 -3.873,-2.692 -6.069,-2.692s-3.916,2.692 -6.069,2.692c-2.826,0 -4.912,-2.616 -4.946,-7.1 -0.021,-2.783 0.829,-3.671 4.5,-3.671s4.742,1.468 6.519,1.468 2.852,-1.468 6.519,-1.468 4.517,0.888 4.5,3.671C22.909,15.207 20.823,17.823 18,17.823ZM7.21,10.481c-2.229,0.1 -3.147,1.393 -3.147,1.713s1.478,1.224 2.923,1.224 3.147,-0.518 3.147,-0.979A2.611,2.611 0,0 0,7.207 10.481ZM16.652,10.481a2.611,2.611 0,0 0,-2.923 1.958c0,0.461 1.7,0.979 3.147,0.979s2.923,-0.9 2.923,-1.224S18.878,10.576 16.649,10.481Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/as_share.xml b/mobile/android/base/resources/drawable/as_share.xml new file mode 100644 index 000000000..ecb0f200b --- /dev/null +++ b/mobile/android/base/resources/drawable/as_share.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M19,15a3.987,3.987 0,0 0,-2.839 1.18l-7.208,-3.6a3.6,3.6 0,0 0,0 -1.16l7.208,-3.6A4,4 0,1 0,15 5a3.936,3.936 0,0 0,0.047 0.58l-7.208,3.6a4,4 0,1 0,0 5.64l7.208,3.6a3.936,3.936 0,0 0,-0.047 0.58A4,4 0,1 0,19 15Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/as_tab.xml b/mobile/android/base/resources/drawable/as_tab.xml new file mode 100644 index 000000000..b8c4b19e9 --- /dev/null +++ b/mobile/android/base/resources/drawable/as_tab.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="#FF000000" + android:pathData="M22,20.015L2,20.015a1.266,1.266 0,0 1,-1.266 -1.266v-2.531A1.266,1.266 0,0 1,2 14.952c0.618,0 1.248,-3.239 1.484,-4.459 0.622,-3.2 1.266,-6.508 3.971,-6.508h9.09c2.705,0 3.349,3.309 3.971,6.508 0.236,1.22 0.866,4.459 1.484,4.459a1.266,1.266 0,0 1,1.266 1.266v2.531A1.266,1.266 0,0 1,22 20.015ZM3.266,17.483h17.468v-0.3c-1.668,-0.883 -2.193,-3.583 -2.7,-6.21 -0.237,-1.219 -0.867,-4.459 -1.485,-4.459h-9.09c-0.618,0 -1.248,3.24 -1.485,4.459 -0.511,2.627 -1.036,5.327 -2.7,6.21v0.3Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/autocomplete_list_bg.xml b/mobile/android/base/resources/drawable/autocomplete_list_bg.xml new file mode 100644 index 000000000..9747b48a2 --- /dev/null +++ b/mobile/android/base/resources/drawable/autocomplete_list_bg.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + + <solid android:color="@android:color/white"/> + + <stroke android:width="1dp" + android:color="@color/placeholder_grey" /> + +</shape>
\ No newline at end of file diff --git a/mobile/android/base/resources/drawable/bookmark_folder_arrow_up.xml b/mobile/android/base/resources/drawable/bookmark_folder_arrow_up.xml new file mode 100644 index 000000000..717cc5952 --- /dev/null +++ b/mobile/android/base/resources/drawable/bookmark_folder_arrow_up.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- State drawables will stretch drawables to be the same size and neither + android:constantSize nor variablePadding fix this, so we hard-code padding + in to ensure that they display at their true size. --> +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:drawable="@drawable/arrow_up" + android:insetTop="4dp" + android:insetRight="5dp" + android:insetBottom="4dp" + android:insetLeft="5dp" /> diff --git a/mobile/android/base/resources/drawable/button_background_action_blue_round.xml b/mobile/android/base/resources/drawable/button_background_action_blue_round.xml new file mode 100644 index 000000000..9b5ba8068 --- /dev/null +++ b/mobile/android/base/resources/drawable/button_background_action_blue_round.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/button_pressed_action_blue_round" /> + <item android:state_enabled="true" + android:drawable="@drawable/button_enabled_action_blue_round" /> +</selector> diff --git a/mobile/android/base/resources/drawable/button_background_action_orange_round.xml b/mobile/android/base/resources/drawable/button_background_action_orange_round.xml new file mode 100644 index 000000000..02a6c6673 --- /dev/null +++ b/mobile/android/base/resources/drawable/button_background_action_orange_round.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true" + android:drawable="@drawable/button_pressed_action_orange_round" /> + <item android:state_enabled="true" + android:drawable="@drawable/button_enabled_action_orange_round" /> +</selector> diff --git a/mobile/android/base/resources/drawable/button_enabled_action_blue_round.xml b/mobile/android/base/resources/drawable/button_enabled_action_blue_round.xml new file mode 100644 index 000000000..94a6b9935 --- /dev/null +++ b/mobile/android/base/resources/drawable/button_enabled_action_blue_round.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + <solid android:color="@color/link_blue_pressed" /> + <corners + android:radius="@dimen/standard_corner_radius" /> +</shape> diff --git a/mobile/android/base/resources/drawable/button_enabled_action_orange_round.xml b/mobile/android/base/resources/drawable/button_enabled_action_orange_round.xml new file mode 100644 index 000000000..7a9d55b10 --- /dev/null +++ b/mobile/android/base/resources/drawable/button_enabled_action_orange_round.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + <solid android:color="@color/action_orange" /> + <corners + android:radius="@dimen/standard_corner_radius" /> +</shape> diff --git a/mobile/android/base/resources/drawable/button_pressed_action_blue_round.xml b/mobile/android/base/resources/drawable/button_pressed_action_blue_round.xml new file mode 100644 index 000000000..bca19fab6 --- /dev/null +++ b/mobile/android/base/resources/drawable/button_pressed_action_blue_round.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + <solid android:color="@color/link_blue" /> + <corners + android:radius="@dimen/standard_corner_radius" /> +</shape> diff --git a/mobile/android/base/resources/drawable/button_pressed_action_orange_round.xml b/mobile/android/base/resources/drawable/button_pressed_action_orange_round.xml new file mode 100644 index 000000000..2720b7fba --- /dev/null +++ b/mobile/android/base/resources/drawable/button_pressed_action_orange_round.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + <solid android:color="@color/action_orange_pressed" /> + <corners + android:radius="@dimen/standard_corner_radius" /> +</shape> diff --git a/mobile/android/base/resources/drawable/close_edit_mode_selector.xml b/mobile/android/base/resources/drawable/close_edit_mode_selector.xml new file mode 100644 index 000000000..aab2a469c --- /dev/null +++ b/mobile/android/base/resources/drawable/close_edit_mode_selector.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto"> + + <item gecko:state_dark="true" + android:drawable="@drawable/close_edit_mode_dark"/> + + <item gecko:state_private="true" + android:drawable="@drawable/close_edit_mode_light"/> + + <item android:drawable="@drawable/close_edit_mode_light"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/color_picker_checkmark.xml b/mobile/android/base/resources/drawable/color_picker_checkmark.xml new file mode 100644 index 000000000..645ec8115 --- /dev/null +++ b/mobile/android/base/resources/drawable/color_picker_checkmark.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="ring" + android:innerRadius="15dip" + android:thickness="4dip" + android:useLevel="false"> + <solid android:color="@android:color/white"/> +</shape> diff --git a/mobile/android/base/resources/drawable/divider_vertical.xml b/mobile/android/base/resources/drawable/divider_vertical.xml new file mode 100644 index 000000000..d326d94f9 --- /dev/null +++ b/mobile/android/base/resources/drawable/divider_vertical.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + + <solid android:color="@color/toolbar_divider_grey"/> + <size android:width="1dp" /> + +</shape> diff --git a/mobile/android/base/resources/drawable/edit_text_default.xml b/mobile/android/base/resources/drawable/edit_text_default.xml new file mode 100644 index 000000000..edb6632db --- /dev/null +++ b/mobile/android/base/resources/drawable/edit_text_default.xml @@ -0,0 +1,24 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + + <!-- Make sure the border only appears at the bottom of the background --> + <item + android:top="-2dp" + android:right="-2dp" + android:left="-2dp"> + <shape> + <!-- Padding creates vertical space between the text and the underline, + as well as right padding for search icon/clear button --> + <padding + android:top="@dimen/search_bar_padding_y" + android:bottom="@dimen/search_bar_padding_y" + android:right="@dimen/search_bar_padding_right"/> + <solid android:color="@android:color/transparent"/> + <stroke android:width="1dp" android:color="@color/tabs_tray_icon_grey"/> + </shape> + </item> + +</layer-list> diff --git a/mobile/android/base/resources/drawable/edit_text_focused.xml b/mobile/android/base/resources/drawable/edit_text_focused.xml new file mode 100644 index 000000000..38782652e --- /dev/null +++ b/mobile/android/base/resources/drawable/edit_text_focused.xml @@ -0,0 +1,25 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + + <!-- Make sure the border only appears at the bottom of the background --> + <item + android:top="-3dp" + android:right="-3dp" + android:left="-3dp"> + <shape> + <!-- Padding creates vertical space between the text and the underline, + as well as right padding for search icon/clear button --> + <padding + android:top="@dimen/search_bar_padding_y" + android:bottom="@dimen/search_bar_padding_y" + android:right="@dimen/search_bar_padding_right"/> + <solid android:color="@android:color/transparent"/> + <!-- We apply a color filter to set the color for the selected search engine --> + <stroke android:width="2dp" android:color="@android:color/white"/> + </shape> + </item> + +</layer-list> diff --git a/mobile/android/base/resources/drawable/facet_button_background.xml b/mobile/android/base/resources/drawable/facet_button_background.xml new file mode 100644 index 000000000..de1b6e996 --- /dev/null +++ b/mobile/android/base/resources/drawable/facet_button_background.xml @@ -0,0 +1,15 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <!--facet button is pressed (omitting currently-selected facet)--> + <item + android:state_pressed="true" + android:state_checked="false" + android:drawable="@drawable/facet_button_background_pressed"/> + + <!--default--> + <item + android:drawable="@drawable/facet_button_background_default"/> +</selector> diff --git a/mobile/android/base/resources/drawable/facet_button_background_default.xml b/mobile/android/base/resources/drawable/facet_button_background_default.xml new file mode 100644 index 000000000..b3358d2ed --- /dev/null +++ b/mobile/android/base/resources/drawable/facet_button_background_default.xml @@ -0,0 +1,8 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <solid android:color="@color/facet_button_background_color_default" /> +</shape> diff --git a/mobile/android/base/resources/drawable/facet_button_background_pressed.xml b/mobile/android/base/resources/drawable/facet_button_background_pressed.xml new file mode 100644 index 000000000..0a46f6057 --- /dev/null +++ b/mobile/android/base/resources/drawable/facet_button_background_pressed.xml @@ -0,0 +1,8 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <solid android:color="@color/facet_button_background_color_pressed" /> +</shape> diff --git a/mobile/android/base/resources/drawable/home_banner.xml b/mobile/android/base/resources/drawable/home_banner.xml new file mode 100644 index 000000000..ea536ced0 --- /dev/null +++ b/mobile/android/base/resources/drawable/home_banner.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true"> + <layer-list> + <item android:left="-2dp" + android:right="-2dp" + android:bottom="-2dp"> + + <shape android:shape="rectangle" > + <stroke android:width="2dp" + android:color="#FFE0E4E7" /> + <solid android:color="#FFC5D0DA" /> + </shape> + </item> + </layer-list> + </item> + + <item> + <layer-list> + <item android:left="-2dp" + android:right="-2dp" + android:bottom="-2dp"> + + <shape android:shape="rectangle" > + <stroke android:width="2dp" + android:color="#FFE0E4E7" /> + <solid android:color="@color/about_page_header_grey" /> + </shape> + </item> + </layer-list> + </item> + +</selector> diff --git a/mobile/android/base/resources/drawable/home_history_clear_button_bg.xml b/mobile/android/base/resources/drawable/home_history_clear_button_bg.xml new file mode 100644 index 000000000..f4fee99f4 --- /dev/null +++ b/mobile/android/base/resources/drawable/home_history_clear_button_bg.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + - This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. + --> + +<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > + <item> + <shape android:shape="rectangle" > + <stroke android:width="1dp" + android:color="@color/toolbar_divider_grey" /> + <padding android:top="1dp" /> + </shape> + </item> + <item> + <selector> + <item android:state_pressed="true" + android:drawable="@color/toolbar_grey_pressed" /> + <item android:drawable="@color/toolbar_grey"/> + </selector> + </item> +</layer-list>
\ No newline at end of file diff --git a/mobile/android/base/resources/drawable/home_pager_empty_state.xml b/mobile/android/base/resources/drawable/home_pager_empty_state.xml new file mode 100644 index 000000000..71389ebc6 --- /dev/null +++ b/mobile/android/base/resources/drawable/home_pager_empty_state.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<layer-list xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto"> + + <item android:maxLevel="0" android:drawable="@android:color/white"/> + + <item> + <bitmap android:src="@drawable/icon_home_empty_firefox" + android:gravity="center"/> + </item> + +</layer-list>
\ No newline at end of file diff --git a/mobile/android/base/resources/drawable/ic_as_bookmarked.xml b/mobile/android/base/resources/drawable/ic_as_bookmarked.xml new file mode 100644 index 000000000..033718641 --- /dev/null +++ b/mobile/android/base/resources/drawable/ic_as_bookmarked.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="@color/activity_stream_icon" + android:pathData="M12.01,1a1.34,1.34 0,0 0,-1.085 0.89l-2.747,5.67 -5.877,0.99c-1.345,0.22 -1.679,1.19 -0.744,2.15l4.16,4.49 -0.969,6.31c-0.147,0.94 0.242,1.5 0.925,1.5a1.986,1.986 0,0 0,0.891 -0.25l5.457,-2.93 5.521,2.93a1.993,1.993 0,0 0,0.892 0.25c0.683,0 1.07,-0.56 0.926,-1.5l-0.966,-6.31 4.111,-4.49c0.936,-0.96 0.6,-1.93 -0.744,-2.15l-5.789,-0.99 -2.877,-5.67a1.339,1.339 0,0 0,-1.085 -0.89h0Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/ic_as_visited.xml b/mobile/android/base/resources/drawable/ic_as_visited.xml new file mode 100644 index 000000000..05006ef95 --- /dev/null +++ b/mobile/android/base/resources/drawable/ic_as_visited.xml @@ -0,0 +1,9 @@ +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24.0" + android:viewportHeight="24.0"> + <path + android:fillColor="@color/activity_stream_icon" + android:pathData="M12,18a6,6 0,1 1,6 -6A6,6 0,0 1,12 18ZM12,9a3,3 0,1 0,3 3A3,3 0,0 0,12 9Z"/> +</vector> diff --git a/mobile/android/base/resources/drawable/icon_grid_item_bg.xml b/mobile/android/base/resources/drawable/icon_grid_item_bg.xml new file mode 100644 index 000000000..45c9cb1f3 --- /dev/null +++ b/mobile/android/base/resources/drawable/icon_grid_item_bg.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 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_focused="true" + android:state_pressed="true" + android:drawable="@drawable/grid_icon_bg_focused" /> + + <item android:state_activated="true" + android:drawable="@drawable/grid_icon_bg_activated" /> + + <item android:drawable="@android:color/transparent" /> + +</selector> diff --git a/mobile/android/base/resources/drawable/logo.xml b/mobile/android/base/resources/drawable/logo.xml new file mode 100644 index 000000000..e188f80dc --- /dev/null +++ b/mobile/android/base/resources/drawable/logo.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- Overidden. --> +<bitmap + xmlns:android="http://schemas.android.com/apk/res/android" + android:src="@drawable/icon"/> diff --git a/mobile/android/base/resources/drawable/menu_item_action_bar_bg.xml b/mobile/android/base/resources/drawable/menu_item_action_bar_bg.xml new file mode 100644 index 000000000..ad00f49f9 --- /dev/null +++ b/mobile/android/base/resources/drawable/menu_item_action_bar_bg.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" + android:state_enabled="true"> + <shape> + <solid android:color="@color/toolbar_grey_pressed" /> + </shape> + </item> + + <item android:state_focused="true" + android:state_pressed="false"> + <shape> + <solid android:color="@color/highlight_focused" /> + </shape> + </item> + + <item android:drawable="@android:color/transparent"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/menu_item_state.xml b/mobile/android/base/resources/drawable/menu_item_state.xml new file mode 100644 index 000000000..c7063f4e3 --- /dev/null +++ b/mobile/android/base/resources/drawable/menu_item_state.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto"> + + <item gecko:state_more="true" + android:drawable="@drawable/menu_item_more"/> + + <item gecko:state_more="false" + android:state_checkable="true" + android:state_checked="true" + android:drawable="@drawable/menu_item_check"/> + + <item gecko:state_more="false" + android:state_checkable="true" + android:state_checked="false" + android:drawable="@drawable/menu_item_uncheck"/> + + <item android:drawable="@android:color/transparent"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/overlay_share_bookmark_button.xml b/mobile/android/base/resources/drawable/overlay_share_bookmark_button.xml new file mode 100644 index 000000000..bc1d51c5d --- /dev/null +++ b/mobile/android/base/resources/drawable/overlay_share_bookmark_button.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:state_enabled="false" + android:drawable="@drawable/overlay_bookmarked_already_icon"/> + <item + android:drawable="@drawable/overlay_bookmark_icon"/> +</selector> diff --git a/mobile/android/base/resources/drawable/overlay_share_button_background.xml b/mobile/android/base/resources/drawable/overlay_share_button_background.xml new file mode 100644 index 000000000..6077ad38a --- /dev/null +++ b/mobile/android/base/resources/drawable/overlay_share_button_background.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + - This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. + --> + +<!-- Should be kept in sync with overlay_share_button_background_first.xml --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" android:drawable="@color/toolbar_grey_pressed" /> + <item android:drawable="@color/toolbar_grey"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/overlay_share_button_background_first.xml b/mobile/android/base/resources/drawable/overlay_share_button_background_first.xml new file mode 100644 index 000000000..65ee5de9d --- /dev/null +++ b/mobile/android/base/resources/drawable/overlay_share_button_background_first.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + - This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. + --> + +<!-- Should be kept in sync with overlay_share_button_background.xml + + This first item in the list has rounded corners. --> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true"> + <shape> + <solid android:color="@color/toolbar_grey_pressed"/> + <corners android:topLeftRadius="@dimen/standard_corner_radius" + android:topRightRadius="@dimen/standard_corner_radius"/> + </shape> + </item> + + <item> + <shape> + <solid android:color="@color/toolbar_grey"/> + <corners android:topLeftRadius="@dimen/standard_corner_radius" + android:topRightRadius="@dimen/standard_corner_radius"/> + </shape> + </item> + +</selector> diff --git a/mobile/android/base/resources/drawable/panel_auth_button.xml b/mobile/android/base/resources/drawable/panel_auth_button.xml new file mode 100644 index 000000000..4a9adf428 --- /dev/null +++ b/mobile/android/base/resources/drawable/panel_auth_button.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true"> + <layer-list> + <item android:left="-2dp" + android:right="-2dp" + android:top="-2dp"> + + <shape android:shape="rectangle" > + <stroke android:width="2dp" + android:color="#FFE0E4E7" /> + <solid android:color="#FFC5D0DA" /> + </shape> + </item> + </layer-list> + </item> + + <item> + <layer-list> + <item android:left="-2dp" + android:right="-2dp" + android:top="-2dp"> + + <shape android:shape="rectangle" > + <stroke android:width="2dp" + android:color="#FFE0E4E7" /> + <solid android:color="@color/about_page_header_grey" /> + </shape> + </item> + </layer-list> + </item> + +</selector> diff --git a/mobile/android/base/resources/drawable/progressbar.xml b/mobile/android/base/resources/drawable/progressbar.xml new file mode 100644 index 000000000..627484a1f --- /dev/null +++ b/mobile/android/base/resources/drawable/progressbar.xml @@ -0,0 +1,9 @@ +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@android:id/progress"> + <clip> + <shape> + <solid android:color="@color/fennec_ui_orange"/> + </shape> + </clip> + </item> +</layer-list> diff --git a/mobile/android/base/resources/drawable/push_notification.png b/mobile/android/base/resources/drawable/push_notification.png Binary files differnew file mode 100644 index 000000000..2a52dbd50 --- /dev/null +++ b/mobile/android/base/resources/drawable/push_notification.png diff --git a/mobile/android/base/resources/drawable/remote_tabs_setup_button_background.xml b/mobile/android/base/resources/drawable/remote_tabs_setup_button_background.xml new file mode 100644 index 000000000..dad4e5124 --- /dev/null +++ b/mobile/android/base/resources/drawable/remote_tabs_setup_button_background.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true"> + <shape android:shape="rectangle"> + <solid android:color="@color/remote_tabs_setup_button_background_hit"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + </item> + + <item> + <shape android:shape="rectangle"> + <solid android:color="@color/action_orange"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + </item> +</selector> diff --git a/mobile/android/base/resources/drawable/search_row_background.xml b/mobile/android/base/resources/drawable/search_row_background.xml new file mode 100644 index 000000000..ded70ec6d --- /dev/null +++ b/mobile/android/base/resources/drawable/search_row_background.xml @@ -0,0 +1,10 @@ +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" android:drawable="@color/row_background_pressed" /> + <item android:drawable="@color/row_background"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/search_suggestion_button.xml b/mobile/android/base/resources/drawable/search_suggestion_button.xml new file mode 100644 index 000000000..b91fd4bf0 --- /dev/null +++ b/mobile/android/base/resources/drawable/search_suggestion_button.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true"> + <shape> + <solid android:color="@color/toolbar_grey_pressed"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + </item> + + <item> + <shape> + <solid android:color="@color/toolbar_grey"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + </item> +</selector> diff --git a/mobile/android/base/resources/drawable/search_suggestion_prompt_no.xml b/mobile/android/base/resources/drawable/search_suggestion_prompt_no.xml new file mode 100644 index 000000000..b976cfa5a --- /dev/null +++ b/mobile/android/base/resources/drawable/search_suggestion_prompt_no.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:state_pressed="true"> + <shape> + <solid android:color="@color/toolbar_grey_pressed"/> + <corners android:radius="@dimen/doorhanger_rounded_corner_radius"/> + </shape> + </item> + + <item> + <shape> + <solid android:color="@color/toolbar_menu_dark_grey"/> + <corners android:radius="@dimen/doorhanger_rounded_corner_radius"/> + </shape> + </item> +</selector> diff --git a/mobile/android/base/resources/drawable/search_suggestion_prompt_yes.xml b/mobile/android/base/resources/drawable/search_suggestion_prompt_yes.xml new file mode 100644 index 000000000..12551497b --- /dev/null +++ b/mobile/android/base/resources/drawable/search_suggestion_prompt_yes.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> +<item android:state_pressed="true"> + <shape> + <solid android:color="@color/link_blue_pressed"/> + <corners android:radius="@dimen/doorhanger_rounded_corner_radius"/> + </shape> +</item> + +<item> + <shape> + <solid android:color="@color/link_blue"/> + <corners android:radius="@dimen/doorhanger_rounded_corner_radius"/> + </shape> +</item> +</selector> diff --git a/mobile/android/base/resources/drawable/shaped_button.xml b/mobile/android/base/resources/drawable/shaped_button.xml new file mode 100644 index 000000000..74fc45f85 --- /dev/null +++ b/mobile/android/base/resources/drawable/shaped_button.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- If you change this view, update ShapedButton*, + which dynamically resets to this view. --> +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" + android:drawable="@color/highlight_shaped"/> + + <item android:state_focused="true" + android:state_pressed="false" + android:drawable="@color/highlight_shaped_focused"/> + + <item android:drawable="@color/text_and_tabs_tray_grey"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/site_security_level.xml b/mobile/android/base/resources/drawable/site_security_level.xml new file mode 100644 index 000000000..5fee9fffa --- /dev/null +++ b/mobile/android/base/resources/drawable/site_security_level.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<level-list xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:maxLevel="0" android:drawable="@drawable/site_security_unknown"/> + <item android:maxLevel="1" android:drawable="@drawable/lock_secure"/> + <item android:maxLevel="2" android:drawable="@drawable/lock_secure"/> + <item android:maxLevel="3" android:drawable="@drawable/warning_minor"/> + <item android:maxLevel="4" android:drawable="@drawable/lock_disabled"/> + <item android:maxLevel="5" android:drawable="@drawable/shield_enabled"/> + <item android:maxLevel="6" android:drawable="@drawable/shield_disabled"/> + + <!-- Special icon used for about:home --> + <item android:maxLevel="999" android:drawable="@drawable/search_icon_inactive" /> +</level-list> diff --git a/mobile/android/base/resources/drawable/site_security_unknown.xml b/mobile/android/base/resources/drawable/site_security_unknown.xml new file mode 100644 index 000000000..86ff863e1 --- /dev/null +++ b/mobile/android/base/resources/drawable/site_security_unknown.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- The favicon drawable is not the same dimensions as the site security + lock icons so we offset it using this drawable to compensate. --> +<inset + xmlns:android="http://schemas.android.com/apk/res/android" + android:drawable="@drawable/favicon_globe" + android:insetTop="@dimen/site_security_unknown_inset_top" + android:insetBottom="@dimen/site_security_unknown_inset_bottom"/> diff --git a/mobile/android/base/resources/drawable/tab_history_bg.xml b/mobile/android/base/resources/drawable/tab_history_bg.xml new file mode 100644 index 000000000..1819ddd58 --- /dev/null +++ b/mobile/android/base/resources/drawable/tab_history_bg.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > + <item> + <shape + xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + <stroke + android:width="@dimen/tab_history_bg_width" + android:color="@color/tab_history_border_color" /> + + <padding android:top="@dimen/tab_history_border_padding" /> + </shape> + </item> + <item> + <shape + xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle" > + <solid + android:width="@dimen/tab_history_bg_width" + android:color="@color/toolbar_grey" /> + </shape> + </item> +</layer-list> diff --git a/mobile/android/base/resources/drawable/tab_history_icon_state.xml b/mobile/android/base/resources/drawable/tab_history_icon_state.xml new file mode 100644 index 000000000..504dd5804 --- /dev/null +++ b/mobile/android/base/resources/drawable/tab_history_icon_state.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_enabled="false"> + <shape> + <solid android:color="@color/tab_history_favicon_background" /> + <stroke android:width="@dimen/tab_history_favicon_border_disabled" + android:color="@color/tab_history_favicon_border" /> + </shape> + </item> + + <item android:state_enabled="true"> + <shape> + <solid android:color="@color/tab_history_favicon_background" /> + <stroke android:width="@dimen/tab_history_favicon_border_enabled" + android:color="@color/tab_history_favicon_border" /> + </shape> + </item> + +</selector> diff --git a/mobile/android/base/resources/drawable/tab_item_close_button.xml b/mobile/android/base/resources/drawable/tab_item_close_button.xml new file mode 100644 index 000000000..401234633 --- /dev/null +++ b/mobile/android/base/resources/drawable/tab_item_close_button.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <!-- pressed state --> + <item android:state_pressed="true" + android:drawable="@drawable/tab_close_active"/> + + <item android:state_checked="true" + android:drawable="@drawable/tab_close_active"/> + + <!-- normal mode --> + <item android:drawable="@drawable/tab_close"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/tab_panel_tab_background.xml b/mobile/android/base/resources/drawable/tab_panel_tab_background.xml new file mode 100644 index 000000000..c69bfbd81 --- /dev/null +++ b/mobile/android/base/resources/drawable/tab_panel_tab_background.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto"> + + <item gecko:state_private="true"> + <layer-list> + <item> + <shape android:shape="rectangle"> + <solid android:color="@color/private_toolbar_grey"/> + </shape> + </item> + + <item> + <bitmap android:src="@drawable/tab_preview_masq" + android:gravity="center"/> + </item> + </layer-list> + </item> + + <item> + <layer-list> + <item> + <shape android:shape="rectangle"> + <solid android:color="@color/about_page_header_grey"/> + </shape> + </item> + + <item> + <bitmap android:src="@drawable/globe_light" + android:gravity="center"/> + </item> + </layer-list> + </item> +</selector> diff --git a/mobile/android/base/resources/drawable/tab_queue_dismiss_button_foreground.xml b/mobile/android/base/resources/drawable/tab_queue_dismiss_button_foreground.xml new file mode 100644 index 000000000..843ce5870 --- /dev/null +++ b/mobile/android/base/resources/drawable/tab_queue_dismiss_button_foreground.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> + +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" + android:color="@color/tab_queue_dismiss_button_foreground_pressed" /> + + <item android:color="@color/tab_queue_dismiss_button_foreground"/> + +</selector>
\ No newline at end of file diff --git a/mobile/android/base/resources/drawable/tab_row.xml b/mobile/android/base/resources/drawable/tab_row.xml new file mode 100644 index 000000000..cefd990f3 --- /dev/null +++ b/mobile/android/base/resources/drawable/tab_row.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_focused="true" + android:drawable="@color/tab_row_pressed"/> + + <item android:state_pressed="true" + android:drawable="@color/tab_row_pressed"/> + + <item android:drawable="@android:color/transparent"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/tab_strip_button.xml b/mobile/android/base/resources/drawable/tab_strip_button.xml new file mode 100644 index 000000000..7daa9d5c4 --- /dev/null +++ b/mobile/android/base/resources/drawable/tab_strip_button.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto"> + + <item android:state_pressed="true" + android:state_enabled="true"> + + <inset android:insetTop="@dimen/tablet_tab_strip_button_inset" + android:insetBottom="@dimen/tablet_tab_strip_button_inset" + android:insetLeft="@dimen/tablet_tab_strip_button_inset" + android:insetRight="@dimen/tablet_tab_strip_button_inset"> + <shape android:shape="rectangle"> + <solid android:color="@color/highlight_dark"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + </inset> + + </item> + + <item android:state_focused="true" + android:state_pressed="false"> + + <inset android:insetTop="@dimen/tablet_tab_strip_button_inset" + android:insetBottom="@dimen/tablet_tab_strip_button_inset" + android:insetLeft="@dimen/tablet_tab_strip_button_inset" + android:insetRight="@dimen/tablet_tab_strip_button_inset"> + <shape android:shape="rectangle"> + <solid android:color="@color/tablet_highlight_focused"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + </inset> + + </item> + + <item> + <shape android:shape="rectangle"> + <solid android:color="@android:color/transparent"/> + </shape> + </item> + +</selector> diff --git a/mobile/android/base/resources/drawable/tab_strip_divider.xml b/mobile/android/base/resources/drawable/tab_strip_divider.xml new file mode 100644 index 000000000..4ff4ff31f --- /dev/null +++ b/mobile/android/base/resources/drawable/tab_strip_divider.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + + <solid android:color="#555555"/> + + <size android:width="1dp" + android:height="30dp"/> + + <!-- We draw this ourselves in TabStripView.draw() and to avoid implementing more + than we have to, only bottom padding is taken into account. --> + <padding android:bottom="6dp"/> + +</shape> diff --git a/mobile/android/base/resources/drawable/tab_thumbnail.xml b/mobile/android/base/resources/drawable/tab_thumbnail.xml new file mode 100644 index 000000000..e51de927e --- /dev/null +++ b/mobile/android/base/resources/drawable/tab_thumbnail.xml @@ -0,0 +1,87 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto"> + + <item android:state_focused="true"> + + <shape android:shape="rectangle"> + <!-- @color/fennec_ui_orange with alpha --> + <solid android:color="#B3FF9500"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + + </item> + + <item android:state_focused="true" + gecko:state_private="true"> + + <shape android:shape="rectangle"> + <!-- @color/private_browsing_purple with alpha --> + <solid android:color="#B3CF68FF"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + + </item> + + <item android:state_pressed="true" + gecko:state_private="true"> + + <shape android:shape="rectangle"> + <!-- @color/private_browsing_purple with alpha --> + <solid android:color="#B3CF68FF"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + + </item> + + <item android:state_pressed="true"> + + <shape android:shape="rectangle"> + <!-- @color/fennec_ui_orange with alpha --> + <solid android:color="#B3FF9500"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + + </item> + + <item gecko:state_recording="true"> + + <shape android:shape="rectangle"> + <solid android:color="#FFFF0000"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + + </item> + + <item android:state_focused="false" + android:state_pressed="false" + android:state_checked="true" + gecko:state_recording="false" + gecko:state_private="true"> + + <shape android:shape="rectangle"> + <solid android:color="@color/private_browsing_purple"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + + </item> + + <item android:state_focused="false" + android:state_pressed="false" + android:state_checked="true" + gecko:state_recording="false"> + + <shape android:shape="rectangle"> + <solid android:color="@color/fennec_ui_orange"/> + <corners android:radius="@dimen/standard_corner_radius"/> + </shape> + + </item> + + <item android:drawable="@android:color/transparent"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/tabs_panel_indicator.xml b/mobile/android/base/resources/drawable/tabs_panel_indicator.xml new file mode 100644 index 000000000..4c1ab7655 --- /dev/null +++ b/mobile/android/base/resources/drawable/tabs_panel_indicator.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto"> + + <item android:state_focused="false" + android:state_selected="false" + android:state_pressed="false" + android:drawable="@android:color/transparent"/> + + <item gecko:state_private="true" + android:state_focused="false" + android:state_selected="true" + android:state_pressed="false" + android:drawable="@drawable/tabs_panel_indicator_selected_private"/> + + <item android:state_focused="false" + android:state_selected="true" + android:state_pressed="false" + android:drawable="@drawable/tabs_panel_indicator_selected"/> + + <item android:state_focused="true" + android:state_selected="false" + android:state_pressed="false" + android:drawable="@color/highlight_dark_focused"/> + + <item android:state_focused="true" + android:state_selected="true" + android:state_pressed="false" + android:drawable="@drawable/tab_indicator_selected_focused"/> + + <item android:state_focused="false" + android:state_selected="false" + android:state_pressed="true" + android:drawable="@color/highlight_dark"/> + + <item android:state_focused="false" + android:state_selected="true" + android:state_pressed="true" + android:drawable="@color/highlight_dark"/> + + <item android:state_focused="true" + android:state_selected="false" + android:state_pressed="true" + android:drawable="@color/highlight_dark"/> + + <item android:state_focused="true" + android:state_selected="true" + android:state_pressed="true" + android:drawable="@color/highlight_dark"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/tabs_panel_indicator_selected.xml b/mobile/android/base/resources/drawable/tabs_panel_indicator_selected.xml new file mode 100644 index 000000000..c74b343e5 --- /dev/null +++ b/mobile/android/base/resources/drawable/tabs_panel_indicator_selected.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:insetTop="@dimen/tabs_panel_indicator_selected_padding_top" + android:drawable="@color/fennec_ui_orange" + /> diff --git a/mobile/android/base/resources/drawable/tabs_panel_indicator_selected_private.xml b/mobile/android/base/resources/drawable/tabs_panel_indicator_selected_private.xml new file mode 100644 index 000000000..93dc04986 --- /dev/null +++ b/mobile/android/base/resources/drawable/tabs_panel_indicator_selected_private.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<inset xmlns:android="http://schemas.android.com/apk/res/android" + android:insetTop="@dimen/tabs_panel_indicator_selected_padding_top" + android:drawable="@color/private_browsing_purple" + /> diff --git a/mobile/android/base/resources/drawable/tabs_strip_indicator.xml b/mobile/android/base/resources/drawable/tabs_strip_indicator.xml new file mode 100644 index 000000000..32ca3115a --- /dev/null +++ b/mobile/android/base/resources/drawable/tabs_strip_indicator.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_focused="false" + android:state_selected="false" + android:state_pressed="false" + android:drawable="@android:color/transparent"/> + + <item android:state_focused="false" + android:state_selected="true" + android:state_pressed="false" + android:drawable="@drawable/tab_indicator_selected"/> + + <item android:state_focused="true" + android:state_selected="false" + android:state_pressed="false" + android:drawable="@color/highlight_dark_focused"/> + + <item android:state_focused="true" + android:state_selected="true" + android:state_pressed="false" + android:drawable="@drawable/tab_indicator_selected_focused"/> + + <item android:state_focused="false" + android:state_selected="false" + android:state_pressed="true" + android:drawable="@color/highlight_dark"/> + + <item android:state_focused="false" + android:state_selected="true" + android:state_pressed="true" + android:drawable="@color/highlight_dark"/> + + <item android:state_focused="true" + android:state_selected="false" + android:state_pressed="true" + android:drawable="@color/highlight_dark"/> + + <item android:state_focused="true" + android:state_selected="true" + android:state_pressed="true" + android:drawable="@color/highlight_dark"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/toast_background.xml b/mobile/android/base/resources/drawable/toast_background.xml new file mode 100644 index 000000000..55cd9d9b2 --- /dev/null +++ b/mobile/android/base/resources/drawable/toast_background.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <solid android:color="@color/toast_background" /> + <corners android:radius="@dimen/toast_button_corner_radius" /> +</shape> diff --git a/mobile/android/base/resources/drawable/toast_button_background.xml b/mobile/android/base/resources/drawable/toast_button_background.xml new file mode 100644 index 000000000..6570d9b45 --- /dev/null +++ b/mobile/android/base/resources/drawable/toast_button_background.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + <!-- On Android pre v12/3.0/Gingerbread, bottom left and bottom + right are swapped. These values correct this bug; the resources + that don't need correction are in res/drawable-v12. --> + <item android:state_pressed="true"> + <shape android:shape="rectangle"> + <solid android:color="@color/toast_button_pressed" /> + <corners + android:topRightRadius="@dimen/toast_button_corner_radius" + android:bottomLeftRadius="@dimen/toast_button_corner_radius" + android:topLeftRadius="0dp" + android:bottomRightRadius="0dp" /> + </shape> + </item> + <item> + <shape android:shape="rectangle"> + <solid android:color="@color/toast_button_background" /> + <corners + android:topRightRadius="@dimen/toast_button_corner_radius" + android:bottomLeftRadius="@dimen/toast_button_corner_radius" + android:topLeftRadius="0dp" + android:bottomRightRadius="0dp" /> + </shape> + </item> +</selector> diff --git a/mobile/android/base/resources/drawable/toolbar_favicon_default.xml b/mobile/android/base/resources/drawable/toolbar_favicon_default.xml new file mode 100644 index 000000000..92e294fb3 --- /dev/null +++ b/mobile/android/base/resources/drawable/toolbar_favicon_default.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<bitmap xmlns:android="http://schemas.android.com/apk/res/android" + android:src="@drawable/favicon_globe" /> diff --git a/mobile/android/base/resources/drawable/toolbar_grey_round.xml b/mobile/android/base/resources/drawable/toolbar_grey_round.xml new file mode 100644 index 000000000..ada0146dd --- /dev/null +++ b/mobile/android/base/resources/drawable/toolbar_grey_round.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android"> + <solid android:color="@color/toolbar_grey"/> + <corners android:radius="@dimen/standard_corner_radius"/> +</shape> + diff --git a/mobile/android/base/resources/drawable/top_sites_thumbnail_bg.xml b/mobile/android/base/resources/drawable/top_sites_thumbnail_bg.xml new file mode 100644 index 000000000..9d106441e --- /dev/null +++ b/mobile/android/base/resources/drawable/top_sites_thumbnail_bg.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <size android:height="2dp" + android:width="2dp"/> + <solid android:color="#FFFFFFFF"/> + <stroke android:width="1dp" android:color="#FFDDDDDD"/> +</shape> diff --git a/mobile/android/base/resources/drawable/url_bar_bg.xml b/mobile/android/base/resources/drawable/url_bar_bg.xml new file mode 100644 index 000000000..52954c1ce --- /dev/null +++ b/mobile/android/base/resources/drawable/url_bar_bg.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto"> + + <!-- private browsing mode --> + <item gecko:state_private="true" android:drawable="@color/tabs_tray_grey_pressed"/> + + <!-- normal mode --> + <item android:drawable="@color/toolbar_grey"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/url_bar_entry.xml b/mobile/android/base/resources/drawable/url_bar_entry.xml new file mode 100644 index 000000000..4090ceb8e --- /dev/null +++ b/mobile/android/base/resources/drawable/url_bar_entry.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:gecko="http://schemas.android.com/apk/res-auto"> + + <!-- private browsing mode --> + <item gecko:state_private="true" + android:state_focused="true" + android:drawable="@drawable/url_bar_entry_pressed_pb"/> + + <item gecko:state_private="true" + android:state_pressed="true" + android:drawable="@drawable/url_bar_entry_pressed_pb"/> + + <item gecko:state_private="true" + android:state_selected="true" + android:drawable="@drawable/url_bar_entry_pressed_pb"/> + + <item gecko:state_private="true" + android:drawable="@drawable/url_bar_entry_default_pb"/> + + <!-- normal modes --> + <item android:state_focused="true" + android:drawable="@drawable/url_bar_entry_pressed"/> + + <item android:state_pressed="true" + android:drawable="@drawable/url_bar_entry_pressed"/> + + <item android:state_selected="true" + android:drawable="@drawable/url_bar_entry_pressed"/> + + <item android:drawable="@drawable/url_bar_entry_default"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/url_bar_nav_button.xml b/mobile/android/base/resources/drawable/url_bar_nav_button.xml new file mode 100644 index 000000000..2afadaf5e --- /dev/null +++ b/mobile/android/base/resources/drawable/url_bar_nav_button.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- This asset is properly available in large-* dirs so this null + reference exists for build time on API 9 builds. --> +<bitmap xmlns:android="http://schemas.android.com/apk/res/android" + android:src="@null"/> diff --git a/mobile/android/base/resources/drawable/url_bar_translating_edge.xml b/mobile/android/base/resources/drawable/url_bar_translating_edge.xml new file mode 100644 index 000000000..379499284 --- /dev/null +++ b/mobile/android/base/resources/drawable/url_bar_translating_edge.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<clip xmlns:android="http://schemas.android.com/apk/res/android" + android:drawable="@drawable/url_bar_entry" + android:clipOrientation="horizontal" + android:gravity="right"/>
\ No newline at end of file diff --git a/mobile/android/base/resources/drawable/widget_button_left.xml b/mobile/android/base/resources/drawable/widget_button_left.xml new file mode 100644 index 000000000..9891f8ada --- /dev/null +++ b/mobile/android/base/resources/drawable/widget_button_left.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" + android:drawable="@drawable/widget_button_left_pressed"/> + + <!-- The left button is gray in its off state --> + <item android:drawable="@drawable/widget_button_left_default"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/widget_button_left_default.xml b/mobile/android/base/resources/drawable/widget_button_left_default.xml new file mode 100644 index 000000000..7aff6bc1a --- /dev/null +++ b/mobile/android/base/resources/drawable/widget_button_left_default.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- These drawables have to be wrapped in a layer-list in order to produce padding at + the bottom of the drawable. That padding ensures the drawable doesn't block the + orange strip in widget_bg.9.png --> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:bottom="@dimen/widget_bg_border_offset"> + <shape android:shape="rectangle"> + <corners android:topLeftRadius="@dimen/widget_drawable_corner_radius" + android:topRightRadius="0dp" + android:bottomLeftRadius="0dp" + android:bottomRightRadius="0dp"/> + <solid android:color="@color/toolbar_grey"/> + </shape> + </item> +</layer-list> diff --git a/mobile/android/base/resources/drawable/widget_button_left_pressed.xml b/mobile/android/base/resources/drawable/widget_button_left_pressed.xml new file mode 100644 index 000000000..d4ae5a715 --- /dev/null +++ b/mobile/android/base/resources/drawable/widget_button_left_pressed.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- These drawables have to be wrapped in a layer-list in order to produce padding at + the bottom of the drawable. That padding ensures the drawable doesn't block the + orange strip in widget_bg.9.png --> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:bottom="@dimen/widget_bg_border_offset"> + <shape android:shape="rectangle"> + <corners android:topLeftRadius="@dimen/widget_drawable_corner_radius" + android:topRightRadius="0dp" + android:bottomLeftRadius="0dp" + android:bottomRightRadius="0dp"/> + <solid android:color="@color/widget_button_pressed"/> + </shape> + </item> +</layer-list> diff --git a/mobile/android/base/resources/drawable/widget_button_middle.xml b/mobile/android/base/resources/drawable/widget_button_middle.xml new file mode 100644 index 000000000..e7d74b0cc --- /dev/null +++ b/mobile/android/base/resources/drawable/widget_button_middle.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" + android:drawable="@drawable/widget_button_middle_pressed"/> + + <item android:drawable="@android:color/transparent"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/widget_button_middle_pressed.xml b/mobile/android/base/resources/drawable/widget_button_middle_pressed.xml new file mode 100644 index 000000000..19236d641 --- /dev/null +++ b/mobile/android/base/resources/drawable/widget_button_middle_pressed.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- These drawables have to be wrapped in a layer-list in order to produce padding at + the bottom of the drawable. That padding ensures the drawable doesn't block the + orange strip in widget_bg.9.png --> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:bottom="@dimen/widget_bg_border_offset"> + <shape android:shape="rectangle"> + <solid android:color="@color/widget_button_pressed"/> + </shape> + </item> +</layer-list> diff --git a/mobile/android/base/resources/drawable/widget_button_right.xml b/mobile/android/base/resources/drawable/widget_button_right.xml new file mode 100644 index 000000000..54fae2018 --- /dev/null +++ b/mobile/android/base/resources/drawable/widget_button_right.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<selector xmlns:android="http://schemas.android.com/apk/res/android"> + + <item android:state_pressed="true" + android:drawable="@drawable/widget_button_right_pressed"/> + + <item android:drawable="@android:color/transparent"/> + +</selector> diff --git a/mobile/android/base/resources/drawable/widget_button_right_pressed.xml b/mobile/android/base/resources/drawable/widget_button_right_pressed.xml new file mode 100644 index 000000000..2ebf61489 --- /dev/null +++ b/mobile/android/base/resources/drawable/widget_button_right_pressed.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + +<!-- These drawables have to be wrapped in a layer-list in order to produce padding at + the bottom of the drawable. That padding ensures the drawable doesn't block the + orange strip in widget_bg.9.png --> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:bottom="@dimen/widget_bg_border_offset"> + <shape android:shape="rectangle"> + <corners android:topLeftRadius="0dp" + android:topRightRadius="@dimen/widget_drawable_corner_radius" + android:bottomLeftRadius="0dp" + android:bottomRightRadius="0dp"/> + <solid android:color="@color/widget_button_pressed"/> + </shape> + </item> +</layer-list> |