Skip to content

Commit

Permalink
Merge pull request #387 from AvaloniaCommunity/avalonia-11.1
Browse files Browse the repository at this point in the history
Avalonia 11.1
  • Loading branch information
SKProCH authored Jul 26, 2024
2 parents 6fc4ba5 + 63d8a95 commit c83defe
Show file tree
Hide file tree
Showing 20 changed files with 139 additions and 231 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
<AvaloniaVersion>11.0.9</AvaloniaVersion>
<AvaloniaVersion>11.1.0</AvaloniaVersion>
<ShowMeTheXamlVersion>1.5.1</ShowMeTheXamlVersion>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<RunAOTCompilation>true</RunAOTCompilation>
<WasmBuildNative>true</WasmBuildNative>

<AvaloniaVersion>11.2.999-cibuild0047028-alpha</AvaloniaVersion>
<AvaloniaVersion>11.1.0</AvaloniaVersion>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<TargetFramework>net8.0</TargetFramework>
<GeneratePackageOnBuild>false</GeneratePackageOnBuild>
<IsPackable>false</IsPackable>
<AvaloniaVersion>11.0.9</AvaloniaVersion>

<AvaloniaVersion>11.1.0</AvaloniaVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)' == 'Release'">
Expand Down
5 changes: 0 additions & 5 deletions Material.Styles/Controls/Clock.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
</Border>
</UniformGrid>
</Design.PreviewWith>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/TextBox.axaml" />
<ResourceInclude Source="avares://Material.Styles/Controls/CircleClockPicker.axaml" />
<ResourceInclude Source="avares://Material.Styles/Controls/CircleClockPickerCell.axaml" />
</ResourceDictionary.MergedDictionaries>

<ControlTheme x:Key="MaterialCircleClockTimeFormatRadioButton" TargetType="RadioButton"
BasedOn="{StaticResource MaterialButtonlikeRadioButton}">
Expand Down
4 changes: 0 additions & 4 deletions Material.Styles/Controls/Scroller.axaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:Material.Styles.Controls">
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/Button.axaml" />
</ResourceDictionary.MergedDictionaries>

<!-- Internal component ! Dont use it simply as like other controls!! -->
<ControlTheme x:Key="TabControlScroller" TargetType="controls:Scroller">
<Setter Property="ScrollSpeed" Value="50" />
Expand Down
3 changes: 0 additions & 3 deletions Material.Styles/Resources/Compatibility/ButtonClasses.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Styles.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/Button.axaml" />
</ResourceDictionary.MergedDictionaries>
<ControlTheme x:Key="OutlineButton" TargetType="Button"
BasedOn="{StaticResource MaterialOutlineButton}" />
<ControlTheme x:Key="FlatButton" TargetType="Button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<Styles.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/ProgressBar.axaml"/>
</ResourceDictionary.MergedDictionaries>

<ControlTheme x:Key="LinearProgressBar" TargetType="ProgressBar"
BasedOn="{StaticResource MaterialProgressBar}" />

Expand Down
4 changes: 0 additions & 4 deletions Material.Styles/Resources/Compatibility/RadioButtons.axaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<ResourceDictionary xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/RadioButton.axaml" />
</ResourceDictionary.MergedDictionaries>

<ControlTheme x:Key="RadioButton" TargetType="RadioButton"
BasedOn="{StaticResource MaterialButtonlikeRadioButton}" />
</ResourceDictionary>
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Styles.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/ScrollViewer.axaml" />
</ResourceDictionary.MergedDictionaries>

<ControlTheme x:Key="NoAutoHideScrollViewer"
BasedOn="{StaticResource MaterialScrollViewer}"
TargetType="ScrollViewer">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Styles.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/Separator.axaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Styles.Resources>

<Style Selector="Separator.middle, Separator.Middle">
<Setter Property="Theme" Value="{StaticResource MiddleSeparator}" />
</Style>
Expand Down
31 changes: 12 additions & 19 deletions Material.Styles/Resources/Compatibility/SliderClasses.axaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<Styles.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/Slider.axaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Styles.Resources>

<Style Selector="Slider.discrete, Slider.Discrete">
<Setter Property="Theme" Value="{StaticResource MaterialDiscreteSliderV2}"/>
</Style>

<Style Selector="Slider.material-v1">
<Setter Property="Theme" Value="{StaticResource MaterialSliderV1}"/>
</Style>

