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/NavigationBarPhone.java b/src/com/android/browser/NavigationBarPhone.java
index f528e8f..e73f218 100644
--- a/src/com/android/browser/NavigationBarPhone.java
+++ b/src/com/android/browser/NavigationBarPhone.java
@@ -244,7 +244,11 @@
@Override
public void onTabDataChanged(Tab tab) {
super.onTabDataChanged(tab);
- mIncognitoIcon.setVisibility(tab.isPrivateBrowsingEnabled()
- ? View.VISIBLE : View.GONE);
+ boolean isPrivate = tab.isPrivateBrowsingEnabled();
+ mIncognitoIcon.setVisibility(isPrivate ? View.VISIBLE : View.GONE);
+ // change the background to a darker tone to reflect the 'incognito' state
+ setBackgroundColor(getResources().getColor(isPrivate ?
+ R.color.NavigationBarBackgroundIncognito : R.color.NavigationBarBackground));
+
}
}