dark mode-v4
This commit is contained in:
parent
e8dbf812d5
commit
de39e1dc6d
2 changed files with 10 additions and 2 deletions
|
|
@ -6,6 +6,8 @@ import androidx.activity.compose.setContent
|
|||
import androidx.activity.enableEdgeToEdge
|
||||
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
|
||||
import com.example.login_v3.auth.HealthCheckScreen
|
||||
import com.example.login_v3.ui.theme.AppTheme
|
||||
import com.example.login_v3.ui.theme.Login_V3Theme
|
||||
import dagger.hilt.android.AndroidEntryPoint
|
||||
|
||||
@AndroidEntryPoint
|
||||
|
|
@ -16,7 +18,9 @@ class MainActivity : ComponentActivity() {
|
|||
|
||||
installSplashScreen()
|
||||
setContent {
|
||||
Technologia()
|
||||
Login_V3Theme(appTheme = AppTheme.DARK) {
|
||||
Technologia()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,11 @@ fun setting_theme_page(
|
|||
val selectedTheme = viewModel.currentTheme.value
|
||||
|
||||
Column(modifier = Modifier.padding(16.dp)) {
|
||||
Text(text = "主題設定", style = MaterialTheme.typography.headlineMedium)
|
||||
Text(
|
||||
text = "主題設定",
|
||||
style = MaterialTheme.typography.headlineMedium,
|
||||
color = MaterialTheme.colorScheme.primary
|
||||
)
|
||||
|
||||
Spacer(modifier = Modifier.height(8.dp))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue