Clean visual style, part II: extend bright style, convert icons, more touch-ups.
This commit removes the remaining white icons from the previous style,
which was a mix of 'holo dark' (i.e. light) icons and other un-fitting
icons. It's all replaced with theme-colored icons.
The primary color itself had been altered a bit towards green (#18aba1).
Other than the icon replacements, this commit changes:
- tab switcher: fix cosmetic bug in the title bar in <= xhdpi devices
- tab switcher: better incognito presentation
- settings: enable back (<-) arrow
- settings: bold color in the activity (on L and up)
- settings: rationalized launching
- better spacings on the mobile title bar
- better padding on history items
- add proportional padding (1em) to the incognito page
- the incognito tab bar gets a bit darker
- ['Ingnito Page', 'New Incognito Tab'] -> 'Private Browsing'
- 'Page info' -> 'Page information' (no abbrevs when user facing :)
Vast amount of unused resources are removed from the APK.
Change-Id: I4add15fc686495ce27f63e26c2c56c14fa3d6603
diff --git a/src/com/android/browser/NavTabView.java b/src/com/android/browser/NavTabView.java
index 3bcd7a2..49bd080 100644
--- a/src/com/android/browser/NavTabView.java
+++ b/src/com/android/browser/NavTabView.java
@@ -58,7 +58,7 @@
private void init() {
LayoutInflater.from(getContext()).inflate(R.layout.nav_tab_view, this);
- mContent = (ViewGroup) findViewById(R.id.main);
+ mContent = (ViewGroup) findViewById(R.id.nav_tab);
mClose = (ImageView) findViewById(R.id.closetab);
mTitle = (TextView) findViewById(R.id.title);
mTitleBar = findViewById(R.id.titlebar);
@@ -89,9 +89,12 @@
mTitle.setText(txt);
}
if (mTab.isSnapshot()) {
- setTitleIcon(R.drawable.ic_history_holo_dark);
+ setTitleIcon(R.drawable.ic_suggest_history_normal);
} else if (mTab.isPrivateBrowsingEnabled()) {
- setTitleIcon(R.drawable.ic_incognito_holo_dark);
+ mContent.setBackgroundResource(R.drawable.nav_tab_title_incognito);
+ mTitle.setTextColor(getResources().getColor(R.color.white));
+ mClose.setImageResource(R.drawable.ic_action_close_inverted);
+ setTitleIcon(R.drawable.ic_deco_incognito_normal);
} else {
setTitleIcon(0);
}