Mark resource as dynamic and delete unused resource

This commit is contained in:
MBucari 2025-03-19 22:21:54 -06:00
parent aab4f1d9d6
commit f402912a92
4 changed files with 6 additions and 8 deletions

View File

@ -25,8 +25,6 @@
</ControlTheme> </ControlTheme>
<x:Double x:Key="DataGridSortIconMinWidth">0</x:Double> <x:Double x:Key="DataGridSortIconMinWidth">0</x:Double>
<SolidColorBrush x:Key="DisabledGrayBrush" Opacity="0.4" Color="{StaticResource SystemChromeMediumColor}" />
<ResourceDictionary.ThemeDictionaries> <ResourceDictionary.ThemeDictionaries>
<ResourceDictionary x:Key="Light"> <ResourceDictionary x:Key="Light">
<SolidColorBrush x:Key="SeriesEntryGridBackgroundBrush" Opacity="0.3" Color="#abffab" /> <SolidColorBrush x:Key="SeriesEntryGridBackgroundBrush" Opacity="0.3" Color="#abffab" />
@ -70,10 +68,10 @@
</FluentTheme> </FluentTheme>
<Style Selector="TextBox[IsReadOnly=true]"> <Style Selector="TextBox[IsReadOnly=true]">
<Setter Property="Background" Value="{DynamicResource SystemControlBackgroundBaseLowBrush}" /> <Setter Property="Background" Value="{DynamicResource SystemChromeDisabledHighColor}" />
<Setter Property="CaretBrush" Value="{DynamicResource SystemControlTransparentBrush}" /> <Setter Property="CaretBrush" Value="{DynamicResource SystemControlTransparentBrush}" />
<Style Selector="^ /template/ Border#PART_BorderElement"> <Style Selector="^ /template/ Border#PART_BorderElement">
<Setter Property="Background" Value="{DynamicResource SystemControlBackgroundBaseLowBrush}" /> <Setter Property="Background" Value="{DynamicResource SystemChromeDisabledHighColor}" />
</Style> </Style>
</Style> </Style>
<Style Selector="controls|LinkLabel"> <Style Selector="controls|LinkLabel">

View File

@ -26,8 +26,8 @@
</Style> </Style>
<Style Selector="Button:disabled /template/ ContentPresenter#PART_ContentPresenter"> <Style Selector="Button:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{StaticResource SystemChromeDisabledLowColor}" /> <Setter Property="Background" Value="{DynamicResource SystemChromeDisabledLowColor}" />
<Setter Property="BorderBrush" Value="{StaticResource SystemChromeDisabledLowColor}" /> <Setter Property="BorderBrush" Value="{DynamicResource SystemChromeDisabledLowColor}" />
</Style> </Style>
</UserControl.Styles> </UserControl.Styles>

View File

@ -34,7 +34,6 @@ namespace LibationAvalonia.Views
context.GetLibraryBook_Flat_NoTracking("B017V4IM1G"), context.GetLibraryBook_Flat_NoTracking("B017V4IM1G"),
LogMe.RegisterForm(default(ILogForm)) LogMe.RegisterForm(default(ILogForm))
); );
return; return;
} }
} }

View File

@ -7,6 +7,7 @@
xmlns:viewModels="clr-namespace:LibationAvalonia.ViewModels" xmlns:viewModels="clr-namespace:LibationAvalonia.ViewModels"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="650" mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="650"
Background="{DynamicResource SystemRegionColor}"
x:Class="LibationAvalonia.Views.ProcessQueueControl"> x:Class="LibationAvalonia.Views.ProcessQueueControl">
<UserControl.Resources> <UserControl.Resources>