Make colors of the floating action button part of the theme

This commit is contained in:
cketti 2023-01-13 12:03:48 +01:00
parent 8988b85e69
commit 5db9401f55
3 changed files with 10 additions and 1 deletions

View file

@ -33,6 +33,9 @@
android:layout_margin="@dimen/floatingActionButtonMargin"
android:contentDescription="@string/compose_action"
android:text="@string/compose_action"
app:icon="?attr/iconActionCompose" />
android:textColor="?attr/floatingActionButtonForegroundColor"
app:backgroundTint="?attr/floatingActionButtonBackgroundColor"
app:icon="?attr/iconActionCompose"
app:iconTint="?attr/floatingActionButtonForegroundColor" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>

View file

@ -4,6 +4,8 @@
<declare-styleable name="K9Styles">
<attr name="toolbarColor" format="reference|color" />
<attr name="bottomBarBackground" format="reference|color" />
<attr name="floatingActionButtonBackgroundColor" format="reference|color" />
<attr name="floatingActionButtonForegroundColor" format="reference|color" />
<attr name="iconUnifiedInbox" format="reference" />
<attr name="iconFolder" format="reference" />
<attr name="iconFolderInbox" format="reference" />

View file

@ -22,6 +22,8 @@
<item name="colorSecondaryVariant">@color/material_pink_200</item>
<item name="colorOnSecondary">#ffffff</item>
<item name="bottomBarBackground">@color/material_gray_50</item>
<item name="floatingActionButtonBackgroundColor">?attr/colorSecondary</item>
<item name="floatingActionButtonForegroundColor">?attr/colorOnSecondary</item>
<item name="toolbarStyle">@style/Widget.K9.Toolbar</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>
@ -176,6 +178,8 @@
<item name="colorSecondary">@color/material_pink_300</item>
<item name="colorSecondaryVariant">@color/material_pink_500</item>
<item name="bottomBarBackground">@color/material_gray_900</item>
<item name="floatingActionButtonBackgroundColor">?attr/colorSecondary</item>
<item name="floatingActionButtonForegroundColor">?attr/colorOnSecondary</item>
<item name="toolbarStyle">@style/Widget.K9.Toolbar</item>
<item name="preferenceTheme">@style/PreferenceThemeOverlay</item>