-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from makeevrserg/develop
App theme
- Loading branch information
Showing
23 changed files
with
224 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,14 +41,15 @@ makeevrserg.java.source=11 | |
makeevrserg.java.target=11 | ||
makeevrserg.java.ktarget=11 | ||
# Android | ||
makeevrserg.android.sdk.compile=33 | ||
makeevrserg.android.sdk.compile=34 | ||
makeevrserg.android.sdk.min=21 | ||
makeevrserg.android.sdk.target=33 | ||
makeevrserg.android.sdk.target=34 | ||
# Project | ||
makeevrserg.project.name=EmpireProjektMobile | ||
makeevrserg.project.group=com.makeevrserg.empireprojekt.mobile | ||
makeevrserg.project.version.string=0.0.2 | ||
makeevrserg.project.version.code=4 | ||
makeevrserg.project.version.string=0.0.3 | ||
makeevrserg.project.version.code=5 | ||
makeevrserg.project.description=EmpireProjekt mobile application | ||
makeevrserg.project.developers=makeevrserg|Makeev Roman|[email protected] | ||
makeevrserg.project.url=https://empireprojekt.ru | ||
org.jetbrains.compose.ios.resources.sync=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...src/commonMain/kotlin/com/makeevrserg/empireprojekt/mobile/features/root/di/RootModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
package com.makeevrserg.empireprojekt.mobile.features.root.di | ||
|
||
import com.makeevrserg.empireprojekt.mobile.features.root.di.impl.root.RootModuleImpl | ||
import com.makeevrserg.empireprojekt.mobile.features.theme.ThemeSwitcher | ||
import com.russhwolf.settings.Settings | ||
import kotlinx.coroutines.CoroutineScope | ||
import ru.astrainteractive.klibs.kdi.ExperimentalKDIApi | ||
import ru.astrainteractive.klibs.kdi.Module | ||
import ru.astrainteractive.klibs.kdi.Single | ||
import ru.astrainteractive.klibs.kdi.WiredModule | ||
import ru.astrainteractive.klibs.mikro.core.dispatchers.KotlinDispatchers | ||
|
||
@OptIn(ExperimentalKDIApi::class) | ||
interface RootModule : WiredModule { | ||
interface RootModule : Module { | ||
val servicesModule: ServicesModule | ||
|
||
val settings: Single<Settings> | ||
val dispatchers: Single<KotlinDispatchers> | ||
val mainScope: Single<CoroutineScope> | ||
val themeSwitcher: Single<ThemeSwitcher> | ||
|
||
companion object : RootModule by RootModuleImpl | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...rc/commonMain/kotlin/com/makeevrserg/empireprojekt/mobile/features/theme/ThemeSwitcher.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.makeevrserg.empireprojekt.mobile.features.theme | ||
|
||
import kotlinx.coroutines.flow.StateFlow | ||
|
||
interface ThemeSwitcher { | ||
val theme: StateFlow<Theme> | ||
|
||
enum class Theme { | ||
DARK, LIGHT | ||
} | ||
|
||
fun selectDarkTheme() | ||
fun selectLightTheme() | ||
fun selectTheme(theme: Theme) | ||
} |
Oops, something went wrong.