<Style Selector="Slider.material-v1.discrete" />
</Styles>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">

<Style Selector="Slider.discrete, Slider.Discrete">
<Setter Property="Theme" Value="{StaticResource MaterialDiscreteSliderV2}" />
</Style>

<Style Selector="Slider.material-v1">
<Setter Property="Theme" Value="{StaticResource MaterialSliderV1}" />
</Style>

<Style Selector="Slider.material-v1.discrete" />
</Styles>
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Styles.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/TabControl.axaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Styles.Resources>

<Style Selector="TabControl.Scrollable, TabControl.scrollable">
<Setter Property="Control.Theme" Value="{StaticResource ScrollableTabControl}" />
</Style>
Expand Down
218 changes: 105 additions & 113 deletions Material.Styles/Resources/Compatibility/TextBlockClasses.axaml
Original file line number Diff line number Diff line change
@@ -1,114 +1,106 @@
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<Styles.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceInclude Source="avares://Material.Styles/Resources/Themes/TextBlock.axaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Styles.Resources>

<Style Selector=":is(Control).Caption">
<Setter Property="Theme" Value="{StaticResource CaptionTextBlock}"/>
</Style>

<Style Selector=":is(Control).Body1">
<Setter Property="Theme" Value="{StaticResource Body1TextBlock}"/>
</Style>

<Style Selector=":is(Control).Body2">
<Setter Property="Theme" Value="{StaticResource Body2TextBlock}"/>
</Style>

<Style Selector=":is(Control).Overline">
<Setter Property="Theme" Value="{StaticResource OverlineTextBlock}"/>
</Style>

<Style Selector=":is(Control).Subtitle1">
<Setter Property="Theme" Value="{StaticResource Subtitle1TextBlock}"/>
</Style>

<Style Selector=":is(Control).Subtitle2">
<Setter Property="Theme" Value="{StaticResource Subtitle2TextBlock}"/>
</Style>

<Style Selector=":is(Control).Headline6">
<Setter Property="Theme" Value="{StaticResource Headline6TextBlock}"/>
</Style>

<Style Selector=":is(Control).Headline5">
<Setter Property="Theme" Value="{StaticResource Headline5TextBlock}"/>
</Style>

<Style Selector=":is(Control).Headline4">
<Setter Property="Theme" Value="{StaticResource Headline4TextBlock}"/>
</Style>

<Style Selector=":is(Control).Headline3">
<Setter Property="Theme" Value="{StaticResource Headline3TextBlock}"/>
</Style>

<Style Selector=":is(Control).Headline2">
<Setter Property="Theme" Value="{StaticResource Headline2TextBlock}"/>
</Style>

<Style Selector=":is(Control).Headline1">
<Setter Property="Theme" Value="{StaticResource Headline1TextBlock}"/>
</Style>

<Style Selector=":is(Control).Link">
<Setter Property="Theme" Value="{StaticResource LinkTextBlock}"/>
</Style>

<Style Selector=":is(Control).caption">
<Setter Property="Theme" Value="{StaticResource CaptionTextBlock}"/>
</Style>

<Style Selector=":is(Control).body1">
<Setter Property="Theme" Value="{StaticResource Body1TextBlock}"/>
</Style>

<Style Selector=":is(Control).body2">
<Setter Property="Theme" Value="{StaticResource Body2TextBlock}"/>
</Style>

<Style Selector=":is(Control).overline">
<Setter Property="Theme" Value="{StaticResource OverlineTextBlock}"/>
</Style>

<Style Selector=":is(Control).subtitle1">
<Setter Property="Theme" Value="{StaticResource Subtitle1TextBlock}"/>
</Style>

<Style Selector=":is(Control).subtitle2">
<Setter Property="Theme" Value="{StaticResource Subtitle2TextBlock}"/>
</Style>

<Style Selector=":is(Control).headline6">
<Setter Property="Theme" Value="{StaticResource Headline6TextBlock}"/>
</Style>

<Style Selector=":is(Control).headline5">
<Setter Property="Theme" Value="{StaticResource Headline5TextBlock}"/>
</Style>

<Style Selector=":is(Control).headline4">
<Setter Property="Theme" Value="{StaticResource Headline4TextBlock}"/>
</Style>

