Skip to content

Commit

Permalink
Fix toolbar color broken on android 5 & 6 (Closes #2571)
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Apr 15, 2023
1 parent 684bbab commit dbb5e6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,14 @@ class MainBibleActivity : CustomTitlebarActivityBase() {
resources.getColor(R.color.actionbar_background_night, theme)
else
workspaceSettings.workspaceColor ?: defaultWorkspaceColor
binding.toolbarLayout.setBackgroundColor(toolbarColor)

binding.run {
homeButton.setBackgroundColor(toolbarColor)
pageTitle.setBackgroundColor(toolbarColor)
documentTitle.setBackgroundColor(toolbarColor)
toolbarButtonLayout.setBackgroundColor(toolbarColor)
}

if (ScreenSettings.nightMode){
binding.homeButton.drawable.setTint(workspaceSettings.workspaceColor ?: defaultWorkspaceColor)
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/barstyles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
</style>
<style name="MainBibleActionBar">
<item name="actionOverflowButtonStyle">@style/OptionsButtonsStyle</item>
<item name="android:background">@color/actionbar_background</item>
</style>
<style name="MainBibleActionBarButtons" parent="MainBibleActionBar">
<item name="android:textColorSecondary">@color/white</item>
Expand Down

0 comments on commit dbb5e6f

Please sign in to comment.