From eaa0c0810e1eefdcaa02c1e2a235d7da4d5b3323 Mon Sep 17 00:00:00 2001 From: Samuel Elliott Date: Sat, 10 Sep 2022 20:14:42 +0100 Subject: [PATCH] Preferences window styles --- src/app/browser/preferences/index.tsx | 53 ++++++++++++++++++--------- 1 file changed, 36 insertions(+), 17 deletions(-) diff --git a/src/app/browser/preferences/index.tsx b/src/app/browser/preferences/index.tsx index b38c3d7..0a3ee58 100644 --- a/src/app/browser/preferences/index.tsx +++ b/src/app/browser/preferences/index.tsx @@ -122,11 +122,13 @@ export default function Preferences(props: PreferencesProps) { style={styles.checkbox} /> setOpenAtLogin(!login_item.openAtLogin)}> - Open at login + Open at login - {ipc.platform === 'darwin' ? + {ipc.platform === 'darwin' ? - setOpenAsHidden(!login_item.openAsHidden)}> - Open in background + setOpenAsHidden(!login_item.openAsHidden)} + > + Open in background : null} : null} - + {/* Sleep Prevent sleep menu here - + */} @@ -174,7 +178,7 @@ export default function Preferences(props: PreferencesProps) { Friend code Adding your friend code will also show your Nintendo Switch user icon in Discord. - {is_discord_friend_code_self ? <> + {is_discord_friend_code_self ? - : } + : + + } {/* */} - + setDiscordShowConsoleOnline(!discord_options?.show_console_online)}> - Show "Not playing" when a console linked to your account is online, but you are not selected in a game + Show inactive presence + Shows "Not playing" when a console linked to your account is online, but you are not selected in a game. Play time @@ -257,7 +264,6 @@ const styles = StyleSheet.create({ flexDirection: 'row', }, sectionLeft: { - // flex: 0, width: '30%', marginRight: 30, }, @@ -301,20 +307,33 @@ const styles = StyleSheet.create({ fontSize: 13, }, checkboxContainer: { + marginBottom: 8, flex: 1, flexBasis: 'auto', - // marginRight: 20, flexDirection: 'row', alignItems: 'center', - // maxWidth: 1, + }, + checkboxContainerMargin: { + marginTop: 8, + marginBottom: 0, }, checkbox: { marginRight: 10, - marginVertical: 8, }, checkboxLabel: { flex: 1, - marginVertical: 8, + }, + checkboxLabelText: { + }, + disabled: { + opacity: 0.8, + }, + + friendCodeCheckbox: { + marginTop: 8, + }, + friendCodeInput: { + marginBottom: 4, }, button: {