Files
quiver-launcher/MainWindow.axaml
T
Thomas GeorgiadisandCursor cc171d598b Update to version 2.3.7 with gamepad navigation and sorting fixes.
Add Name (ignore The/A/An) sort, stop card-grid wrap, fix rapid D-pad taps and empty catalog Confirm, clear stale filter focus, speed hold-repeat, and move removed apps to Recycle Bin/Trash with Steam OSK support.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-14 22:31:23 +10:00

3497 lines
137 KiB
XML

<Window x:Class="Quiver.MainWindow"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Quiver"
xmlns:services="clr-namespace:Quiver.Services"
xmlns:asyncImageLoader="clr-namespace:AsyncImageLoader;assembly=AsyncImageLoader.Avalonia"
Title="Quiver"
Width="1280" Height="720"
MinWidth="750" MinHeight="490"
Background="{Binding WindowBackground}"
WindowState="Normal"
WindowStartupLocation="CenterScreen"
SystemDecorations="Full"
ExtendClientAreaToDecorationsHint="{Binding ExtendClientAreaEnabled}"
ExtendClientAreaChromeHints="{Binding ChromeHints}">
<Window.Resources>
<local:BooleanToStretchConverter x:Key="BooleanToStretchConverter"/>
<local:ThicknessConverter x:Key="ThicknessConverter"/>
<local:DoubleScaleConverter x:Key="DoubleScaleConverter"/>
<!-- Theme Color Resources -->
<SolidColorBrush x:Key="ThemeBase" Color="#18181b"/>
<SolidColorBrush x:Key="ThemeLighter" Color="#252527"/>
<SolidColorBrush x:Key="ThemeDarker" Color="#0e0e10"/>
<SolidColorBrush x:Key="ThemeBorder" Color="#2d2d30"/>
<SolidColorBrush x:Key="ThemeText" Color="White"/>
<SolidColorBrush x:Key="ThemeTextSecondary" Color="#B8B8B8"/>
<SolidColorBrush x:Key="ThemeFocusRing" Color="#f59e0b"/>
<!-- list view -->
<DataTemplate x:Key="ListViewTemplate">
<Border Classes="gamecard" Classes.gamepad-focused="{Binding IsGamepadFocused}"
Height="{Binding ElementName=SlotSizeSlider, Path=Value}" Margin="0,0,0,12"
PointerPressed="GameCard_PointerPressed">
<Grid ClipToBounds="True">
<Panel ClipToBounds="True">
<Border CornerRadius="12" ClipToBounds="True">
<asyncImageLoader:AdvancedImage Source="{Binding IconUrl}"
ClipToBounds="True"
Height="{Binding ElementName=IconSizeSlider, Path=Value}"
VerticalAlignment="Center"
HorizontalAlignment="Left"
Opacity="{Binding ElementName=IconOpacitySlider, Path=Value}"
Margin="{Binding ElementName=IconMarginSlider, Path=Value, Converter={StaticResource ThicknessConverter}}"
Stretch="{Binding Path=IsChecked, ElementName=IconFillCheckBox, Converter={StaticResource BooleanToStretchConverter}}" />
</Border>
</Panel>
<Grid Margin="24">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Margin="{Binding ElementName=TextMarginSlider, Path=Value, Converter={StaticResource ThicknessConverter}}" VerticalAlignment="Center">
<TextBlock Text="{Binding Name}"
FontSize="22"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"/>
<TextBlock Text="{Binding StatusText}"
FontSize="13"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="0,6,0,0"/>
<StackPanel Orientation="Horizontal">
<TextBlock Text="Latest: "
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"/>
<TextBlock Text="{Binding LatestVersion}"
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<StackPanel Orientation="Horizontal"
IsVisible="{Binding HasPreferredVersion}">
<TextBlock Text="Preferred: "
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"/>
<TextBlock Text="{Binding PreferredVersion}"
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
</StackPanel>
<!-- Gamecard: Options -->
<StackPanel Grid.Column="1"
Orientation="Horizontal"
VerticalAlignment="Center"
Spacing="12">
<Button Classes="modern"
Content="{Binding ButtonText}"
FontSize="15"
MinWidth="{Binding ElementName=ActionButtonSizeSlider, Path=Value, Converter={StaticResource DoubleScaleConverter}, ConverterParameter=3.333333}"
Height="{Binding ElementName=ActionButtonSizeSlider, Path=Value}"
IsEnabled="{Binding !IsLoading}"
Click="GameButton_Click"
Tag="{Binding}"/>
<Button Classes="options options-listview"
Content="⋯"
FontSize="20"
Height="{Binding ElementName=ActionButtonSizeSlider, Path=Value}"
Width="{Binding ElementName=ActionButtonSizeSlider, Path=Value}"
IsEnabled="{Binding !IsLoading}"
Click="OptionsButton_Click"
Tag="{Binding}">
<Button.ContextMenu>
<ContextMenu>
<MenuItem Header="Launch"
Click="LaunchGameMenu_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanLaunch}"/>
<MenuItem Header="Download"
Click="LaunchGameMenu_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanDownload}"/>
<MenuItem Header="Locate Existing Install"
Click="LocateExistingInstall_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanLocateInstall}"/>
<MenuItem Header="Update Now"
Click="UpdateNowMenu_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanUpdate}"/>
<MenuItem Header="Open Folder"
Click="OpenFolder_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
<MenuItem Header="Versions"
IsVisible="{Binding CanVersionOptions}">
<MenuItem Header="Change Version"
Click="ChangeVersion_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanChangeVersion}"/>
<MenuItem Header="Skip Update"
Click="SkipUpdate_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanSkipUpdate}"/>
<MenuItem Header="Force Update"
Click="ForceUpdate_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="Launch Options"
IsVisible="{Binding CanLaunchOptions}">
<MenuItem Header="Select Different Executable"
CommandParameter="{Binding}"
Click="SelectDifferentExecutable_Click"
IsVisible="{Binding HasExecutableChoice}"/>
<MenuItem Header="Create Desktop Shortcut"
Click="CreateShortcut_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
<MenuItem Header="Add to Steam"
Click="AddToSteam_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="Catalog">
<MenuItem Header="Edit Entry"
Click="EditGameEntry_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Edit Tags"
Click="EditTagsMenu_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Remove from List"
Click="RemoveGameEntry_Click"
CommandParameter="{Binding}"
IsVisible="{Binding IsInLocalAppsJson}"/>
</MenuItem>
<MenuItem Header="Customize">
<MenuItem Header="Add Custom Image"
Click="SetCustomIcon_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Remove Custom Image"
Click="RemoveCustomIcon_Click"
CommandParameter="{Binding}"
IsVisible="{Binding HasCustomIcon}"/>
<MenuItem Header="Hide App"
Click="HideGame_Click"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="About"
IsVisible="{Binding CanInfoOptions}">
<MenuItem Header="Show Changelog"
Click="ShowChangelog_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Open GitHub Page"
Click="OpenGitHubPage_Click"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="Delete"
Click="DeleteGameFromLibrary_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
</ContextMenu>
</Button.ContextMenu>
</Button>
</StackPanel>
<!-- Progress Bar -->
<Border Grid.ColumnSpan="2"
VerticalAlignment="Bottom"
Height="4"
CornerRadius="0,0,12,12"
ClipToBounds="True"
IsVisible="{Binding IsDownloading}">
<ProgressBar Value="{Binding DownloadProgress}"
Minimum="0"
Maximum="100"
Height="4"
Background="Transparent"
Foreground="{Binding ProgressBarColor}"
BorderThickness="0"/>
</Border>
</Grid>
</Grid>
</Border>
</DataTemplate>
<!-- grid view -->
<DataTemplate x:Key="GridViewTemplate">
<StackPanel PointerPressed="GameCard_PointerPressed">
<Border Classes="gamecardgrid" Classes.gamepad-focused="{Binding IsGamepadFocused}">
<Border.Width>
<Binding ElementName="SlotSizeSlider" Path="Value"/>
</Border.Width>
<Grid ClipToBounds="True">
<!-- Background Image -->
<Panel ClipToBounds="True"
Margin="{Binding ElementName=IconMarginSlider, Path=Value}"
VerticalAlignment="Top"
HorizontalAlignment="Center">
<Border CornerRadius="12" ClipToBounds="True">
<asyncImageLoader:AdvancedImage Source="{Binding IconUrl}"
ClipToBounds="True"
VerticalAlignment="Center"
Opacity="{Binding ElementName=IconOpacitySlider, Path=Value}"
Height="{Binding ElementName=IconSizeSlider, Path=Value}"
Stretch="{Binding Path=IsChecked, ElementName=IconFillCheckBox, Converter={StaticResource BooleanToStretchConverter}}" />
</Border>
</Panel>
<!-- Options Button - Top Right -->
<Button Classes="options-grid"
Width="40"
Height="40"
FontSize="18"
VerticalAlignment="Top"
HorizontalAlignment="Right"
Margin="12"
IsEnabled="{Binding !IsLoading}"
Click="OptionsButton_Click"
Tag="{Binding}">
<TextBlock Text="⋯" Foreground="{DynamicResource ThemeText}" TextAlignment="Center" VerticalAlignment="Center"/>
<Button.ContextMenu>
<ContextMenu>
<MenuItem Header="Launch"
Click="LaunchGameMenu_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanLaunch}"/>
<MenuItem Header="Download"
Click="LaunchGameMenu_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanDownload}"/>
<MenuItem Header="Locate Existing Install"
Click="LocateExistingInstall_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanLocateInstall}"/>
<MenuItem Header="Update Now"
Click="UpdateNowMenu_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanUpdate}"/>
<MenuItem Header="Open Folder"
Click="OpenFolder_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
<MenuItem Header="Versions"
IsVisible="{Binding CanVersionOptions}">
<MenuItem Header="Change Version"
Click="ChangeVersion_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanChangeVersion}"/>
<MenuItem Header="Skip Update"
Click="SkipUpdate_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanSkipUpdate}"/>
<MenuItem Header="Force Update"
Click="ForceUpdate_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="Launch Options"
IsVisible="{Binding CanLaunchOptions}">
<MenuItem Header="Select Different Executable"
CommandParameter="{Binding}"
Click="SelectDifferentExecutable_Click"
IsVisible="{Binding HasExecutableChoice}"/>
<MenuItem Header="Create Desktop Shortcut"
Click="CreateShortcut_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
<MenuItem Header="Add to Steam"
Click="AddToSteam_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="Catalog">
<MenuItem Header="Edit Entry"
Click="EditGameEntry_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Edit Tags"
Click="EditTagsMenu_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Remove from List"
Click="RemoveGameEntry_Click"
CommandParameter="{Binding}"
IsVisible="{Binding IsInLocalAppsJson}"/>
</MenuItem>
<MenuItem Header="Customize">
<MenuItem Header="Add Custom Image"
Click="SetCustomIcon_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Remove Custom Image"
Click="RemoveCustomIcon_Click"
CommandParameter="{Binding}"
IsVisible="{Binding HasCustomIcon}"/>
<MenuItem Header="Hide App"
Click="HideGame_Click"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="About"
IsVisible="{Binding CanInfoOptions}">
<MenuItem Header="Show Changelog"
Click="ShowChangelog_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Open GitHub Page"
Click="OpenGitHubPage_Click"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="Delete"
Click="DeleteGameFromLibrary_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
</ContextMenu>
</Button.ContextMenu>
</Button>
<!-- Progress Bar -->
<Border VerticalAlignment="Bottom"
Height="4"
CornerRadius="0,0,12,12"
ClipToBounds="True"
IsVisible="{Binding IsDownloading}">
<ProgressBar Value="{Binding DownloadProgress}"
Minimum="0"
Maximum="100"
Height="4"
Background="Transparent"
Foreground="{Binding ProgressBarColor}"
BorderThickness="0"/>
</Border>
</Grid>
</Border>
<!-- Info Bar Below Card -->
<Grid>
<Grid.Width>
<Binding ElementName="SlotSizeSlider" Path="Value"/>
</Grid.Width>
<Grid Margin="10,0,10,20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- App name (full width) -->
<TextBlock Grid.Row="0"
Grid.ColumnSpan="2"
Text="{Binding Name}"
FontSize="14"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"
TextAlignment="Left"
TextWrapping="Wrap"
Margin="0,0,0,4"/>
<!-- Download/Launch Button -->
<Button Grid.Row="1"
Grid.Column="0"
Classes="modern-icon"
VerticalAlignment="Top"
Width="{Binding ElementName=ActionButtonSizeSlider, Path=Value}"
Height="{Binding ElementName=ActionButtonSizeSlider, Path=Value}"
Margin="0,0,12,0"
IsEnabled="{Binding !IsLoading}"
Click="GameButton_Click"
Tag="{Binding}">
<Image Width="{Binding ElementName=ActionButtonSizeSlider, Path=Value}"
Source="{Binding ButtonImage}"/>
</Button>
<!-- Status and versions -->
<StackPanel Grid.Row="1"
Grid.Column="1"
VerticalAlignment="Center">
<TextBlock Text="{Binding StatusText}"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
TextAlignment="Left"
TextWrapping="Wrap"
Margin="0,0,0,2"/>
<TextBlock FontSize="10" Foreground="{DynamicResource ThemeTextSecondary}" TextWrapping="Wrap" TextAlignment="Left">
<Run Text="Latest: "/>
<Run Text="{Binding LatestVersion}" Foreground="{DynamicResource ThemeTextSecondary}"/>
</TextBlock>
<TextBlock FontSize="10"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"
TextAlignment="Left"
IsVisible="{Binding HasPreferredVersion}">
<Run Text="Preferred: "/>
<Run Text="{Binding PreferredVersion}" Foreground="{DynamicResource ThemeTextSecondary}"/>
</TextBlock>
</StackPanel>
</Grid>
</Grid>
</StackPanel>
</DataTemplate>
<!-- compact grid view (in-card content) -->
<DataTemplate x:Key="CompactGridViewTemplate">
<Border Classes="gamecardcompact" Classes.gamepad-focused="{Binding IsGamepadFocused}"
PointerPressed="GameCard_PointerPressed">
<Border.Width>
<Binding ElementName="SlotSizeSlider" Path="Value"/>
</Border.Width>
<Border.MinHeight>
<Binding ElementName="SlotSizeSlider" Path="Value"/>
</Border.MinHeight>
<Grid ClipToBounds="True">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Icon -->
<Panel Grid.Row="0"
ClipToBounds="True"
Margin="{Binding ElementName=IconMarginSlider, Path=Value}"
HorizontalAlignment="Center">
<Border CornerRadius="12,12,0,0" ClipToBounds="True">
<asyncImageLoader:AdvancedImage Source="{Binding IconUrl}"
ClipToBounds="True"
VerticalAlignment="Center"
HorizontalAlignment="Center"
Opacity="{Binding ElementName=IconOpacitySlider, Path=Value}"
Height="{Binding ElementName=IconSizeSlider, Path=Value}"
Stretch="{Binding Path=IsChecked, ElementName=IconFillCheckBox, Converter={StaticResource BooleanToStretchConverter}}" />
</Border>
</Panel>
<!-- Options Button - Top Right -->
<Button Classes="options-grid"
Width="40"
Height="40"
FontSize="18"
VerticalAlignment="Top"
HorizontalAlignment="Right"
Margin="12"
IsEnabled="{Binding !IsLoading}"
Click="OptionsButton_Click"
Tag="{Binding}">
<TextBlock Text="⋯" Foreground="{DynamicResource ThemeText}" TextAlignment="Center" VerticalAlignment="Center"/>
<Button.ContextMenu>
<ContextMenu>
<MenuItem Header="Launch"
Click="LaunchGameMenu_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanLaunch}"/>
<MenuItem Header="Download"
Click="LaunchGameMenu_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanDownload}"/>
<MenuItem Header="Locate Existing Install"
Click="LocateExistingInstall_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanLocateInstall}"/>
<MenuItem Header="Update Now"
Click="UpdateNowMenu_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanUpdate}"/>
<MenuItem Header="Open Folder"
Click="OpenFolder_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
<MenuItem Header="Versions"
IsVisible="{Binding CanVersionOptions}">
<MenuItem Header="Change Version"
Click="ChangeVersion_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanChangeVersion}"/>
<MenuItem Header="Skip Update"
Click="SkipUpdate_Click"
CommandParameter="{Binding}"
IsVisible="{Binding CanSkipUpdate}"/>
<MenuItem Header="Force Update"
Click="ForceUpdate_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="Launch Options"
IsVisible="{Binding CanLaunchOptions}">
<MenuItem Header="Select Different Executable"
CommandParameter="{Binding}"
Click="SelectDifferentExecutable_Click"
IsVisible="{Binding HasExecutableChoice}"/>
<MenuItem Header="Create Desktop Shortcut"
Click="CreateShortcut_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
<MenuItem Header="Add to Steam"
Click="AddToSteam_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="Catalog">
<MenuItem Header="Edit Entry"
Click="EditGameEntry_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Edit Tags"
Click="EditTagsMenu_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Remove from List"
Click="RemoveGameEntry_Click"
CommandParameter="{Binding}"
IsVisible="{Binding IsInLocalAppsJson}"/>
</MenuItem>
<MenuItem Header="Customize">
<MenuItem Header="Add Custom Image"
Click="SetCustomIcon_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Remove Custom Image"
Click="RemoveCustomIcon_Click"
CommandParameter="{Binding}"
IsVisible="{Binding HasCustomIcon}"/>
<MenuItem Header="Hide App"
Click="HideGame_Click"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="About"
IsVisible="{Binding CanInfoOptions}">
<MenuItem Header="Show Changelog"
Click="ShowChangelog_Click"
CommandParameter="{Binding}"/>
<MenuItem Header="Open GitHub Page"
Click="OpenGitHubPage_Click"
CommandParameter="{Binding}"/>
</MenuItem>
<MenuItem Header="Delete"
Click="DeleteGameFromLibrary_Click"
IsVisible="{Binding IsInstalled}"
CommandParameter="{Binding}"/>
</ContextMenu>
</Button.ContextMenu>
</Button>
<!-- App name, status, and action button -->
<Grid Grid.Row="2" Margin="10,0,10,10">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0"
Grid.ColumnSpan="2"
Text="{Binding Name}"
FontSize="14"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"
TextWrapping="Wrap"
Margin="0,0,0,4"/>
<Button Grid.Row="1"
Grid.Column="0"
Classes="modern-icon"
VerticalAlignment="Top"
Width="{Binding ElementName=ActionButtonSizeSlider, Path=Value}"
Height="{Binding ElementName=ActionButtonSizeSlider, Path=Value}"
Margin="0,0,12,0"
IsEnabled="{Binding !IsLoading}"
Click="GameButton_Click"
Tag="{Binding}">
<Image Width="{Binding ElementName=ActionButtonSizeSlider, Path=Value}"
Source="{Binding ButtonImage}"/>
</Button>
<StackPanel Grid.Row="1"
Grid.Column="1"
VerticalAlignment="Center">
<TextBlock Text="{Binding StatusText}"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"
Margin="0,0,0,2"/>
<TextBlock FontSize="10"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap">
<Run Text="Latest: "/>
<Run Text="{Binding LatestVersion}" Foreground="{DynamicResource ThemeTextSecondary}"/>
</TextBlock>
<TextBlock FontSize="10"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"
IsVisible="{Binding HasPreferredVersion}">
<Run Text="Preferred: "/>
<Run Text="{Binding PreferredVersion}" Foreground="{DynamicResource ThemeTextSecondary}"/>
</TextBlock>
</StackPanel>
</Grid>
<!-- Progress Bar -->
<Border Grid.RowSpan="3"
VerticalAlignment="Bottom"
Height="4"
CornerRadius="0,0,12,12"
ClipToBounds="True"
IsVisible="{Binding IsDownloading}">
<ProgressBar Value="{Binding DownloadProgress}"
Minimum="0"
Maximum="100"
Height="4"
Background="Transparent"
Foreground="{Binding ProgressBarColor}"
BorderThickness="0"/>
</Border>
</Grid>
</Border>
</DataTemplate>
<!-- Catalog sync field diff (shared) -->
<DataTemplate x:Key="CatalogFieldDiffTemplate" DataType="services:CatalogSyncFieldDiffItem">
<Grid ColumnDefinitions="64,*" Margin="0,0,0,4">
<TextBlock Grid.Column="0"
Text="{Binding FieldLabel}"
FontSize="10"
FontWeight="SemiBold"
Foreground="{DynamicResource ThemeTextSecondary}"
VerticalAlignment="Top"
Margin="0,2,8,0"/>
<StackPanel Grid.Column="1" Spacing="2">
<!-- Text: local → external on one row -->
<WrapPanel IsVisible="{Binding IsTextValueDiff}" Orientation="Horizontal">
<TextBlock Text="{Binding LocalValue}"
FontSize="10"
Foreground="#F0A080"
TextDecorations="Strikethrough"
TextWrapping="Wrap"
Margin="0,0,6,2"
IsVisible="{Binding HasLocalValue}"/>
<TextBlock Text="(empty)"
FontSize="10"
Foreground="#F0A080"
FontStyle="Italic"
Margin="0,0,6,2"
IsVisible="{Binding ShowEmptyLocal}"/>
<TextBlock Text="→"
FontSize="10"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="0,0,6,2"
VerticalAlignment="Center"
IsVisible="{Binding ShowArrow}"/>
<TextBlock Text="{Binding ExternalValue}"
FontSize="10"
Foreground="#6EE7A0"
TextWrapping="Wrap"
Margin="0,0,0,2"
IsVisible="{Binding HasExternalValue}"/>
<TextBlock Text="(empty)"
FontSize="10"
Foreground="#6EE7A0"
FontStyle="Italic"
IsVisible="{Binding ShowEmptyExternal}"/>
</WrapPanel>
<!-- Icon: compact side-by-side, URLs in tooltips only -->
<StackPanel IsVisible="{Binding IsIconDiff}" Orientation="Horizontal" Spacing="8">
<Border BorderBrush="#F0A080" BorderThickness="1" CornerRadius="4" Padding="2"
Background="#1A1A1A" IsVisible="{Binding HasLocalValue}"
ToolTip.Tip="{Binding LocalValue}">
<asyncImageLoader:AdvancedImage Source="{Binding LocalValue}" Width="36" Height="36" Stretch="Uniform"/>
</Border>
<TextBlock Text="→" FontSize="11" Foreground="{DynamicResource ThemeTextSecondary}"
VerticalAlignment="Center" IsVisible="{Binding ShowArrow}"/>
<Border BorderBrush="#6EE7A0" BorderThickness="1" CornerRadius="4" Padding="2"
Background="#1A1A1A" IsVisible="{Binding HasExternalValue}"
ToolTip.Tip="{Binding ExternalValue}">
<asyncImageLoader:AdvancedImage Source="{Binding ExternalValue}" Width="36" Height="36" Stretch="Uniform"/>
</Border>
</StackPanel>
<ItemsControl IsVisible="{Binding IsTagDiff}" ItemsSource="{Binding TagDiffs}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate DataType="services:CatalogSyncTagDiffItem">
<Border Background="{Binding BackgroundBrush}" CornerRadius="3" Padding="4,1" Margin="0,0,3,2" ToolTip.Tip="{Binding Tooltip}">
<TextBlock Text="{Binding Tag}" FontSize="9" Foreground="{Binding ForegroundBrush}"/>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</Grid>
</DataTemplate>
<!-- App updates review card -->
<DataTemplate x:Key="AppUpdateReviewCardTemplate">
<Border Classes="catalog-focus-card"
CornerRadius="6"
Padding="8,6"
Margin="0,0,0,6"
Classes.gamepad-focused="{Binding IsGamepadFocused}">
<Grid ColumnDefinitions="Auto,*,Auto">
<Border Grid.Column="0" CornerRadius="6" ClipToBounds="True" Width="44" Height="44" Margin="0,0,10,0">
<asyncImageLoader:AdvancedImage Source="{Binding IconUrl}" Width="44" Height="44" Stretch="Uniform"/>
</Border>
<StackPanel Grid.Column="1" VerticalAlignment="Center" Spacing="1">
<TextBlock Text="{Binding Name}" FontSize="13" FontWeight="SemiBold"
Foreground="{DynamicResource ThemeText}"
TextTrimming="CharacterEllipsis"/>
<TextBlock FontSize="11" Foreground="{DynamicResource ThemeTextSecondary}">
<Run Text="{Binding InstalledVersion}"/>
<Run Text=" → "/>
<Run Text="{Binding LatestVersion}"/>
</TextBlock>
</StackPanel>
<StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="4" VerticalAlignment="Center">
<Button Classes="options" Content="Update" FontSize="10" Padding="6,2"
Click="AppUpdateReviewRowUpdate_Click"/>
<Button Classes="options" Content="Skip" FontSize="10" Padding="6,2"
Click="AppUpdateReviewRowSkip_Click"/>
<Button Classes="options" Content="Versions" FontSize="10" Padding="6,2"
Click="AppUpdateReviewRowVersions_Click"/>
</StackPanel>
</Grid>
</Border>
</DataTemplate>
<!-- Catalog review app card -->
<DataTemplate x:Key="CatalogReviewCardTemplate">
<Border Classes="catalog-focus-card"
CornerRadius="6"
Padding="8,6"
Margin="0,0,0,6"
Classes.gamepad-focused="{Binding IsGamepadFocused}">
<StackPanel Spacing="4">
<Grid ColumnDefinitions="Auto,*,Auto">
<Border Grid.Column="0" CornerRadius="6" ClipToBounds="True" Width="44" Height="44" Margin="0,0,10,0">
<asyncImageLoader:AdvancedImage Source="{Binding IconUrl}" Width="44" Height="44" Stretch="Uniform"/>
</Border>
<StackPanel Grid.Column="1" VerticalAlignment="Center" Spacing="1">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="{Binding DisplayName}" FontSize="13" FontWeight="SemiBold" Foreground="{DynamicResource ThemeText}"
TextTrimming="CharacterEllipsis"/>
<Border Background="{DynamicResource ThemeLighter}" CornerRadius="3" Padding="4,1" VerticalAlignment="Center">
<TextBlock Text="{Binding StatusShortLabel}" FontSize="9" Foreground="{DynamicResource ThemeTextSecondary}"/>
</Border>
</StackPanel>
<TextBlock Text="{Binding Repository}" FontSize="10" Foreground="{DynamicResource ThemeTextSecondary}"
TextTrimming="CharacterEllipsis"/>
</StackPanel>
<StackPanel Grid.Column="2" Orientation="Horizontal" Spacing="4" VerticalAlignment="Center">
<Button Classes="options" Content="Add" Tag="{Binding Repository}" Click="CatalogSyncRowAdd_Click"
FontSize="10" Padding="6,2" IsVisible="{Binding CanAdd}"/>
<Button Classes="options" Content="Replace" Tag="{Binding Repository}" Click="CatalogSyncRowReplace_Click"
FontSize="10" Padding="6,2" IsVisible="{Binding CanReplace}"/>
<Button Classes="options" Content="Merge" Tag="{Binding Repository}" Click="CatalogSyncRowMerge_Click"
FontSize="10" Padding="6,2" IsVisible="{Binding CanMerge}"/>
<Button Classes="options" Content="Ignore" Tag="{Binding Repository}" Click="CatalogSyncRowIgnore_Click"
FontSize="10" Padding="6,2" IsVisible="{Binding CanIgnore}"/>
<Button Classes="options" Content="Hide" Tag="{Binding Repository}" Click="CatalogSyncRowHide_Click"
FontSize="10" Padding="6,2" IsVisible="{Binding ShowHideButton}"/>
<Button Classes="options" Content="Unhide" Tag="{Binding Repository}" Click="CatalogSyncRowUnhide_Click"
FontSize="10" Padding="6,2" IsVisible="{Binding ShowUnhideButton}"/>
<Button Classes="options catalog-remove-from-library"
Content="Remove from Library"
Tag="{Binding Repository}"
Click="CatalogSyncRowRemoveFromLibrary_Click"
FontSize="10" Padding="6,2"
IsVisible="{Binding CanRemoveFromLibrary}"/>
</StackPanel>
</Grid>
<Border IsVisible="{Binding HasInlineDiff}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="0,1,0,0"
Padding="0,4,0,0"
Margin="54,0,0,0">
<ItemsControl ItemsSource="{Binding FieldDiffs}">
<ItemsControl.ItemTemplate>
<StaticResource ResourceKey="CatalogFieldDiffTemplate"/>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Border>
</StackPanel>
</Border>
</DataTemplate>
<!-- Catalog source card -->
<DataTemplate x:Key="CatalogSourceCardTemplate">
<Border Classes="catalog-focus-card"
CornerRadius="8"
Padding="10"
Width="340"
Margin="0,0,16,16"
Classes.gamepad-focused="{Binding IsGamepadFocused}">
<StackPanel Spacing="4">
<Grid ColumnDefinitions="*,Auto" ColumnSpacing="8">
<TextBlock Grid.Column="0" Text="{Binding Name}" FontSize="15" FontWeight="SemiBold"
Foreground="{DynamicResource ThemeText}"
TextTrimming="CharacterEllipsis" MaxLines="1" VerticalAlignment="Center"
ToolTip.Tip="{Binding TitleToolTip}"/>
<Border Grid.Column="1" Background="{DynamicResource ThemeLighter}" CornerRadius="10"
MinWidth="26" Height="26" Padding="6,0" VerticalAlignment="Center"
IsVisible="{Binding PendingReviewBadgeVisible}">
<TextBlock Text="{Binding PendingReviewCount}" FontSize="13" FontWeight="Bold"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
<Border Grid.Column="1" Classes="catalog-all-reviewed-chip" VerticalAlignment="Center"
IsVisible="{Binding AllReviewedVisible}" ToolTip.Tip="All reviewed">
<TextBlock Text="✓ Reviewed" Classes="catalog-all-reviewed"/>
</Border>
</Grid>
<TextBlock Text="{Binding Description}" FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap" TextTrimming="CharacterEllipsis" MaxLines="2"
ToolTip.Tip="{Binding Description}"
IsVisible="{Binding DescriptionVisible}"/>
<Border Classes="catalog-source-meta" IsVisible="{Binding MetaStripVisible}">
<StackPanel Spacing="2">
<Grid ColumnDefinitions="*,Auto">
<TextBlock Grid.Column="0" Text="{Binding UsageStatsShort}"
FontSize="12" FontWeight="SemiBold"
Foreground="{DynamicResource ThemeText}"
TextTrimming="CharacterEllipsis"
Classes.catalog-usage-full="{Binding UsageStatsFullLibrary}"
IsVisible="{Binding UsageStatsVisible}"/>
<TextBlock Grid.Column="1" Text="{Binding FetchStatusText}"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
HorizontalAlignment="Right"
TextTrimming="CharacterEllipsis"
IsVisible="{Binding FetchStatusVisible}"/>
<TextBlock Grid.Column="1" Text="{Binding StatusWarningText}"
FontSize="11" FontWeight="SemiBold"
HorizontalAlignment="Right"
TextTrimming="CharacterEllipsis"
Classes.catalog-status-warning="{Binding StatusWarningIsWarning}"
Classes.catalog-status-error="{Binding StatusWarningIsError}"
IsVisible="{Binding StatusWarningVisible}"/>
</Grid>
<TextBlock Text="{Binding VersionLineText}"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
TextTrimming="CharacterEllipsis"
Classes.catalog-version-unreviewed="{Binding VersionLineUnreviewed}"
IsVisible="{Binding VersionLineVisible}"/>
</StackPanel>
</Border>
<Grid ColumnDefinitions="*,Auto,Auto" ColumnSpacing="8">
<CheckBox Grid.Column="0" Content="Enabled" IsChecked="{Binding Enabled}" Foreground="{DynamicResource ThemeText}"
Tag="{Binding SourceId}" Checked="CatalogSourceEnabled_Changed" Unchecked="CatalogSourceEnabled_Changed"/>
<Button Grid.Column="1" Classes="options" Classes.catalog-review-pending="{Binding ShowReviewPendingStyle}"
Content="{Binding ReviewButtonText}" HorizontalAlignment="Stretch"
Tag="{Binding SourceId}" Click="ReviewCatalogSource_Click" FontSize="12" Padding="10,4"/>
<Button Grid.Column="2" Classes="options" Content="Remove" Tag="{Binding SourceId}"
Click="RemoveCatalogSource_Click" FontSize="11" Padding="8,4"/>
</Grid>
</StackPanel>
</Border>
</DataTemplate>
</Window.Resources>
<Window.Styles>
<Style Selector="Button.modern">
<Setter Property="Background" Value="{Binding ButtonColor}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="20,10"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
CornerRadius="6"
Padding="{TemplateBinding Padding}">
<ContentPresenter
Name="PART_ContentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{TemplateBinding Foreground}"
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"/>
</Border>
</ControlTemplate>
</Setter>
</Style>
<!-- ComboBox Style -->
<Style Selector="ComboBox">
<Setter Property="Background" Value="{DynamicResource ThemeDarker}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeTextSecondary}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorder}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="4"/>
<Setter Property="Padding" Value="12,8"/>
</Style>
<Style Selector="ComboBox:pointerover /template/ Border#Background">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorder}"/>
</Style>
<Style Selector="ComboBox:focus /template/ Border#Background,
ComboBox.gamepad-focused /template/ Border#Background">
<Setter Property="Background" Value="{DynamicResource ThemeDarker}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="ComboBoxItem">
<Setter Property="Background" Value="{DynamicResource ThemeDarker}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeTextSecondary}"/>
<Setter Property="Padding" Value="12,8"/>
</Style>
<Style Selector="ComboBoxItem:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
</Style>
<Style Selector="ComboBoxItem:selected /template/ ContentPresenter">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="ComboBoxItem:focus /template/ ContentPresenter">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="1"/>
</Style>
<Style Selector="Button.modern:pointerover">
<Setter Property="Opacity" Value="0.85"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.modern:pressed">
<Setter Property="Opacity" Value="0.7"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.modern /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.modern:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.modern:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<!-- Modern Icon Button Style for Grid View -->
<Style Selector="Button.modern-icon">
<Setter Property="Background" Value="{Binding ButtonColor}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
CornerRadius="8"
Padding="{TemplateBinding Padding}">
<ContentPresenter
Name="PART_ContentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{TemplateBinding Foreground}"/>
</Border>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="Button.modern-icon:pointerover">
<Setter Property="Opacity" Value="0.85"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.modern-icon:pressed">
<Setter Property="Opacity" Value="0.7"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.modern-icon /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.modern-icon:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.modern-icon:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.options">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorder}"/>
<Setter Property="Padding" Value="10"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="6"
Padding="{TemplateBinding Padding}">
<ContentPresenter
Name="PART_ContentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{TemplateBinding Foreground}"
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"/>
</Border>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="Button.options:pointerover">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorder}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.options:pressed">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorder}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.options:disabled">
<Setter Property="Opacity" Value="1"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="#3A3A3E"/>
<Setter Property="Foreground" Value="#666666"/>
<Setter Property="Cursor" Value="Arrow"/>
</Style>
<Style Selector="Button.options:disabled /template/ Border">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="#3A3A3E"/>
<Setter Property="Opacity" Value="0.55"/>
</Style>
<Style Selector="Button.options:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="#888888"/>
<Setter Property="Opacity" Value="1"/>
</Style>
<Style Selector="Button.options /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.options:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.options:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<!-- Grid Options Button Style -->
<Style Selector="Button.options-grid">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Opacity" Value="0"/>
<Setter Property="Template">
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
CornerRadius="8"
Padding="{TemplateBinding Padding}">
<ContentPresenter
Name="PART_ContentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{TemplateBinding Foreground}"
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"/>
</Border>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="Border.gamecardgrid:pointerover Button.options-grid">
<Setter Property="Opacity" Value="1"/>
</Style>
<Style Selector="Border.gamecardcompact:pointerover Button.options-grid">
<Setter Property="Opacity" Value="1"/>
</Style>
<Style Selector="Button.options-grid:pointerover">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.options-grid:pressed">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.options-grid /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.options-grid:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.options-grid:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.settings.selected">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.catalog-filter">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeTextSecondary}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorder}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="12"/>
<Setter Property="Padding" Value="10,4"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
Padding="{TemplateBinding Padding}">
<ContentPresenter
Name="PART_ContentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Foreground="{TemplateBinding Foreground}"
FontSize="{TemplateBinding FontSize}"/>
</Border>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="Button.catalog-filter:pointerover">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.catalog-filter.selected">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.catalog-filter.gamepad-focused">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="Button.catalog-review-pending">
<Setter Property="Background" Value="{DynamicResource ThemeWarning}"/>
<Setter Property="Foreground" Value="#18181b"/>
<Setter Property="FontWeight" Value="Bold"/>
</Style>
<Style Selector="Button.catalog-review-pending:pointerover">
<Setter Property="Background" Value="{DynamicResource ThemeWarning}"/>
<Setter Property="Opacity" Value="0.9"/>
</Style>
<Style Selector="Button.catalog-review-pending:pressed">
<Setter Property="Background" Value="{DynamicResource ThemeWarning}"/>
<Setter Property="Opacity" Value="0.8"/>
</Style>
<Style Selector="Button.options.catalog-remove-from-library">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeError}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeError}"/>
</Style>
<Style Selector="Button.options.catalog-remove-from-library:pointerover">
<Setter Property="Background" Value="#2a1515"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeError}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeError}"/>
</Style>
<Style Selector="Button.options.catalog-remove-from-library:pressed">
<Setter Property="Background" Value="#3a1818"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeError}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeError}"/>
</Style>
<Style Selector="Border.catalog-all-reviewed-chip">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeSuccess}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="10"/>
<Setter Property="Padding" Value="6,2"/>
</Style>
<Style Selector="TextBlock.catalog-all-reviewed">
<Setter Property="Foreground" Value="{DynamicResource ThemeSuccess}"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="FontWeight" Value="SemiBold"/>
</Style>
<Style Selector="Border.catalog-source-meta">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeBorder}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="6"/>
<Setter Property="Padding" Value="8,6"/>
</Style>
<Style Selector="TextBlock.catalog-usage-full">
<Setter Property="Foreground" Value="{DynamicResource ThemeSuccess}"/>
</Style>
<Style Selector="TextBlock.catalog-status-warning">
<Setter Property="Foreground" Value="{DynamicResource ThemeWarning}"/>
</Style>
<Style Selector="TextBlock.catalog-status-error">
<Setter Property="Foreground" Value="{DynamicResource ThemeError}"/>
</Style>
<Style Selector="TextBlock.catalog-version-unreviewed">
<Setter Property="Foreground" Value="{DynamicResource ThemeWarning}"/>
</Style>
<Style Selector="TextBlock.catalog-review-version-unreviewed">
<Setter Property="Foreground" Value="{DynamicResource ThemeAccent}"/>
<Setter Property="FontWeight" Value="SemiBold"/>
</Style>
<Style Selector="Border.catalog-review-version-banner">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeAccent}"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="CornerRadius" Value="6"/>
<Setter Property="Padding" Value="10,8"/>
</Style>
<Style Selector="Button.settings">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeTextSecondary}"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="12,10"/>
<Setter Property="HorizontalContentAlignment" Value="Left"/>
<Setter Property="FontSize" Value="14"/>
<Setter Property="FontWeight" Value="Medium"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
CornerRadius="{TemplateBinding CornerRadius}"
Padding="{TemplateBinding Padding}">
<ContentPresenter
Name="PART_ContentPresenter"
Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
Foreground="{TemplateBinding Foreground}"
FontSize="{TemplateBinding FontSize}"
FontWeight="{TemplateBinding FontWeight}"/>
</Border>
</ControlTemplate>
</Setter>
</Style>
<Style Selector="Button.settings:pointerover">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.settings:pressed">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.settings /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.settings:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.settings:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.catalog-filter /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.catalog-filter:pointerover /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.catalog-filter:pressed /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="Transparent"/>
</Style>
<Style Selector="Button.display-filter-overflow">
<Setter Property="Opacity" Value="0"/>
<Setter Property="IsHitTestVisible" Value="False"/>
</Style>
<Style Selector="Button.display-filter-row:pointerover Button.display-filter-overflow, Button.display-filter-row:focus-within Button.display-filter-overflow, Button.display-filter-row.dragging Button.display-filter-overflow">
<Setter Property="Opacity" Value="1"/>
<Setter Property="IsHitTestVisible" Value="True"/>
</Style>
<Style Selector="Border.display-filter-reorder">
<Setter Property="Opacity" Value="0"/>
<Setter Property="IsHitTestVisible" Value="False"/>
<Setter Property="Cursor" Value="SizeAll"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="ToolTip.Tip" Value="Drag to reorder"/>
<Setter Property="ToolTip.ShowDelay" Value="1000"/>
<Setter Property="ToolTip.BetweenShowDelay" Value="-1"/>
</Style>
<Style Selector="Button.display-filter-row:pointerover Border.display-filter-reorder, Button.display-filter-row:focus-within Border.display-filter-reorder, Button.display-filter-row.dragging Border.display-filter-reorder">
<Setter Property="Opacity" Value="1"/>
<Setter Property="IsHitTestVisible" Value="True"/>
</Style>
<Style Selector="Button.display-filter-row.dragging Border.display-filter-reorder">
<Setter Property="ToolTip.Tip" Value="{x:Null}"/>
</Style>
<Style Selector="Button.display-filter-row.dragging">
<Setter Property="Opacity" Value="1"/>
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.tag-filter-add">
<Setter Property="Padding" Value="0"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style Selector="Button.display-filter-row">
<Setter Property="ToolTip.Tip" Value="Click to apply tag filter"/>
<Setter Property="ToolTip.ShowDelay" Value="1000"/>
<Setter Property="ToolTip.BetweenShowDelay" Value="-1"/>
</Style>
<Style Selector="Button.display-filter-row.selected">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
<Setter Property="ToolTip.Tip" Value="Click again to clear"/>
</Style>
<Style Selector="Button.display-filter-row.dragging">
<Setter Property="ToolTip.Tip" Value="{x:Null}"/>
</Style>
<Style Selector="Button.scope-filter.selected">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
<Setter Property="Opacity" Value="0.95"/>
</Style>
<Style Selector="Button.scope-filter.gamepad-focused">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.scope-filter.selected.gamepad-focused">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="Button.iconbutton">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Padding" Value="0"/>
<Setter Property="Cursor" Value="Hand"/>
</Style>
<Style Selector="Button.iconbutton:pointerover">
<Setter Property="Opacity" Value="0.7"/>
</Style>
<Style Selector="Button.iconbutton:pressed">
<Setter Property="Opacity" Value="0.5"/>
</Style>
<Style Selector="Border.gamecard">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="CornerRadius" Value="14"/>
<Setter Property="Margin" Value="0,0,0,12"/>
<Setter Property="BorderThickness" Value="3"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Style>
<Style Selector="Border.gamecardgrid">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="CornerRadius" Value="14"/>
<Setter Property="Margin" Value="10"/>
<Setter Property="BorderThickness" Value="3"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Style>
<Style Selector="Border.gamecardcompact">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="CornerRadius" Value="14"/>
<Setter Property="Margin" Value="6"/>
<Setter Property="BorderThickness" Value="3"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Style>
<!-- Catalog/review cards: keep BorderBrush/Background in styles so gamepad-focused can override. -->
<Style Selector="Border.catalog-focus-card">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="3"/>
</Style>
<Style Selector="Border.gamecard.gamepad-focused,
Border.gamecardgrid.gamepad-focused,
Border.gamecardcompact.gamepad-focused,
Border.catalog-focus-card.gamepad-focused,
Border.gamepad-focused">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="3"/>
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
</Style>
<!-- Focus Visual Styles -->
<Style Selector="Button:focus">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="Button:focus /template/ Border">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="Button.modern:focus /template/ Border">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="3"/>
<Setter Property="Margin" Value="-1"/>
</Style>
<Style Selector="Button.modern-icon:focus /template/ Border">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="3"/>
<Setter Property="Margin" Value="-1"/>
</Style>
<Style Selector="Button.modern-icon:focus-visible /template/ Border">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="3"/>
<Setter Property="Margin" Value="-1"/>
</Style>
<Style Selector="Button.modern-icon.gamepad-focused /template/ Border">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="3"/>
<Setter Property="Margin" Value="-1"/>
</Style>
<Style Selector="Button.options:focus /template/ Border">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="Button.options.gamepad-focused /template/ Border">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="Button.options-grid:focus-visible /template/ Border">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="3"/>
</Style>
<Style Selector="Button.options-grid:focus-visible">
<Setter Property="Opacity" Value="1"/>
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
</Style>
<Style Selector="Button.settings:focus">
<!-- Selected/current page uses background only; orange ring is gamepad-focused. -->
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.settings:focus /template/ Border">
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style Selector="Button.settings.gamepad-focused">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="Button.settings.gamepad-focused /template/ Border">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="Button.iconbutton:focus">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="CheckBox:focus /template/ Border#NormalRectangle">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="CheckBox.gamepad-focused /template/ Border#NormalRectangle">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="CheckBox.gamepad-focused">
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="TextBox.gamepad-focused /template/ Border#PART_BorderElement">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="Slider.gamepad-focused /template/ Thumb">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="3"/>
</Style>
<Style Selector="ComboBox.gamepad-focused">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="Slider:focus /template/ Thumb">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="3"/>
</Style>
<Style Selector="TextBox:focus /template/ Border#PART_BorderElement">
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<!-- Theme-aware text styles -->
<Style Selector="TextBlock.theme-text">
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="TextBlock.theme-text-secondary">
<Setter Property="Foreground" Value="{DynamicResource ThemeTextSecondary}"/>
</Style>
<Style Selector="TextBlock.theme-text-muted">
<Setter Property="Foreground" Value="{DynamicResource ThemeTextSecondary}"/>
<Setter Property="Opacity" Value="0.7"/>
</Style>
<Style Selector="TabItem">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeTextSecondary}"/>
<Setter Property="Padding" Value="14,4"/>
<Setter Property="Margin" Value="4,8,4,0"/>
<Setter Property="FontSize" Value="12"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="CornerRadius" Value="6"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="MinHeight" Value="42"/>
<Setter Property="Cursor" Value="Hand"/>
</Style>
<!-- Keep all five settings tabs on one row -->
<Style Selector="TabControl#SettingsTabControl">
<Setter Property="Padding" Value="4,4,4,0"/>
</Style>
<Style Selector="TabControl#SettingsTabControl TabItem">
<Setter Property="Padding" Value="8,4"/>
<Setter Property="Margin" Value="1,8,1,0"/>
<Setter Property="FontSize" Value="11"/>
<Setter Property="MinHeight" Value="36"/>
</Style>
<Style Selector="TabItem:selected">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
<Setter Property="BorderThickness" Value="0"/>
</Style>
<Style Selector="TabItem.gamepad-focused">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="Foreground" Value="{DynamicResource ThemeText}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="TabItem:selected.gamepad-focused">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="BorderBrush" Value="{DynamicResource ThemeFocusRing}"/>
<Setter Property="BorderThickness" Value="2"/>
</Style>
<Style Selector="TabItem:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="{DynamicResource ThemeBase}"/>
<Setter Property="TextBlock.Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
<Style Selector="TabItem:selected:pointerover /template/ ContentPresenter">
<Setter Property="Background" Value="{DynamicResource ThemeLighter}"/>
<Setter Property="TextBlock.Foreground" Value="{DynamicResource ThemeText}"/>
</Style>
</Window.Styles>
<Border CornerRadius="24" ClipToBounds="True" Background="Transparent">
<Grid x:Name="MainGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="240"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- Left Sidebar Navigation -->
<Border Grid.Column="0" Background="{DynamicResource ThemeDarker}" BorderBrush="{DynamicResource ThemeBorder}" BorderThickness="0,0,1,0">
<Grid Margin="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<!-- Logo/Header -->
<StackPanel Grid.Row="0"
Margin="20"
Orientation="Horizontal"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Spacing="6">
<Image Source="avares://Quiver/Assets/app.png"
Width="45.75"
Height="95.25"
VerticalAlignment="Center"/>
<TextBlock Text="QUIVER"
FontSize="18"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"
Margin="20,0,0,0"
LetterSpacing="2"/>
</StackPanel>
<!-- Navigation Buttons -->
<StackPanel Grid.Row="1" Margin="12,0" VerticalAlignment="Top">
<!-- Continue Button -->
<Button x:Name="ContinueButton"
Classes="settings"
Margin="0,0,0,4"
CornerRadius="8"
Width="216"
Height="64"
HorizontalAlignment="Left"
Click="ContinueButton_Click"
IsVisible="{Binding IsContinueVisible}">
<Grid ColumnDefinitions="*,Auto">
<StackPanel Grid.Column="0"
Orientation="Horizontal"
VerticalAlignment="Center">
<Image Width="32" Height="32"
Source="avares://Quiver/Assets/Continue.png"
Margin="0,0,12,0"/>
<TextBlock Text="Continue"
VerticalAlignment="Center"/>
</StackPanel>
<Border Grid.Column="1"
ClipToBounds="True"
MaxWidth="48"
MaxHeight="44"
Margin="8,0,0,0"
VerticalAlignment="Center"
HorizontalAlignment="Right">
<asyncImageLoader:AdvancedImage Source="{Binding ContinueGameInfo.DefaultIconUrl}"
Stretch="Uniform"
MaxWidth="48"
MaxHeight="44"/>
</Border>
</Grid>
</Button>
<!-- Library Button -->
<Button x:Name="LibraryNavButton"
Classes="settings selected"
Margin="0,0,0,4"
CornerRadius="8"
Width="216"
HorizontalAlignment="Left"
Click="LibraryNavButton_Click">
<StackPanel Orientation="Horizontal">
<Image Width="32" Height="32"
Source="avares://Quiver/Assets/DefaultGame.png"
Margin="0,0,12,0"/>
<TextBlock Text="Library" VerticalAlignment="Center"/>
</StackPanel>
</Button>
<!-- App Catalog Button -->
<Button x:Name="AppCatalogNavButton"
Classes="settings"
Margin="0,0,0,4"
CornerRadius="8"
Width="216"
HorizontalAlignment="Left"
Click="AppCatalogNavButton_Click">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Spacing="10">
<Image Width="32" Height="32"
Source="avares://Quiver/Assets/AppCatalog.png"
Margin="0,0,2,0"/>
<TextBlock Text="App Catalog" VerticalAlignment="Center"/>
<Border Background="{DynamicResource ThemeLighter}"
CornerRadius="10"
MinWidth="20"
Height="20"
Padding="6,0"
VerticalAlignment="Center"
IsVisible="{Binding CatalogReviewBadgeVisible}">
<TextBlock Text="{Binding CatalogReviewBadgeCount}"
FontSize="11"
FontWeight="Bold"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
</StackPanel>
</Button>
</StackPanel>
<!-- Library-only filters -->
<Grid x:Name="LibraryFiltersPanel" Grid.Row="2" Grid.RowSpan="2" RowDefinitions="Auto,*">
<StackPanel Grid.Row="0" Margin="0,4,0,8">
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,0,0,8"/>
<TextBlock Text="SHOW"
FontSize="10"
FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="24,0,0,4"/>
</StackPanel>
<!-- Filter Buttons ScrollViewer -->
<ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
<StackPanel Margin="12,0,12,0">
<Button x:Name="UnhideAllGamesButton"
Classes="settings scope-filter"
Width="216"
HorizontalAlignment="Left"
Click="UnhideAllGamesButton_Click">
<TextBlock Text="All Apps"/>
</Button>
<Button x:Name="HideNonInstalledButton"
Classes="settings scope-filter"
Width="216"
HorizontalAlignment="Left"
Click="HideNonInstalledButton_Click">
<TextBlock Text="Installed Only"/>
</Button>
<Border Height="1"
Background="{DynamicResource ThemeBorder}"
Margin="0,8,0,8"/>
<Grid ColumnDefinitions="*,Auto" Margin="12,0,8,8">
<TextBlock Grid.Column="0"
Text="TAG FILTERS"
FontSize="10"
FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
VerticalAlignment="Center"/>
<Button Grid.Column="1"
Classes="iconbutton tag-filter-add"
Width="24"
Height="24"
ToolTip.Tip="Add tag filter"
Click="AddDisplayFilter_Click">
<TextBlock Text="+"
FontSize="16"
FontWeight="Bold"
HorizontalAlignment="Center"
VerticalAlignment="Center"
TextAlignment="Center"/>
</Button>
</Grid>
<ItemsControl x:Name="TagDisplayFiltersItemsControl"
ItemsSource="{Binding TagDisplayFilters}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Button Classes="settings display-filter-row"
Classes.selected="{Binding IsSelected}"
Margin="0,0,0,4"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Click="TagDisplayFilterButton_Click"
Tag="{Binding Id}">
<Grid ColumnDefinitions="*,Auto,Auto">
<TextBlock Grid.Column="0"
Text="{Binding Name}"
TextTrimming="CharacterEllipsis"
VerticalAlignment="Center"/>
<Border Grid.Column="1"
Classes="display-filter-reorder"
Width="28"
Height="28"
Margin="4,0,0,0"
VerticalAlignment="Center"
Tag="{Binding Id}"
PointerPressed="TagDisplayFilterReorder_PointerPressed">
<TextBlock Text="↕"
FontSize="14"
IsHitTestVisible="False"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<Button Grid.Column="2"
Classes="options options-listview display-filter-overflow"
Content="⋯"
FontSize="18"
Width="28"
Height="28"
Padding="0"
Margin="2,0,0,0"
VerticalAlignment="Center"
Click="DisplayFilterOverflow_Click"
Tag="{Binding Id}">
<Button.ContextMenu>
<ContextMenu>
<MenuItem Header="Edit"
Tag="{Binding Id}"
Click="EditTagDisplayFilter_Click"/>
<MenuItem Header="Delete"
Tag="{Binding Id}"
Click="DeleteTagDisplayFilter_Click"/>
</ContextMenu>
</Button.ContextMenu>
</Button>
</Grid>
</Button>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
<Button Classes="options"
Content="Add Display Filter"
HorizontalAlignment="Stretch"
Margin="0,8,0,0"
Click="AddDisplayFilter_Click"/>
</StackPanel>
</ScrollViewer>
</Grid>
<!-- Footer Links -->
<StackPanel Grid.Row="4" Margin="12,0,12,8">
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="-12,0,-12,8"/>
<Button Classes="iconbutton"
Width="216"
Height="44"
HorizontalAlignment="Left"
Click="GithubButton_Click">
<StackPanel Orientation="Horizontal" Margin="12,0">
<Image Width="32" Height="32"
Source="avares://Quiver/Assets/Github.png"
Margin="0,0,12,0"/>
<TextBlock Text="GitHub"
Foreground="{DynamicResource ThemeTextSecondary}"
FontSize="14"
FontWeight="Medium"
VerticalAlignment="Center"/>
</StackPanel>
</Button>
</StackPanel>
</Grid>
</Border>
<!-- Main Content Area -->
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!-- Top Bar -->
<Border Grid.Row="0"
Background="{DynamicResource ThemeDarker}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="0,0,0,1"
Padding="0,8,0,8"
ZIndex="1"
PointerPressed="TopBar_PointerPressed">
<Grid VerticalAlignment="Top">
<TextBlock x:Name="HeaderTitleText"
Text="Library"
FontSize="24"
Margin="15,0,0,0"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Right"
VerticalAlignment="Center">
<StackPanel x:Name="LibraryTopBarPanel" Orientation="Horizontal">
<Button x:Name="AddNewEntryButton"
Classes="options"
Content="+ Add New Entry"
FontSize="13"
Margin="0,0,16,0"
Click="AddNewEntryButton_Click"/>
<!-- Sorting ComboBox -->
<TextBlock Text="Sort by:"
Foreground="{DynamicResource ThemeTextSecondary}"
FontSize="14"
FontWeight="Medium"
VerticalAlignment="Center"/>
<ComboBox x:Name="SortByComboBox"
Foreground="{DynamicResource ThemeTextSecondary}"
Background="{DynamicResource ThemeDarker}"
BorderBrush="{DynamicResource ThemeBorder}"
Margin="4,1,64,0"
SelectionChanged="SortByComboBox_SelectionChanged">
<ComboBoxItem Content="Name (A-Z)" Tag="Name"/>
<ComboBoxItem Content="Name (Z-A)" Tag="NameDesc"/>
<ComboBoxItem Content="Name (ignore The/A/An)" Tag="NameIgnoreArticles"/>
<ComboBoxItem Content="Installed First" Tag="Installed"/>
<ComboBoxItem Content="Not Installed First" Tag="NotInstalled"/>
<ComboBoxItem Content="Last Played" Tag="LastPlayed"/>
</ComboBox>
</StackPanel>
<StackPanel x:Name="CatalogReviewTopBarPanel"
Orientation="Horizontal"
IsVisible="False">
<TextBlock Text="Sort by:"
Foreground="{DynamicResource ThemeTextSecondary}"
FontSize="14"
FontWeight="Medium"
VerticalAlignment="Center"/>
<ComboBox x:Name="CatalogReviewSortByComboBox"
Foreground="{DynamicResource ThemeTextSecondary}"
Background="{DynamicResource ThemeDarker}"
BorderBrush="{DynamicResource ThemeBorder}"
Margin="4,1,16,0"
SelectionChanged="CatalogReviewSortByComboBox_SelectionChanged">
<ComboBoxItem Content="Name (A-Z)" Tag="Name"/>
<ComboBoxItem Content="Name (Z-A)" Tag="NameDesc"/>
<ComboBoxItem Content="Name (ignore The/A/An)" Tag="NameIgnoreArticles"/>
<ComboBoxItem Content="Repository (A-Z)" Tag="Repository"/>
<ComboBoxItem Content="Status" Tag="Status"/>
</ComboBox>
</StackPanel>
<Button x:Name="CatalogReviewBackButton"
Classes="options"
Content="← Back to sources"
FontSize="13"
Margin="0,0,16,0"
IsVisible="False"
Click="CatalogReviewBack_Click"/>
<!-- Version Text -->
<TextBlock Grid.Row="0"
Text="{Binding currentVersionString}"
VerticalAlignment="Center"
HorizontalAlignment="Right"
Foreground="{DynamicResource ThemeText}"
FontSize="14"/>
<Button x:Name="CheckForUpdatesButton"
Classes="modern-icon"
Width="32"
Height="32"
ClipToBounds="False"
Margin="12,0,0,0"
ToolTip.Tip="{Binding CheckForUpdatesToolTip}"
IsEnabled="{Binding !IsCheckingUpdates}"
Click="CheckforUpdates_Click">
<Grid Width="32" Height="32" ClipToBounds="False">
<Image Width="28"
Height="28"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Source="avares://Quiver/Assets/CheckForUpdates.png"
Opacity="{Binding CheckForUpdatesIconOpacity}"/>
<Border Width="28"
Height="2"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
ClipToBounds="True"
CornerRadius="1"
IsVisible="{Binding IsCheckingUpdates}">
<ProgressBar Height="2"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
BorderThickness="0"
Background="Transparent"
IsIndeterminate="True"/>
</Border>
<Border Background="#FF9500"
CornerRadius="8"
MinWidth="16"
MinHeight="18"
Padding="5,2"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="0,-2,-2,0"
IsVisible="{Binding UpdatesBadgeVisible}">
<TextBlock Text="{Binding UpdatesBadgeText}"
FontSize="9"
FontWeight="Bold"
Foreground="White"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
<Border Background="{DynamicResource ThemeSuccess}"
CornerRadius="8"
Width="16"
Height="16"
HorizontalAlignment="Right"
VerticalAlignment="Top"
Margin="0,-2,-2,0"
IsVisible="{Binding UpdatesUpToDateBadgeVisible}">
<TextBlock Text="✓"
FontSize="10"
FontWeight="Bold"
Foreground="White"
HorizontalAlignment="Center"
VerticalAlignment="Center"/>
</Border>
</Grid>
</Button>
<Button x:Name="SettingsButton"
Classes="modern-icon"
Width="28"
Height="28"
Margin="8,0,0,0"
ToolTip.Tip="Settings"
Click="SettingsButton_Click">
<Image Width="28" Height="28"
Source="avares://Quiver/Assets/Settings.png"/>
</Button>
<!-- Minimize Button -->
<Button x:Name="MinimizeButton"
Classes="modern-icon"
Width="28"
Margin="12,0,0,0"
Click="MinimizeButton_Click">
<Image Width="28"
Height="28"
Source="avares://Quiver/Assets/Icons/button_minimize.png"/>
</Button>
<!-- Fullscreen Button -->
<Button x:Name="ToggleFullscreenButton"
Classes="modern-icon"
Width="28"
Margin="8,0,0,0"
Click="ToggleFullscreen_Click">
<Image Width="28"
Height="28"
Source="avares://Quiver/Assets/Icons/button_fullscreen.png"/>
</Button>
<!-- Close Button -->
<Button x:Name="CloseLauncherButton"
Classes="modern-icon"
Width="28"
Margin="8,0,10,0"
Click="CloseLauncher_Click">
<Image Width="28"
Height="28"
Source="avares://Quiver/Assets/Icons/button_close.png"/>
</Button>
</StackPanel>
</Grid>
</Border>
<!-- Apps Content with Settings Panel Overlay -->
<Grid Grid.Row="1">
<!-- Background Image -->
<Border Background="{DynamicResource ThemeDarker}"/>
<Image x:Name="StaticBackgroundImage"
Source="{Binding BackgroundImageUri}"
Stretch="Fill"
Opacity="{Binding BackgroundOpacity}"/>
<!-- Main App List -->
<Grid x:Name="LibraryViewContainer">
<ScrollViewer x:Name="LibraryContentPanel" VerticalScrollBarVisibility="Auto" Margin="30,20,30,30">
<Grid>
<ItemsControl ItemsSource="{Binding Games}" x:Name="ListViewControl"
IsVisible="{Binding ElementName=UseGridViewCheckBox, Path=!IsChecked}">
<ItemsControl.ItemTemplate>
<StaticResource ResourceKey="ListViewTemplate"/>
</ItemsControl.ItemTemplate>
</ItemsControl>
<ItemsControl ItemsSource="{Binding Games}" x:Name="ClassicGridViewControl"
IsVisible="False">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<StaticResource ResourceKey="GridViewTemplate"/>
</ItemsControl.ItemTemplate>
</ItemsControl>
<ItemsControl ItemsSource="{Binding Games}" x:Name="CompactGridViewControl"
IsVisible="False">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<StaticResource ResourceKey="CompactGridViewTemplate"/>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
</ScrollViewer>
<StackPanel x:Name="EmptyLibraryPanel"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Spacing="16"
MaxWidth="520"
Margin="30,20,30,30"
IsVisible="False">
<TextBlock Text="Your library is empty"
FontSize="24"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"
HorizontalAlignment="Center"
TextAlignment="Center"/>
<TextBlock Text="Get started by adding an app yourself, or browse the Quiver Community App Catalog to add apps from the community."
FontSize="14"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"
TextAlignment="Center"/>
<StackPanel Orientation="Horizontal"
Spacing="12"
HorizontalAlignment="Center"
Margin="0,8,0,0">
<Button Classes="options"
Content="Add App Manually"
FontSize="13"
Click="EmptyLibraryAddApp_Click"/>
<Button Classes="options"
Content="Browse Community Catalog"
FontSize="13"
Click="EmptyLibraryBrowseCatalog_Click"/>
</StackPanel>
</StackPanel>
<!-- App updates review (in-window, replaces modal) -->
<Grid x:Name="AppUpdatesReviewPanel"
IsVisible="False"
Margin="30,20,30,30"
RowDefinitions="Auto,Auto,*">
<TextBlock x:Name="AppUpdatesReviewHeaderText"
Grid.Row="0"
FontSize="15"
FontWeight="SemiBold"
Foreground="{DynamicResource ThemeText}"
TextWrapping="Wrap"
Margin="0,0,0,12"/>
<StackPanel Grid.Row="1" Orientation="Horizontal" Spacing="8" Margin="0,0,0,12">
<Button x:Name="AppUpdatesUpdateAllButton"
Classes="options"
Content="Update All"
FontSize="11"
Click="AppUpdatesUpdateAll_Click"/>
<Button x:Name="AppUpdatesSkipAllButton"
Classes="options"
Content="Skip all"
FontSize="11"
Click="AppUpdatesSkipAll_Click"/>
<Button x:Name="AppUpdatesBackToLibraryButton"
Classes="options"
Content="Back to Library"
FontSize="11"
Click="AppUpdatesBackToLibrary_Click"/>
</StackPanel>
<ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto">
<StackPanel>
<TextBlock x:Name="AppUpdatesReviewEmptyText"
Text="No app updates pending."
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"
IsVisible="False"
Margin="0,8,0,0"/>
<ItemsControl x:Name="AppUpdatesReviewItemsControl"
ItemsSource="{Binding AppUpdateReviewRows}">
<ItemsControl.ItemTemplate>
<StaticResource ResourceKey="AppUpdateReviewCardTemplate"/>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</ScrollViewer>
</Grid>
</Grid>
<!-- App Catalog Content -->
<Grid x:Name="CatalogContentPanel" IsVisible="False" Margin="30,20,30,30">
<!-- Sources list -->
<ScrollViewer x:Name="CatalogSourcesPanel" VerticalScrollBarVisibility="Auto">
<StackPanel Spacing="12">
<TextBlock Text="External catalog sources reference remote app lists. Your local apps.json is your library."
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"/>
<StackPanel Orientation="Horizontal" Spacing="8">
<Button x:Name="AddCatalogSourceButton" Classes="options" Content="Add Source" Click="AddCatalogSource_Click" FontSize="12"/>
<Button x:Name="RefreshCatalogSourcesButton" Classes="options" Content="Refresh All Sources" Click="RefreshCatalogSources_Click" FontSize="12"/>
</StackPanel>
<WrapPanel Orientation="Horizontal">
<Button x:Name="CatalogSourceFilterAllButton" Classes="catalog-filter" Content="All"
Tag="All" Click="CatalogSourceListFilter_Click" Margin="0,0,6,6"/>
<Button x:Name="CatalogSourceFilterEnabledButton" Classes="catalog-filter selected" Content="Enabled"
Tag="Enabled" Click="CatalogSourceListFilter_Click" Margin="0,0,6,6"/>
<Button x:Name="CatalogSourceFilterDisabledButton" Classes="catalog-filter" Content="Disabled"
Tag="Disabled" Click="CatalogSourceListFilter_Click" Margin="0,0,6,6"/>
</WrapPanel>
<ItemsControl ItemsSource="{Binding CatalogSources}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<WrapPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<StaticResource ResourceKey="CatalogSourceCardTemplate"/>
</ItemsControl.ItemTemplate>
</ItemsControl>
<TextBlock x:Name="CatalogSourcesEmptyText"
Text="No catalog sources yet. Add a source to subscribe to an external app list."
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"
IsVisible="False"/>
</StackPanel>
</ScrollViewer>
<!-- Source review -->
<Grid x:Name="CatalogReviewPanel" IsVisible="False" RowDefinitions="Auto,Auto,Auto,*">
<Border x:Name="CatalogReviewVersionBanner"
Grid.Row="0"
Classes="catalog-review-version-banner"
IsVisible="False"
Margin="0,0,0,8">
<TextBlock x:Name="CatalogReviewVersionText"
FontSize="15"
Foreground="{DynamicResource ThemeText}"
TextWrapping="Wrap"/>
</Border>
<StackPanel Grid.Row="1" Orientation="Horizontal" Spacing="8" Margin="0,0,0,8">
<Button x:Name="CatalogSyncAddAllButton" Classes="options" Content="Add all new"
Click="CatalogSyncAddAll_Click" FontSize="11"/>
<Button x:Name="CatalogSyncReplaceAllButton" Classes="options" Content="Replace all changed"
Click="CatalogSyncReplaceAll_Click" FontSize="11"/>
<Button x:Name="CatalogSyncAcknowledgeButton" Classes="options" Content="Skip &amp; mark reviewed"
Click="CatalogSyncAcknowledge_Click" FontSize="11" IsVisible="False"/>
</StackPanel>
<StackPanel Grid.Row="2" Spacing="8" Margin="0,0,0,8">
<WrapPanel Orientation="Horizontal">
<Button x:Name="CatalogFilterAllButton" Classes="catalog-filter selected" Content="All"
Tag="All" Click="CatalogReviewFilter_Click" Margin="0,0,6,6"/>
<Button x:Name="CatalogFilterNeedsReviewButton" Classes="catalog-filter" Content="Needs review"
Tag="NeedsReview" Click="CatalogReviewFilter_Click" Margin="0,0,6,6"/>
<Button x:Name="CatalogFilterNewButton" Classes="catalog-filter" Content="New"
Tag="New" Click="CatalogReviewFilter_Click" Margin="0,0,6,6"/>
<Button x:Name="CatalogFilterNotInLibraryButton" Classes="catalog-filter" Content="Not in library"
Tag="NotInLibrary" Click="CatalogReviewFilter_Click" Margin="0,0,6,6"/>
<Button x:Name="CatalogFilterChangedButton" Classes="catalog-filter" Content="Changed"
Tag="Changed" Click="CatalogReviewFilter_Click" Margin="0,0,6,6"/>
<Button x:Name="CatalogFilterUpToDateButton" Classes="catalog-filter" Content="Up to date"
Tag="UpToDate" Click="CatalogReviewFilter_Click" Margin="0,0,6,6"/>
<Button x:Name="CatalogFilterHiddenButton" Classes="catalog-filter" Content="Hidden"
Tag="Hidden" Click="CatalogReviewFilter_Click" Margin="0,0,6,6"/>
</WrapPanel>
<TextBlock Text="New = not in library yet and still needs review. Not in library = all catalog entries you haven't added (including ignored). Ignore skips changes for this catalog version. Hide removes apps from review until unhidden in Hidden."
FontSize="10"
Foreground="{DynamicResource ThemeTextSecondary}"
Opacity="0.85"/>
<TextBlock Text="Tag colors on changed apps: green = catalog only · gray = both sides"
FontSize="10"
Foreground="{DynamicResource ThemeTextSecondary}"
Opacity="0.85"/>
</StackPanel>
<ScrollViewer Grid.Row="3" VerticalScrollBarVisibility="Auto">
<StackPanel>
<StackPanel x:Name="CatalogSyncNeedsReviewEmptyPanel"
Spacing="12"
Margin="0,8,0,0"
IsVisible="False">
<TextBlock Text="You're all caught up — nothing needs review."
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"/>
<StackPanel Orientation="Horizontal" Spacing="8">
<Button x:Name="CatalogSyncBackToLibraryButton"
Classes="options"
Content="Back to Library"
FontSize="11"
Click="CatalogSyncBackToLibrary_Click"/>
<Button x:Name="CatalogSyncBackToSourcesButton"
Classes="options"
Content="Back to sources"
FontSize="11"
Click="CatalogSyncBackToSources_Click"/>
</StackPanel>
</StackPanel>
<TextBlock x:Name="CatalogSyncEmptyText"
Text="No apps match this filter."
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"
IsVisible="False"
Margin="0,8,0,0"/>
<ItemsControl x:Name="CatalogSyncRowsItemsControl"
ItemsSource="{Binding CatalogSyncRows}">
<ItemsControl.ItemTemplate>
<StaticResource ResourceKey="CatalogReviewCardTemplate"/>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</ScrollViewer>
</Grid>
</Grid>
<TextBlock x:Name="GamepadHintsBar"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
Margin="0,0,0,8"
IsVisible="{Binding GamepadHintsVisible}"/>
<!-- Settings Panel Overlay -->
<Border x:Name="SettingsPanel"
HorizontalAlignment="Right"
VerticalAlignment="Stretch"
Width="400"
Background="{DynamicResource ThemeDarker}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1,0,0,0"
IsVisible="False"
Opacity="0.97"
ZIndex="10">
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
<StackPanel x:Name="SettingsContent">
<!-- Settings Header -->
<Border Background="{DynamicResource ThemeBase}"
Padding="20,14,20,14"
BorderThickness="0,0,0,1"
BorderBrush="{DynamicResource ThemeBorder}">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Column="0"
Text="Settings"
FontSize="20"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<Button x:Name="CloseSettingsButton"
Grid.Column="1"
Classes="modern-icon"
Width="28"
Height="28"
ToolTip.Tip="Close settings"
Click="CloseSettingsPanel_Click">
<Image Width="28"
Height="28"
Source="avares://Quiver/Assets/Icons/button_close.png"/>
</Button>
</Grid>
</Border>
<!-- Tab Control -->
<TabControl x:Name="SettingsTabControl"
Background="Transparent"
Foreground="{DynamicResource ThemeText}"
Padding="4,4,4,0"
Margin="0">
<TabControl.ItemsPanel>
<ItemsPanelTemplate>
<StackPanel Orientation="Horizontal"/>
</ItemsPanelTemplate>
</TabControl.ItemsPanel>
<!-- General Tab -->
<TabItem Header="General">
<StackPanel Margin="16,12,16,16" Spacing="4">
<!-- Behaviour -->
<TextBlock Text="BEHAVIOUR"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<StackPanel Spacing="2">
<CheckBox x:Name="CloseAfterLaunchCheckBox"
Content="Close After Launch"
Foreground="{DynamicResource ThemeText}"
FontSize="13" FontWeight="SemiBold"
Checked="CloseAfterLaunchCheckBox_Checked"
Unchecked="CloseAfterLaunchCheckBox_Unchecked"/>
<TextBlock Text="Close the launcher automatically after starting an app"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="20,0,0,0"/>
</StackPanel>
<!-- Divider -->
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<!-- Install Path -->
<TextBlock Text="APP INSTALL PATH"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<TextBlock Text="Leave blank to use the default location"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="0,0,0,4"/>
<Panel HorizontalAlignment="Stretch">
<TextBox x:Name="GamePathTextBox"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
Padding="12,10"
CornerRadius="4"
Margin="0,0,44,0"
TextChanged="GamePathTextBox_TextChanged"
Text="{Binding Settings.GamesPath, Mode=TwoWay}"/>
<Button Classes="options"
HorizontalAlignment="Right"
Width="40"
Height="40"
Content="📁"
Click="BrowseGamePath_Click"/>
</Panel>
<Button Classes="options"
Content="Reset to Default"
HorizontalAlignment="Stretch"
Click="ClearGamePath_Click"
FontSize="12"/>
<!-- Divider -->
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<!-- Platform & Cache -->
<TextBlock Text="PLATFORM &amp; CACHE"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<TextBlock Text="{Binding PlatformString}"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="0,0,0,4"/>
<Button Classes="options"
Content="Change Platform"
HorizontalAlignment="Stretch"
Click="OptionsButton_Click"
Tag="{Binding}"
FontSize="12">
<Button.ContextMenu>
<ContextMenu>
<MenuItem Header="Automatic" Click="PlatformAuto_Click"/>
<MenuItem Header="Windows" Click="PlatformWindows_Click"/>
<MenuItem Header="MacOS" Click="PlatformMacOS_Click"/>
<MenuItem Header="Linux X64" Click="PlatformLinuxX64_Click"/>
<MenuItem Header="Linux ARM64" Click="PlatformLinuxARM64_Click"/>
</ContextMenu>
</Button.ContextMenu>
</Button>
<Button Classes="options"
Content="Clear Icon Cache"
HorizontalAlignment="Stretch"
Click="ClearIconCache_Click"
FontSize="12"/>
<StackPanel Spacing="2" IsVisible="{Binding IsLinuxPlatform}">
<TextBlock Text="LINUX WINDOWS RUNNER"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,8,0,4"/>
<TextBox x:Name="LinuxWindowsLaunchCommandTextBox"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
Padding="12,10"
CornerRadius="4"
Watermark="Example: flatpak run com.usebottles.bottles -e {exe}"
Text="{Binding Settings.LinuxWindowsLaunchCommand, Mode=TwoWay}"
TextChanged="LinuxWindowsLaunchCommandTextBox_TextChanged"/>
<TextBlock Text="Optional override for Windows-only apps on Linux. Use {exe}, {appPath}, or {exeDir}. Leave blank to auto-detect Wine/Proton."
FontSize="11"
TextWrapping="Wrap"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="0,0,0,4"/>
</StackPanel>
</StackPanel>
</TabItem>
<!-- Controls Tab -->
<TabItem Header="Controls">
<StackPanel Margin="16,12,16,16" Spacing="4">
<TextBlock Text="ENABLE"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<StackPanel Spacing="2">
<CheckBox x:Name="EnableGamepadCheckBox"
Content="Enable Gamepad Input"
Foreground="{DynamicResource ThemeText}"
FontSize="13" FontWeight="SemiBold"
Checked="EnableGamepadCheckBox_Checked"
Unchecked="EnableGamepadCheckBox_Unchecked"/>
<TextBlock Text="Navigate with the bound controls. The selected app is highlighted."
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="20,0,0,0"
TextWrapping="Wrap"/>
</StackPanel>
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<TextBlock Text="CONNECTED CONTROLLERS"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<TextBlock x:Name="ConnectedGamepadsText"
Text="No controllers detected"
FontSize="12"
Foreground="{DynamicResource ThemeText}"
TextWrapping="Wrap"
Margin="0,0,0,4"/>
<TextBlock Text="All connected controllers are used. No exclusive selection."
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"
Margin="0,0,0,4"/>
<Button Classes="options"
Content="Refresh Controllers"
HorizontalAlignment="Stretch"
Click="RefreshConnectedGamepads_Click"
FontSize="12"/>
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<TextBlock Text="BINDINGS"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<TextBlock x:Name="GamepadRebindStatusText"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"
Margin="0,0,0,4"
IsVisible="False"/>
<StackPanel x:Name="GamepadBindingsPanel" Spacing="6"/>
<Button Classes="options"
Content="Reset Bindings to Defaults"
HorizontalAlignment="Stretch"
Click="ResetGamepadBindings_Click"
FontSize="12"
Margin="0,8,0,0"/>
</StackPanel>
</TabItem>
<!-- Appearance Tab -->
<TabItem Header="Appearance">
<StackPanel Margin="16,12,16,16" Spacing="4">
<!-- Window -->
<TextBlock Text="WINDOW"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<StackPanel Spacing="2">
<CheckBox x:Name="StartFullscreenCheckBox"
Content="Start in Fullscreen"
Foreground="{DynamicResource ThemeText}"
FontSize="13" FontWeight="SemiBold"
Checked="StartFullscreenCheckBox_Checked"
Unchecked="StartFullscreenCheckBox_Unchecked"/>
<TextBlock Text="Launch the application in fullscreen mode"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="20,0,0,0"/>
</StackPanel>
<StackPanel Spacing="2">
<CheckBox x:Name="RoundWindowCornersCheckBox"
Content="Rounded Window Corners"
Foreground="{DynamicResource ThemeText}"
FontSize="13" FontWeight="SemiBold"
Checked="RoundWindowCornersCheckBox_Checked"
Unchecked="RoundWindowCornersCheckBox_Unchecked"/>
<TextBlock Text="Apply rounded corners to the launcher window"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="20,0,0,0"/>
</StackPanel>
<StackPanel Spacing="2">
<CheckBox x:Name="ShowOSTopBarCheckBox"
Content="Show OS Top Bar"
Foreground="{DynamicResource ThemeText}"
FontSize="13" FontWeight="SemiBold"
Checked="ShowOSTopBarCheckBox_Checked"
Unchecked="ShowOSTopBarCheckBox_Unchecked"/>
<TextBlock Text="Display your operating system's title bar"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="20,0,0,0"/>
</StackPanel>
<!-- Divider -->
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<!-- Theme Colors -->
<TextBlock Text="THEME COLORS"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<Button Classes="options"
Content="Primary Color"
HorizontalAlignment="Stretch"
Click="ThemeColorPicker_Click"
FontSize="12"/>
<Button Classes="options"
Content="Secondary Color"
HorizontalAlignment="Stretch"
Click="SecondaryColorPicker_Click"
FontSize="12"/>
<!-- Divider -->
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<!-- Background Image -->
<TextBlock Text="BACKGROUND IMAGE"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<TextBlock Text="PNG, JPG, and GIF formats supported"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="0,0,0,4"/>
<Button Classes="options"
Content="Select Image"
HorizontalAlignment="Stretch"
Click="SelectBackgroundImage_Click"
FontSize="12"/>
<Button Classes="options"
Content="Clear Background"
HorizontalAlignment="Stretch"
Click="ClearBackgroundImage_Click"
IsEnabled="{Binding BackgroundImagePath, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
FontSize="12"/>
<StackPanel Spacing="4" Margin="0,4,0,0">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Opacity:"
FontSize="12"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<TextBlock Text="{Binding ElementName=BackgroundOpacitySlider, Path=Value, StringFormat={}{0:F2}}"
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<Slider x:Name="BackgroundOpacitySlider"
Minimum="0" Maximum="1"
Value="{Binding BackgroundOpacity}"
TickFrequency="0.01"
IsSnapToTickEnabled="True"
ValueChanged="BackgroundOpacitySlider_ValueChanged"/>
</StackPanel>
<!-- Divider -->
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<!-- Background Music -->
<TextBlock Text="BACKGROUND MUSIC"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<TextBlock Text="MP3, WAV, and OGG formats supported"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="0,0,0,4"/>
<Button Classes="options"
Content="Select Music"
HorizontalAlignment="Stretch"
Click="SelectLauncherMusic_Click"
FontSize="12"/>
<Button Classes="options"
Content="Clear Music"
HorizontalAlignment="Stretch"
Click="ClearLauncherMusic_Click"
IsEnabled="{Binding LauncherMusicPath, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"
FontSize="12"/>
<StackPanel Spacing="4" Margin="0,4,0,0">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Volume:"
FontSize="12"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<TextBlock Text="{Binding ElementName=MusicVolumeSlider, Path=Value, StringFormat={}{0:F2}}"
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<Slider x:Name="MusicVolumeSlider"
Minimum="0" Maximum="1"
Value="{Binding MusicVolume}"
TickFrequency="0.01"
IsSnapToTickEnabled="True"
ValueChanged="MusicVolumeSlider_ValueChanged"/>
</StackPanel>
</StackPanel>
</TabItem>
<!-- App Cards Tab -->
<TabItem Header="App Cards">
<StackPanel Margin="16,12,16,16" Spacing="4">
<!-- Layout -->
<TextBlock Text="LAYOUT"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<StackPanel Spacing="2">
<CheckBox x:Name="UseGridViewCheckBox"
Content="Grid View"
Foreground="{DynamicResource ThemeText}"
FontSize="13" FontWeight="SemiBold"
Checked="UseGridViewCheckBox_Checked"
Unchecked="UseGridViewCheckBox_Unchecked"/>
<TextBlock Text="Display apps in a grid instead of a list"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="20,0,0,0"/>
</StackPanel>
<StackPanel Spacing="2" Margin="0,4,0,0">
<CheckBox x:Name="GridCompactCardsCheckBox"
Content="Details in card"
Foreground="{DynamicResource ThemeText}"
FontSize="13" FontWeight="SemiBold"
IsEnabled="{Binding ElementName=UseGridViewCheckBox, Path=IsChecked}"
Checked="GridCompactCardsCheckBox_Checked"
Unchecked="GridCompactCardsCheckBox_Unchecked"/>
<TextBlock Text="Keep name, status, and buttons inside each grid card"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="20,0,0,0"/>
</StackPanel>
<StackPanel Spacing="6" Margin="0,4,0,0">
<TextBlock Text="Presets"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"/>
<StackPanel Orientation="Horizontal" Spacing="8">
<Button Classes="modern-icon" Width="52" Height="52"
Click="LayoutPreset_Landscape_Click"
ToolTip.Tip="Landscape">
<Image Width="52" Height="52" Source="avares://Quiver/Assets/Icons/preset_landscape.png"/>
</Button>
<Button Classes="modern-icon" Width="52" Height="52"
Click="LayoutPreset_Square_Click"
ToolTip.Tip="Square">
<Image Width="52" Height="52" Source="avares://Quiver/Assets/Icons/preset_square.png"/>
</Button>
<Button Classes="modern-icon" Width="52" Height="52"
Click="LayoutPreset_Portrait_Click"
ToolTip.Tip="Portrait">
<Image Width="52" Height="52" Source="avares://Quiver/Assets/Icons/preset_portrait.png"/>
</Button>
<Button Classes="modern-icon" Width="52" Height="52"
Click="LayoutPreset_List_Click"
ToolTip.Tip="List">
<Image Width="52" Height="52" Source="avares://Quiver/Assets/Icons/preset_list.png"/>
</Button>
</StackPanel>
</StackPanel>
<!-- Divider -->
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<!-- Card Size -->
<TextBlock Text="CARD SIZE"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<StackPanel Spacing="4">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Size:"
FontSize="12"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<TextBlock Text="{Binding ElementName=SlotSizeSlider, Path=Value, StringFormat={}{0:0}}"
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<Slider x:Name="SlotSizeSlider"
Minimum="120" Maximum="400"
Value="152"
TickFrequency="4"
IsSnapToTickEnabled="True"
ValueChanged="SlotSizeSlider_ValueChanged"/>
</StackPanel>
<!-- Divider -->
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<!-- Action Buttons -->
<TextBlock Text="ACTION BUTTONS"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<StackPanel Spacing="4">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Size:"
FontSize="12"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<TextBlock Text="{Binding ElementName=ActionButtonSizeSlider, Path=Value, StringFormat={}{0:0}}"
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<Slider x:Name="ActionButtonSizeSlider"
Minimum="32" Maximum="80"
Value="36"
TickFrequency="4"
IsSnapToTickEnabled="True"
ValueChanged="ActionButtonSizeSlider_ValueChanged"/>
<TextBlock Text="Size of Play, Download, and Update buttons"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<!-- Divider -->
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<!-- App Images -->
<TextBlock Text="GAME IMAGES"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<!-- Size -->
<StackPanel Spacing="4">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Size:"
FontSize="12"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<TextBlock Text="{Binding ElementName=IconSizeSlider, Path=Value, StringFormat={}{0:0}}"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<Slider x:Name="IconSizeSlider"
Minimum="64" Maximum="512"
Value="124"
TickFrequency="4"
IsSnapToTickEnabled="True"
ValueChanged="IconSizeSlider_ValueChanged"/>
</StackPanel>
<!-- Custom Image Fill -->
<StackPanel Spacing="2">
<CheckBox x:Name="IconFillCheckBox"
Content="Fill Cards"
IsChecked="False"
Foreground="{DynamicResource ThemeText}"
FontSize="13" FontWeight="SemiBold"
Checked="IconFillCheckBox_Checked"
Unchecked="IconFillCheckBox_Unchecked"/>
<TextBlock Text="Stretch images to fill entire cards"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
Margin="20,0,0,0"/>
</StackPanel>
<!-- Image Opacity -->
<StackPanel Spacing="4">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Card Image Opacity:"
FontSize="12"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<TextBlock Text="{Binding ElementName=IconOpacitySlider, Path=Value, StringFormat={}{0:F1}}"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<Slider x:Name="IconOpacitySlider"
Minimum="0.0" Maximum="1.0"
Value="0.2"
TickFrequency="0.1"
IsSnapToTickEnabled="True"
ValueChanged="IconOpacitySlider_ValueChanged"/>
<TextBlock Text="Control image transparency"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<!-- Left Padding -->
<StackPanel Spacing="4">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Left Padding:"
FontSize="12"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<TextBlock Text="{Binding ElementName=IconMarginSlider, Path=Value, StringFormat={}{0:0}}"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<Slider x:Name="IconMarginSlider"
Minimum="0" Maximum="512"
Value="0"
TickFrequency="8"
IsSnapToTickEnabled="True"
ValueChanged="IconMarginSlider_ValueChanged"/>
</StackPanel>
<!-- Divider -->
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<!-- Text -->
<TextBlock Text="TEXT"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<StackPanel Spacing="4">
<StackPanel Orientation="Horizontal" Spacing="8">
<TextBlock Text="Text Padding:"
FontSize="12"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<TextBlock Text="{Binding ElementName=TextMarginSlider, Path=Value, StringFormat={}{0:0}}"
FontSize="12"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
<Slider x:Name="TextMarginSlider"
Minimum="0" Maximum="256"
Value="0"
TickFrequency="8"
IsSnapToTickEnabled="True"
ValueChanged="TextMarginSlider_ValueChanged"/>
<TextBlock Text="Adjust the left spacing of text labels"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"/>
</StackPanel>
</StackPanel>
</TabItem>
<!-- Advanced Tab -->
<TabItem Header="Advanced">
<StackPanel Margin="16,12,16,16" Spacing="4">
<!-- GitHub API Token -->
<TextBlock Text="GITHUB API TOKEN"
FontSize="10" FontWeight="Bold"
Foreground="{DynamicResource ThemeTextSecondary}"
LetterSpacing="1"
Margin="0,0,0,4"/>
<TextBlock Text="Increases API rate limits for faster and more reliable downloads"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"
Margin="0,0,0,6"/>
<TextBox x:Name="GitHubTokenTextBox"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
Padding="12,10"
CornerRadius="4"
TextChanged="GitHubTokenTextBox_TextChanged"
Text="{Binding Settings.GitHubApiToken, Mode=TwoWay}"/>
<Button Classes="options"
Content="Create GitHub Token"
HorizontalAlignment="Stretch"
Click="CreateGitHubToken_Click"
FontSize="12"/>
<Button Classes="options"
Content="Clear Token"
HorizontalAlignment="Stretch"
Click="ClearGitHubToken_Click"
FontSize="12"/>
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,8,0,8"/>
<TextBlock Text="Visit GitHub's token documentation for more information on generating a personal access token."
FontSize="10"
Foreground="{DynamicResource ThemeTextSecondary}"
FontStyle="Italic"
TextWrapping="Wrap"/>
</StackPanel>
</TabItem>
</TabControl>
</StackPanel>
</ScrollViewer>
</Border>
<!-- Changelog Panel -->
<Border x:Name="ChangelogPanel"
Grid.RowSpan="2"
Background="{DynamicResource ThemeBase}"
IsVisible="False"
ZIndex="100">
<Grid RowDefinitions="Auto,*">
<Border Grid.Row="0"
Background="{DynamicResource ThemeDarker}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="0,0,0,1"
Padding="40,16,40,16">
<Grid ColumnDefinitions="*,Auto">
<TextBlock x:Name="ChangelogTitle"
Grid.Column="0"
Text="Changelog"
FontSize="28"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"
VerticalAlignment="Center"/>
<Button x:Name="CloseChangelogButton"
Grid.Column="1"
Classes="options"
Content="Close"
Width="100"
Click="CloseChangelog_Click"/>
</Grid>
</Border>
<ScrollViewer x:Name="ChangelogScrollViewer"
Grid.Row="1"
VerticalScrollBarVisibility="Auto"
Margin="40,20,40,40">
<StackPanel MaxWidth="900">
<ItemsControl x:Name="ChangelogContent"
ItemsSource="{Binding}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<ContentControl Content="{Binding}"/>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</StackPanel>
</ScrollViewer>
</Grid>
</Border>
<!-- Entry Form Overlay -->
<Border x:Name="EntryFormOverlay"
Grid.RowSpan="2"
Background="{DynamicResource ThemeBase}"
IsVisible="False"
ZIndex="100">
<ScrollViewer VerticalScrollBarVisibility="Auto" Margin="40">
<StackPanel Spacing="20" MinWidth="640" MaxWidth="960" HorizontalAlignment="Center">
<Border Background="{DynamicResource ThemeDarker}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="8"
Padding="16">
<StackPanel Spacing="12">
<TextBlock x:Name="FormTitleText"
Text="Create New Entry"
FontSize="18"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"/>
<Border Height="1" Background="{DynamicResource ThemeBorder}" Margin="0,4,0,8"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="130"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="Name:" VerticalAlignment="Center" Foreground="{DynamicResource ThemeTextSecondary}"/>
<TextBox Grid.Row="0" Grid.Column="1"
x:Name="NewGameNameTextBox"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"
Margin="8,0,0,8"
TextChanged="GameNameTextBox_TextChanged"/>
<TextBlock Grid.Row="1" Grid.Column="0" Text="Repository:" VerticalAlignment="Center" Foreground="{DynamicResource ThemeTextSecondary}"/>
<TextBox Grid.Row="1" Grid.Column="1"
x:Name="NewGameRepoTextBox"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"
Margin="8,0,0,8"
TextChanged="GameRepoTextBox_TextChanged"/>
<TextBlock Grid.Row="2" Grid.Column="0" Text="Folder Name:" VerticalAlignment="Center" Foreground="{DynamicResource ThemeTextSecondary}"/>
<TextBox Grid.Row="2" Grid.Column="1"
x:Name="NewGameFolderTextBox"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"
Margin="8,0,0,8"
TextChanged="GameFolderTextBox_TextChanged"/>
<TextBlock Grid.Row="3" Grid.Column="0" Text="Tags:" VerticalAlignment="Center" Foreground="{DynamicResource ThemeTextSecondary}"/>
<TextBox Grid.Row="3" Grid.Column="1"
x:Name="NewGameTagsTextBox"
Watermark="e.g. n64, recomp"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"
Margin="8,0,0,8"/>
<TextBlock Grid.Row="4" Grid.Column="0" Text="Icon URL:" VerticalAlignment="Center" Foreground="{DynamicResource ThemeTextSecondary}"/>
<TextBox Grid.Row="4" Grid.Column="1"
x:Name="NewGameIconTextBox"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"
Margin="8,0,0,8"
TextChanged="GameIconTextBox_TextChanged"/>
<TextBlock Grid.Row="5" Grid.Column="0" Text="Files To Add:" VerticalAlignment="Center" Foreground="{DynamicResource ThemeTextSecondary}"/>
<TextBox Grid.Row="5" Grid.Column="1"
x:Name="NewGameFilesToAddTextBox"
Watermark="e.g. portable.txt"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"
Margin="8,0,0,0"/>
</Grid>
<StackPanel Orientation="Horizontal" Spacing="8" HorizontalAlignment="Right" Margin="0,12,0,0">
<Button x:Name="CancelButton"
Classes="options"
Content="Cancel"
FontSize="12"
Width="100"
Click="CancelForm_Click"/>
<Button x:Name="CreateEditButton"
Classes="options"
Content="Create Entry"
FontSize="12"
Width="120"
Click="CreateNewEntry_Click"/>
</StackPanel>
</StackPanel>
</Border>
<Border x:Name="ValidationStatusBorder"
Background="{DynamicResource ThemeDarker}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="8"
Padding="12"
IsVisible="False">
<TextBlock x:Name="ValidationStatusText"
Text=""
Foreground="{DynamicResource ThemeText}"
FontSize="12"
TextWrapping="Wrap"/>
</Border>
</StackPanel>
</ScrollViewer>
</Border>
<!-- Display Filter Overlay -->
<Border x:Name="DisplayFilterOverlay"
Grid.RowSpan="2"
Background="#CC000000"
IsVisible="False"
ZIndex="110">
<Border Background="{DynamicResource ThemeDarker}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="8"
Padding="20"
MaxWidth="480"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<StackPanel Spacing="12">
<TextBlock x:Name="DisplayFilterOverlayTitle"
Text="Add Display Filter"
FontSize="18"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"/>
<TextBox x:Name="DisplayFilterNameTextBox"
Watermark="Filter name"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"/>
<TextBlock Text="Include tags"
FontSize="13"
FontWeight="SemiBold"
Foreground="{DynamicResource ThemeText}"/>
<TextBox x:Name="DisplayFilterTagsTextBox"
Watermark="Tags (comma-separated, e.g. n64, favorites)"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"/>
<TextBlock Text="Include match mode"
FontSize="13"
FontWeight="SemiBold"
Foreground="{DynamicResource ThemeText}"/>
<ComboBox x:Name="DisplayFilterMatchModeComboBox"
SelectionChanged="DisplayFilterMatchModeComboBox_SelectionChanged">
<ComboBoxItem Content="Any tag"/>
<ComboBoxItem Content="All tags"/>
</ComboBox>
<TextBlock x:Name="DisplayFilterMatchModeHelpText"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"/>
<TextBlock Text="Exclude tags"
FontSize="13"
FontWeight="SemiBold"
Foreground="{DynamicResource ThemeText}"/>
<TextBox x:Name="DisplayFilterExcludeTagsTextBox"
Watermark="Tags to hide (comma-separated, optional, e.g. ai)"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"/>
<TextBlock Text="Exclude match mode"
FontSize="13"
FontWeight="SemiBold"
Foreground="{DynamicResource ThemeText}"/>
<ComboBox x:Name="DisplayFilterExcludeMatchModeComboBox"
SelectionChanged="DisplayFilterExcludeMatchModeComboBox_SelectionChanged">
<ComboBoxItem Content="Any tag"/>
<ComboBoxItem Content="All tags"/>
</ComboBox>
<TextBlock x:Name="DisplayFilterExcludeMatchModeHelpText"
FontSize="11"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"/>
<StackPanel Orientation="Horizontal" Spacing="8" HorizontalAlignment="Right">
<Button x:Name="CancelDisplayFilterButton"
Classes="options"
Content="Cancel"
Width="100"
Click="CancelDisplayFilterEdit_Click"/>
<Button x:Name="SaveDisplayFilterButton"
Classes="options"
Content="Save"
Width="100"
Click="SaveDisplayFilter_Click"/>
</StackPanel>
</StackPanel>
</Border>
</Border>
<!-- Tag Edit Overlay -->
<Border x:Name="TagEditOverlay"
Grid.RowSpan="2"
Background="#CC000000"
IsVisible="False"
ZIndex="110">
<Border Background="{DynamicResource ThemeDarker}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="8"
Padding="20"
MaxWidth="480"
HorizontalAlignment="Center"
VerticalAlignment="Center">
<StackPanel Spacing="12">
<TextBlock Text="Edit Tags"
FontSize="18"
FontWeight="Bold"
Foreground="{DynamicResource ThemeText}"/>
<TextBlock x:Name="TagEditAppNameText"
FontSize="13"
Foreground="{DynamicResource ThemeTextSecondary}"
TextWrapping="Wrap"/>
<TextBox x:Name="TagEditTextBox"
Watermark="Tags (comma-separated)"
Foreground="{DynamicResource ThemeText}"
Background="{DynamicResource ThemeBase}"
BorderBrush="{DynamicResource ThemeBorder}"
BorderThickness="1"
CornerRadius="4"
Padding="8"/>
<StackPanel Orientation="Horizontal" Spacing="8" HorizontalAlignment="Right">
<Button Classes="options"
Content="Cancel"
Width="100"
Click="CancelTagEdit_Click"/>
<Button Classes="options"
Content="Save"
Width="100"
Click="SaveTagEdit_Click"/>
</StackPanel>
</StackPanel>
</Border>
</Border>
</Grid>
</Grid>
</Grid>
</Border>
</Window>