mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-23 11:45:11 +00:00
fixed attribute parsing in xml
This commit is contained in:
parent
723cdd87ef
commit
7ab604bee8
2 changed files with 4 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
|||
<data>
|
||||
|
||||
<import type="android.view.View" />
|
||||
<import type="com.vanced.manager.R" />
|
||||
|
||||
<variable
|
||||
name="viewModel"
|
||||
|
@ -50,7 +51,7 @@
|
|||
style="@style/ButtonStyle"
|
||||
android:text="@{viewModel.vancedInstallButtonTxt}"
|
||||
android:textColor="@{viewModel.shouldBeDisabled ? @color/LightGray : @color/White}"
|
||||
android:backgroundTint="@{viewModel.shouldBeDisabled ? @color/Gray : @color/Accent}"
|
||||
android:backgroundTint="@{viewModel.shouldBeDisabled ? R.attr.colorDisabled : R.attr.colorPrimary}"
|
||||
app:icon="@{viewModel.vancedInstallButtonIcon}"
|
||||
android:clickable="@{!viewModel.shouldBeDisabled}"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<item name="colorOnError">#F9F9F9</item>
|
||||
<item name="colorOnSurface">#444444</item>
|
||||
<item name="colorOnSurfaceVariant">#C3131313</item>
|
||||
<item name="colorDisabled">#808080</item>
|
||||
<item name="colorDisabled">@color/Gray</item>
|
||||
<item name="colorDisabledVariant">#000000</item>
|
||||
<item name="iconColor">?colorPrimaryVariant</item>
|
||||
<item name="toolbarIconColor">#111111</item>
|
||||
|
@ -87,7 +87,7 @@
|
|||
<item name="colorOnError">#F9F9F9</item>
|
||||
<item name="colorOnSurface">#444444</item>
|
||||
<item name="colorOnSurfaceVariant">#FFFFFF</item>
|
||||
<item name="colorDisabled">#808080</item>
|
||||
<item name="colorDisabled">@color/Gray</item>
|
||||
<item name="colorDisabledVariant">#66808080</item>
|
||||
<item name="iconColor">?colorPrimaryVariant</item>
|
||||
<item name="toolbarIconColor">?colorOnPrimary</item>
|
||||
|
|
Loading…
Reference in a new issue