<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- 工作台外壳的控件样式;工具窗口内部的既有样式不受影响 -->
<!-- 界面字体:按语言动态切换 CJK 回退字体,避免繁体/日文/韩文落到简体字形 -->
<Style Selector="TemplatedControl">
<Setter Property="FontFamily" Value="{DynamicResource FontUI}" />
</Style>
<Style Selector="TextBlock">
<Setter Property="FontFamily" Value="{DynamicResource FontUI}" />
</Style>
<!-- 基础控件皮肤:让工具页的按钮、输入框、下拉框与外壳保持同一套圆角与焦点态 -->
<Style Selector="Button">
<Setter Property="MinHeight" Value="32" />
<Setter Property="FontSize" Value="13" />
<Setter Property="FocusAdorner" Value="{x:Null}" />
<!-- ContentControl 默认 Stretch,宽度大于文字时文字会贴左;统一居中 -->
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
<Style Selector="Button /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Transitions">
<Transitions>
<TransformOperationsTransition Property="RenderTransform" Duration="0:0:0.075" />
<BrushTransition Property="Background" Duration="0:0:0.12" />
<BrushTransition Property="BorderBrush" Duration="0:0:0.12" />
</Transitions>
</Setter>
</Style>
<Style Selector="Button:focus-visible /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
<Setter Property="BorderThickness" Value="1" />
</Style>
<Style Selector="TextBox">
<Setter Property="MinHeight" Value="32" />
<Setter Property="FontSize" Value="13" />
<Setter Property="FocusAdorner" Value="{x:Null}" />
</Style>
<Style Selector="TextBox[AcceptsReturn=True]">
<Setter Property="Padding" Value="10,8,10,8" />
</Style>
<Style Selector="TextBox:pointerover /template/ Border#PART_BorderElement">
<Setter Property="BorderBrush" Value="{DynamicResource BorderStrong}" />
</Style>
<Style Selector="TextBox:focus /template/ Border#PART_BorderElement">
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="TextBox:disabled /template/ Border#PART_BorderElement">
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
</Style>
<Style Selector="ComboBox">
<Setter Property="MinHeight" Value="32" />
<Setter Property="FontSize" Value="13" />
<Setter Property="FocusAdorner" Value="{x:Null}" />
</Style>
<Style Selector="ComboBox:pointerover /template/ Border#Background">
<Setter Property="BorderBrush" Value="{DynamicResource BorderStrong}" />
</Style>
<Style Selector="ComboBox:focus-visible /template/ Border#HighlightBackground">
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="ComboBox:disabled /template/ Border#Background">
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
</Style>
<Style Selector="ComboBoxItem">
<Setter Property="CornerRadius" Value="6" />
</Style>
<Style Selector="ComboBoxItem:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="ComboBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="ComboBoxItem:selected:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="CheckBox">
<Setter Property="FontSize" Value="13" />
<Setter Property="CornerRadius" Value="6" />
<Setter Property="FocusAdorner" Value="{x:Null}" />
</Style>
<Style Selector="CheckBox:not(:checked):not(:indeterminate) /template/ Border#NormalRectangle">
<Setter Property="Background" Value="{DynamicResource BgSurface}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderStrong}" />
</Style>
<Style Selector="CheckBox:not(:checked):not(:indeterminate):pointerover /template/ Border#NormalRectangle">
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="CheckBox:focus-visible /template/ Border#NormalRectangle">
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="CheckBox:checked /template/ Border#NormalRectangle">
<Setter Property="Background" Value="{DynamicResource Accent}" />
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="CheckBox:checked:pointerover /template/ Border#NormalRectangle">
<Setter Property="Background" Value="{DynamicResource AccentHover}" />
<Setter Property="BorderBrush" Value="{DynamicResource AccentHover}" />
</Style>
<Style Selector="CheckBox:indeterminate /template/ Border#NormalRectangle">
<Setter Property="Background" Value="{DynamicResource Accent}" />
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="CheckBox:checked /template/ Path#CheckGlyph">
<Setter Property="Fill" Value="{DynamicResource OnAccent}" />
</Style>
<Style Selector="CheckBox:indeterminate /template/ Path#CheckGlyph">
<Setter Property="Fill" Value="{DynamicResource OnAccent}" />
</Style>
<Style Selector="CheckBox:disabled:not(:checked):not(:indeterminate) /template/ Border#NormalRectangle">
<Setter Property="Background" Value="{DynamicResource BgSubtle}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
</Style>
<Style Selector="CheckBox:disabled:checked /template/ Border#NormalRectangle">
<Setter Property="Background" Value="{DynamicResource BgSubtle}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
</Style>
<Style Selector="CheckBox:disabled /template/ Path#CheckGlyph">
<Setter Property="Fill" Value="{DynamicResource TextTertiary}" />
</Style>
<Style Selector="RadioButton">
<Setter Property="FontSize" Value="13" />
<Setter Property="FocusAdorner" Value="{x:Null}" />
</Style>
<Style Selector="RadioButton:not(:checked) /template/ Ellipse#OuterEllipse">
<Setter Property="Stroke" Value="{DynamicResource BorderStrong}" />
<Setter Property="Fill" Value="Transparent" />
</Style>
<Style Selector="RadioButton:not(:checked):pointerover /template/ Ellipse#OuterEllipse">
<Setter Property="Stroke" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="RadioButton:focus-visible /template/ Ellipse#OuterEllipse">
<Setter Property="Stroke" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="RadioButton:checked /template/ Ellipse#CheckOuterEllipse">
<Setter Property="Stroke" Value="{DynamicResource Accent}" />
<Setter Property="Fill" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="RadioButton:checked:pointerover /template/ Ellipse#CheckOuterEllipse">
<Setter Property="Stroke" Value="{DynamicResource AccentHover}" />
<Setter Property="Fill" Value="{DynamicResource AccentHover}" />
</Style>
<Style Selector="RadioButton:checked /template/ Ellipse#CheckGlyph">
<Setter Property="Stroke" Value="{DynamicResource OnAccent}" />
<Setter Property="Fill" Value="{DynamicResource OnAccent}" />
</Style>
<Style Selector="RadioButton:disabled:not(:checked) /template/ Ellipse#OuterEllipse">
<Setter Property="Stroke" Value="{DynamicResource BorderDefault}" />
</Style>
<Style Selector="RadioButton:disabled:checked /template/ Ellipse#CheckOuterEllipse">
<Setter Property="Stroke" Value="{DynamicResource BorderDefault}" />
<Setter Property="Fill" Value="{DynamicResource BgSubtle}" />
</Style>
<Style Selector="RadioButton:disabled /template/ Ellipse#CheckGlyph">
<Setter Property="Fill" Value="{DynamicResource TextTertiary}" />
<Setter Property="Stroke" Value="{DynamicResource TextTertiary}" />
</Style>
<Style Selector="ListBox">
<Setter Property="Background" Value="{DynamicResource BgSurface}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="Padding" Value="4" />
</Style>
<Style Selector="ListBoxItem">
<Setter Property="CornerRadius" Value="6" />
<Setter Property="Padding" Value="8,5,8,5" />
</Style>
<Style Selector="ListBoxItem:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="ListBoxItem:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgPressed}" />
</Style>
<Style Selector="ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="ListBoxItem:selected:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="ListBoxItem:selected:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="TextBlock.sideLabel">
<Setter Property="FontSize" Value="10" />
<Setter Property="Foreground" Value="{DynamicResource TextTertiary}" />
<Setter Property="Margin" Value="10,12,10,4" />
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<Style Selector="TextBlock.muted">
<Setter Property="Foreground" Value="{DynamicResource TextSecondary}" />
</Style>
<Style Selector="TextBlock.dim">
<Setter Property="Foreground" Value="{DynamicResource TextTertiary}" />
<Setter Property="FontSize" Value="11" />
</Style>
<Style Selector="Button.nav">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="Padding" Value="10,8" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="Foreground" Value="{DynamicResource TextSecondary}" />
<Setter Property="FontSize" Value="13" />
</Style>
<Style Selector="Button.nav:pointerover">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="Button.nav.active">
<Setter Property="Background" Value="{DynamicResource BgSidebarActive}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<Style Selector="Button.nav.active:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgSidebarActive}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="Button.ghost">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="8" />
<Setter Property="Padding" Value="8" />
<Setter Property="Foreground" Value="{DynamicResource TextSecondary}" />
<Setter Property="FontSize" Value="15" />
</Style>
<Style Selector="Button.ghost:pointerover">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="Button.ghost /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderBrush" Value="Transparent" />
</Style>
<Style Selector="Button.ghost:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="Button.ghost:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgPressed}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="Button.ghost.active">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="Button.ghost.active:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<!-- 折叠后的侧栏图标轨按钮:固定 44×40,图标居中 -->
<Style Selector="Button.rail">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="Width" Value="44" />
<Setter Property="Height" Value="40" />
<Setter Property="Padding" Value="0" />
<Setter Property="FontSize" Value="16" />
<Setter Property="HorizontalAlignment" Value="Center" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
<Setter Property="Foreground" Value="{DynamicResource TextSecondary}" />
</Style>
<Style Selector="Button.rail:pointerover">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="Button.rail.active">
<Setter Property="Background" Value="{DynamicResource BgSidebarActive}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="Button.rail.active:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgSidebarActive}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="Button.primary">
<Setter Property="Background" Value="{DynamicResource Accent}" />
<Setter Property="Foreground" Value="{DynamicResource OnAccent}" />
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="8" />
<Setter Property="Padding" Value="14,8" />
<Setter Property="FontSize" Value="13" />
</Style>
<Style Selector="Button.primary /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Accent}" />
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
<Setter Property="Foreground" Value="{DynamicResource OnAccent}" />
</Style>
<Style Selector="Button.primary:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentHover}" />
<Setter Property="BorderBrush" Value="{DynamicResource AccentHover}" />
<Setter Property="Foreground" Value="{DynamicResource OnAccent}" />
</Style>
<Style Selector="Button.primary:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentHover}" />
<Setter Property="BorderBrush" Value="{DynamicResource AccentHover}" />
<Setter Property="Foreground" Value="{DynamicResource OnAccent}" />
</Style>
<Style Selector="Button.primary:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Opacity" Value="0.5" />
</Style>
<Style Selector="Button.secondary">
<Setter Property="Background" Value="{DynamicResource BgSurface}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderStrong}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="8" />
<Setter Property="Padding" Value="14,8" />
<Setter Property="FontSize" Value="13" />
</Style>
<Style Selector="Button.secondary /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgSurface}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderStrong}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="Button.secondary:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderStrong}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="Button.secondary:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgPressed}" />
</Style>
<Style Selector="Button.secondary:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgSubtle}" />
<Setter Property="Foreground" Value="{DynamicResource TextTertiary}" />
</Style>
<Style Selector="Button.tab">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="CornerRadius" Value="8" />
<Setter Property="Padding" Value="10,5" />
<Setter Property="FontSize" Value="12" />
<Setter Property="Foreground" Value="{DynamicResource TextSecondary}" />
</Style>
<Style Selector="Button.tab:pointerover">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
</Style>
<Style Selector="Button.tab:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="BorderBrush" Value="Transparent" />
</Style>
<Style Selector="Button.tab.active">
<Setter Property="Background" Value="{DynamicResource BgSurface}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<Style Selector="Button.tab.active:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource BgSurface}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
</Style>
<Style Selector="Border.card">
<Setter Property="Background" Value="{DynamicResource BgSurface}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="14" />
<Setter Property="Padding" Value="14" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.12" />
<BrushTransition Property="BorderBrush" Duration="0:0:0.12" />
</Transitions>
</Setter>
</Style>
<Style Selector="Border.card:pointerover">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="Border.panel">
<Setter Property="Background" Value="{DynamicResource BgSurface}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="14" />
</Style>
<Style Selector="TextBox.search">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="FontSize" Value="13" />
<Setter Property="VerticalContentAlignment" Value="Center" />
</Style>
<Style Selector="TextBox.search /template/ Border#PART_BorderElement">
</Style>
<Style Selector="Border.searchShell:focus-within">
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<!-- 工作台卡片内部元素 -->
<Style Selector="Border.tile">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="CornerRadius" Value="12" />
</Style>
<Style Selector="Border.chip">
<Setter Property="Background" Value="{DynamicResource BgSubtle}" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="Padding" Value="8,1" />
</Style>
<Style Selector="TextBlock.cardTitle">
<Setter Property="FontSize" Value="14" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="TextBlock.cardDesc">
<Setter Property="FontSize" Value="11" />
<Setter Property="Foreground" Value="{DynamicResource TextSecondary}" />
</Style>
<Style Selector="TextBlock.chipText">
<Setter Property="FontSize" Value="10" />
<Setter Property="Foreground" Value="{DynamicResource TextSecondary}" />
</Style>
<Style Selector="TextBlock.chipWarn">
<Setter Property="FontSize" Value="10" />
<Setter Property="Foreground" Value="{DynamicResource Warning}" />
</Style>
<Style Selector="TextBlock.sectionTitle">
<Setter Property="FontSize" Value="18" />
<Setter Property="FontWeight" Value="SemiBold" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="TextBlock.error">
<Setter Property="Foreground" Value="{DynamicResource Danger}" />
</Style>
<Style Selector="TextBlock.ok">
<Setter Property="Foreground" Value="{DynamicResource Success}" />
</Style>
<Style Selector="TextBlock.fieldLabel">
<Setter Property="FontSize" Value="11" />
<Setter Property="Foreground" Value="{DynamicResource TextSecondary}" />
</Style>
<!-- 旧工具页的发送类主操作按钮 -->
<Style Selector="Button.SendButton">
<Setter Property="Background" Value="{DynamicResource Accent}" />
<Setter Property="Foreground" Value="{DynamicResource OnAccent}" />
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="8" />
</Style>
<Style Selector="Button.SendButton /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Accent}" />
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
<Setter Property="Foreground" Value="{DynamicResource OnAccent}" />
</Style>
<Style Selector="Button.SendButton:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentHover}" />
<Setter Property="BorderBrush" Value="{DynamicResource AccentHover}" />
<Setter Property="Foreground" Value="{DynamicResource OnAccent}" />
</Style>
<Style Selector="Button.SendButton:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentHover}" />
<Setter Property="BorderBrush" Value="{DynamicResource AccentHover}" />
<Setter Property="Foreground" Value="{DynamicResource OnAccent}" />
</Style>
<!-- 工具内部左侧命令栏 -->
<Style Selector="Button.cmd">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="CornerRadius" Value="8" />
<Setter Property="Padding" Value="8,3" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="HorizontalContentAlignment" Value="Left" />
<Setter Property="Foreground" Value="{DynamicResource TextSecondary}" />
<Setter Property="FontSize" Value="12" />
</Style>
<Style Selector="Button.cmd:pointerover">
<Setter Property="Background" Value="{DynamicResource BgHover}" />
<Setter Property="Foreground" Value="{DynamicResource TextPrimary}" />
</Style>
<Style Selector="Button.cmd.active">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
<Setter Property="FontWeight" Value="SemiBold" />
</Style>
<Style Selector="Button.cmd.active:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<!-- 控制台/日志:浅深主题都保持深底,鼠标悬停与聚焦只变边框,不变底色 -->
<Style Selector="TextBox.console">
<Setter Property="Background" Value="{DynamicResource ConsoleBg}" />
<Setter Property="Foreground" Value="{DynamicResource ConsoleText}" />
<Setter Property="BorderBrush" Value="{DynamicResource ConsoleBorder}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="8" />
<Setter Property="Padding" Value="10,8" />
<Setter Property="FontFamily" Value="{DynamicResource FontMono}" />
<Setter Property="FontSize" Value="12" />
<Setter Property="CaretBrush" Value="{DynamicResource ConsoleText}" />
<Setter Property="SelectionBrush" Value="{DynamicResource ConsoleSelection}" />
<Setter Property="PlaceholderForeground" Value="{DynamicResource ConsoleMuted}" />
<Setter Property="VerticalContentAlignment" Value="Top" />
<Setter Property="TextWrapping" Value="NoWrap" />
</Style>
<Style Selector="TextBox.console /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="{DynamicResource ConsoleBg}" />
<Setter Property="BorderBrush" Value="{DynamicResource ConsoleBorder}" />
</Style>
<Style Selector="TextBox.console:pointerover /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="{DynamicResource ConsoleBg}" />
<Setter Property="BorderBrush" Value="{DynamicResource ConsoleBorderHover}" />
</Style>
<Style Selector="TextBox.console:focus /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="{DynamicResource ConsoleBg}" />
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="TextBox.console:disabled /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="{DynamicResource ConsoleBg}" />
<Setter Property="BorderBrush" Value="{DynamicResource ConsoleBorder}" />
</Style>
<!-- 工具内部编辑区 -->
<Style Selector="Border.editor">
<Setter Property="Background" Value="{DynamicResource BgSurface2}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="10" />
<Setter Property="MinHeight" Value="140" />
</Style>
<Style Selector="Border.editor:focus-within">
<Setter Property="BorderBrush" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="Border.editor TextBox">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Padding" Value="10" />
<Setter Property="FontFamily" Value="{DynamicResource FontMono}" />
<Setter Property="FontSize" Value="12" />
</Style>
<Style Selector="Border.editor TextBox /template/ Border#PART_BorderElement">
</Style>
<!-- 旧工具页统一的分组边框 -->
<Style Selector="Border.GroupBorder">
<Setter Property="Background" Value="{DynamicResource BgSurface}" />
<Setter Property="BorderBrush" Value="{DynamicResource BorderDefault}" />
<Setter Property="BorderThickness" Value="1" />
<Setter Property="CornerRadius" Value="12" />
<Setter Property="Padding" Value="10" />
</Style>
<!-- 加密解密结果条目:一种表示一行,可单独复制或回填原文 -->
<Style Selector="Border.resultRow">
<Setter Property="Background" Value="{DynamicResource BgSubtle}" />
<Setter Property="CornerRadius" Value="8" />
<Setter Property="Padding" Value="8,6" />
</Style>
<Style Selector="Border.resultBadge">
<Setter Property="Background" Value="{DynamicResource AccentSoft}" />
<Setter Property="CornerRadius" Value="6" />
<Setter Property="Padding" Value="6,1" />
</Style>
<Style Selector="TextBlock.resultBadgeText">
<Setter Property="FontSize" Value="10" />
<Setter Property="Foreground" Value="{DynamicResource Accent}" />
</Style>
<Style Selector="TextBox.resultValue">
<Setter Property="Background" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
<Setter Property="Padding" Value="0" />
<Setter Property="FontFamily" Value="{DynamicResource FontMono}" />
<Setter Property="FontSize" Value="12" />
</Style>
</Styles>
|