mirror of
https://gitcode.com/gh_mirrors/se/Semi.Avalonia
synced 2026-04-14 21:26:34 +08:00
Compare commits
11 Commits
v0.1.0-pre
...
v0.1.0-pre
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17676823ff | ||
|
|
bd0d0f261a | ||
|
|
8cb67d94e2 | ||
|
|
29f7af5bd0 | ||
|
|
39b17f52d1 | ||
|
|
95df47eeba | ||
|
|
2c41fe862b | ||
|
|
593d0d3fa2 | ||
|
|
a425bceddb | ||
|
|
80c6380ce9 | ||
|
|
0ae04b69f5 |
55
.github/workflows/Pack.yml
vendored
Normal file
55
.github/workflows/Pack.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
name: Pack
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "release" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "release" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
nuget_desktop:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Nuget Semi.Avalonia
|
||||||
|
run: dotnet pack ./src/Semi.Avalonia -o ./nugets
|
||||||
|
|
||||||
|
- name: Nuget Semi.Avalonia.DataGrid
|
||||||
|
run: dotnet pack ./src/Semi.Avalonia.DataGrid -o ./nugets
|
||||||
|
|
||||||
|
- name: Nuget Semi.Avalonia.ColorPicker
|
||||||
|
run: dotnet pack ./src/Semi.Avalonia.ColorPicker -o ./nugets
|
||||||
|
|
||||||
|
- name: Desktop
|
||||||
|
run: dotnet publish ./demo/Semi.Avalonia.Demo.Desktop -r win-x64 -c Release /p:PublishSingleFile=true /p:IncludeNativeLibrariesForSelfExtract=true --self-contained true
|
||||||
|
|
||||||
|
- name: Upload
|
||||||
|
uses: actions/upload-artifact@v3.1.2
|
||||||
|
with:
|
||||||
|
name: nuget_desktop
|
||||||
|
path: |
|
||||||
|
./nugets
|
||||||
|
./**/publish/*.exe
|
||||||
|
|
||||||
|
android:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: CD Android
|
||||||
|
run: cd ./demo/Semi.Avalonia.Demo.Android
|
||||||
|
|
||||||
|
- name: Restore Dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: dotnet publish ./demo/Semi.Avalonia.Demo.Android -c Release -f net7.0-android --no-restore
|
||||||
|
|
||||||
|
- name: Upload a Build Artifact
|
||||||
|
uses: actions/upload-artifact@v3.1.2
|
||||||
|
with:
|
||||||
|
name: android
|
||||||
|
path: ./**/publish/*Signed.apk
|
||||||
6
.run/SC-Single.run.xml
Normal file
6
.run/SC-Single.run.xml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
<component name="ProjectRunConfigurationManager">
|
||||||
|
<configuration default="false" name="SC-Single" type="DotNetFolderPublish" factoryName="Publish to folder">
|
||||||
|
<riderPublish configuration="Release" include_native_libs_for_self_extract="true" platform="Any CPU" produce_single_file="true" runtime="win-x64" self_contained="true" target_folder="$PROJECT_DIR$/demo/Semi.Avalonia.Demo.Desktop/bin/Release/net7.0/win-x64/publish" target_framework="net7.0" uuid_high="3088527218258560748" uuid_low="-8649338673481336678" />
|
||||||
|
<method v="2" />
|
||||||
|
</configuration>
|
||||||
|
</component>
|
||||||
@@ -11,7 +11,7 @@ Avalonia Theme inspired by Semi Design
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
```bash
|
```bash
|
||||||
dotnet add package Semi.Avalonia --version 0.1.0-preview6.1
|
dotnet add package Semi.Avalonia --version 0.1.0-preview7
|
||||||
```
|
```
|
||||||
Include Semi Design Styles in application:
|
Include Semi Design Styles in application:
|
||||||
|
|
||||||
@@ -25,8 +25,8 @@ That's all.
|
|||||||
|
|
||||||
DataGrid and ColorPicker are distributed in separated packages. Please install if you need.
|
DataGrid and ColorPicker are distributed in separated packages. Please install if you need.
|
||||||
```bash
|
```bash
|
||||||
dotnet add package Semi.Avalonia.ColorPicker --version 0.1.0-preview6.1
|
dotnet add package Semi.Avalonia.ColorPicker --version 0.1.0-preview7
|
||||||
dotnet add package Semi.Avalonia.DataGrid --version 0.1.0-preview6.1
|
dotnet add package Semi.Avalonia.DataGrid --version 0.1.0-preview7
|
||||||
```
|
```
|
||||||
```xaml
|
```xaml
|
||||||
<Application.Styles>
|
<Application.Styles>
|
||||||
@@ -47,6 +47,7 @@ https://github.com/irihitech/Semi.Avalonia/releases
|
|||||||
| 0.1.0-preview3 | 11.0-preview4 |
|
| 0.1.0-preview3 | 11.0-preview4 |
|
||||||
| 0.1.0-preview5.x | 11.0-preview5 |
|
| 0.1.0-preview5.x | 11.0-preview5 |
|
||||||
| 0.1.0-preview6.x | 11.0-preview6 |
|
| 0.1.0-preview6.x | 11.0-preview6 |
|
||||||
|
| 0.1.0-preview7.x | 11.0-preview7 |
|
||||||
|
|
||||||
**NOTE**
|
**NOTE**
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<AvaloniaVersion>11.0.0-preview4</AvaloniaVersion>
|
<AvaloniaVersion>11.0.0-preview7</AvaloniaVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -12,8 +12,10 @@
|
|||||||
<RootNamespace>Semi.Avalonia.Demo.Android</RootNamespace>
|
<RootNamespace>Semi.Avalonia.Demo.Android</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<Import Project="../Directory.Build.props" />
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia.Android" Version="11.0.0-preview6" />
|
<PackageReference Include="Avalonia.Android" Version="$(AvaloniaVersion)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -16,13 +16,13 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<RdXmlFile Include="rd.xml"/>
|
<RdXmlFile Include="rd.xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia.Desktop" Version="11.0.0-preview6" />
|
<PackageReference Include="Avalonia.Desktop" Version="$(AvaloniaVersion)" />
|
||||||
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
||||||
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.0-preview6" />
|
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -19,8 +19,8 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia.Browser" Version="11.0.0-preview6" />
|
<PackageReference Include="Avalonia.Browser" Version="$(AvaloniaVersion)" />
|
||||||
<PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.0-preview6" />
|
<PackageReference Include="Avalonia.Themes.Fluent" Version="$(AvaloniaVersion)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using Avalonia;
|
using Avalonia;
|
||||||
|
using Avalonia.Controls;
|
||||||
using Avalonia.Controls.Primitives;
|
using Avalonia.Controls.Primitives;
|
||||||
using Avalonia.Input.Platform;
|
using Avalonia.Input.Platform;
|
||||||
using Avalonia.Media;
|
using Avalonia.Media;
|
||||||
@@ -95,11 +96,12 @@ public class ColorDetailControl: TemplatedControl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Application.Current is { Clipboard: { } c })
|
var toplevel = TopLevel.GetTopLevel(this);
|
||||||
|
if (toplevel?.Clipboard is { } c)
|
||||||
{
|
{
|
||||||
await c.SetTextAsync(text??string.Empty);
|
await c.SetTextAsync(text??string.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
Theme="{DynamicResource TitleTextBlock}" />
|
Theme="{DynamicResource TitleTextBlock}" />
|
||||||
<TabControl Grid.Row="1">
|
<TabControl Grid.Row="1">
|
||||||
<TabItem Header="Light">
|
<TabItem Header="Light">
|
||||||
<DataGrid IsReadOnly="True" Items="{TemplateBinding LightColors}">
|
<DataGrid IsReadOnly="True" ItemsSource="{TemplateBinding LightColors}">
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridTemplateColumn Width="70" Header="Color">
|
<DataGridTemplateColumn Width="70" Header="Color">
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
@@ -77,7 +77,7 @@
|
|||||||
</DataGrid>
|
</DataGrid>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="Dark">
|
<TabItem Header="Dark">
|
||||||
<DataGrid IsReadOnly="True" Items="{TemplateBinding DarkColors}">
|
<DataGrid IsReadOnly="True" ItemsSource="{TemplateBinding DarkColors}">
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridTemplateColumn Width="70" Header="Color">
|
<DataGridTemplateColumn Width="70" Header="Color">
|
||||||
<DataGridTemplateColumn.CellTemplate>
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
</Style>
|
</Style>
|
||||||
</StackPanel.Styles>
|
</StackPanel.Styles>
|
||||||
<AutoCompleteBox
|
<AutoCompleteBox
|
||||||
Items="{Binding States}"
|
ItemsSource="{Binding States}"
|
||||||
ValueMemberBinding="{Binding Name}"
|
ValueMemberBinding="{Binding Name}"
|
||||||
Watermark="Please select a State">
|
Watermark="Please select a State">
|
||||||
<AutoCompleteBox.ItemTemplate>
|
<AutoCompleteBox.ItemTemplate>
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
</AutoCompleteBox>
|
</AutoCompleteBox>
|
||||||
<AutoCompleteBox
|
<AutoCompleteBox
|
||||||
Classes="Large"
|
Classes="Large"
|
||||||
Items="{Binding States}"
|
ItemsSource="{Binding States}"
|
||||||
ValueMemberBinding="{ReflectionBinding Name}">
|
ValueMemberBinding="{ReflectionBinding Name}">
|
||||||
<AutoCompleteBox.ItemTemplate>
|
<AutoCompleteBox.ItemTemplate>
|
||||||
<DataTemplate DataType="local:StateData">
|
<DataTemplate DataType="local:StateData">
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
</AutoCompleteBox>
|
</AutoCompleteBox>
|
||||||
<AutoCompleteBox
|
<AutoCompleteBox
|
||||||
Classes="Small"
|
Classes="Small"
|
||||||
Items="{Binding States}"
|
ItemsSource="{Binding States}"
|
||||||
ValueMemberBinding="{ReflectionBinding Name}">
|
ValueMemberBinding="{ReflectionBinding Name}">
|
||||||
<AutoCompleteBox.ItemTemplate>
|
<AutoCompleteBox.ItemTemplate>
|
||||||
<DataTemplate DataType="local:StateData">
|
<DataTemplate DataType="local:StateData">
|
||||||
@@ -51,7 +51,7 @@
|
|||||||
</AutoCompleteBox>
|
</AutoCompleteBox>
|
||||||
<AutoCompleteBox
|
<AutoCompleteBox
|
||||||
Classes="Bordered"
|
Classes="Bordered"
|
||||||
Items="{Binding States}"
|
ItemsSource="{Binding States}"
|
||||||
ValueMemberBinding="{ReflectionBinding Name}">
|
ValueMemberBinding="{ReflectionBinding Name}">
|
||||||
<AutoCompleteBox.ItemTemplate>
|
<AutoCompleteBox.ItemTemplate>
|
||||||
<DataTemplate DataType="local:StateData">
|
<DataTemplate DataType="local:StateData">
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
</AutoCompleteBox>
|
</AutoCompleteBox>
|
||||||
<AutoCompleteBox
|
<AutoCompleteBox
|
||||||
IsEnabled="False"
|
IsEnabled="False"
|
||||||
Items="{Binding States}"
|
ItemsSource="{Binding States}"
|
||||||
ValueMemberBinding="{ReflectionBinding Name}"
|
ValueMemberBinding="{ReflectionBinding Name}"
|
||||||
Watermark="Disabled">
|
Watermark="Disabled">
|
||||||
<AutoCompleteBox.ItemTemplate>
|
<AutoCompleteBox.ItemTemplate>
|
||||||
|
|||||||
@@ -143,7 +143,7 @@
|
|||||||
Name="dataGridEdit"
|
Name="dataGridEdit"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Margin="12"
|
Margin="12"
|
||||||
Items="{Binding DataGrid3Source}">
|
ItemsSource="{Binding DataGrid3Source}">
|
||||||
<DataGrid.Columns>
|
<DataGrid.Columns>
|
||||||
<DataGridTextColumn
|
<DataGridTextColumn
|
||||||
Width="2*"
|
Width="2*"
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public partial class DataGridDemo : UserControl
|
|||||||
collectionView1.SortDescriptions.Add(dataGridSortDescription);
|
collectionView1.SortDescriptions.Add(dataGridSortDescription);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
dg1.Items = collectionView1;
|
dg1.ItemsSource = collectionView1;
|
||||||
|
|
||||||
var dg2 = this.Get<DataGrid>("dataGridGrouping");
|
var dg2 = this.Get<DataGrid>("dataGridGrouping");
|
||||||
dg2.IsReadOnly = true;
|
dg2.IsReadOnly = true;
|
||||||
@@ -46,7 +46,7 @@ public partial class DataGridDemo : UserControl
|
|||||||
var collectionView2 = new DataGridCollectionView(Countries.All);
|
var collectionView2 = new DataGridCollectionView(Countries.All);
|
||||||
collectionView2.GroupDescriptions.Add(new DataGridPathGroupDescription("Region"));
|
collectionView2.GroupDescriptions.Add(new DataGridPathGroupDescription("Region"));
|
||||||
|
|
||||||
dg2.Items = collectionView2;
|
dg2.ItemsSource = collectionView2;
|
||||||
|
|
||||||
var dg3 = this.Get<DataGrid>("dataGridEdit");
|
var dg3 = this.Get<DataGrid>("dataGridEdit");
|
||||||
dg3.IsReadOnly = false;
|
dg3.IsReadOnly = false;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<Button Content="Hello Avalonia World!" />
|
<Button Content="Hello Avalonia World!" />
|
||||||
</Expander>
|
</Expander>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Grid ColumnDefinitions="* *">
|
<Grid ColumnDefinitions="*, *">
|
||||||
<Expander
|
<Expander
|
||||||
Height="200"
|
Height="200"
|
||||||
ExpandDirection="Right"
|
ExpandDirection="Right"
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
<Grid
|
<Grid
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
ColumnDefinitions="* * * * *"
|
ColumnDefinitions="*, *, *, *, *"
|
||||||
RowDefinitions="* * * * *">
|
RowDefinitions="*, *, *, *, *">
|
||||||
<Button
|
<Button
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
|
|||||||
@@ -96,8 +96,8 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</CheckBox>
|
</CheckBox>
|
||||||
<CheckBox
|
<CheckBox
|
||||||
IsChecked="True"
|
|
||||||
Margin="4"
|
Margin="4"
|
||||||
|
IsChecked="True"
|
||||||
Theme="{StaticResource CardCheckBox}">
|
Theme="{StaticResource CardCheckBox}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock FontWeight="Bold">Option 2</TextBlock>
|
<TextBlock FontWeight="Bold">Option 2</TextBlock>
|
||||||
@@ -105,9 +105,9 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</CheckBox>
|
</CheckBox>
|
||||||
<CheckBox
|
<CheckBox
|
||||||
IsThreeState="True"
|
|
||||||
IsChecked="{x:Null}"
|
|
||||||
Margin="4"
|
Margin="4"
|
||||||
|
IsChecked="{x:Null}"
|
||||||
|
IsThreeState="True"
|
||||||
Theme="{StaticResource CardCheckBox}">
|
Theme="{StaticResource CardCheckBox}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock FontWeight="Bold">Option 3</TextBlock>
|
<TextBlock FontWeight="Bold">Option 3</TextBlock>
|
||||||
@@ -123,8 +123,8 @@
|
|||||||
</StackPanel>
|
</StackPanel>
|
||||||
</CheckBox>
|
</CheckBox>
|
||||||
<CheckBox
|
<CheckBox
|
||||||
IsChecked="True"
|
|
||||||
Margin="4"
|
Margin="4"
|
||||||
|
IsChecked="True"
|
||||||
Theme="{StaticResource PureCardCheckBox}">
|
Theme="{StaticResource PureCardCheckBox}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock FontWeight="Bold">Option 2</TextBlock>
|
<TextBlock FontWeight="Bold">Option 2</TextBlock>
|
||||||
@@ -133,8 +133,8 @@
|
|||||||
</CheckBox>
|
</CheckBox>
|
||||||
<CheckBox
|
<CheckBox
|
||||||
Margin="4"
|
Margin="4"
|
||||||
IsThreeState="True"
|
|
||||||
IsChecked="{x:Null}"
|
IsChecked="{x:Null}"
|
||||||
|
IsThreeState="True"
|
||||||
Theme="{StaticResource PureCardCheckBox}">
|
Theme="{StaticResource PureCardCheckBox}">
|
||||||
<StackPanel>
|
<StackPanel>
|
||||||
<TextBlock FontWeight="Bold">Option 3</TextBlock>
|
<TextBlock FontWeight="Bold">Option 3</TextBlock>
|
||||||
@@ -179,7 +179,7 @@
|
|||||||
<TimePicker />
|
<TimePicker />
|
||||||
<CalendarDatePicker />
|
<CalendarDatePicker />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Grid ColumnDefinitions="* * *">
|
<Grid ColumnDefinitions="*, *, *">
|
||||||
<Border Theme="{StaticResource CardBorder}">
|
<Border Theme="{StaticResource CardBorder}">
|
||||||
<TextBlock>Card</TextBlock>
|
<TextBlock>Card</TextBlock>
|
||||||
</Border>
|
</Border>
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
Theme="{DynamicResource TitleTextBlock}" />
|
Theme="{DynamicResource TitleTextBlock}" />
|
||||||
<TabControl>
|
<TabControl>
|
||||||
<TabItem Header="Light">
|
<TabItem Header="Light">
|
||||||
<ItemsControl Margin="16" Items="{Binding LightLists}">
|
<ItemsControl Margin="16" ItemsSource="{Binding LightLists}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<WrapPanel Orientation="Horizontal" />
|
<WrapPanel Orientation="Horizontal" />
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate x:DataType="viewModels:ColorListViewModel">
|
<DataTemplate x:DataType="viewModels:ColorListViewModel">
|
||||||
<ItemsControl Margin="4,0" Items="{Binding Color}">
|
<ItemsControl Margin="4,0" ItemsSource="{Binding Color}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate x:DataType="viewModels:ColorItemViewModel">
|
<DataTemplate x:DataType="viewModels:ColorItemViewModel">
|
||||||
<controls:ColorItemControl
|
<controls:ColorItemControl
|
||||||
@@ -87,7 +87,7 @@
|
|||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
</TabItem>
|
</TabItem>
|
||||||
<TabItem Header="Dark">
|
<TabItem Header="Dark">
|
||||||
<ItemsControl Margin="16" Items="{Binding DarkLists}">
|
<ItemsControl Margin="16" ItemsSource="{Binding DarkLists}">
|
||||||
<ItemsControl.ItemsPanel>
|
<ItemsControl.ItemsPanel>
|
||||||
<ItemsPanelTemplate>
|
<ItemsPanelTemplate>
|
||||||
<WrapPanel Orientation="Horizontal" />
|
<WrapPanel Orientation="Horizontal" />
|
||||||
@@ -95,7 +95,7 @@
|
|||||||
</ItemsControl.ItemsPanel>
|
</ItemsControl.ItemsPanel>
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate x:DataType="viewModels:ColorListViewModel">
|
<DataTemplate x:DataType="viewModels:ColorListViewModel">
|
||||||
<ItemsControl Margin="4,0" Items="{Binding Color}">
|
<ItemsControl Margin="4,0" ItemsSource="{Binding Color}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate x:DataType="viewModels:ColorItemViewModel">
|
<DataTemplate x:DataType="viewModels:ColorItemViewModel">
|
||||||
<controls:ColorItemControl
|
<controls:ColorItemControl
|
||||||
@@ -112,7 +112,7 @@
|
|||||||
</TabItem>
|
</TabItem>
|
||||||
</TabControl>
|
</TabControl>
|
||||||
|
|
||||||
<ItemsControl Items="{Binding FunctionalColors}">
|
<ItemsControl ItemsSource="{Binding FunctionalColors}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<!-- -->
|
<!-- -->
|
||||||
|
|||||||
@@ -4,17 +4,17 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<AvaloniaResource Include="Assets\**" />
|
<AvaloniaResource Include="Assets\**" />
|
||||||
<TrimmerRootDescriptor Include="Roots.xml" />
|
<TrimmerRootDescriptor Include="Roots.xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Avalonia" Version="11.0.0-preview6" />
|
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)" />
|
||||||
<PackageReference Include="Avalonia.Controls.DataGrid" Version="11.0.0-preview6" />
|
<PackageReference Include="Avalonia.Controls.DataGrid" Version="$(AvaloniaVersion)" />
|
||||||
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
<!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
|
||||||
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.0-preview6" />
|
<PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="$(AvaloniaVersion)" />
|
||||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
|
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -196,7 +196,7 @@ public class ColorItemViewModel : ObservableObject
|
|||||||
Brush = brush;
|
Brush = brush;
|
||||||
ResourceKey = resourceKey;
|
ResourceKey = resourceKey;
|
||||||
Hex = brush.ToString().ToUpperInvariant();
|
Hex = brush.ToString().ToUpperInvariant();
|
||||||
if ((light && index < 5) || (!light && index > 5))
|
if ((light && index < 5) || (!light && index >= 5))
|
||||||
{
|
{
|
||||||
TextBrush = Brushes.Black;
|
TextBrush = Brushes.Black;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
|
<TargetFrameworks>net6.0;netstandard2.0</TargetFrameworks>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<LangVersion>10</LangVersion>
|
<LangVersion>10</LangVersion>
|
||||||
<Version>0.1.0-preview6.1</Version>
|
<Version>0.1.0-preview7</Version>
|
||||||
<Authors>IRIHI Technology</Authors>
|
<Authors>IRIHI Technology</Authors>
|
||||||
<Description>Avalonia Theme inspired by Semi Design. </Description>
|
<Description>Avalonia Theme inspired by Semi Design. </Description>
|
||||||
<PackageProjectUrl>https://github.com/irihitech/Semi.Avalonia</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/irihitech/Semi.Avalonia</PackageProjectUrl>
|
||||||
<AvaloniaVersion>11.0.0-preview6</AvaloniaVersion>
|
<AvaloniaVersion>11.0.0-preview7</AvaloniaVersion>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -188,7 +188,7 @@
|
|||||||
Margin="12"
|
Margin="12"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
ItemContainerTheme="{DynamicResource ColorViewPaletteListBoxItemTheme}"
|
ItemContainerTheme="{DynamicResource ColorViewPaletteListBoxItemTheme}"
|
||||||
Items="{TemplateBinding PaletteColors}"
|
ItemsSource="{TemplateBinding PaletteColors}"
|
||||||
SelectedItem="{Binding Color, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource DoNothingForNullConverter}, Mode=TwoWay}"
|
SelectedItem="{Binding Color, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource DoNothingForNullConverter}, Mode=TwoWay}"
|
||||||
Theme="{DynamicResource ColorViewPaletteListBoxTheme}"
|
Theme="{DynamicResource ColorViewPaletteListBoxTheme}"
|
||||||
UseLayoutRounding="False">
|
UseLayoutRounding="False">
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
<ControlTheme x:Key="ColorSliderThumbTheme" TargetType="Thumb">
|
<ControlTheme x:Key="ColorSliderThumbTheme" TargetType="Thumb">
|
||||||
<Setter Property="Background" Value="Transparent" />
|
<Setter Property="Background" Value="Transparent" />
|
||||||
|
<Setter Property="UseLayoutRounding" Value="False" />
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ColorSliderDefaultBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource ColorSliderDefaultBorderBrush}" />
|
||||||
<Setter Property="BorderThickness" Value="{DynamicResource ColorSliderThumbBorderBrush}" />
|
<Setter Property="BorderThickness" Value="{DynamicResource ColorSliderThumbBorderBrush}" />
|
||||||
<Setter Property="CornerRadius" Value="999" />
|
<Setter Property="CornerRadius" Value="999" />
|
||||||
@@ -17,9 +18,11 @@
|
|||||||
<Setter.Value>
|
<Setter.Value>
|
||||||
<ControlTemplate>
|
<ControlTemplate>
|
||||||
<Border
|
<Border
|
||||||
|
Margin="1"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
|
BoxShadow="{DynamicResource ColorSliderBoxShadow}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}" />
|
CornerRadius="{TemplateBinding CornerRadius}" />
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter.Value>
|
</Setter.Value>
|
||||||
@@ -39,6 +42,8 @@
|
|||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<Grid Margin="{TemplateBinding Padding}">
|
<Grid Margin="{TemplateBinding Padding}">
|
||||||
<Rectangle
|
<Rectangle
|
||||||
|
Width="{Binding #PART_Track.Bounds.Width}"
|
||||||
|
Height="{Binding #PART_Track.Bounds.Height}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Fill="{DynamicResource ColorControlCheckeredBackgroundBrush}"
|
Fill="{DynamicResource ColorControlCheckeredBackgroundBrush}"
|
||||||
@@ -47,6 +52,8 @@
|
|||||||
RadiusY="{TemplateBinding CornerRadius,
|
RadiusY="{TemplateBinding CornerRadius,
|
||||||
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
|
Width="{Binding #PART_Track.Bounds.Width}"
|
||||||
|
Height="{Binding #PART_Track.Bounds.Height}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Fill="{TemplateBinding Background}"
|
Fill="{TemplateBinding Background}"
|
||||||
@@ -56,6 +63,7 @@
|
|||||||
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
||||||
<Track
|
<Track
|
||||||
Name="PART_Track"
|
Name="PART_Track"
|
||||||
|
Height="12"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsDirectionReversed="{TemplateBinding IsDirectionReversed}"
|
IsDirectionReversed="{TemplateBinding IsDirectionReversed}"
|
||||||
@@ -125,6 +133,8 @@
|
|||||||
CornerRadius="{TemplateBinding CornerRadius}">
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
<Grid Margin="{TemplateBinding Padding}">
|
<Grid Margin="{TemplateBinding Padding}">
|
||||||
<Rectangle
|
<Rectangle
|
||||||
|
Width="{Binding #PART_Track.Bounds.Width}"
|
||||||
|
Height="{Binding #PART_Track.Bounds.Height}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Fill="{DynamicResource ColorControlCheckeredBackgroundBrush}"
|
Fill="{DynamicResource ColorControlCheckeredBackgroundBrush}"
|
||||||
@@ -133,6 +143,8 @@
|
|||||||
RadiusY="{TemplateBinding CornerRadius,
|
RadiusY="{TemplateBinding CornerRadius,
|
||||||
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
|
Width="{Binding #PART_Track.Bounds.Width}"
|
||||||
|
Height="{Binding #PART_Track.Bounds.Height}"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Fill="{TemplateBinding Background}"
|
Fill="{TemplateBinding Background}"
|
||||||
@@ -142,6 +154,7 @@
|
|||||||
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
Converter={StaticResource BottomRightCornerRadiusConverter}}" />
|
||||||
<Track
|
<Track
|
||||||
Name="PART_Track"
|
Name="PART_Track"
|
||||||
|
Width="12"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
IsDirectionReversed="{TemplateBinding IsDirectionReversed}"
|
IsDirectionReversed="{TemplateBinding IsDirectionReversed}"
|
||||||
@@ -212,9 +225,11 @@
|
|||||||
|
|
||||||
<Style Selector="^:dark-selector /template/ Thumb#ColorSliderThumb">
|
<Style Selector="^:dark-selector /template/ Thumb#ColorSliderThumb">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ColorSliderDarkBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource ColorSliderDarkBorderBrush}" />
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource ColorSliderLightBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:light-selector /template/ Thumb#ColorSliderThumb">
|
<Style Selector="^:light-selector /template/ Thumb#ColorSliderThumb">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ColorSliderLightBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource ColorSliderLightBorderBrush}" />
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource ColorSliderDarkBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|||||||
@@ -280,7 +280,7 @@
|
|||||||
Margin="12"
|
Margin="12"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
ItemContainerTheme="{StaticResource ColorViewPaletteListBoxItemTheme}"
|
ItemContainerTheme="{StaticResource ColorViewPaletteListBoxItemTheme}"
|
||||||
Items="{TemplateBinding PaletteColors}"
|
ItemsSource="{TemplateBinding PaletteColors}"
|
||||||
SelectedItem="{Binding Color, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource DoNothingForNullConverter}, Mode=TwoWay}"
|
SelectedItem="{Binding Color, RelativeSource={RelativeSource TemplatedParent}, Converter={StaticResource DoNothingForNullConverter}, Mode=TwoWay}"
|
||||||
Theme="{StaticResource ColorViewPaletteListBoxTheme}"
|
Theme="{StaticResource ColorViewPaletteListBoxTheme}"
|
||||||
UseLayoutRounding="False">
|
UseLayoutRounding="False">
|
||||||
|
|||||||
@@ -32,8 +32,9 @@
|
|||||||
<SolidColorBrush x:Key="ColorSliderDarkBorderBrush" Color="#E4000000" />
|
<SolidColorBrush x:Key="ColorSliderDarkBorderBrush" Color="#E4000000" />
|
||||||
|
|
||||||
<x:Double x:Key="ColorSliderWidth">16</x:Double>
|
<x:Double x:Key="ColorSliderWidth">16</x:Double>
|
||||||
<CornerRadius x:Key="ColorSliderCornerRadius">8</CornerRadius>
|
<CornerRadius x:Key="ColorSliderCornerRadius">6</CornerRadius>
|
||||||
<Thickness x:Key="ColorSliderThumbBorderBrush">2</Thickness>
|
<Thickness x:Key="ColorSliderThumbBorderBrush">2</Thickness>
|
||||||
|
<BoxShadows x:Key="ColorSliderBoxShadow">0 0 2 1 #FFFFFF</BoxShadows>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ColorSpectrumBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="ColorSpectrumBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<Styles.Resources>
|
<Styles.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceInclude x:Key="Default" Source="avares://Semi.Avalonia.ColorPicker/Light.axaml" />
|
<MergeResourceInclude x:Key="Default" Source="avares://Semi.Avalonia.ColorPicker/Light.axaml" />
|
||||||
<ResourceInclude x:Key="Dark" Source="avares://Semi.Avalonia.ColorPicker/Dark.axaml" />
|
<MergeResourceInclude x:Key="Dark" Source="avares://Semi.Avalonia.ColorPicker/Dark.axaml" />
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceInclude Source="avares://Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml" />
|
<ResourceInclude Source="avares://Semi.Avalonia.ColorPicker/Controls/ColorPicker.axaml" />
|
||||||
|
|||||||
@@ -32,8 +32,9 @@
|
|||||||
<SolidColorBrush x:Key="ColorSliderDarkBorderBrush" Color="#E4000000" />
|
<SolidColorBrush x:Key="ColorSliderDarkBorderBrush" Color="#E4000000" />
|
||||||
|
|
||||||
<x:Double x:Key="ColorSliderWidth">16</x:Double>
|
<x:Double x:Key="ColorSliderWidth">16</x:Double>
|
||||||
<CornerRadius x:Key="ColorSliderCornerRadius">8</CornerRadius>
|
<CornerRadius x:Key="ColorSliderCornerRadius">6</CornerRadius>
|
||||||
<Thickness x:Key="ColorSliderThumbBorderBrush">2</Thickness>
|
<Thickness x:Key="ColorSliderThumbBorderBrush">2</Thickness>
|
||||||
|
<BoxShadows x:Key="ColorSliderBoxShadow">0 0 2 1 #1A000000</BoxShadows>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="ColorSpectrumBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="ColorSpectrumBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Title>Semi.Avalonia.ColorPicker</Title>
|
<Title>Semi.Avalonia.ColorPicker</Title>
|
||||||
<PackageReleaseNotes>Upgrade to Avalonia 11.0.0-preview6.</PackageReleaseNotes>
|
<PackageReleaseNotes>Update to Avalonia 11.0.0-preview7</PackageReleaseNotes>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<Styles.Resources>
|
<Styles.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceInclude x:Key="Default" Source="avares://Semi.Avalonia.DataGrid/Light.axaml" />
|
<MergeResourceInclude x:Key="Default" Source="avares://Semi.Avalonia.DataGrid/Light.axaml" />
|
||||||
<ResourceInclude x:Key="Dark" Source="avares://Semi.Avalonia.DataGrid/Dark.axaml" />
|
<MergeResourceInclude x:Key="Dark" Source="avares://Semi.Avalonia.DataGrid/Dark.axaml" />
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceInclude Source="avares://Semi.Avalonia.DataGrid/DataGrid.axaml" />
|
<ResourceInclude Source="avares://Semi.Avalonia.DataGrid/DataGrid.axaml" />
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<Import Project="../Package.props"/>
|
<Import Project="../Package.props" />
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Title>Semi.Avalonia.DataGrid</Title>
|
<Title>Semi.Avalonia.DataGrid</Title>
|
||||||
<PackageReleaseNotes>Upgrade to Avalonia 11.0.0-preview6.</PackageReleaseNotes>
|
<PackageReleaseNotes>Update to Avalonia 11.0.0-preview7</PackageReleaseNotes>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
ItemContainerTheme="{DynamicResource CarouselIndicatorDotListBoxItem}"
|
ItemContainerTheme="{DynamicResource CarouselIndicatorDotListBoxItem}"
|
||||||
ItemsSource="{TemplateBinding Items,
|
ItemsSource="{TemplateBinding ItemsSource,
|
||||||
Converter={StaticResource ItemsConverter}}"
|
Converter={StaticResource ItemsConverter}}"
|
||||||
SelectedIndex="{Binding SelectedIndex, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}">
|
SelectedIndex="{Binding SelectedIndex, RelativeSource={RelativeSource TemplatedParent}, Mode=TwoWay}">
|
||||||
<ListBox.ItemsPanel>
|
<ListBox.ItemsPanel>
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
<ListBox
|
<ListBox
|
||||||
x:Name="PART_QuickLinks"
|
x:Name="PART_QuickLinks"
|
||||||
Focusable="False"
|
Focusable="False"
|
||||||
Items="{Binding QuickLinks}"
|
ItemsSource="{Binding QuickLinks}"
|
||||||
SelectedIndex="{Binding QuickLinksSelectedIndex}">
|
SelectedIndex="{Binding QuickLinksSelectedIndex}">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
Margin="8,0,0,0"
|
Margin="8,0,0,0"
|
||||||
DockPanel.Dock="Right"
|
DockPanel.Dock="Right"
|
||||||
IsVisible="{Binding ShowFilters}"
|
IsVisible="{Binding ShowFilters}"
|
||||||
Items="{Binding Filters}"
|
ItemsSource="{Binding Filters}"
|
||||||
SelectedItem="{Binding SelectedFilter}" />
|
SelectedItem="{Binding SelectedFilter}" />
|
||||||
<TextBox
|
<TextBox
|
||||||
IsVisible="{Binding !SelectingFolder}"
|
IsVisible="{Binding !SelectingFolder}"
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
<ListBox
|
<ListBox
|
||||||
Name="PART_Files"
|
Name="PART_Files"
|
||||||
Items="{Binding Items}"
|
ItemsSource="{Binding Items}"
|
||||||
SelectedItems="{Binding SelectedItems}"
|
SelectedItems="{Binding SelectedItems}"
|
||||||
SelectionMode="{Binding SelectionMode}">
|
SelectionMode="{Binding SelectionMode}">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
|
|||||||
@@ -65,17 +65,15 @@
|
|||||||
<ScrollContentPresenter
|
<ScrollContentPresenter
|
||||||
Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Margin="{TemplateBinding Padding}"
|
Margin="{TemplateBinding Padding}"
|
||||||
CanHorizontallyScroll="{TemplateBinding CanHorizontallyScroll}"
|
HorizontalSnapPointsAlignment="{TemplateBinding HorizontalSnapPointsAlignment}"
|
||||||
CanVerticallyScroll="{TemplateBinding CanVerticallyScroll}"
|
HorizontalSnapPointsType="{TemplateBinding HorizontalSnapPointsType}"
|
||||||
Content="{TemplateBinding Content}"
|
VerticalSnapPointsAlignment="{TemplateBinding VerticalSnapPointsAlignment}"
|
||||||
Extent="{TemplateBinding Extent,
|
VerticalSnapPointsType="{TemplateBinding VerticalSnapPointsType}">
|
||||||
Mode=TwoWay}"
|
|
||||||
Viewport="{TemplateBinding Viewport,
|
|
||||||
Mode=TwoWay}"
|
|
||||||
Offset="{TemplateBinding Offset,
|
|
||||||
Mode=TwoWay}">
|
|
||||||
<ScrollContentPresenter.GestureRecognizers>
|
<ScrollContentPresenter.GestureRecognizers>
|
||||||
<ScrollGestureRecognizer CanHorizontallyScroll="{TemplateBinding CanHorizontallyScroll}" CanVerticallyScroll="{TemplateBinding CanVerticallyScroll}" />
|
<ScrollGestureRecognizer
|
||||||
|
CanHorizontallyScroll="{Binding CanHorizontallyScroll, ElementName=PART_ContentPresenter}"
|
||||||
|
CanVerticallyScroll="{Binding CanVerticallyScroll, ElementName=PART_ContentPresenter}"
|
||||||
|
IsScrollInertiaEnabled="{Binding IsScrollInertiaEnabled, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||||
</ScrollContentPresenter.GestureRecognizers>
|
</ScrollContentPresenter.GestureRecognizers>
|
||||||
</ScrollContentPresenter>
|
</ScrollContentPresenter>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|||||||
@@ -210,48 +210,27 @@
|
|||||||
Name="PART_ContentPresenter"
|
Name="PART_ContentPresenter"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
Background="{TemplateBinding Background}"
|
Background="{TemplateBinding Background}"
|
||||||
CanHorizontallyScroll="{TemplateBinding CanHorizontallyScroll}"
|
HorizontalSnapPointsAlignment="{TemplateBinding HorizontalSnapPointsAlignment}"
|
||||||
CanVerticallyScroll="{TemplateBinding CanVerticallyScroll}"
|
HorizontalSnapPointsType="{TemplateBinding HorizontalSnapPointsType}"
|
||||||
Content="{TemplateBinding Content}"
|
VerticalSnapPointsAlignment="{TemplateBinding VerticalSnapPointsAlignment}"
|
||||||
Extent="{TemplateBinding Extent,
|
VerticalSnapPointsType="{TemplateBinding VerticalSnapPointsType}">
|
||||||
Mode=TwoWay}"
|
|
||||||
IsScrollChainingEnabled="{TemplateBinding IsScrollChainingEnabled}"
|
|
||||||
Viewport="{TemplateBinding Viewport,
|
|
||||||
Mode=TwoWay}"
|
|
||||||
Offset="{TemplateBinding Offset,
|
|
||||||
Mode=TwoWay}">
|
|
||||||
<ScrollContentPresenter.GestureRecognizers>
|
<ScrollContentPresenter.GestureRecognizers>
|
||||||
<ScrollGestureRecognizer CanHorizontallyScroll="{TemplateBinding CanHorizontallyScroll}" CanVerticallyScroll="{TemplateBinding CanVerticallyScroll}" />
|
<ScrollGestureRecognizer
|
||||||
|
CanHorizontallyScroll="{Binding CanHorizontallyScroll, ElementName=PART_ContentPresenter}"
|
||||||
|
CanVerticallyScroll="{Binding CanVerticallyScroll, ElementName=PART_ContentPresenter}"
|
||||||
|
IsScrollInertiaEnabled="{Binding IsScrollInertiaEnabled, RelativeSource={RelativeSource TemplatedParent}}" />
|
||||||
</ScrollContentPresenter.GestureRecognizers>
|
</ScrollContentPresenter.GestureRecognizers>
|
||||||
</ScrollContentPresenter>
|
</ScrollContentPresenter>
|
||||||
<ScrollBar
|
<ScrollBar
|
||||||
Name="horizontalScrollBar"
|
Name="PART_HorizontalScrollBar"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Focusable="False"
|
Orientation="Horizontal" />
|
||||||
LargeChange="{Binding LargeChange.Width, RelativeSource={RelativeSource TemplatedParent}}"
|
|
||||||
Maximum="{TemplateBinding HorizontalScrollBarMaximum}"
|
|
||||||
Opacity="0"
|
|
||||||
Orientation="Horizontal"
|
|
||||||
SmallChange="{Binding SmallChange.Width, RelativeSource={RelativeSource TemplatedParent}}"
|
|
||||||
ViewportSize="{TemplateBinding HorizontalScrollBarViewportSize}"
|
|
||||||
Visibility="{TemplateBinding HorizontalScrollBarVisibility}"
|
|
||||||
Value="{TemplateBinding HorizontalScrollBarValue,
|
|
||||||
Mode=TwoWay}" />
|
|
||||||
<ScrollBar
|
<ScrollBar
|
||||||
Name="verticalScrollBar"
|
Name="PART_VerticalScrollBar"
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Focusable="False"
|
Orientation="Vertical" />
|
||||||
LargeChange="{Binding LargeChange.Height, RelativeSource={RelativeSource TemplatedParent}}"
|
|
||||||
Maximum="{TemplateBinding VerticalScrollBarMaximum}"
|
|
||||||
Opacity="0"
|
|
||||||
Orientation="Vertical"
|
|
||||||
SmallChange="{Binding SmallChange.Height, RelativeSource={RelativeSource TemplatedParent}}"
|
|
||||||
ViewportSize="{TemplateBinding VerticalScrollBarViewportSize}"
|
|
||||||
Visibility="{TemplateBinding VerticalScrollBarVisibility}"
|
|
||||||
Value="{TemplateBinding VerticalScrollBarValue,
|
|
||||||
Mode=TwoWay}" />
|
|
||||||
<Panel
|
<Panel
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
@@ -304,18 +283,7 @@
|
|||||||
</RepeatButton.IsVisible>
|
</RepeatButton.IsVisible>
|
||||||
<Path Data="M 0 0 L 4 4 L 8 0 Z" />
|
<Path Data="M 0 0 L 4 4 L 8 0 Z" />
|
||||||
</RepeatButton>
|
</RepeatButton>
|
||||||
<ScrollContentPresenter
|
<ScrollContentPresenter Name="PART_ContentPresenter" Margin="{TemplateBinding Padding}" />
|
||||||
Name="PART_ContentPresenter"
|
|
||||||
Margin="{TemplateBinding Padding}"
|
|
||||||
CanHorizontallyScroll="{TemplateBinding CanHorizontallyScroll}"
|
|
||||||
CanVerticallyScroll="{TemplateBinding CanVerticallyScroll}"
|
|
||||||
Content="{TemplateBinding Content}"
|
|
||||||
Extent="{TemplateBinding Extent,
|
|
||||||
Mode=TwoWay}"
|
|
||||||
Viewport="{TemplateBinding Viewport,
|
|
||||||
Mode=TwoWay}"
|
|
||||||
Offset="{TemplateBinding Offset,
|
|
||||||
Mode=TwoWay}" />
|
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
|||||||
@@ -110,10 +110,100 @@
|
|||||||
<Setter Property="Foreground" Value="{DynamicResource ButtonSolidForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ButtonSolidForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
<Style Selector="^.Large /template/ Button">
|
||||||
|
<Setter Property="Padding" Value="{DynamicResource ButtonLargePadding}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^.Small /template/ Button">
|
||||||
|
<Setter Property="Padding" Value="{DynamicResource ButtonSmallPadding}" />
|
||||||
|
</Style>
|
||||||
<Style Selector="^:disabled /template/ Button">
|
<Style Selector="^:disabled /template/ Button">
|
||||||
<Setter Property="Background" Value="{DynamicResource ButtonDefaultDisabledBackground}" />
|
<Setter Property="Background" Value="{DynamicResource ButtonDefaultDisabledBackground}" />
|
||||||
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultDisabledForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ButtonDefaultDisabledForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</ControlTheme>
|
</ControlTheme>
|
||||||
|
|
||||||
|
<ControlTheme
|
||||||
|
x:Key="SolidSplitButton"
|
||||||
|
BasedOn="{StaticResource {x:Type SplitButton}}"
|
||||||
|
TargetType="SplitButton">
|
||||||
|
<Setter Property="SplitButton.Foreground" Value="{DynamicResource ButtonSolidForeground}" />
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidPrimaryBackground}" />
|
||||||
|
<Style Selector="^ /template/ Button">
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidPrimaryPointeroverBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidPrimaryPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^.Primary /template/ Button">
|
||||||
|
<Setter Property="SplitButton.Foreground" Value="{DynamicResource ButtonSolidForeground}" />
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidPrimaryBackground}" />
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidPrimaryPointeroverBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidPrimaryPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^.Secondary /template/ Button">
|
||||||
|
<Setter Property="SplitButton.Foreground" Value="{DynamicResource ButtonSolidForeground}" />
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidSecondaryBackground}" />
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidSecondaryPointeroverBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidSecondaryPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^.Tertiary /template/ Button">
|
||||||
|
<Setter Property="SplitButton.Foreground" Value="{DynamicResource ButtonSolidForeground}" />
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidTertiaryBackground}" />
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidTertiaryPointeroverBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidTertiaryPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^.Warning /template/ Button">
|
||||||
|
<Setter Property="SplitButton.Foreground" Value="{DynamicResource ButtonSolidForeground}" />
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidWarningBackground}" />
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidWarningPointeroverBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidWarningPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^.Danger /template/ Button">
|
||||||
|
<Setter Property="SplitButton.Foreground" Value="{DynamicResource ButtonSolidForeground}" />
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidDangerBackground}" />
|
||||||
|
<Style Selector="^:pointerover">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidDangerPointeroverBackground}" />
|
||||||
|
</Style>
|
||||||
|
<Style Selector="^:pressed">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonSolidDangerPressedBackground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^:disabled /template/ Button">
|
||||||
|
<Setter Property="SplitButton.Background" Value="{DynamicResource ButtonDefaultDisabledBackground}" />
|
||||||
|
<Setter Property="SplitButton.Foreground" Value="{DynamicResource ButtonDefaultDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
|
</ControlTheme>
|
||||||
|
|
||||||
|
<ControlTheme
|
||||||
|
x:Key="BorderlessSplitButton"
|
||||||
|
BasedOn="{StaticResource {x:Type SplitButton}}"
|
||||||
|
TargetType="SplitButton">
|
||||||
|
<Setter Property="SplitButton.Background" Value="Transparent" />
|
||||||
|
<Setter Property="SplitButton.BorderBrush" Value="Transparent" />
|
||||||
|
<Style Selector="^:disabled /template/ Button">
|
||||||
|
<Setter Property="SplitButton.BorderBrush" Value="Transparent" />
|
||||||
|
<Setter Property="SplitButton.Background" Value="Transparent" />
|
||||||
|
<Setter Property="SplitButton.Foreground" Value="{DynamicResource ButtonDefaultDisabledForeground}" />
|
||||||
|
</Style>
|
||||||
|
</ControlTheme>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Title>Semi.Avalonia</Title>
|
<Title>Semi.Avalonia</Title>
|
||||||
<PackageReleaseNotes>Upgrade to Avalonia 11.0.0-preview6. </PackageReleaseNotes>
|
<PackageReleaseNotes>Update to Avalonia 11.0.0-preview7</PackageReleaseNotes>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
<Styles.Resources>
|
<Styles.Resources>
|
||||||
<ResourceDictionary>
|
<ResourceDictionary>
|
||||||
<ResourceDictionary.ThemeDictionaries>
|
<ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceInclude x:Key="Default" Source="avares://Semi.Avalonia/Themes/Light/Light.axaml" />
|
<MergeResourceInclude x:Key="Default" Source="avares://Semi.Avalonia/Themes/Light/Light.axaml" />
|
||||||
<ResourceInclude x:Key="Dark" Source="avares://Semi.Avalonia/Themes/Dark/Dark.axaml" />
|
<MergeResourceInclude x:Key="Dark" Source="avares://Semi.Avalonia/Themes/Dark/Dark.axaml" />
|
||||||
</ResourceDictionary.ThemeDictionaries>
|
</ResourceDictionary.ThemeDictionaries>
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceInclude Source="avares://Semi.Avalonia/Controls/Controls.axaml" />
|
<ResourceInclude Source="avares://Semi.Avalonia/Controls/Controls.axaml" />
|
||||||
|
|||||||
Reference in New Issue
Block a user