android, desktop: bottom bar and update texts in onboarding (#5279)

* android, desktop: remove one hand ui bar from onboarding and design matching latest ios

* padding before text

* stop reserving space in conditions view

* notifications view

* revert unwanted

* update heading

* translations for new how it works

* how it works redone

* show create profile in how it works

* revert

* conditions of use same padding bottom

* unused str

* swapped instant and off notifications order

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
Diogo
2024-11-30 18:21:48 +00:00
committed by GitHub
co-authored by Evgeny Poberezkin
parent e9853fe3fc
commit 94377d0b7a
35 changed files with 101 additions and 146 deletions
@@ -14,6 +14,7 @@ import chat.simplex.common.model.ChatController.appPrefs
import chat.simplex.common.ui.theme.DEFAULT_PADDING
import chat.simplex.common.views.chatlist.NavigationBarBackground
import chat.simplex.common.views.helpers.*
import chat.simplex.common.views.onboarding.OnboardingStage
import kotlinx.coroutines.flow.filter
import kotlin.math.absoluteValue
@@ -124,7 +125,7 @@ actual fun ColumnWithScrollBar(
}
}
}
val oneHandUI = remember { appPrefs.oneHandUI.state }
val oneHandUI = remember { derivedStateOf { if (appPrefs.onboardingStage.state.value == OnboardingStage.OnboardingComplete) appPrefs.oneHandUI.state.value else false } }
Box(Modifier.fillMaxHeight()) {
Column(
if (maxIntrinsicSize) {