File tree Expand file tree Collapse file tree
java/com/pika/app/ui/theme Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,5 +3,7 @@ package com.pika.app.ui.theme
33import androidx.compose.ui.graphics.Color
44
55val PikaBlue = Color (0xFF2C6BED )
6+ val PikaBlueDark = Color (0xFF5A8DF5 )
67val PikaBg = Color (0xFFF6F7FB )
8+ val PikaBgDark = Color (0xFF121212 )
79
Original file line number Diff line number Diff line change 11package com.pika.app.ui.theme
22
3- import androidx.compose.foundation.background
3+ import androidx.compose.foundation.isSystemInDarkTheme
44import androidx.compose.material3.MaterialTheme
55import androidx.compose.material3.darkColorScheme
66import androidx.compose.material3.lightColorScheme
77import androidx.compose.runtime.Composable
8- import androidx.compose.ui.Modifier
98import androidx.compose.ui.graphics.Color
109
1110private val LightColors =
@@ -15,10 +14,19 @@ private val LightColors =
1514 background = PikaBg ,
1615 )
1716
17+ private val DarkColors =
18+ darkColorScheme(
19+ primary = PikaBlueDark ,
20+ surface = Color (0xFF1E1E1E ),
21+ background = PikaBgDark ,
22+ )
23+
1824@Composable
1925fun PikaTheme (content : @Composable () -> Unit ) {
26+ val colorScheme = if (isSystemInDarkTheme()) DarkColors else LightColors
27+
2028 MaterialTheme (
21- colorScheme = LightColors ,
29+ colorScheme = colorScheme ,
2230 typography = androidx.compose.material3.Typography (),
2331 content = content,
2432 )
Original file line number Diff line number Diff line change 1+ <resources xmlns : tools =" http://schemas.android.com/tools" >
2+ <style name =" Theme.Pika" parent =" Theme.MaterialComponents.DayNight.NoActionBar" >
3+ <item name =" android:statusBarColor" tools : targetApi =" l" >@android:color/transparent</item >
4+ <item name =" android:windowLightStatusBar" tools : targetApi =" m" >false</item >
5+ </style >
6+ </resources >
Original file line number Diff line number Diff line change 11<resources xmlns : tools =" http://schemas.android.com/tools" >
22 <style name =" Theme.Pika" parent =" Theme.MaterialComponents.DayNight.NoActionBar" >
3- <item name =" android:statusBarColor" tools : targetApi =" l" >#FFFFFFFF</item >
3+ <item name =" android:statusBarColor" tools : targetApi =" l" >@android:color/transparent</item >
4+ <item name =" android:windowLightStatusBar" tools : targetApi =" m" >true</item >
45 </style >
56</resources >
You can’t perform that action at this time.
0 commit comments