style(sidebar): change New Agent button to outline style
Make the button less prominent since it's not frequently used once you're actively coding with an agent. Changed from filled primary to outline with muted colors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.5
parent
dbf9b7e75d
commit
2a44b08d4b
@@ -241,21 +241,11 @@ export function SlidingSidebar({ selectedAgentId }: SlidingSidebarProps) {
|
|||||||
{/* Header: New Agent button */}
|
{/* Header: New Agent button */}
|
||||||
<View style={styles.sidebarHeader}>
|
<View style={styles.sidebarHeader}>
|
||||||
<Pressable
|
<Pressable
|
||||||
style={[
|
style={styles.newAgentButton}
|
||||||
styles.newAgentButton,
|
|
||||||
{ backgroundColor: theme.colors.primary },
|
|
||||||
]}
|
|
||||||
onPress={handleCreateAgentMobile}
|
onPress={handleCreateAgentMobile}
|
||||||
>
|
>
|
||||||
<Plus size={18} color={theme.colors.primaryForeground} />
|
<Plus size={18} color={theme.colors.mutedForeground} />
|
||||||
<Text
|
<Text style={styles.newAgentButtonText}>New Agent</Text>
|
||||||
style={[
|
|
||||||
styles.newAgentButtonText,
|
|
||||||
{ color: theme.colors.primaryForeground },
|
|
||||||
]}
|
|
||||||
>
|
|
||||||
New Agent
|
|
||||||
</Text>
|
|
||||||
</Pressable>
|
</Pressable>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
@@ -294,21 +284,11 @@ export function SlidingSidebar({ selectedAgentId }: SlidingSidebarProps) {
|
|||||||
{/* Header: New Agent button */}
|
{/* Header: New Agent button */}
|
||||||
<View style={styles.sidebarHeader}>
|
<View style={styles.sidebarHeader}>
|
||||||
<Pressable
|
<Pressable
|
||||||
style={[
|
style={styles.newAgentButton}
|
||||||
styles.newAgentButton,
|
|
||||||
{ backgroundColor: theme.colors.primary },
|
|
||||||
]}
|
|
||||||
onPress={handleCreateAgentDesktop}
|
onPress={handleCreateAgentDesktop}
|
||||||
>
|
>
|
||||||
<Plus size={18} color={theme.colors.primaryForeground} />
|
<Plus size={18} color={theme.colors.mutedForeground} />
|
||||||
<Text
|
<Text style={styles.newAgentButtonText}>New Agent</Text>
|
||||||
style={[
|
|
||||||
styles.newAgentButtonText,
|
|
||||||
{ color: theme.colors.primaryForeground },
|
|
||||||
]}
|
|
||||||
>
|
|
||||||
New Agent
|
|
||||||
</Text>
|
|
||||||
</Pressable>
|
</Pressable>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
@@ -366,10 +346,13 @@ const styles = StyleSheet.create((theme) => ({
|
|||||||
gap: theme.spacing[2],
|
gap: theme.spacing[2],
|
||||||
paddingVertical: theme.spacing[3],
|
paddingVertical: theme.spacing[3],
|
||||||
borderRadius: theme.borderRadius.lg,
|
borderRadius: theme.borderRadius.lg,
|
||||||
|
borderWidth: 1,
|
||||||
|
borderColor: theme.colors.border,
|
||||||
},
|
},
|
||||||
newAgentButtonText: {
|
newAgentButtonText: {
|
||||||
fontSize: theme.fontSize.base,
|
fontSize: theme.fontSize.base,
|
||||||
fontWeight: theme.fontWeight.normal,
|
fontWeight: theme.fontWeight.normal,
|
||||||
|
color: theme.colors.mutedForeground,
|
||||||
},
|
},
|
||||||
sidebarFooter: {
|
sidebarFooter: {
|
||||||
paddingHorizontal: theme.spacing[4],
|
paddingHorizontal: theme.spacing[4],
|
||||||
|
|||||||
Reference in New Issue
Block a user