style(ui): custom title bar with brand and window controls
Replace character-glyph window buttons with PathIcon controls using Lucide-style StreamGeometry. Add left brand block (check glyph + CLAUDEDO + separator dot + selected list name) and draggable middle strip. Close button hover turns BloodBrush. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,40 @@
|
||||
<Styles xmlns="https://github.com/avaloniaui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||
|
||||
<!-- ============================================================ -->
|
||||
<!-- ICON GEOMETRY RESOURCES -->
|
||||
<!-- ============================================================ -->
|
||||
<Styles.Resources>
|
||||
<!-- Window control icons (from icons.jsx: min, max, close) -->
|
||||
<StreamGeometry x:Key="Icon.WinMin">M5 10h10</StreamGeometry>
|
||||
<StreamGeometry x:Key="Icon.WinMax">M5 5 h10 v10 h-10 z</StreamGeometry>
|
||||
<StreamGeometry x:Key="Icon.WinClose">M5 5l14 14M19 5L5 19</StreamGeometry>
|
||||
<!-- Brand check glyph (checkbox-style tick inside a rounded square) -->
|
||||
<StreamGeometry x:Key="Icon.BrandCheck">M3 3 h18 v18 h-18 z M6 12 l4 4 8-8</StreamGeometry>
|
||||
</Styles.Resources>
|
||||
|
||||
<!-- ============================================================ -->
|
||||
<!-- TITLE BAR CONTROLS -->
|
||||
<!-- ============================================================ -->
|
||||
|
||||
<Style Selector="Button.title-ctrl">
|
||||
<Setter Property="Width" Value="36" />
|
||||
<Setter Property="Height" Value="36" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Setter Property="Background" Value="Transparent" />
|
||||
<Setter Property="BorderThickness" Value="0" />
|
||||
<Setter Property="CornerRadius" Value="0" />
|
||||
<Setter Property="Foreground" Value="{StaticResource TextMuteBrush}" />
|
||||
</Style>
|
||||
<Style Selector="Button.title-ctrl:pointerover /template/ ContentPresenter">
|
||||
<Setter Property="Background" Value="{StaticResource Surface2Brush}" />
|
||||
<Setter Property="TextElement.Foreground" Value="{StaticResource TextBrush}" />
|
||||
</Style>
|
||||
<Style Selector="Button.title-ctrl.close:pointerover /template/ ContentPresenter">
|
||||
<Setter Property="Background" Value="{StaticResource BloodBrush}" />
|
||||
<Setter Property="TextElement.Foreground" Value="{StaticResource TextBrush}" />
|
||||
</Style>
|
||||
|
||||
<!-- ============================================================ -->
|
||||
<!-- ISLAND -->
|
||||
<!-- ============================================================ -->
|
||||
|
||||
Reference in New Issue
Block a user