diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-12-11 22:33:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-11 22:33:45 +0000 |
commit | e49dad28896695fc6396ba704a94d3e459711f1a (patch) | |
tree | 99a702c4a1794d8ae4223fbdcbec38fc9ece69b6 /src/screens/Settings/AppIconSettings/SettingsListItem.tsx | |
parent | 69f22b9dba41987763310c1adc4ac87d58d63334 (diff) | |
download | voidsky-e49dad28896695fc6396ba704a94d3e459711f1a.tar.zst |
Nicer app icon screen (#6972)
* wip exploration * list format instead of grid * fix normalising default name * adjust margins * Rework the app icon link * Decrease app icon size * Adjust some spacing * Move some things around to fix web errors * Fix pathname --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/screens/Settings/AppIconSettings/SettingsListItem.tsx')
-rw-r--r-- | src/screens/Settings/AppIconSettings/SettingsListItem.tsx | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/screens/Settings/AppIconSettings/SettingsListItem.tsx b/src/screens/Settings/AppIconSettings/SettingsListItem.tsx new file mode 100644 index 000000000..add87b1d7 --- /dev/null +++ b/src/screens/Settings/AppIconSettings/SettingsListItem.tsx @@ -0,0 +1,29 @@ +import {View} from 'react-native' +import {msg, Trans} from '@lingui/macro' +import {useLingui} from '@lingui/react' + +import {AppIconImage} from '#/screens/Settings/AppIconSettings/AppIconImage' +import {useCurrentAppIcon} from '#/screens/Settings/AppIconSettings/useCurrentAppIcon' +import * as SettingsList from '#/screens/Settings/components/SettingsList' +import {atoms as a} from '#/alf' +import {Shapes_Stroke2_Corner0_Rounded as Shapes} from '#/components/icons/Shapes' + +export function SettingsListItem() { + const {_} = useLingui() + const icon = useCurrentAppIcon() + + return ( + <SettingsList.LinkItem + to="/settings/app-icon" + label={_(msg`App Icon`)} + contentContainerStyle={[a.align_start]}> + <SettingsList.ItemIcon icon={Shapes} /> + <View style={[a.flex_1]}> + <SettingsList.ItemText style={[a.pt_xs, a.pb_md]}> + <Trans>App Icon</Trans> + </SettingsList.ItemText> + <AppIconImage icon={icon} size={60} /> + </View> + </SettingsList.LinkItem> + ) +} |