<Style Selector=":is(Control).headline3">
<Setter Property="Theme" Value="{StaticResource Headline3TextBlock}"/>
</Style>

<Style Selector=":is(Control).headline2">
<Setter Property="Theme" Value="{StaticResource Headline2TextBlock}"/>
</Style>

<Style Selector=":is(Control).headline1">
<Setter Property="Theme" Value="{StaticResource Headline1TextBlock}"/>
</Style>

<Style Selector=":is(Control).link">
<Setter Property="Theme" Value="{StaticResource LinkTextBlock}"/>
</Style>
</Styles>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Style Selector=":is(Control).Caption">
<Setter Property="Theme" Value="{StaticResource CaptionTextBlock}" />
</Style>

<Style Selector=":is(Control).Body1">
<Setter Property="Theme" Value="{StaticResource Body1TextBlock}" />
</Style>

<Style Selector=":is(Control).Body2">
<Setter Property="Theme" Value="{StaticResource Body2TextBlock}" />
</Style>

<Style Selector=":is(Control).Overline">
<Setter Property="Theme" Value="{StaticResource OverlineTextBlock}" />
</Style>

<Style Selector=":is(Control).Subtitle1">
<Setter Property="Theme" Value="{StaticResource Subtitle1TextBlock}" />
</Style>

<Style Selector=":is(Control).Subtitle2">
<Setter Property="Theme" Value="{StaticResource Subtitle2TextBlock}" />
</Style>

<Style Selector=":is(Control).Headline6">
<Setter Property="Theme" Value="{StaticResource Headline6TextBlock}" />
</Style>

<Style Selector=":is(Control).Headline5">
<Setter Property="Theme" Value="{StaticResource Headline5TextBlock}" />
</Style>

<Style Selector=":is(Control).Headline4">
<Setter Property="Theme" Value="{StaticResource Headline4TextBlock}" />
</Style>

<Style Selector=":is(Control).Headline3">
<Setter Property="Theme" Value="{StaticResource Headline3TextBlock}" />
</Style>

<Style Selector=":is(Control).Headline2">
<Setter Property="Theme" Value="{StaticResource Headline2TextBlock}" />
</Style>

<Style Selector=":is(Control).Headline1">
<Setter Property="Theme" Value="{StaticResource Headline1TextBlock}" />
</Style>

<Style Selector=":is(Control).Link">
<Setter Property="Theme" Value="{StaticResource LinkTextBlock}" />
</Style>

<Style Selector=":is(Control).caption">
<Setter Property="Theme" Value="{StaticResource CaptionTextBlock}" />
</Style>

<Style Selector=":is(Control).body1">
<Setter Property="Theme" Value="{StaticResource Body1TextBlock}" />
</Style>

<Style Selector=":is(Control).body2">
<Setter Property="Theme" Value="{StaticResource Body2TextBlock}" />
</Style>

<Style Selector=":is(Control).overline">
<Setter Property="Theme" Value="{StaticResource OverlineTextBlock}" />
</Style>

<Style Selector=":is(Control).subtitle1">
<Setter Property="Theme" Value="{StaticResource Subtitle1TextBlock}" />
</Style>

<Style Selector=":is(Control).subtitle2">
<Setter Property="Theme" Value="{StaticResource Subtitle2TextBlock}" />
</Style>

<Style Selector=":is(Control).headline6">
<Setter Property="Theme" Value="{StaticResource Headline6TextBlock}" />
</Style>

<Style Selector=":is(Control).headline5">
<Setter Property="Theme" Value="{StaticResource Headline5TextBlock}" />
</Style>

<Style Selector=":is(Control).headline4">
<Setter Property="Theme" Value="{StaticResource Headline4TextBlock}" />
</Style>

<Style Selector=":is(Control).headline3">
<Setter Property="Theme" Value="{StaticResource Headline3TextBlock}" />
</Style>

<Style Selector=":is(Control).headline2">
<Setter Property="Theme" Value="{StaticResource Headline2TextBlock}" />
</Style>

<Style Selector=":is(Control).headline1">
<Setter Property="Theme" Value="{StaticResource Headline1TextBlock}" />
</Style>

<Style Selector=":is(Control).link">
<Setter Property="Theme" Value="{StaticResource LinkTextBlock}" />
</Style>
</Styles>
Loading

0 comments on commit c83defe

Please sign in to comment.