Make FAB colors themeable
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
<declare-styleable name="CustomTheme">
|
||||
<attr name="colorFab" format="color" />
|
||||
<attr name="colorFabPressed" format="color" />
|
||||
<attr name="colorFabBackground" format="color" />
|
||||
<attr name="colorFabText" format="color" />
|
||||
<attr name="colorEmphasis" format="color" />
|
||||
<attr name="colorHeaderText" format="color" />
|
||||
<attr name="colorTertiaryText" format="color" />
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
|
||||
<!-- floating action buttons -->
|
||||
<color name="black_semi_transparent">#B2000000</color>
|
||||
<color name="black">#000000</color>
|
||||
<color name="white">#fafafa</color>
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
<style name="FabMenuStyle">
|
||||
<item name="android:background">@drawable/fab_label_background</item>
|
||||
<item name="android:textColor">@color/white</item>
|
||||
<item name="android:textColor">?attr/colorFabText</item>
|
||||
</style>
|
||||
|
||||
<!-- This style is for use with our drag and drop RecyclerView since ItemDecoration did not
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
<item name="colorFab">#2196f3</item>
|
||||
<item name="colorFabPressed">#1976d2</item>
|
||||
<item name="colorFabBackground">#b2000000</item>
|
||||
<item name="colorFabText">#fafafa</item>
|
||||
|
||||
<item name="colorEmphasis">#2196f3</item>
|
||||
<item name="colorHeaderText">#212121</item>
|
||||
@@ -29,6 +31,8 @@
|
||||
|
||||
<item name="colorFab">#2196f3</item>
|
||||
<item name="colorFabPressed">#1976d2</item>
|
||||
<item name="colorFabBackground">#b2000000</item>
|
||||
<item name="colorFabText">#fafafa</item>
|
||||
|
||||
<item name="colorEmphasis">#2196f3</item>
|
||||
<item name="colorHeaderText">#a0a0a0</item>
|
||||
|
||||
Reference in New Issue
Block a user