File tree Expand file tree Collapse file tree
src/commonMain/kotlin/com/softartdev/shared
src/commonMain/kotlin/com/softartdev/theme/material3
src/commonMain/kotlin/com/softartdev/theme/material Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ kotlin {
5353 implementation(compose.material)
5454 implementation(compose.ui)
5555 implementation(compose.components.resources)
56- implementation(compose.components.uiToolingPreview )
56+ implementation(compose.preview )
5757 implementation(" org.jetbrains.androidx.navigation:navigation-compose:2.9.1" )
5858 implementation(" org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0" )
5959 }
6060 androidMain.dependencies {
6161 implementation(" androidx.activity:activity-compose:1.12.2" )
62- implementation(compose.preview )
62+ implementation(compose.uiTooling )
6363 }
6464 val desktopMain by getting
6565 desktopMain.dependencies {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import androidx.compose.ui.text.style.TextOverflow
2727import androidx.compose.ui.unit.dp
2828import com.softartdev.shared.AppState
2929import com.softartdev.theme.material.PreferableMaterialTheme
30- import org.jetbrains .compose.ui.tooling.preview.Preview
30+ import androidx .compose.ui.tooling.preview.Preview
3131import kotlin.experimental.ExperimentalObjCRefinement
3232import kotlin.native.HiddenFromObjC
3333
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import io.github.softartdev.theme_prefs.generated.resources.pref_subtitle_open_g
2525import io.github.softartdev.theme_prefs.generated.resources.pref_title_source_code
2626import io.github.softartdev.theme_prefs.generated.resources.switch_to_material_design_3
2727import org.jetbrains.compose.resources.stringResource
28- import org.jetbrains .compose.ui.tooling.preview.Preview
28+ import androidx .compose.ui.tooling.preview.Preview
2929import kotlin.experimental.ExperimentalObjCRefinement
3030import kotlin.native.HiddenFromObjC
3131
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ import androidx.compose.ui.text.style.TextOverflow
3030import androidx.compose.ui.unit.dp
3131import com.softartdev.shared.AppState
3232import com.softartdev.theme.material.PreferableMaterialTheme
33- import org.jetbrains .compose.ui.tooling.preview.Preview
33+ import androidx .compose.ui.tooling.preview.Preview
3434import kotlin.experimental.ExperimentalObjCRefinement
3535import kotlin.native.HiddenFromObjC
3636
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import io.github.softartdev.theme_prefs.generated.resources.pref_subtitle_open_g
2525import io.github.softartdev.theme_prefs.generated.resources.pref_title_source_code
2626import io.github.softartdev.theme_prefs.generated.resources.switch_to_material_design_3
2727import org.jetbrains.compose.resources.stringResource
28- import org.jetbrains .compose.ui.tooling.preview.Preview
28+ import androidx .compose.ui.tooling.preview.Preview
2929import kotlin.experimental.ExperimentalObjCRefinement
3030import kotlin.native.HiddenFromObjC
3131
Original file line number Diff line number Diff line change @@ -36,14 +36,13 @@ kotlin {
3636 api(compose.foundation)
3737 api(compose.material)
3838 api(compose.materialIconsExtended)
39- implementation(compose.components.uiToolingPreview )
39+ implementation(compose.preview )
4040 }
4141 commonTest.dependencies {
4242 implementation(kotlin(" test" ))
4343 }
4444 androidMain.dependencies {
45- implementation(compose.preview)
46- implementation(" androidx.compose.ui:ui-tooling:1.10.1" )
45+ implementation(compose.uiTooling)
4746 }
4847 }
4948 explicitApi()
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import io.github.softartdev.theme_prefs.generated.resources.Res
2020import io.github.softartdev.theme_prefs.generated.resources.choose_theme
2121import io.github.softartdev.theme_prefs.generated.resources.theme
2222import org.jetbrains.compose.resources.stringResource
23- import org.jetbrains .compose.ui.tooling.preview.Preview
23+ import androidx .compose.ui.tooling.preview.Preview
2424
2525@Composable
2626public fun ThemePreferencesCategory (): Unit = PreferenceCategory (
@@ -64,13 +64,13 @@ public fun PreferenceItem(
6464 trailing = trailing
6565)
6666
67- @Preview
67+ @Preview(showBackground = true )
6868@Composable
6969public fun ThemePreferencesCategoryPreview () {
7070 ThemePreferencesCategory ()
7171}
7272
73- @Preview
73+ @Preview(showBackground = true )
7474@Composable
7575public fun ThemePreferenceItemPreview () {
7676 PreferableMaterialTheme { ThemePreferenceItem () }
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import androidx.compose.ui.semantics.Role
1919import androidx.compose.ui.unit.dp
2020import com.softartdev.theme.pref.ThemeEnum
2121import org.jetbrains.compose.resources.stringResource
22- import org.jetbrains .compose.ui.tooling.preview.Preview
22+ import androidx .compose.ui.tooling.preview.Preview
2323
2424@Composable
2525public fun RadioDialogContent (darkThemeState : MutableState <ThemeEnum >) {
@@ -51,7 +51,7 @@ public fun RadioDialogContent(darkThemeState: MutableState<ThemeEnum>) {
5151 }
5252}
5353
54- @Preview
54+ @Preview(showBackground = true )
5555@Composable
5656private fun RadioDialogContentPreview () {
5757 PreferableMaterialTheme {
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import androidx.compose.ui.graphics.vector.ImageVector
1616import io.github.softartdev.theme_prefs.generated.resources.Res
1717import io.github.softartdev.theme_prefs.generated.resources.settings
1818import org.jetbrains.compose.resources.stringResource
19- import org.jetbrains .compose.ui.tooling.preview.Preview
19+ import androidx .compose.ui.tooling.preview.Preview
2020
2121@Composable
2222public fun SettingsScaffold (
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import io.github.softartdev.theme_prefs.generated.resources.cancel
1515import io.github.softartdev.theme_prefs.generated.resources.choose_theme
1616import io.github.softartdev.theme_prefs.generated.resources.ok
1717import org.jetbrains.compose.resources.stringResource
18- import org.jetbrains .compose.ui.tooling.preview.Preview
18+ import androidx .compose.ui.tooling.preview.Preview
1919
2020/* *
2121 * AlertDialog for selecting a theme.
You can’t perform that action at this time.
0 commit comments