Skip to content

Commit

Permalink
feat: update color scheme and improve UI component styles
Browse files Browse the repository at this point in the history
  • Loading branch information
purrseus committed Feb 23, 2025
1 parent 71a1a07 commit 9ed5c18
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 95 deletions.
Binary file modified src/assets/icons/delete.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/theme/colors.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const colors = Object.freeze({
black: '#000000',
red: '#ef4444',
green: '#22c55e',
gray: '#888888',
lightGray: '#AAAAAA',
black: '#0a0a0a',
red: '#ff6467',
green: '#05df72',
gray: '#a1a1a1',
lightGray: '#e5e5e5',
});

export default colors;
2 changes: 2 additions & 0 deletions src/ui/Xenon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ namespace Xenon {
bottom: undefined,
zIndex: 9999,
backgroundColor: colors.lightGray,
borderBottomColor: colors.gray,
borderBottomWidth: StyleSheet.hairlineWidth,
},
safeArea: {
flex: 1,
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/details/LogMessageDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const styles = StyleSheet.create({
paddingHorizontal: 8,
},
divider: {
height: 1,
height: StyleSheet.hairlineWidth,
backgroundColor: colors.gray,
},
});
2 changes: 1 addition & 1 deletion src/ui/components/details/NetworkRequestDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ const styles = StyleSheet.create({
paddingHorizontal: 8,
},
divider: {
height: 1,
height: StyleSheet.hairlineWidth,
backgroundColor: colors.gray,
},
text: {
Expand Down
6 changes: 5 additions & 1 deletion src/ui/components/headers/DebuggerHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,17 @@ export default function DebuggerHeader() {
const styles = StyleSheet.create({
container: {
flexGrow: 0,
borderTopColor: colors.gray,
borderTopWidth: StyleSheet.hairlineWidth,
borderBottomColor: colors.gray,
borderBottomWidth: StyleSheet.hairlineWidth,
},
contentContainer: {
padding: 8,
columnGap: 8,
},
divider: {
width: 1,
width: StyleSheet.hairlineWidth,
backgroundColor: colors.gray,
},
});
69 changes: 0 additions & 69 deletions src/ui/components/headers/NetworkPanelHeader.tsx

This file was deleted.

9 changes: 5 additions & 4 deletions src/ui/components/items/DebuggerHeaderItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@ const styles = StyleSheet.create({
},
title: {
fontSize: 14,
lineHeight: 17,
fontWeight: '500',
lineHeight: 18,
fontWeight: '600',
color: colors.black,
},
icon: {
width: 17,
height: 17,
width: 18,
height: 18,
tintColor: colors.black,
},
});
2 changes: 1 addition & 1 deletion src/ui/components/panels/ConsolePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const styles = StyleSheet.create({
paddingHorizontal: 8,
},
divider: {
height: 1,
height: StyleSheet.hairlineWidth,
backgroundColor: colors.gray,
},
});
22 changes: 9 additions & 13 deletions src/ui/components/panels/NetworkPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
type ID,
type WebSocketRequest,
} from '../../../types';
import NetworkPanelHeader from '../headers/NetworkPanelHeader';
import NetworkPanelItem from '../items/NetworkPanelItem';

const Separator = () => <View style={styles.divider} />;
Expand Down Expand Up @@ -46,17 +45,14 @@ export default function NetworkPanel() {
);

return (
<>
<NetworkPanelHeader />
<FlatList
inverted
data={data}
renderItem={renderItem}
keyExtractor={([key]) => key}
ItemSeparatorComponent={Separator}
style={styles.container}
/>
</>
<FlatList
inverted
data={data}
renderItem={renderItem}
keyExtractor={([key]) => key}
ItemSeparatorComponent={Separator}
style={styles.container}
/>
);
}

Expand All @@ -66,7 +62,7 @@ const styles = StyleSheet.create({
paddingHorizontal: 8,
},
divider: {
height: 1,
height: StyleSheet.hairlineWidth,
backgroundColor: colors.gray,
},
});

0 comments on commit 9ed5c18

Please sign in to comment.