Remove strokes from most cards

This commit is contained in:
topjohnwu 2020-09-17 02:27:43 -07:00
parent 9a16ab1bd7
commit 2dbaf9595c
10 changed files with 21 additions and 28 deletions

View File

@ -48,7 +48,7 @@
<com.google.android.material.circularreveal.cardview.CircularRevealCardView
android:id="@+id/hide_filter"
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="bottom"

View File

@ -37,12 +37,11 @@
<com.google.android.material.card.MaterialCardView
gone="@{viewModel.skipOptions}"
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/l1"
android:layout_marginEnd="@dimen/l1"
app:strokeWidth="@{viewModel.step != 0 ? 0f : @dimen/l_125}">
android:layout_marginEnd="@dimen/l1" >
<LinearLayout
android:layout_width="match_parent"
@ -124,13 +123,12 @@
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/l1"
android:layout_marginTop="@dimen/l1"
android:layout_marginEnd="@dimen/l1"
app:strokeWidth="@{viewModel.step != 1 ? 0f : @dimen/l_125}">
android:layout_marginEnd="@dimen/l1" >
<LinearLayout
android:layout_width="match_parent"
@ -217,13 +215,12 @@
</com.google.android.material.card.MaterialCardView>
<com.google.android.material.card.MaterialCardView
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/l1"
android:layout_marginStart="@dimen/l1"
android:layout_marginEnd="@dimen/l1"
app:strokeWidth="@{viewModel.step != 0 ? 0f : @dimen/l_125}">
android:layout_marginEnd="@dimen/l1" >
<TextView
android:id="@+id/release_notes"
@ -232,7 +229,10 @@
android:layout_margin="15dp"
android:textAppearance="@style/AppearanceFoundation.Caption"
android:visibility="gone"
markdownText="@{viewModel.notes}"/>
markdownText="@{viewModel.notes}"
tools:visibility="visible"
tools:text="@tools:sample/lorem/random"
tools:maxLines="5" />
</com.google.android.material.card.MaterialCardView>

View File

@ -37,7 +37,8 @@
<com.google.android.material.circularreveal.cardview.CircularRevealCardView
android:id="@+id/log_filter"
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
app:cardBackgroundColor="?colorSurface"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="bottom"

View File

@ -62,7 +62,7 @@
<com.google.android.material.circularreveal.cardview.CircularRevealCardView
android:id="@+id/module_filter"
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
app:cardBackgroundColor="?colorSurface"
android:layout_width="match_parent"
android:layout_height="match_parent"

View File

@ -18,7 +18,7 @@
</data>
<com.google.android.material.card.MaterialCardView
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:layout_gravity="center"

View File

@ -24,7 +24,7 @@
android:layout_height="wrap_content">
<com.google.android.material.card.MaterialCardView
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
isEnabled="@{!item.removed}"
android:layout_width="match_parent"
android:layout_height="wrap_content"

View File

@ -17,7 +17,7 @@
android:layout_gravity="center">
<com.google.android.material.card.MaterialCardView
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:alpha="@{item.enabled ? 1f : .5f}"

View File

@ -18,7 +18,7 @@
</data>
<com.google.android.material.card.MaterialCardView
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:layout_gravity="center"

View File

@ -16,12 +16,13 @@
</data>
<com.google.android.material.card.MaterialCardView
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:onClick="@{() -> viewModel.saveTheme(theme)}"
app:cardBackgroundColor="@android:color/transparent"
app:strokeColor="?colorPrimaryVariant"
app:strokeWidth="1.5dp"
tools:layout_gravity="center">
<androidx.constraintlayout.widget.ConstraintLayout
@ -67,7 +68,7 @@
<com.google.android.material.card.MaterialCardView
android:id="@+id/theme_card_bottom"
style="@style/WidgetFoundation.Card.Variant"
style="@style/WidgetFoundation.Card"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/l1"

View File

@ -29,15 +29,6 @@
<item name="cardBackgroundColor">?colorSecondary</item>
</style>
<style name="WidgetFoundation.Card.Variant">
<item name="strokeColor">?colorSurfaceSurfaceVariant</item>
<item name="strokeWidth">1.5dp</item>
</style>
<style name="WidgetFoundation.Card.Variant.Primary">
<item name="strokeColor">?colorPrimary</item>
</style>
<style name="WidgetFoundation.Card.Elevated">
<item name="cardBackgroundColor">?colorSurfaceSurfaceVariant</item>
<item name="cardCornerRadius">@dimen/l_50</item>