Skip to content

Commit

Permalink
[Student][MBL-14023] Always use gray for pdf toolbar (#613)
Browse files Browse the repository at this point in the history
There are issues with theming the toolbar to the institution color when it is white. Rather than hack our way into a way to customize all the toolbar colors, just default to gray with white icons.
  • Loading branch information
CalvinKern authored Mar 9, 2020
1 parent abb591b commit de7e696
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ class CandroidPSPDFActivity : PdfActivity(), ToolbarCoordinatorLayout.OnContextu
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setOnContextualToolbarLifecycleListener(this)

ViewStyler.themeActionBar(this, supportActionBar, ThemePrefs.primaryColor)

findViewById<View>(R.id.pspdf__activity_thumbnail_bar)?.setBackgroundColor(ThemePrefs.brandColor)
findViewById<View>(R.id.pspdf__activity_title_overlay)?.setBackgroundColor(ThemePrefs.brandColor)
}

override fun onPrepareOptionsMenu(menu: Menu): Boolean {
Expand Down
6 changes: 3 additions & 3 deletions apps/student/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
</style>

<style name="PSPDFKitTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/canvasRed</item>
<item name="colorAccent">@color/canvasRed</item>
<item name="colorPrimaryDark">@color/canvasRed</item>
<item name="colorPrimary">@color/annotationToolbarBackground</item>
<item name="colorAccent">@color/annotationToolbarBackground</item>
<item name="colorPrimaryDark">@color/annotationToolbarBackground</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="windowActionModeOverlay">true</item>
Expand Down

0 comments on commit de7e696

Please sign in to comment.