Skip to content

Commit

Permalink
Changing the styles and colors of the bookmark widget
Browse files Browse the repository at this point in the history
Bug: 939149
Change-Id: I22f960d7ef2545d1560abc535308edec2ba40960
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1524098
Commit-Queue: Sinan Sahin <sinansahin@google.com>
Reviewed-by: Theresa <twellington@chromium.org>
Reviewed-by: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#640959}
  • Loading branch information
fsinan authored and Commit Bot committed Mar 14, 2019
1 parent aae80a8 commit 87e19e4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion chrome/android/java/res/layout/bookmark_widget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
android:id="@+id/bookmarks_list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ddffffff"
android:background="@color/bookmark_widget_background"
android:divider="@null"
android:drawSelectorOnTop="true"
android:listSelector="@drawable/bookmark_widget_list_selector" />
3 changes: 1 addition & 2 deletions chrome/android/java/res/layout/bookmark_widget_item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
android:paddingEnd="16dp"
android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="@color/default_text_color"
android:textSize="16sp" />
android:textAppearance="@style/TextAppearance.BookmarkWidgetItemText" />

</LinearLayout>
4 changes: 4 additions & 0 deletions chrome/android/java/res/values-v17/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,10 @@
parent="@style/TextAppearance.AppCompat.Medium">
<item name="android:textColor">@color/standard_mode_tint</item>
</style>
<style name="TextAppearance.BookmarkWidgetItemText"
parent="@style/TextAppearance.BlackTitle1">
<item name="android:textColor">@color/default_text_color_dark</item>
</style>

<!-- Download Home -->
<style name="DateView">
Expand Down
1 change: 1 addition & 0 deletions chrome/android/java/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@

<!-- Bookmark widget colors -->
<color name="bookmark_widget_pressed_highlight">@color/black_alpha_11</color>
<color name="bookmark_widget_background">#DDFFFFFF</color>

<!-- Payments UI colors -->
<color name="payments_section_edit_background">@color/modern_secondary_color</color>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ public BookmarkAdapter(Context context, int widgetId) {
mWidgetId = widgetId;
mPreferences = getWidgetState(mContext, mWidgetId);
mIconColor = ApiCompatibilityUtils.getColor(
mContext.getResources(), R.color.default_icon_color);
mContext.getResources(), R.color.default_icon_color_dark);
}

@UiThread
Expand Down
2 changes: 2 additions & 0 deletions ui/android/java/res/values/color_palette.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
<color name="default_icon_color_white_pressed" tools:ignore="UnusedResources">
@color/white_alpha_50
</color>
<!-- Common text colors -->
<color name="default_text_color_dark">@color/modern_grey_900</color>

<color name="default_red_light" tools:ignore="UnusedResources">@color/google_red_300</color>
<color name="default_red_dark" tools:ignore="UnusedResources">@color/google_red_700</color>
Expand Down
2 changes: 1 addition & 1 deletion ui/android/java/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- TODO(huayinz): remove tools:ignore once these colors are used in ui/android -->
<!-- Common text colors -->
<color name="default_text_color">@color/modern_grey_900</color>
<color name="default_text_color">@color/default_text_color_dark</color>
<color name="default_text_color_secondary">@color/modern_grey_700</color>
<!-- Text color for non-clickable blue text. -->
<color name="default_text_color_blue" tools:ignore="UnusedResources">@color/modern_blue_600</color>
Expand Down

0 comments on commit 87e19e4

Please sign in to comment.