theme: Relocate to compose directory

Also apply missing copyright and license header

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-01-25 15:53:38 +07:00
parent 50241ed376
commit f4434c02fb
2 changed files with 10 additions and 2 deletions

View File

@@ -1,4 +1,9 @@
package com.aurora.store.view.theme /*
* SPDX-FileCopyrightText: 2024-2025 The Calyx Institute
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package com.aurora.store.compose.theme
import android.os.Build import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.foundation.isSystemInDarkTheme
@@ -13,6 +18,9 @@ import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.res.colorResource import androidx.compose.ui.res.colorResource
import com.aurora.store.R import com.aurora.store.R
/**
* App theme for Aurora Store based on [MaterialTheme]
*/
@Composable @Composable
fun AuroraTheme(darkTheme: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit) { fun AuroraTheme(darkTheme: Boolean = isSystemInDarkTheme(), content: @Composable () -> Unit) {
val colorScheme = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) { val colorScheme = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {

View File

@@ -61,7 +61,7 @@ import com.aurora.extensions.setAppTheme
import com.aurora.store.MR import com.aurora.store.MR
import com.aurora.store.R import com.aurora.store.R
import com.aurora.store.util.Preferences import com.aurora.store.util.Preferences
import com.aurora.store.view.theme.AuroraTheme import com.aurora.store.compose.theme.AuroraTheme
import com.aurora.store.viewmodel.commons.MoreViewModel import com.aurora.store.viewmodel.commons.MoreViewModel
import com.google.android.material.dialog.MaterialAlertDialogBuilder import com.google.android.material.dialog.MaterialAlertDialogBuilder
import dagger.hilt.android.AndroidEntryPoint import dagger.hilt.android.AndroidEntryPoint