feat: remove useless resources.

This commit is contained in:
Zhang Dian 2023-10-09 00:28:17 +08:00
parent e563f860ad
commit 49b823f094
5 changed files with 2 additions and 27 deletions

View File

@ -34,7 +34,6 @@
<Style Selector="^:disabled /template/ ContentPresenter#PART_ContentPresenter"> <Style Selector="^:disabled /template/ ContentPresenter#PART_ContentPresenter">
<Setter Property="Background" Value="{DynamicResource ButtonSpinnerRepeatButtonDisabledBackground}" /> <Setter Property="Background" Value="{DynamicResource ButtonSpinnerRepeatButtonDisabledBackground}" />
<Setter Property="Foreground" Value="{DynamicResource ButtonSpinnerRepeatButtonDisabledForeground}" />
</Style> </Style>
</ControlTheme> </ControlTheme>

View File

@ -37,7 +37,6 @@
Height="16" Height="16"
Margin="16,16,12,0" Margin="16,16,12,0"
VerticalAlignment="Top" VerticalAlignment="Top"
Data="{DynamicResource InformationIconPathData}"
IsVisible="False" /> IsVisible="False" />
<ContentControl <ContentControl
Name="PART_Content" Name="PART_Content"

View File

@ -251,8 +251,7 @@
Orientation="Vertical" /> Orientation="Vertical" />
<Panel <Panel
Grid.Row="1" Grid.Row="1"
Grid.Column="1" Grid.Column="1" />
Background="{DynamicResource ColorScrollBarBackground}" />
</Grid> </Grid>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>
@ -299,8 +298,7 @@
Orientation="Vertical" /> Orientation="Vertical" />
<Panel <Panel
Grid.Row="1" Grid.Row="1"
Grid.Column="1" Grid.Column="1" />
Background="{DynamicResource ColorScrollBarBackground}" />
</Grid> </Grid>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>

View File

@ -155,7 +155,6 @@
<DataValidationErrors> <DataValidationErrors>
<Grid <Grid
x:Name="SliderContainer" x:Name="SliderContainer"
MinWidth="{DynamicResource SliderVerticalWidth}"
Margin="{TemplateBinding Padding}" Margin="{TemplateBinding Padding}"
Background="{DynamicResource SliderContainerBackground}" Background="{DynamicResource SliderContainerBackground}"
ColumnDefinitions="Auto,Auto,Auto"> ColumnDefinitions="Auto,Auto,Auto">

View File

@ -2,26 +2,6 @@
xmlns="https://github.com/avaloniaui" xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:CompileBindings="True"> x:CompileBindings="True">
<Design.PreviewWith>
<StackPanel
Width="200"
Margin="20"
Spacing="20">
<TextBox
Classes="clearButton"
Text="Hello"
Theme="{StaticResource BorderlessTextBox}" />
<TextBox
Classes="Large"
Text="Hello"
Theme="{StaticResource BorderlessTextBox}" />
<TextBox
Classes="Small"
Text="Hello"
Theme="{StaticResource BorderlessTextBox}" />
</StackPanel>
</Design.PreviewWith>
<MenuFlyout x:Key="DefaultTextBoxContextFlyout" Placement="Bottom"> <MenuFlyout x:Key="DefaultTextBoxContextFlyout" Placement="Bottom">
<MenuItem <MenuItem
x:Name="TextBoxContextFlyoutCutItem" x:Name="TextBoxContextFlyoutCutItem"