refactor(ui): apply text classes to DetailsIslandView

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mika kuns
2026-05-30 17:27:13 +02:00
parent d4c66dea63
commit e0dda3e71b

View File

@@ -21,9 +21,8 @@
Foreground="{DynamicResource BloodBrush}"/> Foreground="{DynamicResource BloodBrush}"/>
</Button> </Button>
<TextBlock Grid.Column="1" <TextBlock Grid.Column="1"
Classes="meta"
Text="{Binding Task.CreatedAtFormatted}" Text="{Binding Task.CreatedAtFormatted}"
FontFamily="{DynamicResource MonoFont}" FontSize="{StaticResource FontSizeEyebrow}"
Foreground="{DynamicResource TextFaintBrush}"
HorizontalAlignment="Center" HorizontalAlignment="Center"
VerticalAlignment="Center"/> VerticalAlignment="Center"/>
<Button Grid.Column="2" Classes="icon-btn" <Button Grid.Column="2" Classes="icon-btn"
@@ -49,9 +48,8 @@
Cursor="Hand"/> Cursor="Hand"/>
</Button> </Button>
<StackPanel Grid.Column="1" Spacing="0"> <StackPanel Grid.Column="1" Spacing="0">
<TextBlock Text="{Binding TaskIdBadge}" <TextBlock Classes="meta"
FontFamily="{DynamicResource MonoFont}" FontSize="{StaticResource FontSizeEyebrow}" Text="{Binding TaskIdBadge}"
Foreground="{DynamicResource TextFaintBrush}"
Margin="0,0,0,4"/> Margin="0,0,0,4"/>
<TextBox Text="{Binding EditableTitle, Mode=TwoWay}" <TextBox Text="{Binding EditableTitle, Mode=TwoWay}"
FontSize="{StaticResource FontSizeTaskTitle}" FontWeight="Medium" FontSize="{StaticResource FontSizeTaskTitle}" FontWeight="Medium"
@@ -84,23 +82,24 @@
<TextBlock Text="Agent settings (overrides)" FontWeight="SemiBold"/> <TextBlock Text="Agent settings (overrides)" FontWeight="SemiBold"/>
<StackPanel Spacing="2"> <StackPanel Spacing="2">
<TextBlock Text="Model"/> <TextBlock Classes="field-label" Text="Model"/>
<ComboBox ItemsSource="{Binding TaskModelOptions}" <ComboBox ItemsSource="{Binding TaskModelOptions}"
SelectedItem="{Binding TaskModelSelection, Mode=TwoWay}" SelectedItem="{Binding TaskModelSelection, Mode=TwoWay}"
HorizontalAlignment="Stretch"/> HorizontalAlignment="Stretch"/>
<TextBlock Text="{Binding EffectiveModelHint, StringFormat='Effective if inherited: {0}'}" <TextBlock Classes="meta"
Opacity="0.6" FontSize="{StaticResource FontSizeMono}"/> Text="{Binding EffectiveModelHint, StringFormat='Effective if inherited: {0}'}"
Opacity="0.6"/>
</StackPanel> </StackPanel>
<StackPanel Spacing="2"> <StackPanel Spacing="2">
<TextBlock Text="System prompt (appended)"/> <TextBlock Classes="field-label" Text="System prompt (appended)"/>
<TextBox Text="{Binding TaskSystemPrompt, Mode=TwoWay}" <TextBox Text="{Binding TaskSystemPrompt, Mode=TwoWay}"
AcceptsReturn="True" TextWrapping="Wrap" MinHeight="70" AcceptsReturn="True" TextWrapping="Wrap" MinHeight="70"
PlaceholderText="{Binding EffectiveSystemPromptHint}"/> PlaceholderText="{Binding EffectiveSystemPromptHint}"/>
</StackPanel> </StackPanel>
<StackPanel Spacing="2"> <StackPanel Spacing="2">
<TextBlock Text="Agent file"/> <TextBlock Classes="field-label" Text="Agent file"/>
<ComboBox ItemsSource="{Binding TaskAgentOptions}" <ComboBox ItemsSource="{Binding TaskAgentOptions}"
SelectedItem="{Binding TaskSelectedAgent, Mode=TwoWay}" SelectedItem="{Binding TaskSelectedAgent, Mode=TwoWay}"
HorizontalAlignment="Stretch"> HorizontalAlignment="Stretch">
@@ -110,8 +109,9 @@
</DataTemplate> </DataTemplate>
</ComboBox.ItemTemplate> </ComboBox.ItemTemplate>
</ComboBox> </ComboBox>
<TextBlock Text="{Binding EffectiveAgentHint, StringFormat='Effective if inherited: {0}'}" <TextBlock Classes="meta"
Opacity="0.6" FontSize="{StaticResource FontSizeMono}"/> Text="{Binding EffectiveAgentHint, StringFormat='Effective if inherited: {0}'}"
Opacity="0.6"/>
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Flyout> </Flyout>
@@ -218,12 +218,12 @@
Margin="0,0,6,2" Margin="0,0,6,2"
VerticalAlignment="Center"> VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" Spacing="6"> <StackPanel Orientation="Horizontal" Spacing="6">
<TextBlock Text="▾" FontSize="{StaticResource FontSizeEyebrow}" <TextBlock Classes="meta"
IsVisible="{Binding IsDescriptionExpanded}" Text="▾"
Foreground="{DynamicResource TextDimBrush}"/> IsVisible="{Binding IsDescriptionExpanded}"/>
<TextBlock Text="▸" FontSize="{StaticResource FontSizeEyebrow}" <TextBlock Classes="meta"
IsVisible="{Binding !IsDescriptionExpanded}" Text="▸"
Foreground="{DynamicResource TextDimBrush}"/> IsVisible="{Binding !IsDescriptionExpanded}"/>
<TextBlock Classes="section-label" Text="DETAILS"/> <TextBlock Classes="section-label" Text="DETAILS"/>
</StackPanel> </StackPanel>
</Button> </Button>