Skip to content

Commit

Permalink
cardprofile: smoother background (fixes ##4957)
Browse files Browse the repository at this point in the history
  • Loading branch information
Avinash-Codes committed Jan 7, 2025
1 parent 699c27e commit 27d61c3
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 18 deletions.
13 changes: 7 additions & 6 deletions app/src/main/res/layout-large-land/card_profile_bell.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardBackgroundColor="@color/card_bg"
app:cardElevation="2dp"
app:cardUseCompatPadding="true"
app:contentPadding="@dimen/eight_dp">
Expand Down Expand Up @@ -54,7 +55,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="@dimen/text_size_large"
android:textStyle="bold" />
<TextView
Expand All @@ -63,15 +64,15 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>

<View
android:layout_width="@dimen/_1dp"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryDark"
android:background="@color/daynight_textColor"
android:visibility="gone" />
<View
android:layout_width="@dimen/_1dp"
Expand All @@ -84,7 +85,7 @@
android:layout_gravity="center_vertical"
android:gravity="center"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="16sp"
android:textStyle="bold"
android:visibility="gone" />
Expand All @@ -100,7 +101,7 @@
android:layout_gravity="center_vertical"
android:gravity="center"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>
Expand Down Expand Up @@ -130,4 +131,4 @@
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>
11 changes: 6 additions & 5 deletions app/src/main/res/layout-normal-land/card_profile_bell.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:cardBackgroundColor="@color/card_bg"
app:cardElevation="2dp"
app:cardUseCompatPadding="true"
app:contentPadding="@dimen/eight_dp">
Expand Down Expand Up @@ -54,7 +55,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="@dimen/text_size_large"
android:textStyle="bold" />
<TextView
Expand All @@ -63,15 +64,15 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>

<View
android:layout_width="@dimen/_1dp"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryDark"
android:background="@color/daynight_textColor"
android:visibility="gone" />
<View
android:layout_width="@dimen/_1dp"
Expand All @@ -84,7 +85,7 @@
android:layout_gravity="center_vertical"
android:gravity="center"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="16sp"
android:textStyle="bold"
android:visibility="gone" />
Expand All @@ -100,7 +101,7 @@
android:layout_gravity="center_vertical"
android:gravity="center"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>
Expand Down
10 changes: 5 additions & 5 deletions app/src/main/res/layout-xlarge-land/card_profile_bell.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="@dimen/text_size_large"
android:textStyle="bold" />
<TextView
Expand All @@ -63,15 +63,15 @@
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>

<View
android:layout_width="@dimen/_1dp"
android:layout_height="wrap_content"
android:background="@color/colorPrimaryDark"
android:background="@color/daynight_textColor"
android:visibility="gone" />
<View
android:layout_width="@dimen/_1dp"
Expand All @@ -84,7 +84,7 @@
android:layout_gravity="center_vertical"
android:gravity="center"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="16sp"
android:textStyle="bold"
android:visibility="gone" />
Expand All @@ -100,7 +100,7 @@
android:layout_gravity="center_vertical"
android:gravity="center"
android:padding="@dimen/padding_normal"
android:textColor="@color/md_black_1000"
android:textColor="@color/daynight_textColor"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/layout/card_profile_bell.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:backgroundTint="@color/card_bg"
app:cardBackgroundColor="@color/card_bg"
app:cardElevation="2dp"
app:cardUseCompatPadding="true"
app:contentPadding="@dimen/eight_dp">
Expand Down Expand Up @@ -132,4 +132,4 @@
</LinearLayout>
</LinearLayout>
</LinearLayout>
</androidx.cardview.widget.CardView>
</androidx.cardview.widget.CardView>

0 comments on commit 27d61c3

Please sign in to comment.