Browse Source
Merge pull request #11566 from AvaloniaUI/fix-devtools
Fix devtools after recent XAML compiler changes
pull/11574/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with
25 additions and
14 deletions
-
src/Avalonia.Build.Tasks/XamlCompilerTaskExecutor.cs
-
src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorPicker.xaml
-
src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorPreviewer.xaml
-
src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSlider.xaml
-
src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorSpectrum.xaml
-
src/Avalonia.Controls.ColorPicker/Themes/Fluent/ColorView.xaml
-
src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPicker.xaml
-
src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorPreviewer.xaml
-
src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSlider.xaml
-
src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorSpectrum.xaml
-
src/Avalonia.Controls.ColorPicker/Themes/Simple/ColorView.xaml
-
src/Avalonia.Diagnostics/Diagnostics/Controls/FilterTextBox.axaml
-
src/Avalonia.Diagnostics/Diagnostics/Controls/ThicknessEditor.axaml
|
|
|
@ -401,8 +401,7 @@ namespace Avalonia.Build.Tasks |
|
|
|
contextClass, |
|
|
|
document.PopulateMethod, |
|
|
|
document.BuildMethod, |
|
|
|
builder.DefineSubType(compilerConfig.WellKnownTypes.Object, "NamespaceInfo:" + res.Name, |
|
|
|
document.IsPublic), |
|
|
|
builder.DefineSubType(compilerConfig.WellKnownTypes.Object, "NamespaceInfo:" + res.Name, true), |
|
|
|
(closureName, closureBaseType) => |
|
|
|
populateBuilder.DefineSubType(closureBaseType, closureName, false), |
|
|
|
(closureName, returnType, parameterTypes) => |
|
|
|
|
|
|
|
@ -1,7 +1,8 @@ |
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:controls="using:Avalonia.Controls" |
|
|
|
xmlns:primitives="using:Avalonia.Controls.Primitives"> |
|
|
|
xmlns:primitives="using:Avalonia.Controls.Primitives" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<ControlTheme x:Key="{x:Type ColorPicker}" |
|
|
|
TargetType="ColorPicker"> |
|
|
|
|
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:pc="using:Avalonia.Controls.Primitives.Converters"> |
|
|
|
xmlns:pc="using:Avalonia.Controls.Primitives.Converters" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<pc:AccentColorConverter x:Key="AccentColorConverter" /> |
|
|
|
<x:Double x:Key="ColorPreviewerAccentSectionWidth">80</x:Double> |
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<!-- Note that the Slider thumb should generally follow the overall Slider dimensions. |
|
|
|
Therefore, there are not currently separate resources to control it. --> |
|
|
|
|
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:controls="using:Avalonia.Controls"> |
|
|
|
xmlns:controls="using:Avalonia.Controls" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<ControlTheme x:Key="{x:Type ColorSpectrum}" |
|
|
|
TargetType="ColorSpectrum"> |
|
|
|
|
|
|
|
@ -4,7 +4,8 @@ |
|
|
|
xmlns:converters="using:Avalonia.Controls.Converters" |
|
|
|
xmlns:primitives="using:Avalonia.Controls.Primitives" |
|
|
|
xmlns:pc="using:Avalonia.Controls.Primitives.Converters" |
|
|
|
xmlns:globalization="using:System.Globalization"> |
|
|
|
xmlns:globalization="using:System.Globalization" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<pc:ContrastBrushConverter x:Key="ContrastBrushConverter" /> |
|
|
|
<converters:ColorToDisplayNameConverter x:Key="ColorToDisplayNameConverter" /> |
|
|
|
|
|
|
|
@ -1,7 +1,8 @@ |
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:controls="using:Avalonia.Controls" |
|
|
|
xmlns:primitives="using:Avalonia.Controls.Primitives"> |
|
|
|
xmlns:primitives="using:Avalonia.Controls.Primitives" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<ControlTheme x:Key="{x:Type ColorPicker}" |
|
|
|
TargetType="ColorPicker"> |
|
|
|
|
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:pc="using:Avalonia.Controls.Primitives.Converters"> |
|
|
|
xmlns:pc="using:Avalonia.Controls.Primitives.Converters" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<pc:AccentColorConverter x:Key="AccentColorConverter" /> |
|
|
|
<x:Double x:Key="ColorPreviewerAccentSectionWidth">80</x:Double> |
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<!-- Note that the Slider thumb should generally follow the overall Slider dimensions. |
|
|
|
Therefore, there are not currently separate resources to control it. --> |
|
|
|
|
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:controls="using:Avalonia.Controls"> |
|
|
|
xmlns:controls="using:Avalonia.Controls" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<ControlTheme x:Key="{x:Type ColorSpectrum}" |
|
|
|
TargetType="ColorSpectrum"> |
|
|
|
|
|
|
|
@ -4,7 +4,8 @@ |
|
|
|
xmlns:converters="using:Avalonia.Controls.Converters" |
|
|
|
xmlns:primitives="using:Avalonia.Controls.Primitives" |
|
|
|
xmlns:pc="using:Avalonia.Controls.Primitives.Converters" |
|
|
|
xmlns:globalization="using:System.Globalization"> |
|
|
|
xmlns:globalization="using:System.Globalization" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<pc:ContrastBrushConverter x:Key="ContrastBrushConverter" /> |
|
|
|
<converters:ColorToDisplayNameConverter x:Key="ColorToDisplayNameConverter" /> |
|
|
|
|
|
|
|
@ -1,7 +1,8 @@ |
|
|
|
<Styles xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:controls="using:Avalonia.Diagnostics.Controls" |
|
|
|
x:DataType="controls:FilterTextBox"> |
|
|
|
x:DataType="controls:FilterTextBox" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<Design.PreviewWith> |
|
|
|
<Border Padding="10"> |
|
|
|
|
|
|
|
@ -1,6 +1,7 @@ |
|
|
|
<Styles xmlns="https://github.com/avaloniaui" |
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
|
|
xmlns:controls="using:Avalonia.Diagnostics.Controls"> |
|
|
|
xmlns:controls="using:Avalonia.Diagnostics.Controls" |
|
|
|
x:ClassModifier="internal"> |
|
|
|
|
|
|
|
<Styles.Resources> |
|
|
|
<SolidColorBrush x:Key="HighlightBorderBrush" Color="CornflowerBlue" /> |
|
|
|
|