Files
claude-local-overview-display/App.xaml
2026-06-25 09:59:54 +02:00

147 lines
7.5 KiB
XML

<Application x:Class="ClaudeOverview.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>
<!-- Palette -->
<SolidColorBrush x:Key="PanelBg" Color="#F21B1C20"/>
<SolidColorBrush x:Key="PanelSolid" Color="#FF1B1C20"/>
<SolidColorBrush x:Key="CardBg" Color="#2A2C33"/>
<SolidColorBrush x:Key="CardBgHover" Color="#34373F"/>
<SolidColorBrush x:Key="AccentBrush" Color="#D97757"/>
<SolidColorBrush x:Key="WaitingBrush" Color="#E8A33D"/>
<SolidColorBrush x:Key="PermissionBrush" Color="#D9576B"/>
<SolidColorBrush x:Key="WorkingBrush" Color="#5FB37A"/>
<SolidColorBrush x:Key="TextPrimary" Color="#F5F5F4"/>
<SolidColorBrush x:Key="TextMuted" Color="#9CA0AB"/>
<SolidColorBrush x:Key="BorderBrush" Color="#3A3D45"/>
<!-- Borderless icon-style button -->
<Style x:Key="IconButton" TargetType="Button">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{StaticResource TextMuted}"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="bg" Background="{TemplateBinding Background}" CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="bg" Property="Background" Value="#33FFFFFF"/>
<Setter Property="Foreground" Value="{StaticResource TextPrimary}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Pill button for the settings screen -->
<Style x:Key="PillButton" TargetType="Button">
<Setter Property="Foreground" Value="{StaticResource TextPrimary}"/>
<Setter Property="Background" Value="{StaticResource CardBg}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="14,7"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border x:Name="bg" Background="{TemplateBinding Background}"
CornerRadius="7" Padding="{TemplateBinding Padding}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="bg" Property="Background" Value="{StaticResource CardBgHover}"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Accent variant for the primary (Save) action -->
<Style x:Key="PillButtonAccent" TargetType="Button" BasedOn="{StaticResource PillButton}">
<Setter Property="Background" Value="{StaticResource AccentBrush}"/>
<Setter Property="Foreground" Value="#FFFFFF"/>
</Style>
<!-- ===== Slim dark scrollbar (matches the panel; no arrow buttons) ===== -->
<!-- Invisible button used for the track's page-up/page-down areas. -->
<Style x:Key="ScrollBarPageButton" TargetType="RepeatButton">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RepeatButton">
<Border Background="Transparent"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- Rounded draggable thumb that brightens on hover/drag. -->
<Style x:Key="ScrollBarThumb" TargetType="Thumb">
<Setter Property="Focusable" Value="False"/>
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Thumb">
<Border x:Name="thumb" CornerRadius="3" Margin="2"
Background="#66000000"/>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter TargetName="thumb" Property="Background" Value="#99000000"/>
</Trigger>
<Trigger Property="IsDragging" Value="True">
<Setter TargetName="thumb" Property="Background" Value="#CC000000"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="ScrollBar">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Width" Value="6"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ScrollBar">
<Grid Background="Transparent">
<Track x:Name="PART_Track" IsDirectionReversed="True">
<Track.DecreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageUpCommand"
Style="{StaticResource ScrollBarPageButton}"/>
</Track.DecreaseRepeatButton>
<Track.Thumb>
<Thumb Style="{StaticResource ScrollBarThumb}"/>
</Track.Thumb>
<Track.IncreaseRepeatButton>
<RepeatButton Command="ScrollBar.PageDownCommand"
Style="{StaticResource ScrollBarPageButton}"/>
</Track.IncreaseRepeatButton>
</Track>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="Orientation" Value="Horizontal">
<Setter Property="Width" Value="Auto"/>
<Setter Property="Height" Value="6"/>
<Setter TargetName="PART_Track" Property="IsDirectionReversed" Value="False"/>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Application.Resources>
</Application>