We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab719c4 commit b627d18Copy full SHA for b627d18
1 file changed
design/src/main/res/layout/design_main.xml
@@ -83,7 +83,7 @@
83
android:layout_marginVertical="@dimen/main_card_margin_vertical"
84
android:onClick="@{() -> self.request(Request.ToggleStatus)}"
85
86
- app:cardBackgroundColor="@{clashRunning ? self.surface.resolveColor(com.google.android.material.R.attr.colorPrimary) : self.surface.resolveColor(com.google.android.material.R.attr.colorSurfaceVariant)}"
+ app:cardBackgroundColor="@{clashRunning ? colorClashStarted : colorClashStopped}"
87
88
app:icon="@{clashRunning ? @drawable/ic_outline_check_circle : @drawable/ic_outline_not_interested}"
89
app:subtext="@{clashRunning ? @string/format_traffic_forwarded(forwarded) : @string/tap_to_start}"
0 commit comments