Skip to content

Commit

Permalink
dashboard: smoother dark mode (fixes #4957) (#4960)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Avinash-Codes and dogi authored Jan 8, 2025
1 parent aa26548 commit 516a848
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 18 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 26
targetSdkVersion 34
versionCode 2174
versionName "0.21.74"
versionCode 2175
versionName "0.21.75"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
11 changes: 6 additions & 5 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
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
2 changes: 1 addition & 1 deletion 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

0 comments on commit 516a848

Please sign in to comment.