dark mode-v4

This commit is contained in:
Eric85710 2026-04-21 16:14:50 +08:00
parent e8dbf812d5
commit de39e1dc6d
2 changed files with 10 additions and 2 deletions

View file

@ -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 {
Login_V3Theme(appTheme = AppTheme.DARK) {
Technologia()
}
}
}
}

View file

@ -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))