fix(ui): use Tag-attribute selectors for terminal log colors
Rewrote all Border.terminal TextBlock log-kind selectors from CSS class form (.log-sys) to attribute form ([Tag=log-sys]), matching the pattern used by the diff-line selectors. Classes are not set on dynamically created TextBlocks; Tag binding works. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -252,27 +252,27 @@
|
|||||||
<Setter Property="FontSize" Value="11" />
|
<Setter Property="FontSize" Value="11" />
|
||||||
<Setter Property="Foreground" Value="{StaticResource TextDimBrush}" />
|
<Setter Property="Foreground" Value="{StaticResource TextDimBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Border.terminal TextBlock.log-sys">
|
<Style Selector="Border.terminal TextBlock[Tag=log-sys]">
|
||||||
<Setter Property="Foreground" Value="{StaticResource TextMuteBrush}" />
|
<Setter Property="Foreground" Value="{StaticResource TextMuteBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Border.terminal TextBlock.log-tool">
|
<Style Selector="Border.terminal TextBlock[Tag=log-tool]">
|
||||||
<Setter Property="Foreground" Value="{StaticResource SageBrush}" />
|
<Setter Property="Foreground" Value="{StaticResource SageBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Border.terminal TextBlock.log-claude">
|
<Style Selector="Border.terminal TextBlock[Tag=log-claude]">
|
||||||
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
|
<Setter Property="Foreground" Value="{StaticResource TextBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<!-- log-stdout: program output — dim text, same as base -->
|
<!-- log-stdout: program output — dim text, same as base -->
|
||||||
<Style Selector="Border.terminal TextBlock.log-stdout">
|
<Style Selector="Border.terminal TextBlock[Tag=log-stdout]">
|
||||||
<Setter Property="Foreground" Value="{StaticResource TextDimBrush}" />
|
<Setter Property="Foreground" Value="{StaticResource TextDimBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Border.terminal TextBlock.log-stderr">
|
<Style Selector="Border.terminal TextBlock[Tag=log-stderr]">
|
||||||
<Setter Property="Foreground" Value="{StaticResource BloodBrush}" />
|
<Setter Property="Foreground" Value="{StaticResource BloodBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="Border.terminal TextBlock.log-done">
|
<Style Selector="Border.terminal TextBlock[Tag=log-done]">
|
||||||
<Setter Property="Foreground" Value="{StaticResource MossBrightBrush}" />
|
<Setter Property="Foreground" Value="{StaticResource MossBrightBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<!-- log-msg: generic informational message — slightly brighter than sys -->
|
<!-- log-msg: generic informational message — slightly brighter than sys -->
|
||||||
<Style Selector="Border.terminal TextBlock.log-msg">
|
<Style Selector="Border.terminal TextBlock[Tag=log-msg]">
|
||||||
<Setter Property="Foreground" Value="{StaticResource TextDimBrush}" />
|
<Setter Property="Foreground" Value="{StaticResource TextDimBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user