use the background color at the main screens toolbar

This commit is contained in:
tibbi 2022-12-20 13:08:12 +01:00
parent 862b6522ad
commit 654ae2792c
2 changed files with 10 additions and 17 deletions

View File

@ -121,7 +121,7 @@ class MainActivity : SimpleActivity(), CanvasListener {
override fun onResume() { override fun onResume() {
super.onResume() super.onResume()
setupToolbar(main_toolbar) setupToolbar(main_toolbar, statusBarColor = getProperBackgroundColor())
val isShowBrushSizeEnabled = config.showBrushSize val isShowBrushSizeEnabled = config.showBrushSize
stroke_width_bar.beVisibleIf(isShowBrushSizeEnabled) stroke_width_bar.beVisibleIf(isShowBrushSizeEnabled)

View File

@ -5,29 +5,22 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
<com.google.android.material.appbar.AppBarLayout <com.google.android.material.appbar.MaterialToolbar
android:id="@+id/main_app_bar_layout" android:id="@+id/main_toolbar"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="?attr/actionBarSize"
android:background="@color/color_primary"
<com.google.android.material.appbar.MaterialToolbar app:menu="@menu/menu"
android:id="@+id/main_toolbar" app:title="@string/app_launcher_name"
android:layout_width="match_parent" app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
android:layout_height="?attr/actionBarSize"
android:background="@color/color_primary"
app:menu="@menu/menu"
app:title="@string/app_launcher_name"
app:titleTextAppearance="@style/AppTheme.ActionBar.TitleTextStyle" />
</com.google.android.material.appbar.AppBarLayout>
<com.simplemobiletools.commons.views.MyScrollView <com.simplemobiletools.commons.views.MyScrollView
android:id="@+id/main_scrollview" android:id="@+id/main_scrollview"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_marginTop="?attr/actionBarSize"
android:fillViewport="true" android:fillViewport="true"
android:scrollbars="none" android:scrollbars="none">
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<RelativeLayout <RelativeLayout
android:id="@+id/main_holder" android:id="@+id/main_holder"