Skip to content

Commit

Permalink
fix: minors fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
octera committed Aug 14, 2024
1 parent ced27f4 commit 304014a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/info/octera/droidstorybox/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import androidx.compose.ui.Modifier
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import dagger.hilt.android.AndroidEntryPoint
import info.octera.droidstorybox.presentation.navgraph.NavGraph
import info.octera.droidstorybox.ui.theme.NewsAppTheme
import info.octera.droidstorybox.ui.theme.NimilouAppTheme

@AndroidEntryPoint
class MainActivity : ComponentActivity() {
Expand All @@ -29,7 +29,7 @@ class MainActivity : ComponentActivity() {
}
actionBar?.hide()
setContent {
NewsAppTheme {
NimilouAppTheme {
Box(
modifier = Modifier.background(MaterialTheme.colorScheme.background),
) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import info.octera.droidstorybox.R
import info.octera.droidstorybox.presentation.Dimens.IconSize
import info.octera.droidstorybox.ui.theme.NewsAppTheme
import info.octera.droidstorybox.ui.theme.NimilouAppTheme

@OptIn(ExperimentalMaterial3Api::class)
@Composable
Expand Down Expand Up @@ -118,7 +118,7 @@ fun Modifier.searchBar(): Modifier =
@Preview(showBackground = true, uiMode = UI_MODE_NIGHT_YES)
@Composable
fun SearchBarPreview() {
NewsAppTheme {
NimilouAppTheme {
SearchBar(text = "", onValueChange = {}, readOnly = false) {
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ fun OnBoardingPage(
Column(modifier = modifier) {
Image(
painter = painterResource(id = page.image),
contentDescription = "",
contentDescription = "Image onboarding",
modifier =
modifier
.padding(24.dp)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package info.octera.droidstorybox.presentation.settings_navigation.components

import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.annotation.DrawableRes
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
Expand All @@ -18,11 +17,9 @@ import androidx.compose.ui.Alignment.Companion.CenterHorizontally
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.colorResource
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import info.octera.droidstorybox.R
import info.octera.droidstorybox.presentation.Dimens.ExtraSmallPadding2
import info.octera.droidstorybox.ui.theme.NewsAppTheme

@Composable
fun BottomNavigation(
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/info/octera/droidstorybox/ui/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.platform.LocalContext

private val DarkColorScheme =
Expand All @@ -17,6 +16,7 @@ private val DarkColorScheme =
background = Black,
error = DarkRed,
surface = LightBlack,

)

private val LightColorScheme =
Expand All @@ -37,7 +37,7 @@ onSurface = Color(0xFF1C1B1F),
*/

@Composable
fun NewsAppTheme(
fun NimilouAppTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
// Dynamic color is available on Android 12+
dynamicColor: Boolean = false,
Expand Down

0 comments on commit 304014a

Please sign in to comment.