build: update to latest commons
This commit is contained in:
parent
3637e6175b
commit
88389e22cd
|
@ -20,10 +20,13 @@ import androidx.compose.ui.unit.sp
|
||||||
import androidx.compose.ui.viewinterop.AndroidView
|
import androidx.compose.ui.viewinterop.AndroidView
|
||||||
import com.simplemobiletools.commons.R
|
import com.simplemobiletools.commons.R
|
||||||
import com.simplemobiletools.commons.compose.extensions.MyDevices
|
import com.simplemobiletools.commons.compose.extensions.MyDevices
|
||||||
|
import com.simplemobiletools.commons.compose.lists.SimpleLazyListScaffold
|
||||||
|
import com.simplemobiletools.commons.compose.lists.simpleTopAppBarColors
|
||||||
|
import com.simplemobiletools.commons.compose.lists.topAppBarInsets
|
||||||
|
import com.simplemobiletools.commons.compose.lists.topAppBarPaddings
|
||||||
import com.simplemobiletools.commons.compose.menus.ActionItem
|
import com.simplemobiletools.commons.compose.menus.ActionItem
|
||||||
import com.simplemobiletools.commons.compose.menus.ActionMenu
|
import com.simplemobiletools.commons.compose.menus.ActionMenu
|
||||||
import com.simplemobiletools.commons.compose.menus.OverflowMode
|
import com.simplemobiletools.commons.compose.menus.OverflowMode
|
||||||
import com.simplemobiletools.commons.compose.settings.scaffold.*
|
|
||||||
import com.simplemobiletools.commons.compose.theme.AppThemeSurface
|
import com.simplemobiletools.commons.compose.theme.AppThemeSurface
|
||||||
import com.simplemobiletools.commons.compose.theme.SimpleTheme
|
import com.simplemobiletools.commons.compose.theme.SimpleTheme
|
||||||
import kotlinx.collections.immutable.toImmutableList
|
import kotlinx.collections.immutable.toImmutableList
|
||||||
|
@ -36,7 +39,7 @@ internal fun MainScreen(
|
||||||
moreAppsFromUs: () -> Unit,
|
moreAppsFromUs: () -> Unit,
|
||||||
linkColor: Color,
|
linkColor: Color,
|
||||||
) {
|
) {
|
||||||
SettingsLazyScaffold(customTopBar = { scrolledColor: Color, _: MutableInteractionSource, scrollBehavior: TopAppBarScrollBehavior, statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color ->
|
SimpleLazyListScaffold(customTopBar = { scrolledColor: Color, _: MutableInteractionSource, scrollBehavior: TopAppBarScrollBehavior, statusBarColor: Int, colorTransitionFraction: Float, contrastColor: Color ->
|
||||||
TopAppBar(
|
TopAppBar(
|
||||||
title = {},
|
title = {},
|
||||||
actions = {
|
actions = {
|
||||||
|
@ -45,7 +48,7 @@ internal fun MainScreen(
|
||||||
ActionMenu(items = actionMenus, numIcons = 2, isMenuVisible = isMenuVisible, onMenuToggle = { isMenuVisible = it }, iconsColor = scrolledColor)
|
ActionMenu(items = actionMenus, numIcons = 2, isMenuVisible = isMenuVisible, onMenuToggle = { isMenuVisible = it }, iconsColor = scrolledColor)
|
||||||
},
|
},
|
||||||
scrollBehavior = scrollBehavior,
|
scrollBehavior = scrollBehavior,
|
||||||
colors = topAppBarColors(statusBarColor, colorTransitionFraction, contrastColor),
|
colors = simpleTopAppBarColors(statusBarColor, colorTransitionFraction, contrastColor),
|
||||||
modifier = Modifier.topAppBarPaddings(),
|
modifier = Modifier.topAppBarPaddings(),
|
||||||
windowInsets = topAppBarInsets()
|
windowInsets = topAppBarInsets()
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,15 +1,13 @@
|
||||||
package com.simplemobiletools.thankyou.screens
|
package com.simplemobiletools.thankyou.screens
|
||||||
|
|
||||||
import androidx.compose.material3.HorizontalDivider
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.res.stringResource
|
import androidx.compose.ui.res.stringResource
|
||||||
import com.simplemobiletools.commons.R
|
import com.simplemobiletools.commons.R
|
||||||
import com.simplemobiletools.commons.compose.extensions.MyDevices
|
import com.simplemobiletools.commons.compose.extensions.MyDevices
|
||||||
|
import com.simplemobiletools.commons.compose.lists.SimpleColumnScaffold
|
||||||
import com.simplemobiletools.commons.compose.settings.*
|
import com.simplemobiletools.commons.compose.settings.*
|
||||||
import com.simplemobiletools.commons.compose.settings.scaffold.SettingsScaffold
|
|
||||||
import com.simplemobiletools.commons.compose.theme.AppThemeSurface
|
import com.simplemobiletools.commons.compose.theme.AppThemeSurface
|
||||||
import com.simplemobiletools.commons.compose.theme.SimpleTheme
|
import com.simplemobiletools.commons.compose.theme.SimpleTheme
|
||||||
import com.simplemobiletools.commons.compose.theme.divider_grey
|
|
||||||
import com.simplemobiletools.commons.helpers.isTiramisuPlus
|
import com.simplemobiletools.commons.helpers.isTiramisuPlus
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
|
@ -24,7 +22,7 @@ internal fun SettingsScreen(
|
||||||
customizeColors: () -> Unit,
|
customizeColors: () -> Unit,
|
||||||
goBack: () -> Unit,
|
goBack: () -> Unit,
|
||||||
) {
|
) {
|
||||||
SettingsScaffold(title = stringResource(id = R.string.settings), goBack = goBack) {
|
SimpleColumnScaffold(title = stringResource(id = R.string.settings), goBack = goBack) {
|
||||||
SettingsGroup(title = {
|
SettingsGroup(title = {
|
||||||
SettingsTitleTextComponent(text = stringResource(id = R.string.color_customization))
|
SettingsTitleTextComponent(text = stringResource(id = R.string.color_customization))
|
||||||
}) {
|
}) {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#jetbrains
|
#jetbrains
|
||||||
kotlin = "1.9.10"
|
kotlin = "1.9.10"
|
||||||
#Simple tools
|
#Simple tools
|
||||||
simple-commons = "80c40375a5"
|
simple-commons = "31af0c48e0"
|
||||||
#Compose
|
#Compose
|
||||||
composeActivity = "1.8.0"
|
composeActivity = "1.8.0"
|
||||||
compose = "1.6.0-alpha07"
|
compose = "1.6.0-alpha07"
|
||||||
|
|
Loading…
Reference in New Issue