fix(ui): kit follow-ups for lists, chart contrast, activation and RTL bars
- ListBox (and the Library card grid) get a theme template that keeps their fill when disabled; ListView keeps the system GridView template. - BarChart, HeatmapStrip, SeriesChart and TimelineBands draw their labels in TextMuted; heatmap cells without data take the Stroke tone. - Category charts show the hand cursor and take the keyboard (arrows, Home, End, Enter, Space) only while an activation handler is attached to them; the keyboard item is outlined, read out and exposed as ItemStatus. - Horizontal bar charts and stacked bars start on the reading side in right-to-left languages; vertical bars, heatmaps and time axes stay LTR. - Archive drops its local list template, Focus.Inset copy, chart brush aliases and the redundant FlowDirection on the template box. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
10 files changed
+350
-197
No files matched your search
@@ -750,7 +750,30 @@
|
||||
</Style>
|
||||
|
||||
<!-- ===================== Lists and tables ===================== -->
|
||||
<Style TargetType="ListBox">
|
||||
<!--
|
||||
The system template paints a disabled list white whatever the theme (a list behind a dialog is disabled): this one
|
||||
keeps the list's own fill, and its rows and buttons dim themselves. Same frame and scroll viewer as the system's.
|
||||
-->
|
||||
<ControlTemplate x:Key="Template.ListBox" TargetType="ListBox">
|
||||
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
|
||||
Padding="1" SnapsToDevicePixels="True">
|
||||
<ScrollViewer Focusable="False" Padding="{TemplateBinding Padding}">
|
||||
<ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
|
||||
</ScrollViewer>
|
||||
</Border>
|
||||
<ControlTemplate.Triggers>
|
||||
<MultiTrigger>
|
||||
<MultiTrigger.Conditions>
|
||||
<Condition Property="IsGrouping" Value="True" />
|
||||
<Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="False" />
|
||||
</MultiTrigger.Conditions>
|
||||
<Setter Property="ScrollViewer.CanContentScroll" Value="False" />
|
||||
</MultiTrigger>
|
||||
</ControlTemplate.Triggers>
|
||||
</ControlTemplate>
|
||||
|
||||
<!-- Shared by ListBox and ListView; a ListView keeps the system template, which carries the GridView header row. -->
|
||||
<Style x:Key="ListBox.Base" TargetType="ListBox">
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource Brush.Text}" />
|
||||
@@ -761,6 +784,10 @@
|
||||
<Setter Property="VirtualizingPanel.ScrollUnit" Value="Pixel" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ListBox" BasedOn="{StaticResource ListBox.Base}">
|
||||
<Setter Property="Template" Value="{StaticResource Template.ListBox}" />
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ListBoxItem">
|
||||
<Setter Property="FocusVisualStyle" Value="{StaticResource Focus.Inset}" />
|
||||
<Setter Property="Foreground" Value="{DynamicResource Brush.Text}" />
|
||||
@@ -820,7 +847,7 @@
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<Style TargetType="ListView" BasedOn="{StaticResource {x:Type ListBox}}">
|
||||
<Style TargetType="ListView" BasedOn="{StaticResource ListBox.Base}">
|
||||
<Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto" />
|
||||
</Style>
|
||||
|
||||
|
||||
@@ -29,8 +29,10 @@
|
||||
</Setter>
|
||||
</Style>
|
||||
|
||||
<!-- Virtualized, recycling card grid (BRIEF §12.2). Item template: a v:SequenceCard bound to the item. -->
|
||||
<!-- Virtualized, recycling card grid (BRIEF §12.2). Item template: a v:SequenceCard bound to the item. Disabled (behind a
|
||||
dialog), it keeps its fill like every other list (Controls.xaml Template.ListBox). -->
|
||||
<Style x:Key="ListBox.Cards" TargetType="ListBox">
|
||||
<Setter Property="Template" Value="{DynamicResource Template.ListBox}" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
|
||||
Reference in new issue
Block a user