mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
android, desktop: layout changes for settings items (#4732)
* android, desktop: layout changes for settings items * section paddings * toggle * padding and border * padding --------- Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
This commit is contained in:
committed by
GitHub
parent
0438f35539
commit
5cb8badb22
+4
-4
@@ -60,16 +60,16 @@ fun AppearanceScope.AppearanceLayout(
|
||||
}
|
||||
}
|
||||
}
|
||||
SectionDividerSpaced(maxTopPadding = true)
|
||||
SectionDividerSpaced()
|
||||
ThemesSection(systemDarkTheme)
|
||||
|
||||
SectionDividerSpaced(maxTopPadding = true)
|
||||
SectionDividerSpaced()
|
||||
ProfileImageSection()
|
||||
|
||||
SectionDividerSpaced(maxBottomPadding = true)
|
||||
SectionDividerSpaced(maxTopPadding = true)
|
||||
FontScaleSection()
|
||||
|
||||
SectionDividerSpaced(maxBottomPadding = true)
|
||||
SectionDividerSpaced(maxTopPadding = true)
|
||||
DensityScaleSection()
|
||||
|
||||
SectionBottomSpacer()
|
||||
|
||||
+4
-6
@@ -23,14 +23,12 @@ actual fun SettingsSectionApp(
|
||||
withAuth: (title: String, desc: String, block: () -> Unit) -> Unit
|
||||
) {
|
||||
SectionView(stringResource(MR.strings.settings_section_title_app)) {
|
||||
SettingsActionItem(painterResource(MR.images.ic_code), stringResource(MR.strings.settings_developer_tools), showSettingsModal { DeveloperView(it, showCustomModal, withAuth) }, extraPadding = true)
|
||||
SettingsActionItem(painterResource(MR.images.ic_code), stringResource(MR.strings.settings_developer_tools), showSettingsModal { DeveloperView(it, showCustomModal, withAuth) })
|
||||
val selectedChannel = remember { appPrefs.appUpdateChannel.state }
|
||||
val values = AppUpdatesChannel.entries.map { it to it.text }
|
||||
Box(Modifier.padding(start = DEFAULT_PADDING_HALF * 1.4f)) {
|
||||
ExposedDropDownSettingRow(stringResource(MR.strings.app_check_for_updates), values, selectedChannel) {
|
||||
appPrefs.appUpdateChannel.set(it)
|
||||
setupUpdateChecker()
|
||||
}
|
||||
ExposedDropDownSettingRow(stringResource(MR.strings.app_check_for_updates), values, selectedChannel) {
|
||||
appPrefs.appUpdateChannel.set(it)
|
||||
setupUpdateChecker()
|
||||
}
|
||||
AppVersionItem(showVersion)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user