Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

No issue: Set color for toolbar divider #5221

Merged
merged 1 commit into from
Sep 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions app/src/main/res/layout/component_search.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="@dimen/browser_toolbar_height"
android:layout_gravity="bottom"
android:background="@drawable/toolbar_background"
android:clickable="true"
android:focusable="true"
android:focusableInTouchMode="true"
android:layout_gravity="bottom"
android:background="@drawable/toolbar_background"
app:browserToolbarClearColor="?primaryText"
app:browserToolbarInsecureColor="?primaryText"
app:browserToolbarMenuColor="?primaryText"
app:browserToolbarProgressBarGravity="top"
app:browserToolbarSecureColor="?primaryText" />
app:browserToolbarSecureColor="?primaryText"
app:browserToolbarTrackingProtectionAndSecurityIndicatorSeparatorColor="?toolbarDivider" />
1 change: 1 addition & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
<color name="toolbar_start_gradient_normal_theme">@color/toolbar_start_gradient_dark_theme</color>
<color name="toolbar_center_gradient_normal_theme">@color/toolbar_center_gradient_dark_theme</color>
<color name="toolbar_end_gradient_normal_theme">@color/toolbar_end_gradient_dark_theme</color>
<color name="toolbar_divider_color_normal_theme">@color/toolbar_divider_color_dark_theme</color>

<!-- Collection icons-->
<color name="collection_icon_color_violet">@color/collection_icon_color_violet_dark_theme</color>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<attr name="disabled" format="reference" />
<attr name="scrimStart" format="reference"/>
<attr name="scrimEnd" format="reference"/>
<attr name="toolbarDivider" format="reference"/>

<!-- Misc -->
<attr name="homeBackground" format="reference"/>
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<color name="toolbar_start_gradient_light_theme">@color/foundation_light_theme</color>
<color name="toolbar_center_gradient_light_theme">@color/foundation_light_theme</color>
<color name="toolbar_end_gradient_light_theme">@color/foundation_light_theme</color>
<color name="toolbar_divider_color_light_theme">#CDCCCF</color>

<!-- Dark theme color palette -->
<color name="primary_text_dark_theme">#FBFBFE</color>
Expand Down Expand Up @@ -56,6 +57,7 @@
<color name="toolbar_start_gradient_dark_theme">@color/foundation_dark_theme</color>
<color name="toolbar_center_gradient_dark_theme">@color/foundation_dark_theme</color>
<color name="toolbar_end_gradient_dark_theme">@color/foundation_dark_theme</color>
<color name="toolbar_divider_color_dark_theme">#45444D</color>

<!-- Private theme color palette -->
<color name="primary_text_private_theme">#FBFBFE</color>
Expand All @@ -80,6 +82,7 @@
<color name="toolbar_start_gradient_private_theme">#7529A7</color>
<color name="toolbar_center_gradient_private_theme">#492E85</color>
<color name="toolbar_end_gradient_private_theme">#383372</color>
<color name="toolbar_divider_color_private_theme">#403760</color>

<!-- Normal theme colors for light mode -->
<color name="primary_text_normal_theme">@color/primary_text_light_theme</color>
Expand All @@ -104,6 +107,7 @@
<color name="toolbar_start_gradient_normal_theme">@color/toolbar_start_gradient_light_theme</color>
<color name="toolbar_center_gradient_normal_theme">@color/toolbar_center_gradient_light_theme</color>
<color name="toolbar_end_gradient_normal_theme">@color/toolbar_end_gradient_light_theme</color>
<color name="toolbar_divider_color_normal_theme">@color/toolbar_divider_color_light_theme</color>

<!-- Bookmark buttons -->
<color name="bookmark_favicon_background">#DFDFE3</color>
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<item name="toolbarStartGradient">@color/toolbar_start_gradient_normal_theme</item>
<item name="toolbarCenterGradient">@color/toolbar_center_gradient_normal_theme</item>
<item name="toolbarEndGradient">@color/toolbar_end_gradient_normal_theme</item>
<item name="toolbarDivider">@color/toolbar_divider_color_normal_theme</item>

<!-- Drawables -->
<item name="fenixLogo">@drawable/ic_logo_wordmark_normal</item>
Expand Down Expand Up @@ -129,6 +130,7 @@
<item name="toolbarStartGradient">@color/toolbar_start_gradient_private_theme</item>
<item name="toolbarCenterGradient">@color/toolbar_center_gradient_private_theme</item>
<item name="toolbarEndGradient">@color/toolbar_end_gradient_private_theme</item>
<item name="toolbarDivider">@color/toolbar_divider_color_private_theme</item>

<!-- Drawables -->
<item name="fenixLogo">@drawable/ic_logo_wordmark_private</item>
Expand Down