summaryrefslogtreecommitdiffstats
path: root/src/com/android
diff options
context:
space:
mode:
authorjrizzoli <joey@cyanogenmoditalia.it>2016-01-24 21:06:30 +0100
committerjrizzoli <joey@cyanogenmoditalia.it>2016-01-25 12:32:08 +0100
commit3f57be003e868c97d9fc8a8a6a225c887dc8b383 (patch)
treed37f3361bfb2ef6cb84037d4b9d30e48188e2ca8 /src/com/android
parentdd54cda1faac62396cd790c72812f1c07e6efc31 (diff)
downloadandroid_packages_apps_Gello-3f57be003e868c97d9fc8a8a6a225c887dc8b383.tar.gz
android_packages_apps_Gello-3f57be003e868c97d9fc8a8a6a225c887dc8b383.tar.bz2
android_packages_apps_Gello-3f57be003e868c97d9fc8a8a6a225c887dc8b383.zip
Gello: fix tablet navbar UI
Change-Id: I4a772a6c2992aea1b1b09a00fb9945d73e9c0e7a Signed-off-by: jrizzoli <joey@cyanogenmoditalia.it>
Diffstat (limited to 'src/com/android')
-rw-r--r--src/com/android/browser/NavigationBarBase.java4
-rw-r--r--src/com/android/browser/NavigationBarTablet.java12
-rw-r--r--src/com/android/browser/SiteTileView.java4
-rw-r--r--src/com/android/browser/SnapshotBar.java9
-rw-r--r--src/com/android/browser/TabBar.java4
5 files changed, 7 insertions, 26 deletions
diff --git a/src/com/android/browser/NavigationBarBase.java b/src/com/android/browser/NavigationBarBase.java
index eb8dc537..246235aa 100644
--- a/src/com/android/browser/NavigationBarBase.java
+++ b/src/com/android/browser/NavigationBarBase.java
@@ -727,7 +727,7 @@ public class NavigationBarBase extends LinearLayout implements
mHandler.removeMessages(WEBREFINER_COUNTER_MSG);
mHandler.sendEmptyMessageDelayed(WEBREFINER_COUNTER_MSG,
WEBREFINER_COUNTER_MSG_DELAY);
- mStopButton.setImageResource(R.drawable.ic_action_stop);
+ mStopButton.setImageResource(R.drawable.ic_action_stop_inverted);
mStopButton.setContentDescription(getResources().
getString(R.string.accessibility_button_stop));
}
@@ -736,7 +736,7 @@ public class NavigationBarBase extends LinearLayout implements
if (!isEditingUrl()) {
mFaviconTile.setVisibility(View.VISIBLE);
}
- mStopButton.setImageResource(R.drawable.ic_action_reload);
+ mStopButton.setImageResource(R.drawable.ic_action_reload_inverted);
mStopButton.setContentDescription(getResources().
getString(R.string.accessibility_button_refresh));
}
diff --git a/src/com/android/browser/NavigationBarTablet.java b/src/com/android/browser/NavigationBarTablet.java
index ce482d94..d2d63b3c 100644
--- a/src/com/android/browser/NavigationBarTablet.java
+++ b/src/com/android/browser/NavigationBarTablet.java
@@ -33,8 +33,6 @@ public class NavigationBarTablet extends NavigationBarBase implements StateListe
private ImageButton mBackButton;
private ImageButton mForwardButton;
private ImageView mStar;
- private ImageView mSearchButton;
- private View mAllButton;
private View mNavButtons;
private boolean mHideNavButtons;
@@ -60,18 +58,14 @@ public class NavigationBarTablet extends NavigationBarBase implements StateListe
@Override
protected void onFinishInflate() {
super.onFinishInflate();
- mAllButton = findViewById(R.id.all_btn);
mNavButtons = findViewById(R.id.navbuttons);
mBackButton = (ImageButton) findViewById(R.id.back);
mForwardButton = (ImageButton) findViewById(R.id.forward);
mStar = (ImageView) findViewById(R.id.star);
- mSearchButton = (ImageView) findViewById(R.id.search);
mUrlContainer = findViewById(R.id.urlbar_focused);
mBackButton.setOnClickListener(this);
mForwardButton.setOnClickListener(this);
mStar.setOnClickListener(this);
- mAllButton.setOnClickListener(this);
- mSearchButton.setOnClickListener(this);
mUrlInput.setContainer(mUrlContainer);
mUrlInput.setStateListener(this);
}
@@ -124,10 +118,6 @@ public class NavigationBarTablet extends NavigationBarBase implements StateListe
if (intent != null) {
getContext().startActivity(intent);
}
- } else if (mAllButton == v) {
- mUiController.bookmarksOrHistoryPicker(ComboViews.Bookmarks);
- } else if (mSearchButton == v) {
- mBaseUi.editUrl(true, true);
} else {
super.onClick(v);
}
@@ -140,14 +130,12 @@ public class NavigationBarTablet extends NavigationBarBase implements StateListe
if (mHideNavButtons) {
hideNavButtons();
}
- mSearchButton.setVisibility(View.GONE);
mStar.setVisibility(View.GONE);
} else {
if (mHideNavButtons) {
showNavButtons();
}
showHideStar(mUiController.getCurrentTab());
- mSearchButton.setVisibility(View.VISIBLE);
}
}
diff --git a/src/com/android/browser/SiteTileView.java b/src/com/android/browser/SiteTileView.java
index 8d69dbaf..0c93bd0b 100644
--- a/src/com/android/browser/SiteTileView.java
+++ b/src/com/android/browser/SiteTileView.java
@@ -304,7 +304,7 @@ public class SiteTileView extends View {
sDefaultSiteBitmap = BitmapFactory.decodeResource(getResources(),
DEFAULT_SITE_FAVICON);
mFaviconBitmap = sDefaultSiteBitmap;
- fundamentalColor = 0xFF262626;
+ fundamentalColor = 0xFFFAFAFA;
}
if (mFaviconBitmap != null) {
@@ -343,7 +343,7 @@ public class SiteTileView extends View {
// bitmap paint (copy, smooth scale)
sBitmapPaint = new Paint();
- sBitmapPaint.setColor(Color.BLACK);
+ sBitmapPaint.setColor(Color.WHITE);
sBitmapPaint.setFilterBitmap(true);
// badge text paint (anti-aliased)
diff --git a/src/com/android/browser/SnapshotBar.java b/src/com/android/browser/SnapshotBar.java
index eeb300bb..926c4ca4 100644
--- a/src/com/android/browser/SnapshotBar.java
+++ b/src/com/android/browser/SnapshotBar.java
@@ -51,7 +51,6 @@ public class SnapshotBar extends LinearLayout implements OnClickListener {
private ImageView mReadericon;
private TextView mDate;
private TextView mTitle;
- private View mBookmarks;
private TitleBar mTitleBar;
private View mTabSwitcher;
private TextView mTabText;
@@ -114,15 +113,11 @@ public class SnapshotBar extends LinearLayout implements OnClickListener {
mReadericon = (ImageView) findViewById(R.id.reader_icon);
mDate = (TextView) findViewById(R.id.date);
mTitle = (TextView) findViewById(R.id.title);
- mBookmarks = findViewById(R.id.all_btn);
mTabSwitcher = findViewById(R.id.tab_switcher);
mTabText = (TextView) findViewById(R.id.tab_switcher_text);
mOverflowMenu = findViewById(R.id.more);
mToggleContainer = findViewById(R.id.toggle_container);
- if (mBookmarks != null) {
- mBookmarks.setOnClickListener(this);
- }
if (mTabSwitcher != null) {
mTabSwitcher.setOnClickListener(this);
}
@@ -196,9 +191,7 @@ public class SnapshotBar extends LinearLayout implements OnClickListener {
@Override
public void onClick(View v) {
- if (mBookmarks == v) {
- mTitleBar.getUiController().bookmarksOrHistoryPicker(ComboViews.Bookmarks);
- } else if (mTabSwitcher == v) {
+ if (mTabSwitcher == v) {
((PhoneUi) mTitleBar.getUi()).toggleNavScreen();
} else if (mOverflowMenu == v) {
NavigationBarBase navBar = mTitleBar.getNavigationBar();
diff --git a/src/com/android/browser/TabBar.java b/src/com/android/browser/TabBar.java
index 378557e2..ed495638 100644
--- a/src/com/android/browser/TabBar.java
+++ b/src/com/android/browser/TabBar.java
@@ -354,8 +354,8 @@ public class TabBar extends LinearLayout implements OnClickListener {
getColor(R.color.NavigationBarBackground));
Bitmap inactiveTexture = Bitmap.createBitmap(
mCurrentTextureWidth, mCurrentTextureHeight, Bitmap.Config.ARGB_8888);
- inactiveTexture.eraseColor(getResources().
- getColor(R.color.TabNavBackgroundColor));
+ //inactiveTexture.eraseColor(getResources().
+ // getColor(R.color.TabNavBackgroundColor));
mActiveShader = new BitmapShader(activeTexture,
Shader.TileMode.CLAMP, Shader.TileMode.CLAMP);