Skip to content

Commit

Permalink
Rebrand app color to purple; add dark mode launcher icon
Browse files Browse the repository at this point in the history
- Not completely certain that app icons can change colors based on device theme but it somewhat works on an emulator
  • Loading branch information
David Ly committed Feb 16, 2023
1 parent 8710558 commit 8ee3ad1
Show file tree
Hide file tree
Showing 13 changed files with 55 additions and 33 deletions.
Binary file modified app/src/main/ic_launcher-playstore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions app/src/main/java/ly/david/mbjc/ui/theme/Color.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@ package ly.david.mbjc.ui.theme

import androidx.compose.ui.graphics.Color

internal val Orange200 = Color(0xFFFFAB91)
internal val Orange500 = Color(0xFFFF5722)
internal val Orange700 = Color(0xFFD84315)
internal val Purple200 = Color(0xFFB388FF)
internal val PrimaryLight = Color(0xFF571AFF)
internal val PrimaryDark = Color(0xFFA280FF)
4 changes: 2 additions & 2 deletions app/src/main/java/ly/david/mbjc/ui/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import androidx.compose.runtime.Composable
import ly.david.mbjc.ExcludeFromJacocoGeneratedReport

private val DarkColorScheme = darkColorScheme(
primary = Orange200,
primary = PrimaryDark,
// primaryVariant = Orange700,
// secondary = Purple200,
// background = Color.Black,
// surface = Color.Black,
)

private val LightColorScheme = lightColorScheme(
primary = Orange500,
primary = PrimaryLight,
// primaryVariant = Orange700,
// secondary = Purple200,
// background = Color.White,
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/res/drawable-night/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<color android:color="@color/primary_dark" />
</item>
</layer-list>
22 changes: 22 additions & 0 deletions app/src/main/res/drawable-night/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="200dp"
android:height="200dp"
android:viewportWidth="135.47"
android:viewportHeight="134.94">
<path
android:fillColor="@color/black"
android:pathData="M67.73,46.57A21.17,21.17 0,0 0,46.57 67.73A21.17,21.17 0,0 0,67.73 88.9A21.17,21.17 0,0 0,88.9 67.73A21.17,21.17 0,0 0,67.73 46.57zM67.73,51.86A15.87,15.87 0,0 1,83.61 67.73A15.87,15.87 0,0 1,67.73 83.61A15.87,15.87 0,0 1,51.86 67.73A15.87,15.87 0,0 1,67.73 51.86z"
android:strokeWidth="0.381719" />
<path
android:fillColor="@color/black"
android:pathData="M67.73,67.73m-10.58,0a10.58,10.58 0,1 1,21.17 0a10.58,10.58 0,1 1,-21.17 0"
android:strokeWidth="0.846667" />
<path
android:fillColor="@color/black"
android:pathData="M75.41,27.78L75.41,27.78A2.65,2.65 0,0 1,78.05 30.43L78.05,67.47A2.65,2.65 0,0 1,75.41 70.11L75.41,70.11A2.65,2.65 0,0 1,72.76 67.47L72.76,30.43A2.65,2.65 0,0 1,75.41 27.78z"
android:strokeWidth="0.498903" />
<path
android:fillColor="@color/black"
android:pathData="M80.2,77.56A15.88,15.88 0,0 1,76.27 81.11L97.08,101.92C98.12,102.96 99.79,102.96 100.82,101.92C101.86,100.88 101.86,99.21 100.82,98.18L80.2,77.56z"
android:strokeWidth="0.498903" />
</vector>
2 changes: 1 addition & 1 deletion app/src/main/res/drawable/ic_launcher_background.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<color android:color="@color/orange_500" />
<color android:color="@color/primary_light" />
</item>
</layer-list>
12 changes: 6 additions & 6 deletions app/src/main/res/drawable/ic_launcher_foreground.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
android:viewportWidth="135.47"
android:viewportHeight="134.94">
<path
android:fillColor="#fff"
android:fillColor="@color/white"
android:pathData="M67.73,46.57A21.17,21.17 0,0 0,46.57 67.73A21.17,21.17 0,0 0,67.73 88.9A21.17,21.17 0,0 0,88.9 67.73A21.17,21.17 0,0 0,67.73 46.57zM67.73,51.86A15.87,15.87 0,0 1,83.61 67.73A15.87,15.87 0,0 1,67.73 83.61A15.87,15.87 0,0 1,51.86 67.73A15.87,15.87 0,0 1,67.73 51.86z"
android:strokeWidth="0.381719" />
<path
android:fillColor="#fff"
android:fillColor="@color/white"
android:pathData="M67.73,67.73m-10.58,0a10.58,10.58 0,1 1,21.17 0a10.58,10.58 0,1 1,-21.17 0"
android:strokeWidth="0.846667" />
<path
android:fillColor="#fff"
android:fillColor="@color/white"
android:pathData="M75.41,27.78L75.41,27.78A2.65,2.65 0,0 1,78.05 30.43L78.05,67.47A2.65,2.65 0,0 1,75.41 70.11L75.41,70.11A2.65,2.65 0,0 1,72.76 67.47L72.76,30.43A2.65,2.65 0,0 1,75.41 27.78z"
android:strokeWidth="0.498903" />
<path
android:fillColor="#fff"
android:pathData="M79.97,78.42L79.97,78.42A2.02,2.02 90,0 1,82.83 78.42L102.82,98.42A2.02,2.02 90,0 1,102.82 101.27L102.82,101.27A2.02,2.02 90,0 1,99.97 101.27L79.97,81.28A2.02,2.02 90,0 1,79.97 78.42z"
android:strokeWidth="0.380914" />
android:fillColor="@color/white"
android:pathData="M80.2,77.56A15.88,15.88 0,0 1,76.27 81.11L97.08,101.92C98.12,102.96 99.79,102.96 100.82,101.92C101.86,100.88 101.86,99.21 100.82,98.18L80.2,77.56z"
android:strokeWidth="0.498903" />
</vector>
6 changes: 2 additions & 4 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="orange_200">#FFFFAB91</color>
<color name="orange_500">#FFFF5722</color>
<color name="orange_700">#FFD84315</color>
<color name="purple_200">#FFB388FF</color>
<color name="primary_light">#FF571AFF</color>
<color name="primary_dark">#FFA280FF</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
Binary file added assets/logo_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo_dark_inverted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/logo_light_inverted.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 14 additions & 16 deletions assets/logo_no_bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8ee3ad1

Please sign in to comment.