Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
C# audioaudio-unitavaloniacpp20cross-platformdawdigital-audio-workstationdspjucelinux-audiomcp-servermidimusicmusic-productionpiano-rollplugin-hostsequencersynthesizervstvst3
<!-- SPDX-License-Identifier: AGPL-3.0-only -->
<!--
Nota design tokens + control styles — the Studio design language (see
DESIGN.md and .claude/skills/nota-design): neutral greys stepped on dark seams, one
orange accent for what is live or chosen, in a dark (default) and a light variant.
This file is the concrete source of truth for colors/geometry — views reference
these keys, never hardcoded values.
-->
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sys="using:System"
xmlns:app="using:Nota.App">
<Styles.Resources>
<ResourceDictionary>
<!-- Font: Geist for every word and number, with tabular figures turned on app-wide
(NotaFonts.InstallTabular). Bundled from assets/fonts (SIL OFL 1.1); mirrored by
Theme/NotaFonts.cs. -->
<FontFamily x:Key="Font.UI">avares://Nota.App/Assets/Fonts#Geist</FontFamily>
<!-- Values and readouts (spec 091): Geist, the same face, under the new look; NotaThemeService
sets Geist Mono under the classic look, or a skin's font.values, over this default. -->
<FontFamily x:Key="Font.Measure">avares://Nota.App/Assets/Fonts#Geist</FontFamily>
<!-- ===== Geometry ========================================================
Mirrored in Theme/NotaGeometry.cs for code-built views; the smoke test
keeps the two files equal.
Radius follows the style guide's scale: 9 / 7 / 6 / 5 / 4 / 3 / 2, and 0 when docked. -->
<CornerRadius x:Key="Radius.Docked">0</CornerRadius> <!-- a docked panel: it meets its neighbours on a seam -->
<CornerRadius x:Key="Radius.Card">9</CornerRadius> <!-- device card, toolbar view group, modal window -->
<CornerRadius x:Key="Radius.Group">7</CornerRadius> <!-- icon button, chip, segment group, device section, search, menu -->
<CornerRadius x:Key="Radius.Field">6</CornerRadius> <!-- field, dropdown, clip, toggle pill, row highlight -->
<CornerRadius x:Key="Radius.Cell">5</CornerRadius> <!-- segment cell, track button, EQ band cell, tooltip -->
<CornerRadius x:Key="Radius.ValueBar">4</CornerRadius> <!-- value bar, fader cap, overview strip -->
<CornerRadius x:Key="Radius.Switch">3</CornerRadius> <!-- switch track -->
<CornerRadius x:Key="Radius.Fine">2</CornerRadius> <!-- switch knob, notes, plot bars -->
<!-- Heights and fixed widths already settled in the designs -->
<sys:Double x:Key="Control.Chip">24</sys:Double> <!-- filter chip -->
<sys:Double x:Key="Control.Seg">20</sys:Double> <!-- one segment cell -->
<sys:Double x:Key="Control.Shell">26</sys:Double> <!-- shell button, field, dropdown -->
<sys:Double x:Key="Control.SegGroup">24</sys:Double> <!-- segment group: a 20 cell in a 2px well -->
<sys:Double x:Key="Control.Dropdown">22</sys:Double> <!-- dropdown menu -->
<sys:Double x:Key="Control.Search">30</sys:Double> <!-- browser search -->
<sys:Double x:Key="Control.Icon">28</sys:Double> <!-- icon button: toolbar, rail -->
<sys:Double x:Key="Control.Transport">28</sys:Double> <!-- transport key, an icon button -->
<sys:Double x:Key="Control.Play">36</sys:Double> <!-- Play is the one wide transport key -->
<sys:Double x:Key="Control.Console">32</sys:Double> <!-- the transport keys' well: 28 + 2 × 2 -->
<sys:Double x:Key="Control.TransportBar">44</sys:Double> <!-- the docked transport row -->
<sys:Double x:Key="Control.KnobSecondary">34</sys:Double> <!-- device knob, small -->
<sys:Double x:Key="Control.KnobRegular">36</sys:Double> <!-- device knob -->
<sys:Double x:Key="Control.KnobMain">44</sys:Double> <!-- device knob, main -->
<sys:Double x:Key="Control.KnobInline">24</sys:Double> <!-- device knob in a table row -->
<sys:Double x:Key="Control.KnobFlat">28</sys:Double> <!-- knob outside a device -->
<sys:Double x:Key="Control.ParamCell">53</sys:Double> <!-- knob 34 + value line 9 + label line 10 -->
<!-- Spacing. Inside a device everything moves in 2px units, in the shell in 4px. -->
<sys:Double x:Key="Space.DeviceHair">2</sys:Double>
<sys:Double x:Key="Space.DeviceGap">5</sys:Double> <!-- between device sections -->
<sys:Double x:Key="Space.DeviceInset">6</sys:Double> <!-- body padding, section inset -->
<sys:Double x:Key="Space.DeviceInsetWide">8</sys:Double>
<sys:Double x:Key="Space.Tile">8</sys:Double> <!-- between tiles -->
<sys:Double x:Key="Space.Gutter">1</sys:Double> <!-- between docked panels: the seam -->
<sys:Double x:Key="Space.Inset">20</sys:Double> <!-- inside a shell panel -->
<!-- ===== Palette =========================================================
No colour lives in this file. Every colour is a token of the active colour
theme (Theme/Themes/*.json, see NotaColourTheme.cs): NotaThemeService puts the
NotaPalette slot brushes into Application.Resources under their Brush.* keys,
and sets the Shadow.* elevations and Fluent's SystemAccentColor ramp from the
theme on every switch. Views reach them with {DynamicResource Brush.*} /
{DynamicResource Shadow.*}; a StaticResource cannot follow a theme change. -->
<!-- ===== Menu item (spec 034) ============================================
Every item inside a context menu, flyout or submenu. One row of fixed columns so
every item of a menu lines up: icon (or the check of a chosen choice) · label ·
trailing (a current value or a switch, MenuKit.Trailing) · shortcut · caret.
Shortcuts are spelled the platform's way ("⌘G", "Ctrl+G") by MenuKit.Spell —
Avalonia's own converter writes "⌘+G". Icons are muted ink at rest; everything
takes the derived ink on the accent fill while highlighted. Menubar triggers keep
Fluent's top-level theme. -->
<ControlTheme x:Key="{x:Type MenuItem}" TargetType="MenuItem">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="MinHeight" Value="24"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<!-- Every menu's items sit in MenuItemsPanel: it sizes the menu to its settled
columns on the first layout pass, so the popup never comes out too narrow. -->
<Setter Property="ItemsPanel">
<ItemsPanelTemplate><app:MenuItemsPanel/></ItemsPanelTemplate>
</Setter>
<Setter Property="Template">
<ControlTemplate>
<Panel>
<Border Name="PART_LayoutRoot"
Padding="{TemplateBinding Padding}"
MinHeight="{TemplateBinding MinHeight}"
Background="{TemplateBinding Background}"
CornerRadius="{TemplateBinding CornerRadius}">
<Border.Transitions>
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.12" Easing="CubicEaseOut"/>
</Transitions>
</Border.Transitions>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" SharedSizeGroup="NotaMenuIcon"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto" SharedSizeGroup="NotaMenuTrailing"/>
<ColumnDefinition Width="Auto" SharedSizeGroup="NotaMenuGesture"/>
<ColumnDefinition Width="Auto" SharedSizeGroup="NotaMenuCaret"/>
</Grid.ColumnDefinitions>
<Panel Name="PART_IconColumn" Grid.Column="0" Width="14" Margin="0,0,8,0" IsVisible="False">
<ContentPresenter Name="PART_IconPresenter"
Content="{TemplateBinding Icon}"
Foreground="{DynamicResource Brush.TextMuted}"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
<app:Glyph Name="PART_Check" Kind="Check" Width="11" Height="11"
Foreground="{DynamicResource Brush.Accent}"
HorizontalAlignment="Center" VerticalAlignment="Center" IsVisible="False"/>
</Panel>
<ContentPresenter Name="PART_HeaderPresenter" Grid.Column="1"
Content="{TemplateBinding Header}"
ContentTemplate="{TemplateBinding HeaderTemplate}"
RecognizesAccessKey="True"
VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
<ContentPresenter Name="PART_TrailingPresenter" Grid.Column="2"
Content="{Binding (app:MenuKit.Trailing), RelativeSource={RelativeSource TemplatedParent}}"
Foreground="{DynamicResource Brush.TextMuted}"
Margin="16,0,0,0"
VerticalAlignment="Center" HorizontalAlignment="Right"/>
<TextBlock Name="PART_InputGestureText" Grid.Column="3"
Text="{Binding InputGesture, RelativeSource={RelativeSource TemplatedParent}, Converter={x:Static app:MenuGestureConverter.Instance}}"
FontFamily="{DynamicResource Font.Measure}" FontSize="10"
Foreground="{DynamicResource Brush.TextMuted}"
Margin="16,0,0,0"
VerticalAlignment="Center" HorizontalAlignment="Right"/>
<app:Glyph Name="PART_Caret" Grid.Column="4" Kind="ChevronRight" Width="8" Height="8"
Foreground="{DynamicResource Brush.TextMuted}"
Margin="10,0,0,0" VerticalAlignment="Center"/>
</Grid>
</Border>
<Popup Name="PART_Popup"
WindowManagerAddShadowHint="False"
Placement="RightEdgeAlignedTop"
HorizontalOffset="2" VerticalOffset="-5"
IsLightDismissEnabled="False"
IsOpen="{TemplateBinding IsSubMenuOpen, Mode=TwoWay}">
<Border Background="{DynamicResource Brush.SurfaceRaised}"
BorderBrush="{DynamicResource Brush.Seam}" BorderThickness="1"
CornerRadius="{StaticResource Radius.Field}"
Padding="4" MinWidth="200" MaxHeight="560">
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
<ItemsPresenter Name="PART_ItemsPresenter"
ItemsPanel="{TemplateBinding ItemsPanel}"
Grid.IsSharedSizeScope="True"/>
</ScrollViewer>
</Border>
</Popup>
</Panel>
</ControlTemplate>
</Setter>
<Style Selector="^:icon /template/ Panel#PART_IconColumn">
<Setter Property="IsVisible" Value="True"/>
</Style>
<Style Selector="^:checked /template/ Panel#PART_IconColumn">
<Setter Property="IsVisible" Value="True"/>
</Style>
<Style Selector="^:checked /template/ app|Glyph#PART_Check">
<Setter Property="IsVisible" Value="True"/>
</Style>
<Style Selector="^:checked /template/ ContentPresenter#PART_IconPresenter">
<Setter Property="IsVisible" Value="False"/>
</Style>
<Style Selector="^:empty /template/ app|Glyph#PART_Caret">
<Setter Property="IsVisible" Value="False"/>
</Style>
<!-- Destructive: danger ink on label and icon at rest. -->
<Style Selector="^.danger">
<Setter Property="Foreground" Value="{DynamicResource Brush.Danger}"/>
<Style Selector="^ /template/ ContentPresenter#PART_IconPresenter">
<Setter Property="Foreground" Value="{DynamicResource Brush.Danger}"/>
</Style>
</Style>
<!-- Highlight (pointer or keyboard; Avalonia marks it :selected): the accent fill,
every part in the derived ink. -->
<Style Selector="^:selected">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
<Style Selector="^ /template/ Border#PART_LayoutRoot">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="^ /template/ ContentPresenter#PART_IconPresenter">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<Style Selector="^ /template/ app|Glyph#PART_Check">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<Style Selector="^ /template/ ContentPresenter#PART_TrailingPresenter">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<Style Selector="^ /template/ TextBlock#PART_InputGestureText">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<Style Selector="^ /template/ app|Glyph#PART_Caret">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
</Style>
<!-- Disabled: the disabled ink step on every part, never a fill (wins over danger). -->
<Style Selector="^:disabled">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
<Style Selector="^ /template/ Border#PART_LayoutRoot">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="^ /template/ ContentPresenter#PART_IconPresenter">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<Style Selector="^ /template/ ContentPresenter#PART_TrailingPresenter">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<Style Selector="^ /template/ TextBlock#PART_InputGestureText">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<Style Selector="^ /template/ app|Glyph#PART_Caret">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
</Style>
<!-- An inline row (header, colour grid, segments, caption) takes a template of its
own: one presenter, no column grid. On the item grid it spanned the menu's
shared-size columns, so its width hung on the other items (a long current value
such as "Nota Pentad") and, a few pixels short in the native popup, it was
centred and clipped on both sides. Now it simply asks for its width. -->
<Style Selector="^.inline">
<Setter Property="Padding" Value="8,0"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="Template">
<ControlTemplate>
<Border Name="PART_LayoutRoot"
Padding="{TemplateBinding Padding}"
MinHeight="{TemplateBinding MinHeight}"
Background="Transparent">
<ContentPresenter Name="PART_HeaderPresenter"
Content="{TemplateBinding Header}"
VerticalAlignment="Center" HorizontalAlignment="Stretch"/>
</Border>
</ControlTemplate>
</Setter>
</Style>
<!-- An inline row draws its own cursor (a ring or a raised key), so the highlight
fill never lands on it: a colour grid on solid orange read as a picked row. -->
<Style Selector="^.inline:selected">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Style Selector="^ /template/ Border#PART_LayoutRoot">
<Setter Property="Background" Value="Transparent"/>
</Style>
</Style>
</ControlTheme>
</ResourceDictionary>
</Styles.Resources>
<!-- ===== Motion (knob dial: 120ms ease-out) =====================================================
Hover and colour change over 120ms ease-out; nothing moves or scales. Real-time views
(meters, playhead, spectra) are custom-drawn and never animate. -->
<Style Selector="Button /template/ ContentPresenter#PART_ContentPresenter, ToggleButton /template/ ContentPresenter#PART_ContentPresenter, ListBoxItem /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.12" Easing="CubicEaseOut"/>
<BrushTransition Property="BorderBrush" Duration="0:0:0.12" Easing="CubicEaseOut"/>
</Transitions>
</Setter>
</Style>
<Style Selector="CheckBox /template/ Border#Track">
<Setter Property="Transitions">
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.12" Easing="CubicEaseOut"/>
</Transitions>
</Setter>
</Style>
<!-- ===== Buttons ===== -->
<Style Selector="Button">
<!-- Toolbar/transport buttons stay out of the keyboard focus + Tab order so global
hotkeys (Space/R/L/Return/…) always reach the window, never a focused button. -->
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="Height" Value="{StaticResource Control.Shell}"/>
<Setter Property="Padding" Value="10,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<!-- No border and no lift (style guide, spec 038): a shell button is a faint well.
Depth belongs to device cards only. -->
<Setter Property="Template">
<ControlTemplate>
<ContentPresenter x:Name="PART_ContentPresenter"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Padding="{TemplateBinding Padding}"
Foreground="{TemplateBinding Foreground}"
RecognizesAccessKey="True"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="Button:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.WellTrack}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<!-- Pressed: the well deepens a step; nothing moves. -->
<Style Selector="Button:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.KnobTrack}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<!-- Disabled: ink 4 on the resting well, never opacity. -->
<Style Selector="Button:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<!-- The primary action of a context is set apart by weight and one well step, not by
colour: orange is kept for what is live or picked. -->
<Style Selector="Button.primary">
<Setter Property="Background" Value="{DynamicResource Brush.WellTrack}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextHeading}"/>
<Setter Property="FontWeight" Value="SemiBold"/>
</Style>
<Style Selector="Button.primary:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.KnobTrack}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextHeading}"/>
</Style>
<!-- Ghost: no well at rest; the well appears on hover (icon buttons work the same way). -->
<Style Selector="Button.ghost">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="Button.ghost:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
</Style>
<!-- .danger no longer paints red: red belongs to recording and errors. A destructive
action is an ordinary raised button; its label says what it does. -->
<!-- ===== Window caption buttons (Windows) =====
Avalonia draws the minimize / maximize / close buttons itself over the extended title
bar, as plain Buttons — so the raised Button face above would turn each into a grey
tile and keep the close button red at rest. Give them back a flat face: no ground at
rest, the hover tone under the pointer, and red only while the pointer is on close.
The glyph colour is CaptionButtonForeground (NotaThemeService publishes it). The
fullscreen button goes: Windows windows carry three, and F11 / View cover fullscreen.
Avalonia's own title text goes too: every Nota window draws its own title bar. -->
<!-- Opacity, not IsVisible: the template binds IsVisible, which outranks a style. -->
<Style Selector="WindowDrawnDecorations /template/ Panel#PART_TitleTextPanel">
<Setter Property="Opacity" Value="0"/>
</Style>
<Style Selector="WindowDrawnDecorations /template/ Button">
<Setter Property="Width" Value="46"/>
<Setter Property="Height" Value="NaN"/>
<Setter Property="VerticalAlignment" Value="Stretch"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Template">
<ControlTemplate>
<Border x:Name="PART_CaptionFace" Background="{DynamicResource Brush.SurfaceHoverClear}">
<Border.Transitions>
<Transitions>
<BrushTransition Property="Background" Duration="0:0:0.12" Easing="CubicEaseOut"/>
</Transitions>
</Border.Transitions>
<ContentPresenter Content="{TemplateBinding Content}"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter>
</Style>
<!-- Fluent's caption theme fills the inner presenter on hover / press with the button's
own Background (#E81123 on close): a second tile around the glyph. Keep it clear. -->
<Style Selector="WindowDrawnDecorations /template/ Button:pointerover /template/ ContentPresenter,
WindowDrawnDecorations /template/ Button:pressed /template/ ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="WindowDrawnDecorations /template/ Button:pointerover /template/ Border#PART_CaptionFace">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
</Style>
<Style Selector="WindowDrawnDecorations /template/ Button:pressed /template/ Border#PART_CaptionFace">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceActive}"/>
</Style>
<Style Selector="WindowDrawnDecorations /template/ Button#PART_CloseButton:pointerover /template/ Border#PART_CaptionFace,
WindowDrawnDecorations /template/ Button#PART_PopoverCloseButton:pointerover /template/ Border#PART_CaptionFace">
<Setter Property="Background" Value="{DynamicResource Brush.Danger}"/>
</Style>
<Style Selector="WindowDrawnDecorations /template/ Button#PART_CloseButton:pressed /template/ Border#PART_CaptionFace,
WindowDrawnDecorations /template/ Button#PART_PopoverCloseButton:pressed /template/ Border#PART_CaptionFace">
<Setter Property="Background" Value="{DynamicResource Brush.DangerBright}"/>
</Style>
<Style Selector="WindowDrawnDecorations /template/ Button#PART_CloseButton:pointerover Path,
WindowDrawnDecorations /template/ Button#PART_PopoverCloseButton:pointerover Path">
<Setter Property="Fill" Value="{DynamicResource Brush.RecordInk}"/>
</Style>
<Style Selector="WindowDrawnDecorations /template/ Button#PART_FullScreenButton">
<Setter Property="IsVisible" Value="False"/>
</Style>
<!-- ===== Toggle buttons ===== -->
<Style Selector="ToggleButton">
<Setter Property="IsTabStop" Value="False"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="Height" Value="{StaticResource Control.Shell}"/>
<Setter Property="Padding" Value="10,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextStrong}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Template">
<ControlTemplate>
<ContentPresenter x:Name="PART_ContentPresenter"
Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Padding="{TemplateBinding Padding}"
Foreground="{TemplateBinding Foreground}"
RecognizesAccessKey="True"
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="ToggleButton:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.KnobTrack}"/>
</Style>
<Style Selector="ToggleButton:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<Style Selector="ToggleButton:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.WellTrack}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Style>
<!-- Toggled on is a pick, so the soft tint: a pale orange fill with orange ink, never
solid orange (that is kept for what is live). Hover keeps it. -->
<Style Selector="ToggleButton:checked /template/ ContentPresenter#PART_ContentPresenter,
ToggleButton:checked:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.AccentSoft}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<Style Selector="ToggleButton:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<!-- Record: danger tint when engaged -->
<Style Selector="ToggleButton.danger:checked /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Danger}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Danger}"/>
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.RecordInk}"/> <!-- beats the checked presenter's on-accent ink -->
</Style>
<Style Selector="ToggleButton.danger:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.RecordInk}"/>
</Style>
<!-- ===== Transport / toolbar chrome ===== -->
<!-- Icon buttons (transport, toolbar tools, the rail): 28 × 28, corner 7, a 16px icon in
ink 2. No fill at rest; the well appears on hover; on is the soft tint; live is solid
orange with a dark icon. -->
<Style Selector="Button.tp-icon, ToggleButton.tp-icon">
<Setter Property="Width" Value="{StaticResource Control.Transport}"/>
<Setter Property="Height" Value="{StaticResource Control.Transport}"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Group}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style Selector="Button.tp-icon:pointerover /template/ ContentPresenter#PART_ContentPresenter,
ToggleButton.tp-icon:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
</Style>
<Style Selector="Button.tp-icon:disabled /template/ ContentPresenter#PART_ContentPresenter,
ToggleButton.tp-icon:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<!-- Record: at rest a neutral button with a red disc; engaged, solid record red with a
pale disc. The only place red fills a control. -->
<Style Selector="ToggleButton.tp-icon.rec">
<Setter Property="Foreground" Value="{DynamicResource Brush.Record}"/>
</Style>
<Style Selector="ToggleButton.tp-icon.rec:checked /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Record}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Record}"/>
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.RecordInk}"/> <!-- beats the checked presenter's on-accent ink -->
</Style>
<Style Selector="ToggleButton.tp-icon.rec:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.RecordInk}"/>
</Style>
<!-- Follow, paused because the view was scrolled away (#105): still on, no longer live —
an accent outline and glyph with no tint. -->
<Style Selector="ToggleButton.tp-icon.paused:checked /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<!-- Play: an icon button like its neighbours at rest, wider; while the transport runs it
is solid orange (live). -->
<Style Selector="Button.tp-play">
<Setter Property="Width" Value="{StaticResource Control.Play}"/>
<Setter Property="Height" Value="{StaticResource Control.Transport}"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Group}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style Selector="Button.tp-play:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
</Style>
<Style Selector="Button.tp-play.playing">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<Style Selector="Button.tp-play.playing:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<!-- Play turns green in the Session context -->
<Style Selector="Button.tp-play.playing.session">
<Setter Property="Background" Value="{DynamicResource Brush.Success}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Success}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.SuccessInk}"/>
</Style>
<Style Selector="Button.tp-play.playing.session:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Success}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Success}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.SuccessInk}"/>
</Style>
<!-- Chips: 24 high, 10 padding, corner 7, on the well, 12 in ink 2. -->
<Style Selector="Button.chip, ToggleButton.chip">
<Setter Property="Height" Value="{StaticResource Control.Chip}"/>
<Setter Property="Padding" Value="10,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Group}"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<!-- A flat chip (the clip editor's header row: Fit, snap, Tools): no well at rest, the
well on hover, the soft tint when on. -->
<Style Selector="Button.chip.flat, ToggleButton.chip.flat, Button.flat">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.chip.flat:pointerover /template/ ContentPresenter#PART_ContentPresenter, ToggleButton.chip.flat:pointerover /template/ ContentPresenter#PART_ContentPresenter, Button.flat:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
</Style>
<!-- Engaged chip (MIDI learn…): the soft tint. The .chip Foreground above is a class
selector declared after the generic ToggleButton:checked rule, so it would win on a
checked chip; state the orange ink here. -->
<Style Selector="ToggleButton.chip:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<Style Selector="ToggleButton.chip:checked /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<!-- A chip lit by a running feature (Remote on): live, so a solid accent key. -->
<Style Selector="Button.chip.lit">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="Button.chip.lit /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<!-- A readout well (BPM, signature): the faint well, 26px, no border. -->
<Style Selector="Border.well">
<Setter Property="Height" Value="{StaticResource Control.Shell}"/>
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<!-- BPM field inside a well: flat, vertically centred, no focus-grow -->
<Style Selector="NumericUpDown.bpm">
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="MinWidth" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="NumericUpDown.bpm /template/ TextBox">
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="MinHeight" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style Selector="NumericUpDown.bpm /template/ TextBox /template/ Border#PART_BorderElement">
<Setter Property="MinHeight" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<!-- The transport row: a flat, docked 44px strip on the deep tone with a seam under
it (the transport row of the top chrome; the style guide puts it on SurfaceDeep). -->
<Style Selector="Border.transport">
<Setter Property="Height" Value="{StaticResource Control.TransportBar}"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceDeep}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
<Setter Property="BorderThickness" Value="0,0,0,1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Docked}"/>
</Style>
<!-- Transport · position · loop: one group in the row, icon buttons in a 2px well with
corner 9, so playback reads as one object instead of three neighbours. -->
<Style Selector="Border.console">
<Setter Property="Height" Value="{StaticResource Control.Console}"/>
<Setter Property="Padding" Value="2"/>
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Card}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<!-- A clickable readout (tap / key / grid / loop): plain text with its unit in ink 3
beside it, set as "124.00 BPM" — no box. The well shows on hover. -->
<Style Selector="Button.cell, ToggleButton.cell">
<Setter Property="Height" Value="{StaticResource Control.Shell}"/>
<Setter Property="Padding" Value="6,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style Selector="Button.cell:pointerover /template/ ContentPresenter#PART_ContentPresenter,
ToggleButton.cell:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
</Style>
<Style Selector="Button.cell:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.WellTrack}"/>
</Style>
<!-- On (loop): the loop is live, so solid orange with dark ink. -->
<Style Selector="ToggleButton.cell:checked /template/ ContentPresenter#PART_ContentPresenter,
ToggleButton.cell:checked:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<Style Selector="ToggleButton.cell:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextOnAccent}"/>
</Style>
<!-- A toolbar value (tempo, signature, position): plain text, no box; the well shows
on hover so it still reads as something you can drag. -->
<Style Selector="Border.readout">
<Setter Property="Height" Value="{StaticResource Control.Icon}"/>
<Setter Property="Padding" Value="4,0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style Selector="Border.readout:pointerover">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
</Style>
<!-- The short thin line between toolbar groups. -->
<Style Selector="Border.tb-sep">
<Setter Property="Width" Value="1"/>
<Setter Property="Height" Value="18"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Background" Value="{DynamicResource Brush.Rule}"/>
</Style>
<!-- A toggle pill (Overdub, Tap): label size on the well, 7 padding, corner 6; on is the
soft tint. -->
<Style Selector="Button.pill, ToggleButton.pill">
<Setter Property="Height" Value="20"/>
<Setter Property="Padding" Value="7,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
<Style Selector="ToggleButton.pill:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<!-- Segmented group (view switch, mode tabs): one well with 2 padding and corner 7; the
cells sit inside it with no seams. The view switch is the toolbar's view group:
28px icon cells in a corner-9 well. -->
<Style Selector="Border.segmented">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Group}"/>
<Setter Property="Padding" Value="2"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style Selector="Border.segmented.view">
<Setter Property="CornerRadius" Value="{StaticResource Radius.Card}"/>
</Style>
<Style Selector="Border.segmented StackPanel">
<Setter Property="Spacing" Value="0"/>
</Style>
<!-- One cell: 20 high, 8 padding, corner 5, 11.5 in ink 3, no fill at rest. -->
<Style Selector="ToggleButton.seg">
<Setter Property="Height" Value="{StaticResource Control.Seg}"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Cell}"/>
<Setter Property="FontSize" Value="10.5"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
</Style>
<!-- The view switcher: 28px icon cells, corner 7, the glyph centred. -->
<Style Selector="ToggleButton.seg.view">
<Setter Property="Width" Value="{StaticResource Control.Icon}"/>
<Setter Property="Height" Value="{StaticResource Control.Icon}"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Group}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style Selector="ToggleButton.seg:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
</Style>
<!-- Picked: the soft tint with orange ink; set on the presenter so Fluent's checked
foreground doesn't win over the control-level Foreground. -->
<Style Selector="ToggleButton.seg:checked /template/ ContentPresenter#PART_ContentPresenter,
ToggleButton.seg:checked:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.AccentSoft}"/>
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<!-- The weight stays: shell keys size to their text, so a bolder chosen key would widen
and push its neighbours. The soft tint marks the choice. -->
<Style Selector="ToggleButton.seg:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<Style Selector="ToggleButton.seg:disabled">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<!-- ===== ComboBox — a dropdown on the well: 22 high, 8 padding, corner 6, 11.5 ===== -->
<Style Selector="ComboBox">
<Setter Property="Height" Value="{StaticResource Control.Dropdown}"/>
<Setter Property="MinHeight" Value="0"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="FontSize" Value="10.5"/>
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="PlaceholderForeground" Value="{DynamicResource Brush.TextTertiary}"/>
</Style>
<Style Selector="ComboBox /template/ Border#Background">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
</Style>
<Style Selector="ComboBox:pointerover /template/ Border#Background">
<Setter Property="Background" Value="{DynamicResource Brush.WellTrack}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Style>
<Style Selector="ComboBox:focus /template/ Border#Background">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="ComboBox /template/ PathIcon">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
<Setter Property="Width" Value="7"/>
<Setter Property="Height" Value="7"/>
</Style>
<!-- dropdown flyout + items -->
<Style Selector="ComboBox /template/ Popup Border">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
</Style>
<Style Selector="ComboBoxItem">
<Setter Property="FontSize" Value="11"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="Padding" Value="8,4"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
</Style>
<!-- The picked item is the soft tint; hover is the hover grey. -->
<Style Selector="ComboBoxItem:selected /template/ ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.AccentSoft}"/>
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<Style Selector="ComboBoxItem:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
<Setter Property="TextElement.Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<!-- ===== CheckBox — drawn as a switch ========================================
An on/off choice is a 20×12 track (corner 3) with an 8px knob (corner 2), its word
6 after in 11 / ink 2. Off is the dark well track; on is light grey in the shell
(SwitchTrack draws the orange device and power switch). Disabled is ink 4, never
opacity. -->
<Style Selector="CheckBox">
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="MinHeight" Value="0"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<ControlTemplate>
<Grid ColumnDefinitions="Auto,*" Background="Transparent">
<Border x:Name="Track" Width="20" Height="12" VerticalAlignment="Center"
CornerRadius="{StaticResource Radius.Switch}"
Background="{DynamicResource Brush.WellTrack}"
BoxShadow="{DynamicResource Shadow.SwitchInset}"
BorderBrush="Transparent" BorderThickness="1">
<Rectangle x:Name="Knob" Width="8" Height="8" HorizontalAlignment="Left"
VerticalAlignment="Center" Margin="1,0,0,0" RadiusX="2" RadiusY="2"
Fill="{DynamicResource Brush.TextTertiary}"/>
</Border>
<ContentPresenter x:Name="PART_ContentPresenter" Grid.Column="1"
Margin="6,0,0,0" VerticalAlignment="Center"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
Foreground="{TemplateBinding Foreground}"
RecognizesAccessKey="True"/>
</Grid>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="CheckBox:checked /template/ Border#Track">
<Setter Property="Background" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="BoxShadow" Value="0 0 0 0 Transparent"/>
</Style>
<Style Selector="CheckBox:checked /template/ Rectangle#Knob">
<Setter Property="HorizontalAlignment" Value="Right"/>
<Setter Property="Margin" Value="0,0,1,0"/>
<Setter Property="Fill" Value="{DynamicResource Brush.SurfaceDeep}"/>
</Style>
<Style Selector="CheckBox:indeterminate /template/ Border#Track">
<Setter Property="Background" Value="{DynamicResource Brush.BorderStrong}"/>
</Style>
<Style Selector="CheckBox:indeterminate /template/ Rectangle#Knob">
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="Margin" Value="0"/>
</Style>
<Style Selector="CheckBox:checked">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="CheckBox:pointerover">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="CheckBox:disabled">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<Style Selector="CheckBox:disabled /template/ Border#Track">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
</Style>
<Style Selector="CheckBox:disabled /template/ Rectangle#Knob">
<Setter Property="Fill" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<!-- ===== Form text field: 26 high, 9 padding, corner 6, 12.5 on the well =====
No border; focus is a 1px orange outline. Opt-in via Classes="field" — the plain
TextBox stays the Fluent default so inline editors (rename popups, macro names) keep
their flat look. -->
<Style Selector="TextBox.field">
<Setter Property="Height" Value="{StaticResource Control.Shell}"/>
<Setter Property="MinHeight" Value="0"/>
<Setter Property="Padding" Value="9,0"/>
<Setter Property="FontSize" Value="11.5"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="CaretBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style Selector="TextBox.field /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="MinHeight" Value="0"/>
</Style>
<Style Selector="TextBox.field:pointerover /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="{DynamicResource Brush.WellTrack}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Style>
<Style Selector="TextBox.field:focus /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<!-- ===== Typed value (specs/035): the read-out itself turns editable =====
No well and no frame — the value keeps its own font, size and alignment, and a 1px
accent line under it says it is live. The number is selected in the accent wash;
`solid` lays the card surface under it where there is no read-out (over a fader). -->
<Style Selector="TextBox.value">
<Setter Property="MinHeight" Value="0"/>
<Setter Property="MinWidth" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="CaretBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="SelectionBrush" Value="{DynamicResource Brush.AccentSubtle}"/>
<Setter Property="SelectionForegroundBrush" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style Selector="TextBox.value /template/ Border#PART_BorderElement, TextBox.value:pointerover /template/ Border#PART_BorderElement, TextBox.value:focus /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderThickness" Value="0,0,0,1"/>
<Setter Property="CornerRadius" Value="0"/>
<Setter Property="MinHeight" Value="0"/>
</Style>
<Style Selector="TextBox.value.solid /template/ Border#PART_BorderElement, TextBox.value.solid:pointerover /template/ Border#PART_BorderElement, TextBox.value.solid:focus /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
</Style>
<!-- ===== Keyboard focus: a 1px accent edge, no ring and no glow ===== -->
<Style Selector="Button:focus-visible /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style Selector="ToggleButton:focus-visible /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style Selector="ComboBox:focus-visible /template/ Border#Background">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="CheckBox:focus-visible /template/ Border#Track">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<!-- ===== Text roles ===== -->
<!-- ===== Type ============================================================
The hierarchy: nothing in the shell is larger than 13 except the position
readout; chrome text is 11–12. Device text sits lower (7–10) because a card keeps
Nota's 260px frame. Labels are sentence case at letter-spacing 0 — no uppercase
tracked labels anywhere; NotaText.Label turns the caps
strings views still pass into sentence case. Mono means a number you read.
Mirrored as constants in Theme/NotaFonts.cs (NotaType). -->
<!-- Shell scale -->
<Style Selector="TextBlock.Title"> <!-- modal / section heading: 12 / 600 -->
<Setter Property="FontSize" Value="12"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextHeading}"/>
</Style>
<Style Selector="TextBlock.Heading"> <!-- project name: 12 / 600 -->
<Setter Property="FontSize" Value="12"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="TextBlock.Name"> <!-- track, preset, file name: 11 / 500 -->
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="TextBlock.Caption"> <!-- supporting copy, hint: 10 / 400 / 1.5, secondary -->
<Setter Property="FontSize" Value="10"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="LineHeight" Value="16"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
<!-- A caption reporting something wrong (the status bar's dropout count): overload readout ink. -->
<Style Selector="TextBlock.Caption.alert">
<Setter Property="Foreground" Value="{DynamicResource Brush.DangerBright}"/>
</Style>
<Style Selector="TextBlock.SectionLabel"> <!-- panel group heading: 10 / 600, muted, sentence case -->
<Setter Property="FontSize" Value="10"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
</Style>
<!-- The unit beside a readout (BPM, Loop, Grid): the label size, 11 / 400 in ink 3. -->
<Style Selector="TextBlock.CellLabel"> <!-- 10 / 400, ink 3 -->
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="LineHeight" Value="13"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
</Style>
<Style Selector="TextBlock.Mono"> <!-- the values role, family only (spec 091) -->
<Setter Property="FontFamily" Value="{DynamicResource Font.Measure}"/>
</Style>
<Style Selector="TextBlock.Readout"> <!-- toolbar values: 16 / 500 -->
<Setter Property="FontFamily" Value="{DynamicResource Font.Measure}"/>
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="TextBlock.Value"> <!-- a number on a button or in a row: 10.5 / 400 -->
<Setter Property="FontFamily" Value="{DynamicResource Font.Measure}"/>
<Setter Property="FontSize" Value="10.5"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
<Style Selector="TextBlock.Number"> <!-- a number added after 0.59: Geist in both looks (spec 091) -->
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
<Setter Property="FontSize" Value="10.5"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
<Style Selector="TextBlock.Eyebrow"> <!-- format badge: 9.5 / 400, muted, as written -->
<Setter Property="FontFamily" Value="{DynamicResource Font.Measure}"/>
<Setter Property="FontSize" Value="9.5"/>
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextMuted}"/>
</Style>
<!-- Device scale (inside a 260px card; mirrors NotaType) -->
<Style Selector="TextBlock.DeviceName"> <!-- 12 / 600 -->
<Setter Property="FontSize" Value="12"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="TextBlock.DeviceSection"> <!-- section title: 9.5 / 400, ink 3 -->
<Setter Property="FontSize" Value="9.5"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
</Style>
<Style Selector="TextBlock.RowLabel"> <!-- row label: 9.5 / 400, ink 3 -->
<Setter Property="FontSize" Value="9.5"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
</Style>
<Style Selector="TextBlock.KnobLabel"> <!-- the control's name: 9.5 / 400, ink 3 -->
<Setter Property="FontSize" Value="9.5"/>
<Setter Property="LineHeight" Value="13"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
</Style>
<Style Selector="TextBlock.KnobValue"> <!-- parameter value: 10 / 400, ink 1 -->
<Setter Property="FontFamily" Value="{DynamicResource Font.Measure}"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="LineHeight" Value="13"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="TextBlock.Axis"> <!-- tick label inside a graph: 10, ink 4 -->
<Setter Property="FontFamily" Value="{DynamicResource Font.Measure}"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextAxis}"/>
</Style>
<!-- ===== Containers ===== -->
<Style Selector="Border.Card">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceCard}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Group}"/>
<Setter Property="Padding" Value="10"/>
</Style>
<Style Selector="Border.Panel">
<Setter Property="Background" Value="{DynamicResource Brush.Panel}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.BorderDefault}"/>
<Setter Property="BorderThickness" Value="0,0,0,1"/>
</Style>
<!-- ===== Lists ===== -->
<Style Selector="ListBox">
<Setter Property="Background" Value="{DynamicResource Brush.BgSunken}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
</Style>
<!-- A list row: 26px, one line of text. Selected = raised hover + a 2px accent tick. -->
<Style Selector="ListBoxItem">
<Setter Property="FontSize" Value="11"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="MinHeight" Value="{StaticResource Control.Shell}"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<!-- Not Transparent: that is #00FFFFFF, and the 120ms brush fade to a dark hover
would pass through a translucent white — a visible flash on every hover. -->
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHoverClear}"/>
</Style>
<Style Selector="ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceSelected}"/>
</Style>
<Style Selector="ListBoxItem:selected">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<!-- ===== Tabs ===== -->
<Style Selector="TabControl">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="0"/>
</Style>
<!-- Tabs outside a device: 12 in ink 3, 10 padding each side so the underline is wider
than the word; the current tab is ink 1 over a 2px underline in the text colour
(orange underlines are for tabs inside a device). No fill. -->
<Style Selector="TabItem">
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Padding" Value="10,4"/>
<Setter Property="MinHeight" Value="0"/>
</Style>
<Style Selector="TabItem:selected">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="TabItem:pointerover">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
<Style Selector="TabItem:selected:pointerover">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="TabItem:pointerover /template/ Border#PART_LayoutRoot, TabItem:selected /template/ Border#PART_LayoutRoot">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="TabItem /template/ Border#PART_SelectedPipe">
<Setter Property="Background" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<!-- ===== Browser icon rail (custom vertical tabs) ===== -->
<!-- Style guide: a 40px rail on the deep grey; each tab is a 28px icon button (corner 7)
with 6 between them. Hover shows the well; the current page gets the soft tint, an
orange icon and a 2 × 14 orange tick at the rail's left edge. -->
<Style Selector="Border.RailTab">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Height" Value="34"/>
</Style>
<Style Selector="Border.RailKey">
<Setter Property="Width" Value="{StaticResource Control.Icon}"/>
<Setter Property="Height" Value="{StaticResource Control.Icon}"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Group}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style Selector="Border.RailTab:pointerover Border.RailKey">
<Setter Property="Background" Value="{DynamicResource Brush.Well}"/>
</Style>
<Style Selector="Border.RailTab.active Border.RailKey">
<Setter Property="Background" Value="{DynamicResource Brush.AccentSoft}"/>
</Style>
<Style Selector="Border.RailTab app|Glyph">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
<Style Selector="Border.RailTab.active app|Glyph">
<Setter Property="Foreground" Value="{DynamicResource Brush.AccentBright}"/>
</Style>
<!-- The current page's tick: 2 × 14 at the rail's left edge. -->
<Style Selector="Border.RailBar">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Width" Value="2"/>
<Setter Property="Height" Value="14"/>
<Setter Property="CornerRadius" Value="0,1,1,0"/>
<Setter Property="HorizontalAlignment" Value="Left"/>
<Setter Property="VerticalAlignment" Value="Center"/>
</Style>
<Style Selector="Border.RailTab.active Border.RailBar">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
<!-- ===== Browser list (compact index rows, mockup 1a) ===== -->
<!-- Single-line 24px rows, full-bleed: the selection ground and its accent left edge run
to both margins, so the list reads as one column rather than a stack of chips. -->
<Style Selector="ListBox.browser">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="CornerRadius" Value="0"/>
<Setter Property="Padding" Value="0"/>
</Style>
<Style Selector="ListBox.browser ListBoxItem">
<Setter Property="Padding" Value="0"/>
<Setter Property="MinHeight" Value="0"/>
<Setter Property="CornerRadius" Value="0"/>
</Style>
<Style Selector="ListBox.browser ListBoxItem:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceHover}"/>
</Style>
<Style Selector="ListBox.browser ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceSelected}"/>
</Style>
<!-- Row parts. Colours live here (not on the element) so selection can override them:
a local value would outrank the style setter. -->
<Style Selector="Border.RowEdge">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Width" Value="2"/>
</Style>
<Style Selector="ListBoxItem:selected Border.RowEdge">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="TextBlock.RowName"> <!-- track-name scale: 12 / 580 -->
<Setter Property="FontSize" Value="12"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="TextBlock.RowName.child">
<Setter Property="FontWeight" Value="Normal"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
<!-- Files (spec 092): the selected clip's source file wears the accent edge and name
(the selection adds its tint); a sample folder that can't be found is dimmed. -->
<Style Selector="Border.RowEdge.located">
<Setter Property="Background" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="TextBlock.RowName.located">
<Setter Property="Foreground" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="TextBlock.RowName.unavailable">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
</Style>
<!-- A browse-view file Nota can't add: listed, inert, in the disabled ink. -->
<Style Selector="TextBlock.RowName.inert">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<Style Selector="TextBlock.RowTag.inert">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextDisabled}"/>
</Style>
<!-- Row metadata on the right: the label scale, 11 / 400 in ink 3. -->
<Style Selector="TextBlock.RowTag">
<Setter Property="FontFamily" Value="{DynamicResource Font.Measure}"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextTertiary}"/>
</Style>
<Style Selector="ListBoxItem:selected TextBlock.RowTag">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
<!-- Theme cards (Preferences → Appearance): a row of previews with no list chrome. The
frame is always 2px; state changes only its colour — seam at rest, rule on hover,
the accent when chosen. -->
<Style Selector="ListBox.themes">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="0"/>
</Style>
<Style Selector="ListBox.themes ListBoxItem">
<Setter Property="Padding" Value="0"/>
<Setter Property="MinHeight" Value="0"/>
<Setter Property="CornerRadius" Value="0"/>
</Style>
<Style Selector="ListBox.themes ListBoxItem /template/ ContentPresenter#PART_ContentPresenter, ListBox.themes ListBoxItem:pointerover /template/ ContentPresenter#PART_ContentPresenter, ListBox.themes ListBoxItem:selected /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Border.ThemeFrame">
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Group}"/>
<Setter Property="ClipToBounds" Value="True"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
</Style>
<Style Selector="ListBox.themes ListBoxItem:pointerover Border.ThemeFrame">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Rule}"/>
</Style>
<Style Selector="ListBox.themes ListBoxItem:selected Border.ThemeFrame">
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Accent}"/>
</Style>
<Style Selector="TextBlock.GroupLabel"> <!-- browser section: 11 / 600, ink 2, sentence case -->
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
</Style>
<!-- ===== Flat search box ===== -->
<!-- Used inside a bordered wrapper (see BrowserView), so the TextBox itself must
stay flat: no min-height jump, no focus background/border of its own. -->
<Style Selector="TextBox.search">
<Setter Property="MinHeight" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="CaretBrush" Value="{DynamicResource Brush.Accent}"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style Selector="TextBox.search /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="MinHeight" Value="0"/>
</Style>
<Style Selector="TextBox.search:pointerover /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style Selector="TextBox.search:focus /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<!-- ===== Menus, flyouts, drop-downs, tooltips: floating layers =====
Raised grey, 3px corners, a seam ring. Avalonia draws each popup in a window of its
own, sized to its content, so a blurred shadow would be clipped at the popup's edge;
these carry the seam ring only, and Shadow.Popover / Shadow.Modal are for overlays
drawn inside the main window (command palette). Menu items are 24px; hover is a
full accent fill with derived ink. -->
<Style Selector="MenuFlyoutPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="Padding" Value="4"/>
<Setter Property="MinWidth" Value="200"/>
<Setter Property="ItemsPanel">
<ItemsPanelTemplate><app:MenuItemsPanel/></ItemsPanelTemplate>
</Setter>
</Style>
<!-- A menu carrying inline rows (colour grid, height keys): wide enough that they never
wrap, whatever the track's name (spec 034). -->
<Style Selector="MenuFlyoutPresenter.rows">
<Setter Property="MinWidth" Value="248"/>
</Style>
<!-- A plain flyout (a popover with its own content). -->
<Style Selector="FlyoutPresenter">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
</Style>
<!-- A flyout whose content draws its own card (Connect Phone): no frame around it. -->
<Style Selector="FlyoutPresenter.bare">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="MaxWidth" Value="480"/>
<Setter Property="MaxHeight" Value="720"/>
</Style>
<Style Selector="ContextMenu">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="Padding" Value="4"/>
<Setter Property="MinWidth" Value="200"/>
<Setter Property="ItemsPanel">
<ItemsPanelTemplate><app:MenuItemsPanel/></ItemsPanelTemplate>
</Setter>
</Style>
<!-- Menu items take the Nota MenuItem theme (ControlTheme above); the danger and inline
classes, hover and disabled states live there with it. -->
<!-- The menubar's own triggers (File, Edit…): secondary ink that lifts to the raised tone
on hover or while open — only the items inside a menu fill with the accent. -->
<Style Selector="Menu > MenuItem">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextSecondary}"/>
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="Padding" Value="8,0"/>
<Setter Property="MinHeight" Value="22"/>
</Style>
<Style Selector="Menu > MenuItem:selected /template/ Border#PART_LayoutRoot,
Menu > MenuItem:pointerover /template/ Border#PART_LayoutRoot,
Menu > MenuItem:open /template/ Border#PART_LayoutRoot">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
</Style>
<Style Selector="Menu > MenuItem:selected, Menu > MenuItem:pointerover, Menu > MenuItem:open">
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
</Style>
<Style Selector="Separator">
<Setter Property="Background" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="Height" Value="1"/>
<Setter Property="Margin" Value="4,4"/>
</Style>
<!-- Tooltip: a small raised popover, primary ink, 11px. -->
<Style Selector="ToolTip">
<Setter Property="Background" Value="{DynamicResource Brush.SurfaceRaised}"/>
<Setter Property="Foreground" Value="{DynamicResource Brush.TextPrimary}"/>
<Setter Property="BorderBrush" Value="{DynamicResource Brush.Seam}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Field}"/>
<Setter Property="Padding" Value="7,4"/>
<Setter Property="FontFamily" Value="{StaticResource Font.UI}"/>
<Setter Property="FontSize" Value="10.5"/>
</Style>
<!-- ===== Scrollbars: a thin muted thumb on a transparent track ===== -->
<Style Selector="ScrollBar">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="ScrollBar:vertical">
<Setter Property="Width" Value="9"/>
</Style>
<Style Selector="ScrollBar:horizontal">
<Setter Property="Height" Value="9"/>
</Style>
<Style Selector="ScrollBar /template/ Thumb">
<Setter Property="Background" Value="{DynamicResource Brush.Rule}"/>
<Setter Property="CornerRadius" Value="{StaticResource Radius.Group}"/>
<Setter Property="MinWidth" Value="5"/>
<Setter Property="MinHeight" Value="5"/>
</Style>
<Style Selector="ScrollBar:pointerover /template/ Thumb">
<Setter Property="Background" Value="{DynamicResource Brush.TextFaint}"/>
</Style>
<Style Selector="ScrollBar /template/ Thumb:pressed">
<Setter Property="Background" Value="{DynamicResource Brush.TextMuted}"/>
</Style>
<!-- Track buttons (the little arrows) are noise at this scale — hide them. -->
<Style Selector="ScrollBar /template/ RepeatButton">
<Setter Property="Opacity" Value="0"/>
<Setter Property="IsHitTestVisible" Value="False"/>
</Style>
</Styles>