Skip to content

Commit

Permalink
semantic colors and padding updates
Browse files Browse the repository at this point in the history
  • Loading branch information
byeoon committed Apr 24, 2024
1 parent c6b9a5a commit d0d42e8
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 20 deletions.
10 changes: 5 additions & 5 deletions dist/vendetta.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions src/ui/components/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ const styles = stylesheet.createThemedStyleSheet({
},
br: {
fontSize: 0,
paddingTop: 10,
paddingLeft: 10,
paddingRight: 10
padding: 2
},
});

Expand Down
6 changes: 4 additions & 2 deletions src/ui/settings/components/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ const styles = stylesheet.createThemedStyleSheet({
card: {
backgroundColor: semanticColors.BACKGROUND_SECONDARY,
borderRadius: 7,
borderColor: semanticColors.BACKGROUND_TERTIARY,
borderWidth: 1,
},
header: {
padding: 0,
backgroundColor: semanticColors.PRIMARY_DARK_800,
backgroundColor: semanticColors.PRIMARY_DARK,
color: semanticColors.HEADER_PRIMARY,
borderTopLeftRadius: 5,
borderTopRightRadius: 5,
Expand All @@ -34,7 +36,7 @@ const styles = stylesheet.createThemedStyleSheet({
width: 22,
height: 22,
marginLeft: 5,
tintColor: semanticColors?.INTERACTIVE_NORMAL,
tintColor: semanticColors.INTERACTIVE_NORMAL,
},
})

Expand Down
2 changes: 1 addition & 1 deletion src/ui/settings/components/Version.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function Version({ label, version, icon }: VersionProps) {
<FormRow
label={label}
leading={<FormRow.Icon source={getAssetIDByName(icon)} />}
trailing={<FormText style={{color: semanticColors.TEXT_MUTED, fontSize: 12}}>{version}</FormText>}
trailing={<FormText style={{color: semanticColors.TEXT_NORMAL, fontSize: 13}}>{version}</FormText>}
onPress={() => {
clipboard.setString(`${label} - ${version}`);
showToast("Copied version to clipboard.", getAssetIDByName("toast_copy_link"));
Expand Down
1 change: 1 addition & 0 deletions src/ui/settings/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface Screen {
key: string;
title: string;
icon?: string;
trailing?: string;
shouldRender?: () => boolean;
options?: Record<string, any>;
render: React.ComponentType<any>;
Expand Down
12 changes: 3 additions & 9 deletions src/ui/settings/pages/Addons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,21 @@ export default function Addons() {
}

return (
<RN.View style={{ flexDirection:"row", marginTop: 5, margin: 5 }}>
<RN.View style={{ flexDirection:"row", marginTop: 5, padding: 2, }}>
<Button
color={Button.Colors.BRAND}
size={Button.Sizes.MEDIUM}
look={Button.Looks.FILLED}
onPress={() =>
setSelectedTab('Plugins')
}
onPress={() => setSelectedTab('Plugins') }
text="Plugins"
/>

<Button
color={Button.Colors.BRAND}
size={Button.Sizes.MEDIUM}
look={Button.Looks.FILLED}
onPress={() =>
setSelectedTab('Shaders')
}
onPress={() => setSelectedTab('Shaders') }
text="Shaders"
/>

<RN.View>
{SelectedTab()}
</RN.View>
Expand Down

0 comments on commit d0d42e8

Please sign in to comment.