refactor(ui): unify text and close button in ListSettingsModalView

This commit is contained in:
mika kuns
2026-05-30 17:32:02 +02:00
parent ed8607d4c9
commit 97fc715856

View File

@@ -105,11 +105,8 @@
<ComboBox.ItemTemplate> <ComboBox.ItemTemplate>
<DataTemplate> <DataTemplate>
<StackPanel> <StackPanel>
<TextBlock Text="{Binding Name}" <TextBlock Classes="title" Text="{Binding Name}"/>
Foreground="{DynamicResource TextBrush}"/> <TextBlock Classes="meta" Text="{Binding Description}"/>
<TextBlock Text="{Binding Description}"
Foreground="{DynamicResource TextMuteBrush}"
FontSize="{StaticResource FontSizeMono}" />
</StackPanel> </StackPanel>
</DataTemplate> </DataTemplate>
</ComboBox.ItemTemplate> </ComboBox.ItemTemplate>
@@ -117,10 +114,7 @@
<Button Grid.Column="1" Content="Browse..." <Button Grid.Column="1" Content="Browse..."
Margin="8,0,0,0" Click="BrowseAgentClicked" /> Margin="8,0,0,0" Click="BrowseAgentClicked" />
</Grid> </Grid>
<TextBlock Text="{Binding SelectedAgent.Path}" <TextBlock Classes="path-mono" Text="{Binding SelectedAgent.Path}"
FontFamily="{DynamicResource MonoFont}"
FontSize="{StaticResource FontSizeMono}"
Foreground="{DynamicResource TextFaintBrush}"
TextTrimming="PrefixCharacterEllipsis" TextTrimming="PrefixCharacterEllipsis"
IsVisible="{Binding SelectedAgent.Path, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/> IsVisible="{Binding SelectedAgent.Path, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"/>
</StackPanel> </StackPanel>