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:
Stanislav Dmitrenko
2024-08-21 15:46:42 +00:00
committed by GitHub
parent 0438f35539
commit 5cb8badb22
245 changed files with 401 additions and 394 deletions
@@ -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()
@@ -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)
}