diff options
author | jrizzoli <joey@cyanogenmoditalia.it> | 2015-05-06 20:59:59 +0200 |
---|---|---|
committer | Joey Rizzoli <joey@cyanogenmoditalia.it> | 2015-11-07 14:08:54 -0800 |
commit | 4c496c806380653642f17eb8950ba9efd7d43299 (patch) | |
tree | 607a011952213ef22f9308267535cf4b2d5e156b /res/drawable | |
parent | a77b9f7993ec874eadde2104f8b0f73f2f6186d2 (diff) | |
download | packages_apps_Browser-4c496c806380653642f17eb8950ba9efd7d43299.zip packages_apps_Browser-4c496c806380653642f17eb8950ba9efd7d43299.tar.gz packages_apps_Browser-4c496c806380653642f17eb8950ba9efd7d43299.tar.bz2 |
Browser: update UI
* Res
- Rename (#themersgottahate)
- Vectors
- Card-Tabs
- CleanUp
* Interface
- Longpress fab to open incognito tab
- New icon
- Better urlbar
- Fix tab animations
- Remap PieControl
* Features
- Immersive mode (replace jb fullscreen)
Change-Id: I2fde4242f477359dc8af18d1b7752750058cd6e9
Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
Diffstat (limited to 'res/drawable')
28 files changed, 184 insertions, 46 deletions
diff --git a/res/drawable/add_tab_selector.xml b/res/drawable/add_tab_selector.xml index 4898f8f..35a0404 100644 --- a/res/drawable/add_tab_selector.xml +++ b/res/drawable/add_tab_selector.xml @@ -18,7 +18,7 @@ <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="false" - android:drawable="@drawable/browsertab_add" /> + android:drawable="@color/primary" /> <item android:state_focused="true" - android:drawable="@drawable/browsertab_add_focused" /> + android:drawable="@color/primary" /> </selector> diff --git a/res/drawable/btn_checkbox_star.xml b/res/drawable/btn_checkbox_star.xml index 6f2c75b..ddbcb53 100644 --- a/res/drawable/btn_checkbox_star.xml +++ b/res/drawable/btn_checkbox_star.xml @@ -16,7 +16,7 @@ <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_checked="true" - android:drawable="@drawable/ic_bookmark_on_dark" /> + android:drawable="@drawable/ic_bookmark_on" /> <item android:state_checked="false" - android:drawable="@drawable/ic_bookmark_off_dark" /> + android:drawable="@drawable/ic_bookmark_off" /> </selector> diff --git a/res/drawable/btn_imageview_star.xml b/res/drawable/btn_imageview_star.xml index 319c199..6de9801 100644 --- a/res/drawable/btn_imageview_star.xml +++ b/res/drawable/btn_imageview_star.xml @@ -16,7 +16,7 @@ <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_activated="true" - android:drawable="@drawable/ic_bookmark_on_dark" /> + android:drawable="@drawable/ic_bookmark_on" /> <item android:state_activated="false" - android:drawable="@drawable/ic_bookmark_off_dark" /> + android:drawable="@drawable/ic_bookmark_off" /> </selector> diff --git a/res/drawable/card.xml b/res/drawable/card.xml new file mode 100644 index 0000000..fbbf095 --- /dev/null +++ b/res/drawable/card.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="utf-8"?> +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> + <item> + <shape> + <padding android:top="10dp" android:right="10dp" android:bottom="5dp" android:left="10dp" /> + <solid android:color="@color/trasparent" /> + </shape> + </item> + <item> + <shape> + <padding android:top="0dp" android:right="0dp" android:bottom="1dp" android:left="0dp" /> + <solid android:color="@color/primary" /> + <corners android:radius="2dp" /> + </shape> + </item> +</layer-list> diff --git a/res/drawable/ic_back.xml b/res/drawable/ic_back.xml new file mode 100644 index 0000000..2f704c5 --- /dev/null +++ b/res/drawable/ic_back.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> +</vector> diff --git a/res/drawable/ic_back_dark.xml b/res/drawable/ic_back_disabled.xml index f470923..f470923 100644 --- a/res/drawable/ic_back_dark.xml +++ b/res/drawable/ic_back_disabled.xml diff --git a/res/drawable/ic_back_hierarchy.xml b/res/drawable/ic_back_hierarchy.xml new file mode 100644 index 0000000..2b1a1b9 --- /dev/null +++ b/res/drawable/ic_back_hierarchy.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" /> +</vector> diff --git a/res/drawable/ic_bookmarks_dark.xml b/res/drawable/ic_bookmarks.xml index a7d7342..a7d7342 100644 --- a/res/drawable/ic_bookmarks_dark.xml +++ b/res/drawable/ic_bookmarks.xml diff --git a/res/drawable/ic_bookmarks_history_dark.xml b/res/drawable/ic_bookmarks_history.xml index a7d7342..a7d7342 100644 --- a/res/drawable/ic_bookmarks_history_dark.xml +++ b/res/drawable/ic_bookmarks_history.xml diff --git a/res/drawable/ic_close_window_dark.xml b/res/drawable/ic_close_window.xml index 5e49748..5e49748 100644 --- a/res/drawable/ic_close_window_dark.xml +++ b/res/drawable/ic_close_window.xml diff --git a/res/drawable/ic_forward.xml b/res/drawable/ic_forward.xml new file mode 100644 index 0000000..1489d5e --- /dev/null +++ b/res/drawable/ic_forward.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" /> +</vector> diff --git a/res/drawable/ic_forward_dark.xml b/res/drawable/ic_forward_disabled.xml index b75da6c..b75da6c 100644 --- a/res/drawable/ic_forward_dark.xml +++ b/res/drawable/ic_forward_disabled.xml diff --git a/res/drawable/ic_forward_disabled_dark.xml b/res/drawable/ic_forward_disabled_dark.xml deleted file mode 100644 index b75da6c..0000000 --- a/res/drawable/ic_forward_disabled_dark.xml +++ /dev/null @@ -1,15 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24" - android:viewportHeight="24"> - - <group> - <path - android:pathData="M0 0h24v24h-24z" /> - <path - android:fillColor="#fafafa" - android:pathData="M12 4l-1.41 1.41 5.58 5.59h-12.17v2h12.17l-5.58 5.59 1.41 1.41 8-8z" /> - </group> -</vector> diff --git a/res/drawable/ic_fullscreen.xml b/res/drawable/ic_fullscreen.xml new file mode 100644 index 0000000..d955ed7 --- /dev/null +++ b/res/drawable/ic_fullscreen.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1 .9 2 2 +2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z" /> +</vector> diff --git a/res/drawable/ic_home.xml b/res/drawable/ic_home.xml new file mode 100644 index 0000000..9b8ebbe --- /dev/null +++ b/res/drawable/ic_home.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" /> +</vector> diff --git a/res/drawable/ic_incognito.xml b/res/drawable/ic_incognito.xml new file mode 100644 index 0000000..e88d891 --- /dev/null +++ b/res/drawable/ic_incognito.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 +3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74 .25 -3.98 .7 l2.16 2.16C10.74 7.13 +11.35 7 12 7zM2 4.27l2.28 2.28 .46 .46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 +11 7.5 1.55 0 3.03-.3 4.38-.84l.42 .42 L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 +9.8l1.55 1.55c-.05 .21 -.08 .43 -.08 .65 0 1.66 1.34 3 3 3 .22 0 .44-.03 .65 +-.08l1.55 1.55c-.67 .33 -1.41 .53 -2.2 .53 -2.76 0-5-2.24-5-5 0-.79 .2 -1.53 .53 +-2.2zm4.31-.78l3.15 3.15 .02 -.16c0-1.66-1.34-3-3-3l-.17 .01 z" /> +</vector> diff --git a/res/drawable/ic_menu.xml b/res/drawable/ic_menu.xml new file mode 100644 index 0000000..8cf152f --- /dev/null +++ b/res/drawable/ic_menu.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 +2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" /> +</vector> diff --git a/res/drawable/ic_back_disabled_dark.xml b/res/drawable/ic_menu_bookmark.xml index f470923..2646064 100644 --- a/res/drawable/ic_back_disabled_dark.xml +++ b/res/drawable/ic_menu_bookmark.xml @@ -7,9 +7,10 @@ <group> <path - android:pathData="M0 0h24v24h-24z" /> + android:fillColor="#212121" + android:pathData="M17 3h-10c-1.1 0-1.99 .9 -1.99 2l-.01 16 7-3 7 3v-16c0-1.1-.9-2-2-2zm0 +15l-5-2.18-5 2.18v-13h10v13z" /> <path - android:fillColor="#fafafa" - android:pathData="M20 11h-12.17l5.59-5.59-1.42-1.41-8 8 8 8 1.41-1.41-5.58-5.59h12.17v-2z" /> + android:pathData="M0 0h24v24h-24z" /> </group> </vector> diff --git a/res/drawable/ic_menu_forward.xml b/res/drawable/ic_menu_forward.xml new file mode 100644 index 0000000..cdf04d7 --- /dev/null +++ b/res/drawable/ic_menu_forward.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#212121" + android:pathData="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z" /> +</vector> diff --git a/res/drawable/ic_back_hierarchy_dark.xml b/res/drawable/ic_menu_stop.xml index 07defc9..3189848 100644 --- a/res/drawable/ic_back_hierarchy_dark.xml +++ b/res/drawable/ic_menu_stop.xml @@ -7,8 +7,9 @@ <group> <path - android:fillColor="#fafafa" - android:pathData="M15.41 7.41l-1.41-1.41-6 6 6 6 1.41-1.41-4.58-4.59z" /> + android:fillColor="#212121" + android:pathData="M19 6.41l-1.41-1.41-5.59 5.59-5.59-5.59-1.41 1.41 5.59 5.59-5.59 5.59 1.41 1.41 +5.59-5.59 5.59 5.59 1.41-1.41-5.59-5.59z" /> <path android:pathData="M0 0h24v24h-24z" /> </group> diff --git a/res/drawable/ic_new_window_dark.xml b/res/drawable/ic_new_window.xml index 2339658..2339658 100644 --- a/res/drawable/ic_new_window_dark.xml +++ b/res/drawable/ic_new_window.xml diff --git a/res/drawable/ic_new_window_incognito.xml b/res/drawable/ic_new_window_incognito.xml new file mode 100644 index 0000000..46a950e --- /dev/null +++ b/res/drawable/ic_new_window_incognito.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 +10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /> +</vector> diff --git a/res/drawable/ic_refresh.xml b/res/drawable/ic_refresh.xml new file mode 100644 index 0000000..4f870dc --- /dev/null +++ b/res/drawable/ic_refresh.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 +6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 +0 3.14 .69 4.22 1.78L13 11h7V4l-2.35 2.35z" /> +</vector> diff --git a/res/drawable/ic_refresh_dark.xml b/res/drawable/ic_refresh_dark.xml deleted file mode 100644 index 674c8fd..0000000 --- a/res/drawable/ic_refresh_dark.xml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<vector xmlns:android="http://schemas.android.com/apk/res/android" - android:width="24dp" - android:height="24dp" - android:viewportWidth="24" - android:viewportHeight="24"> - - <group> - <path - android:fillColor="#fafafa" - android:pathData="M17.65 6.35c-1.45-1.45-3.44-2.35-5.65-2.35-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 -8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 -6-6c1.66 0 3.14 .69 4.22 1.78l-3.22 3.22h7v-7l-2.35 2.35z" /> - <path - android:pathData="M0 0h24v24h-24z" /> - </group> -</vector> diff --git a/res/drawable/ic_settings.xml b/res/drawable/ic_settings.xml new file mode 100644 index 0000000..1600440 --- /dev/null +++ b/res/drawable/ic_settings.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M19.43 12.98c.04-.32 .07 -.64 .07 -.98s-.03-.66-.07-.98l2.11-1.65c.19-.15 .24 +-.42 .12 -.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 +1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46 .18 +-.49 .42 l-.38 2.65c-.61 .25 -1.17 .59 -1.69 .98 l-2.49-1c-.23-.09-.49 0-.61 .22 +l-2 3.46c-.13 .22 -.07 .49 .12 .64 l2.11 1.65c-.04 .32 -.07 .65 -.07 .98 s.03 +.66 .07 .98 l-2.11 1.65c-.19 .15 -.24 .42 -.12 .64 l2 3.46c.12 .22 .39 .3 .61 +.22 l2.49-1c.52 .4 1.08 .73 1.69 .98 l.38 2.65c.03 .24 .24 .42 .49 .42 h4c.25 0 +.46-.18 .49 -.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.23 .09 .49 0 +.61-.22l2-3.46c.12-.22 .07 -.49-.12-.64l-2.11-1.65zM12 15.5c-1.93 +0-3.5-1.57-3.5-3.5s1.57-3.5 3.5-3.5 3.5 1.57 3.5 3.5-1.57 3.5-3.5 3.5z" /> +</vector> diff --git a/res/drawable/ic_stop_dark.xml b/res/drawable/ic_stop.xml index 5e49748..5e49748 100644 --- a/res/drawable/ic_stop_dark.xml +++ b/res/drawable/ic_stop.xml diff --git a/res/drawable/ic_windows.xml b/res/drawable/ic_windows.xml new file mode 100644 index 0000000..64f4b3a --- /dev/null +++ b/res/drawable/ic_windows.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="utf-8"?> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24"> + + <path + android:fillColor="#fafafa" + android:pathData="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" /> +</vector> diff --git a/res/drawable/url_background.xml b/res/drawable/url_background.xml index f719c29..42d812c 100644 --- a/res/drawable/url_background.xml +++ b/res/drawable/url_background.xml @@ -18,8 +18,8 @@ xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" - android:drawable="@drawable/textfield_active_holo_dark" /> + android:drawable="@color/primary" /> <item android:state_focused="false" - android:drawable="@drawable/textfield_default_holo_dark" /> -</selector>
\ No newline at end of file + android:drawable="@color/primary" /> +</selector> |