mirror of https://github.com/tasks/tasks
Use accent color for light white theme buttons
parent
7af512e55a
commit
f35dbaa529
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:alpha="0.08" android:color="?attr/colorAccent" android:state_checked="true"/>
|
||||||
|
<item android:color="@android:color/transparent" android:state_checked="false"/>
|
||||||
|
</selector>
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:alpha="0.16" android:color="?attr/colorAccent" android:state_pressed="true"/>
|
||||||
|
<item android:alpha="0.12" android:color="?attr/colorAccent" android:state_focused="true" android:state_hovered="true"/>
|
||||||
|
<item android:alpha="0.12" android:color="?attr/colorAccent" android:state_focused="true"/>
|
||||||
|
<item android:alpha="0.04" android:color="?attr/colorAccent" android:state_hovered="true"/>
|
||||||
|
<item android:alpha="0.00" android:color="?attr/colorAccent"/>
|
||||||
|
</selector>
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:color="?attr/colorAccent" android:state_checked="true"/>
|
||||||
|
<item android:alpha="0.12" android:color="?attr/colorOnSurface" android:state_checked="false"/>
|
||||||
|
</selector>
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<selector xmlns:android="http://schemas.android.com/apk/res/android">
|
||||||
|
<item android:alpha="1.00" android:color="?attr/colorAccent" android:state_checkable="true" android:state_checked="true" android:state_enabled="true"/>
|
||||||
|
<item android:alpha="0.60" android:color="?attr/colorOnSurface" android:state_checkable="true" android:state_checked="false" android:state_enabled="true"/>
|
||||||
|
<item android:alpha="1.00" android:color="?attr/colorAccent" android:state_enabled="true"/>
|
||||||
|
<item android:alpha="0.38" android:color="?attr/colorOnSurface"/>
|
||||||
|
</selector>
|
||||||
@ -1,15 +1,16 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.appcompat.widget.AppCompatTextView
|
<com.google.android.material.button.MaterialButton
|
||||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
|
style="@style/TextButton"
|
||||||
android:id="@+id/price"
|
android:id="@+id/price"
|
||||||
|
android:paddingLeft="0dp"
|
||||||
|
android:paddingRight="0dp"
|
||||||
android:layout_width="@dimen/icon_picker_size"
|
android:layout_width="@dimen/icon_picker_size"
|
||||||
android:layout_height="@dimen/icon_picker_size"
|
android:layout_height="@dimen/icon_picker_size"
|
||||||
android:padding="8dp"
|
|
||||||
android:textSize="18sp"
|
android:textSize="18sp"
|
||||||
android:textAlignment="center"
|
android:textAlignment="center"
|
||||||
android:textColor="@color/text_primary"
|
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:checkable="true"
|
||||||
tools:ignore="ContentDescription"/>
|
tools:ignore="ContentDescription"/>
|
||||||
|
|||||||
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<resources>
|
||||||
|
|
||||||
|
<style name="White" parent="White_Base"/>
|
||||||
|
|
||||||
|
</resources>
|
||||||
@ -1,9 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<resources>
|
<resources>
|
||||||
|
|
||||||
<style name="White" parent="BlackToolbarTheme">
|
<style name="White_Base" parent="BlackToolbarTheme">
|
||||||
<item name="colorPrimary">@color/white_100</item>
|
<item name="colorPrimary">@color/white_100</item>
|
||||||
<item name="colorPrimaryVariant">@color/white_100</item>
|
<item name="colorPrimaryVariant">@color/white_100</item>
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<style name="White" parent="White_Base">
|
||||||
|
<item name="buttonBarPositiveButtonStyle">@style/AlertButtonStyle</item>
|
||||||
|
<item name="buttonBarNegativeButtonStyle">@style/AlertButtonStyle</item>
|
||||||
|
<item name="buttonBarNeutralButtonStyle">@style/AlertButtonStyle</item>
|
||||||
|
<item name="materialButtonText">@color/button_accent_text</item>
|
||||||
|
<item name="materialButtonBackground">@color/button_accent_background</item>
|
||||||
|
<item name="materialButtonRipple">@color/button_accent_ripple</item>
|
||||||
|
<item name="materialButtonStroke">@color/button_accent_stroke</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<style name="AlertButtonStyle" parent="Widget.MaterialComponents.Button.TextButton.Dialog.Flush">
|
||||||
|
<item name="android:textColor">?attr/colorAccent</item>
|
||||||
|
</style>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
Loading…
Reference in New Issue