0
0
Fork 0
mirror of https://github.com/YTVanced/VancedMicroG synced 2024-12-01 07:33:02 +00:00

Merge pull request #21 from X1nto/master

Color fixes
This commit is contained in:
Tornike Khintibidze 2020-07-29 15:03:17 +04:00 committed by GitHub
commit 1165a67cc7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
@ -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
@ -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>