Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Merge pull request #21 from X1nto/master
Browse files Browse the repository at this point in the history
Color fixes
  • Loading branch information
X1nto authored Jul 29, 2020
2 parents 55ed65c + eda7621 commit 1165a67
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
android:paddingLeft="?attr/listPreferredItemPaddingLeft"
android:paddingEnd="?attr/listPreferredItemPaddingEnd"
android:paddingRight="?attr/listPreferredItemPaddingRight"
android:background="@{checked ? android.R.attr.colorControlActivated : (enabled ? android.R.attr.colorButtonNormal : android.R.attr.colorControlHighlight)}"
android:background="?attr/colorAccent"
tools:background="?attr/colorControlActivated">

<TextView
Expand All @@ -54,7 +54,7 @@
android:paddingLeft="56dp"
android:text="@{description}"
android:textAppearance="?attr/textAppearanceListItem"
android:textColor="?android:attr/textColorPrimaryInverse"
android:textColor="#ffffff"
tools:text="Enabled" />

<androidx.appcompat.widget.SwitchCompat
Expand All @@ -66,8 +66,8 @@
android:checked="@{checked}"
android:enabled="@{enabled}"
app:onCheckedChangeListener="@{(v, newStatus) -> callback.onChecked(newStatus)}"
app:thumbTint="?android:attr/textColorPrimaryInverse"
app:trackTint="?android:attr/textColorSecondaryInverse"
app:thumbTint="#ffffff"
app:trackTint="#e1e2e3"
tools:checked="true" />
</LinearLayout>
</layout>

0 comments on commit 1165a67

Please sign in to comment.