Skip to content

Commit

Permalink
Adjust surfaceVariants for compose color schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
nonproto committed Nov 27, 2024
1 parent 4f1b82a commit b597b0a
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.ui.graphics.Color

// Shades for hex colors https://noeldelgado.github.io/shadowlord/
// Color palette https://paletton.com/

internal object BlueGreenColorScheme : BaseColorScheme() {
override val lightScheme =
lightColorScheme(
Expand All @@ -30,7 +27,7 @@ internal object BlueGreenColorScheme : BaseColorScheme() {
onBackground = Color(0xFF000000),
surface = Color(0xFFF0F7F7),
onSurface = Color(0xFF000000),
surfaceVariant = Color(0xFFF0F7F7),
surfaceVariant = Color(0xFFD4F1E6),
onSurfaceVariant = Color(0xFF000000),
outline = Color(0xFFBFD7D5),
outlineVariant = Color(0xFFDFEBEA),
Expand Down Expand Up @@ -69,7 +66,7 @@ internal object BlueGreenColorScheme : BaseColorScheme() {
onBackground = Color(0xFFFFFFFF),
surface = Color(0xFF14191B),
onSurface = Color(0xFFFFFFFF),
surfaceVariant = Color(0xFF14191B),
surfaceVariant = Color(0xFF1D2528),
onSurfaceVariant = Color(0xFFFFFFFF),
outline = Color(0xFFCCE3ED),
outlineVariant = Color(0xFFE6F1F6),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ internal object GreenColorScheme : BaseColorScheme() {
onBackground = Color(0xFFFFFFFF),
surface = Color(0xFFE9EFEB),
onSurface = Color(0xFF000000),
surfaceVariant = Color(0xFFE9EFEB),
onSurfaceVariant = Color(0xFFDDF2E4),
surfaceVariant = Color(0xFFD9ECE0),
onSurfaceVariant = Color(0xFF000000),
outline = Color(0xFFBCE5C9),
outlineVariant = Color(0xFFAEDFC0),
scrim = Color(0xFFFFFFFF),
Expand Down Expand Up @@ -66,7 +66,7 @@ internal object GreenColorScheme : BaseColorScheme() {
onBackground = Color(0xFFFFFFFF),
surface = Color(0xFF202125),
onSurface = Color(0xFFFFFFFF),
surfaceVariant = Color(0xFF202125),
surfaceVariant = Color(0xFF292929),
onSurfaceVariant = Color(0xFFFFFFFF),
outline = Color(0xFFACFCC7),
outlineVariant = Color(0xFFACFCC7),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.ui.graphics.Color

// Shades for hex colors https://noeldelgado.github.io/shadowlord/
// Color palette https://paletton.com/

internal object OrangeColorScheme : BaseColorScheme() {
override val lightScheme =
lightColorScheme(
Expand All @@ -30,7 +27,7 @@ internal object OrangeColorScheme : BaseColorScheme() {
onBackground = Color(0xFF000000),
surface = Color(0xFFFFFFFF),
onSurface = Color(0xFF000000),
surfaceVariant = Color(0xFFFFFFFF),
surfaceVariant = Color(0xFFFFD9CF),
onSurfaceVariant = Color(0xFF000000),
outline = Color(0xFFFFC2B3),
outlineVariant = Color(0xFFFFE1D9),
Expand Down Expand Up @@ -69,7 +66,7 @@ internal object OrangeColorScheme : BaseColorScheme() {
onBackground = Color(0xFFFFFFFF),
surface = Color(0xFF292929),
onSurface = Color(0xFFFFFFFF),
surfaceVariant = Color(0xFF292929),
surfaceVariant = Color(0xFF212121),
onSurfaceVariant = Color(0xFFFFFFFF),
outline = lightScheme.outline,
outlineVariant = lightScheme.outlineVariant,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.ui.graphics.Color

// Shades for hex colors https://noeldelgado.github.io/shadowlord/
// Color palette https://paletton.com/

internal object OutRunColorScheme : BaseColorScheme() {
// This is not used so if it starts being used, ignore the below and start fresh
override val lightScheme =
Expand All @@ -31,8 +28,8 @@ internal object OutRunColorScheme : BaseColorScheme() {
onBackground = Color(0xFF201147),
surface = Color(0xFFEFC8D3),
onSurface = Color(0xFF201147),
surfaceVariant = Color(0xFFEFC8D3),
onSurfaceVariant = Color(0xFF201147),
surfaceVariant = Color(0xFF201147),
onSurfaceVariant = Color(0xFFFFFFFF),
outline = Color(0xFF4B3A78),
outlineVariant = Color(0xFF4B3A78),
scrim = Color(0xFFFFFFFF),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.ui.graphics.Color

// Shades for hex colors https://noeldelgado.github.io/shadowlord/
// Color palette https://paletton.com/

internal object PinkColorScheme : BaseColorScheme() {
override val lightScheme =
lightColorScheme(
Expand All @@ -30,7 +27,7 @@ internal object PinkColorScheme : BaseColorScheme() {
onBackground = Color(0xDE240728),
surface = Color(0xFFF7F4F8),
onSurface = Color(0xDE240728),
surfaceVariant = Color(0xFFF7F4F8),
surfaceVariant = Color(0xFFEFE3F3),
onSurfaceVariant = Color(0xFF000000),
outline = Color(0xFFD9B6E5),
outlineVariant = Color(0xFFECDBF2),
Expand Down Expand Up @@ -69,7 +66,7 @@ internal object PinkColorScheme : BaseColorScheme() {
onBackground = Color(0xFFFFFFFF),
surface = Color(0xFF16151D),
onSurface = Color(0xFFFFFFFF),
surfaceVariant = Color(0xFF16151D),
surfaceVariant = Color(0xFF272026),
onSurfaceVariant = Color(0xFFFFFFFF),
outline = Color(0xFFF5C6D9),
outlineVariant = Color(0xFFFAE2EC),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal object PurpleColorScheme : BaseColorScheme() {
onBackground = Color(0xFF000000),
surface = Color(0xFFEDE2FF),
onSurface = Color(0xFF000000),
surfaceVariant = Color(0xFFFFFFFF),
surfaceVariant = Color(0xFFDED3F3),
onSurfaceVariant = Color(0xFF000000),
outline = Color(0xFFD7C1ED),
outlineVariant = Color(0xFFEBE0F6),
Expand Down Expand Up @@ -66,7 +66,7 @@ internal object PurpleColorScheme : BaseColorScheme() {
onBackground = Color(0xFFDEE8FF),
surface = Color(0xFF111129),
onSurface = Color(0xFFDEE8FF),
surfaceVariant = Color(0xFF111129),
surfaceVariant = Color(0xFF201042),
onSurfaceVariant = Color(0xFFDEE8FF),
outline = Color(0xFFD9C9FF),
outlineVariant = Color(0xFFECE4FF),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.ui.graphics.Color

// Shades for hex colors https://noeldelgado.github.io/shadowlord/
// Color palette https://paletton.com/

internal object RedColorScheme : BaseColorScheme() {
override val lightScheme =
lightColorScheme(
Expand All @@ -30,7 +27,7 @@ internal object RedColorScheme : BaseColorScheme() {
onBackground = Color(0xFF000000),
surface = Color(0xFFFAFAFA),
onSurface = Color(0xFF000000),
surfaceVariant = Color(0xFFFAFAFA),
surfaceVariant = Color(0xFFF3E7E7),
onSurfaceVariant = Color(0xFF000000),
outline = Color(0xFFEDA5B1),
outlineVariant = Color(0xFFF6D2D8),
Expand Down Expand Up @@ -69,7 +66,7 @@ internal object RedColorScheme : BaseColorScheme() {
onBackground = Color(0xFFFFFFFF),
surface = Color(0xFF1A1716),
onSurface = Color(0xFFFFFFFF),
surfaceVariant = Color(0xFF1A1716),
surfaceVariant = Color(0xFF2B2320),
onSurfaceVariant = Color(0xFFFFFFFF),
outline = Color(0xFFF3B8B8),
outlineVariant = Color(0xFFF9DCDC),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ internal object TakoColorScheme : BaseColorScheme() {
onBackground = Color(0xFF000000),
surface = Color(0xFFF2EDF7),
onSurface = Color(0xFF000000),
surfaceVariant = Color(0xFFFFFFFF),
surfaceVariant = Color(0xFFE5DCF4),
onSurfaceVariant = Color(0xFF000000),
outline = Color(0xFFB5AEC0),
outlineVariant = Color(0xFFDAD7DF),
Expand Down Expand Up @@ -66,7 +66,7 @@ internal object TakoColorScheme : BaseColorScheme() {
onBackground = Color(0xFFFFFFFF),
surface = Color(0xFF21212E),
onSurface = Color(0xFFFFFFFF),
surfaceVariant = Color(0xFF21212E),
surfaceVariant = Color(0xFF342F40),
onSurfaceVariant = Color(0xFFFFFFFF),
outline = Color(0xFFFEEBD9),
outlineVariant = Color(0xFFFEF5EC),
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,6 @@
<color name="tabBarIconColorTealSapphire">#589ab8</color>
<color name="appBarTextTealSapphire">@color/md_white_1000</color>

<color name="primaryVariantMangaDex">#212121</color>

</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,6 @@

<!-- MangaDex Theme -->
<color name="secondaryMangaDex">#FF6740</color>
<color name="primaryVariantMangaDex">#FFD9CF</color>

</resources>
1 change: 1 addition & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@

<style name="Theme.Tachiyomi.MangaDex">
<item name="colorPrimary">@color/secondaryMangaDex</item>
<item name="colorPrimaryVariant">@color/primaryVariantMangaDex</item>
<item name="colorSecondary">@color/secondaryMangaDex</item>
<item name="colorSecondaryVariant">?attr/colorSecondary</item>
<item name="colorOnPrimary">@color/md_white_1000</item>
Expand Down

0 comments on commit b597b0a

Please sign in to comment.