Merge pull request #462 from irihitech/shadow
Add `BoxShadows` Tokens to Palette and Fix Related Issues
This commit is contained in:
commit
b6e458b81c
@ -6,15 +6,15 @@
|
|||||||
x:CompileBindings="True"
|
x:CompileBindings="True"
|
||||||
x:DataType="viewModels:FunctionalColorGroupViewModel">
|
x:DataType="viewModels:FunctionalColorGroupViewModel">
|
||||||
<ControlTheme x:Key="{x:Type controls:FunctionalColorGroupControl}" TargetType="controls:FunctionalColorGroupControl">
|
<ControlTheme x:Key="{x:Type controls:FunctionalColorGroupControl}" TargetType="controls:FunctionalColorGroupControl">
|
||||||
<Setter Property="controls:FunctionalColorGroupControl.Template">
|
<Setter Property="Template">
|
||||||
<ControlTemplate x:DataType="viewModels:FunctionalColorGroupViewModel" TargetType="controls:FunctionalColorGroupControl">
|
<ControlTemplate TargetType="controls:FunctionalColorGroupControl">
|
||||||
<Grid RowDefinitions="Auto, *">
|
<Grid RowDefinitions="Auto, *">
|
||||||
<TextBlock
|
<SelectableTextBlock
|
||||||
Grid.Row="0"
|
Grid.Row="0"
|
||||||
Margin="0,16,0,0"
|
Margin="0,16,0,0"
|
||||||
Classes="H3"
|
Classes="H3"
|
||||||
Text="{TemplateBinding Title}"
|
Text="{TemplateBinding Title}"
|
||||||
Theme="{DynamicResource TitleTextBlock}" />
|
Theme="{DynamicResource TitleSelectableTextBlock}" />
|
||||||
<TabControl Grid.Row="1">
|
<TabControl Grid.Row="1">
|
||||||
<TabItem Header="Light">
|
<TabItem Header="Light">
|
||||||
<DataGrid IsReadOnly="True" ItemsSource="{TemplateBinding LightColors}">
|
<DataGrid IsReadOnly="True" ItemsSource="{TemplateBinding LightColors}">
|
||||||
|
@ -4,33 +4,38 @@ using Avalonia.Controls.Primitives;
|
|||||||
|
|
||||||
namespace Semi.Avalonia.Demo.Controls;
|
namespace Semi.Avalonia.Demo.Controls;
|
||||||
|
|
||||||
public class FunctionalColorGroupControl: TemplatedControl
|
public class FunctionalColorGroupControl : TemplatedControl
|
||||||
{
|
{
|
||||||
public static readonly StyledProperty<string?> TitleProperty = AvaloniaProperty.Register<FunctionalColorGroupControl, string?>(
|
public static readonly StyledProperty<string?> TitleProperty =
|
||||||
nameof(Title));
|
AvaloniaProperty.Register<FunctionalColorGroupControl, string?>(nameof(Title));
|
||||||
|
|
||||||
public string? Title
|
public string? Title
|
||||||
{
|
{
|
||||||
get => GetValue(TitleProperty);
|
get => GetValue(TitleProperty);
|
||||||
set => SetValue(TitleProperty, value);
|
set => SetValue(TitleProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly DirectProperty<FunctionalColorGroupControl, IEnumerable?> LightColorsProperty = AvaloniaProperty.RegisterDirect<FunctionalColorGroupControl, IEnumerable?>(
|
public static readonly DirectProperty<FunctionalColorGroupControl, IEnumerable?> LightColorsProperty =
|
||||||
nameof(LightColors), o => o.LightColors, (o, v) => o.LightColors = v);
|
AvaloniaProperty.RegisterDirect<FunctionalColorGroupControl, IEnumerable?>(nameof(LightColors),
|
||||||
|
o => o.LightColors, (o, v) => o.LightColors = v);
|
||||||
|
|
||||||
private IEnumerable? _lightColors;
|
private IEnumerable? _lightColors;
|
||||||
|
|
||||||
public IEnumerable? LightColors
|
public IEnumerable? LightColors
|
||||||
{
|
{
|
||||||
get => _lightColors;
|
get => _lightColors;
|
||||||
set => SetAndRaise(LightColorsProperty, ref _lightColors, value);
|
set => SetAndRaise(LightColorsProperty, ref _lightColors, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static readonly DirectProperty<FunctionalColorGroupControl, IEnumerable?> DarkColorsProperty = AvaloniaProperty.RegisterDirect<FunctionalColorGroupControl, IEnumerable?>(
|
public static readonly DirectProperty<FunctionalColorGroupControl, IEnumerable?> DarkColorsProperty =
|
||||||
nameof(DarkColors), o => o.DarkColors, (o, v) => o.DarkColors = v);
|
AvaloniaProperty.RegisterDirect<FunctionalColorGroupControl, IEnumerable?>(nameof(DarkColors),
|
||||||
|
o => o.DarkColors, (o, v) => o.DarkColors = v);
|
||||||
|
|
||||||
private IEnumerable? _darkColors;
|
private IEnumerable? _darkColors;
|
||||||
|
|
||||||
public IEnumerable? DarkColors
|
public IEnumerable? DarkColors
|
||||||
{
|
{
|
||||||
get => _darkColors;
|
get => _darkColors;
|
||||||
set => SetAndRaise(DarkColorsProperty, ref _darkColors, value);
|
set => SetAndRaise(DarkColorsProperty, ref _darkColors, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
88
demo/Semi.Avalonia.Demo/Controls/ShadowGroupControl.axaml
Normal file
88
demo/Semi.Avalonia.Demo/Controls/ShadowGroupControl.axaml
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
<ResourceDictionary
|
||||||
|
xmlns="https://github.com/avaloniaui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:controls="clr-namespace:Semi.Avalonia.Demo.Controls"
|
||||||
|
xmlns:viewModels="clr-namespace:Semi.Avalonia.Demo.ViewModels"
|
||||||
|
x:CompileBindings="True"
|
||||||
|
x:DataType="viewModels:ShadowGroupViewModel">
|
||||||
|
<ControlTheme x:Key="{x:Type controls:ShadowGroupControl}" TargetType="controls:ShadowGroupControl">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<ControlTemplate TargetType="controls:ShadowGroupControl">
|
||||||
|
<Grid RowDefinitions="Auto, *">
|
||||||
|
<SelectableTextBlock
|
||||||
|
Grid.Row="0"
|
||||||
|
Margin="0,16,0,0"
|
||||||
|
Classes="H3"
|
||||||
|
Text="{TemplateBinding Title}"
|
||||||
|
Theme="{DynamicResource TitleSelectableTextBlock}" />
|
||||||
|
<TabControl Grid.Row="1">
|
||||||
|
<TabItem Header="Light">
|
||||||
|
<DataGrid IsReadOnly="True" ItemsSource="{TemplateBinding LightShadows}">
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTemplateColumn Width="*" Header="ResourceKey">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate DataType="viewModels:ShadowItemViewModel">
|
||||||
|
<SelectableTextBlock
|
||||||
|
Margin="12,0,12,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Text="{Binding ResourceKey}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTextColumn
|
||||||
|
Width="*"
|
||||||
|
x:DataType="viewModels:ShadowItemViewModel"
|
||||||
|
Binding="{Binding ShadowDisplayName}"
|
||||||
|
CanUserSort="False"
|
||||||
|
Header="Name" />
|
||||||
|
<DataGridTemplateColumn Width="300" Header="BoxShadows">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate DataType="viewModels:ShadowItemViewModel">
|
||||||
|
<SelectableTextBlock
|
||||||
|
Margin="12,0,12,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Text="{Binding BoxShadowValue}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
</DataGrid.Columns>
|
||||||
|
</DataGrid>
|
||||||
|
</TabItem>
|
||||||
|
<TabItem Header="Dark">
|
||||||
|
<DataGrid IsReadOnly="True" ItemsSource="{TemplateBinding DarkShadows}">
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTemplateColumn Width="*" Header="ResourceKey">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate DataType="viewModels:ShadowItemViewModel">
|
||||||
|
<SelectableTextBlock
|
||||||
|
Margin="12,0,12,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Text="{Binding ResourceKey}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTextColumn
|
||||||
|
Width="*"
|
||||||
|
x:DataType="viewModels:ShadowItemViewModel"
|
||||||
|
Binding="{Binding ShadowDisplayName}"
|
||||||
|
CanUserSort="False"
|
||||||
|
Header="Name" />
|
||||||
|
<DataGridTemplateColumn Width="300" Header="BoxShadows">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate DataType="viewModels:ShadowItemViewModel">
|
||||||
|
<SelectableTextBlock
|
||||||
|
Margin="12,0,12,0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Text="{Binding BoxShadowValue}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
</DataGrid.Columns>
|
||||||
|
</DataGrid>
|
||||||
|
</TabItem>
|
||||||
|
</TabControl>
|
||||||
|
</Grid>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter>
|
||||||
|
</ControlTheme>
|
||||||
|
</ResourceDictionary>
|
41
demo/Semi.Avalonia.Demo/Controls/ShadowGroupControl.cs
Normal file
41
demo/Semi.Avalonia.Demo/Controls/ShadowGroupControl.cs
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
using System.Collections;
|
||||||
|
using Avalonia;
|
||||||
|
using Avalonia.Controls.Primitives;
|
||||||
|
|
||||||
|
namespace Semi.Avalonia.Demo.Controls;
|
||||||
|
|
||||||
|
public class ShadowGroupControl : TemplatedControl
|
||||||
|
{
|
||||||
|
public static readonly StyledProperty<string?> TitleProperty =
|
||||||
|
AvaloniaProperty.Register<ShadowGroupControl, string?>(nameof(Title));
|
||||||
|
|
||||||
|
public string? Title
|
||||||
|
{
|
||||||
|
get => GetValue(TitleProperty);
|
||||||
|
set => SetValue(TitleProperty, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerable? _lightShadows;
|
||||||
|
|
||||||
|
public static readonly DirectProperty<ShadowGroupControl, IEnumerable?> LightShadowsProperty =
|
||||||
|
AvaloniaProperty.RegisterDirect<ShadowGroupControl, IEnumerable?>(nameof(LightShadows),
|
||||||
|
o => o.LightShadows, (o, v) => o.LightShadows = v);
|
||||||
|
|
||||||
|
public IEnumerable? LightShadows
|
||||||
|
{
|
||||||
|
get => _lightShadows;
|
||||||
|
set => SetAndRaise(LightShadowsProperty, ref _lightShadows, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private IEnumerable? _darkShadows;
|
||||||
|
|
||||||
|
public static readonly DirectProperty<ShadowGroupControl, IEnumerable?> DarkShadowsProperty =
|
||||||
|
AvaloniaProperty.RegisterDirect<ShadowGroupControl, IEnumerable?>(nameof(DarkShadows),
|
||||||
|
o => o.DarkShadows, (o, v) => o.DarkShadows = v);
|
||||||
|
|
||||||
|
public IEnumerable? DarkShadows
|
||||||
|
{
|
||||||
|
get => _darkShadows;
|
||||||
|
set => SetAndRaise(DarkShadowsProperty, ref _darkShadows, value);
|
||||||
|
}
|
||||||
|
}
|
@ -21,6 +21,7 @@
|
|||||||
<ResourceInclude Source="../Controls/ColorItemControl.axaml" />
|
<ResourceInclude Source="../Controls/ColorItemControl.axaml" />
|
||||||
<ResourceInclude Source="../Controls/ColorDetailControl.axaml" />
|
<ResourceInclude Source="../Controls/ColorDetailControl.axaml" />
|
||||||
<ResourceInclude Source="../Controls/FunctionalColorGroupControl.axaml" />
|
<ResourceInclude Source="../Controls/FunctionalColorGroupControl.axaml" />
|
||||||
|
<ResourceInclude Source="../Controls/ShadowGroupControl.axaml" />
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
@ -115,7 +116,6 @@
|
|||||||
<ItemsControl ItemsSource="{Binding FunctionalColors}">
|
<ItemsControl ItemsSource="{Binding FunctionalColors}">
|
||||||
<ItemsControl.ItemTemplate>
|
<ItemsControl.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<!-- -->
|
|
||||||
<controls:FunctionalColorGroupControl
|
<controls:FunctionalColorGroupControl
|
||||||
Title="{Binding Title}"
|
Title="{Binding Title}"
|
||||||
DarkColors="{Binding DarkColors}"
|
DarkColors="{Binding DarkColors}"
|
||||||
@ -123,6 +123,18 @@
|
|||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
|
|
||||||
|
<ItemsControl ItemsSource="{Binding Shadows}">
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<controls:ShadowGroupControl
|
||||||
|
Title="{Binding Title}"
|
||||||
|
DarkShadows="{Binding DarkShadows}"
|
||||||
|
LightShadows="{Binding LightShadows}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
</SplitView.Content>
|
</SplitView.Content>
|
||||||
|
@ -2,22 +2,22 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using Avalonia.Controls;
|
using Avalonia.Controls;
|
||||||
using Avalonia.Markup.Xaml;
|
|
||||||
using Avalonia.Media;
|
using Avalonia.Media;
|
||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
using CommunityToolkit.Mvvm.Messaging;
|
using CommunityToolkit.Mvvm.Messaging;
|
||||||
|
|
||||||
namespace Semi.Avalonia.Demo.ViewModels;
|
namespace Semi.Avalonia.Demo.ViewModels;
|
||||||
|
|
||||||
public class PaletteDemoViewModel: ObservableObject
|
public class PaletteDemoViewModel : ObservableObject
|
||||||
{
|
{
|
||||||
private readonly string[] _predefinedColorNames =
|
private readonly string[] _predefinedColorNames =
|
||||||
{
|
[
|
||||||
"Red", "Pink", "Purple", "Violet", "Indigo",
|
"Red", "Pink", "Purple", "Violet", "Indigo",
|
||||||
"Blue", "LightBlue", "Cyan", "Teal", "Green",
|
"Blue", "LightBlue", "Cyan", "Teal", "Green",
|
||||||
"LightGreen", "Lime", "Yellow", "Amber", "Orange",
|
"LightGreen", "Lime", "Yellow", "Amber", "Orange",
|
||||||
"Grey"
|
"Grey"
|
||||||
};
|
];
|
||||||
|
|
||||||
private readonly IResourceDictionary? _lightResourceDictionary;
|
private readonly IResourceDictionary? _lightResourceDictionary;
|
||||||
private readonly IResourceDictionary? _darkResourceDictionary;
|
private readonly IResourceDictionary? _darkResourceDictionary;
|
||||||
|
|
||||||
@ -31,23 +31,27 @@ public class PaletteDemoViewModel: ObservableObject
|
|||||||
|
|
||||||
|
|
||||||
private ObservableCollection<ColorListViewModel>? _lightLists;
|
private ObservableCollection<ColorListViewModel>? _lightLists;
|
||||||
|
|
||||||
public ObservableCollection<ColorListViewModel>? LightLists
|
public ObservableCollection<ColorListViewModel>? LightLists
|
||||||
{
|
{
|
||||||
get => _lightLists;
|
get => _lightLists;
|
||||||
set => SetProperty(ref _lightLists, value);
|
set => SetProperty(ref _lightLists, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
private ObservableCollection<ColorListViewModel>? _darkLists;
|
private ObservableCollection<ColorListViewModel>? _darkLists;
|
||||||
|
|
||||||
public ObservableCollection<ColorListViewModel>? DarkLists
|
public ObservableCollection<ColorListViewModel>? DarkLists
|
||||||
{
|
{
|
||||||
get => _darkLists;
|
get => _darkLists;
|
||||||
set => SetProperty(ref _darkLists, value);
|
set => SetProperty(ref _darkLists, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ObservableCollection<FunctionalColorGroupViewModel> FunctionalColors { get; set; } = new();
|
public ObservableCollection<FunctionalColorGroupViewModel> FunctionalColors { get; set; } = [];
|
||||||
|
public ObservableCollection<ShadowGroupViewModel> Shadows { get; set; } = [];
|
||||||
|
|
||||||
public PaletteDemoViewModel()
|
public PaletteDemoViewModel()
|
||||||
{
|
{
|
||||||
_lightResourceDictionary = new Light.Palette();
|
_lightResourceDictionary = new Light.Palette();
|
||||||
_darkResourceDictionary = new Dark.Palette();
|
_darkResourceDictionary = new Dark.Palette();
|
||||||
WeakReferenceMessenger.Default.Register<PaletteDemoViewModel, ColorItemViewModel>(this, OnClickColorItem);
|
WeakReferenceMessenger.Default.Register<PaletteDemoViewModel, ColorItemViewModel>(this, OnClickColorItem);
|
||||||
}
|
}
|
||||||
@ -56,18 +60,20 @@ public class PaletteDemoViewModel: ObservableObject
|
|||||||
{
|
{
|
||||||
InitializePalette();
|
InitializePalette();
|
||||||
InitializeFunctionalColors();
|
InitializeFunctionalColors();
|
||||||
|
InitializeShadows();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void InitializePalette()
|
private void InitializePalette()
|
||||||
{
|
{
|
||||||
LightLists = new ObservableCollection<ColorListViewModel>();
|
LightLists = [];
|
||||||
foreach (var color in _predefinedColorNames)
|
foreach (var color in _predefinedColorNames)
|
||||||
{
|
{
|
||||||
ColorListViewModel s = new ColorListViewModel();
|
ColorListViewModel s = new ColorListViewModel();
|
||||||
s.Initialize(_lightResourceDictionary, color, true);
|
s.Initialize(_lightResourceDictionary, color, true);
|
||||||
LightLists.Add(s);
|
LightLists.Add(s);
|
||||||
}
|
}
|
||||||
DarkLists = new ObservableCollection<ColorListViewModel>();
|
|
||||||
|
DarkLists = [];
|
||||||
foreach (var color in _predefinedColorNames)
|
foreach (var color in _predefinedColorNames)
|
||||||
{
|
{
|
||||||
ColorListViewModel s = new ColorListViewModel();
|
ColorListViewModel s = new ColorListViewModel();
|
||||||
@ -92,13 +98,19 @@ public class PaletteDemoViewModel: ObservableObject
|
|||||||
FunctionalColors.Add(new FunctionalColorGroupViewModel("Border", _lightResourceDictionary, _darkResourceDictionary, ColorTokens.BorderTokens));
|
FunctionalColors.Add(new FunctionalColorGroupViewModel("Border", _lightResourceDictionary, _darkResourceDictionary, ColorTokens.BorderTokens));
|
||||||
FunctionalColors.Add(new FunctionalColorGroupViewModel("Disabled", _lightResourceDictionary, _darkResourceDictionary, ColorTokens.DisabledTokens));
|
FunctionalColors.Add(new FunctionalColorGroupViewModel("Disabled", _lightResourceDictionary, _darkResourceDictionary, ColorTokens.DisabledTokens));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void InitializeShadows()
|
||||||
|
{
|
||||||
|
Shadows.Add(new ShadowGroupViewModel("Shadow", _lightResourceDictionary, _darkResourceDictionary, ColorTokens.ShadowTokens));
|
||||||
|
}
|
||||||
|
|
||||||
private void OnClickColorItem(PaletteDemoViewModel vm, ColorItemViewModel item)
|
private void OnClickColorItem(PaletteDemoViewModel vm, ColorItemViewModel item)
|
||||||
{
|
{
|
||||||
SelectedColor = item;
|
SelectedColor = item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ColorListViewModel: ObservableObject
|
public class ColorListViewModel : ObservableObject
|
||||||
{
|
{
|
||||||
private ObservableCollection<ColorItemViewModel>? _colors;
|
private ObservableCollection<ColorItemViewModel>? _colors;
|
||||||
|
|
||||||
@ -122,10 +134,11 @@ public class ColorListViewModel: ObservableObject
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
SeriesName = color;
|
|
||||||
Color = new ObservableCollection<ColorItemViewModel>();
|
|
||||||
|
|
||||||
for (int i = 0; i < 10; i++)
|
SeriesName = color;
|
||||||
|
Color = [];
|
||||||
|
|
||||||
|
for (var i = 0; i < 10; i++)
|
||||||
{
|
{
|
||||||
var key = "Semi" + color + i;
|
var key = "Semi" + color + i;
|
||||||
if (resourceDictionary.TryGetValue(key, out var value))
|
if (resourceDictionary.TryGetValue(key, out var value))
|
||||||
@ -144,8 +157,8 @@ public class ColorListViewModel: ObservableObject
|
|||||||
|
|
||||||
public class ColorItemViewModel : ObservableObject
|
public class ColorItemViewModel : ObservableObject
|
||||||
{
|
{
|
||||||
|
|
||||||
private IBrush _brush = null!;
|
private IBrush _brush = null!;
|
||||||
|
|
||||||
public IBrush Brush
|
public IBrush Brush
|
||||||
{
|
{
|
||||||
get => _brush;
|
get => _brush;
|
||||||
@ -153,6 +166,7 @@ public class ColorItemViewModel : ObservableObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
private IBrush _textBrush = null!;
|
private IBrush _textBrush = null!;
|
||||||
|
|
||||||
public IBrush TextBrush
|
public IBrush TextBrush
|
||||||
{
|
{
|
||||||
get => _textBrush;
|
get => _textBrush;
|
||||||
@ -160,6 +174,7 @@ public class ColorItemViewModel : ObservableObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
private string _colorDisplayName = null!;
|
private string _colorDisplayName = null!;
|
||||||
|
|
||||||
public string ColorDisplayName
|
public string ColorDisplayName
|
||||||
{
|
{
|
||||||
get => _colorDisplayName;
|
get => _colorDisplayName;
|
||||||
@ -190,7 +205,8 @@ public class ColorItemViewModel : ObservableObject
|
|||||||
set => SetProperty(ref _hex, value);
|
set => SetProperty(ref _hex, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ColorItemViewModel(string colorDisplayName, ISolidColorBrush brush, string resourceKey, bool light, int index)
|
public ColorItemViewModel(string colorDisplayName, ISolidColorBrush brush, string resourceKey, bool light,
|
||||||
|
int index)
|
||||||
{
|
{
|
||||||
ColorDisplayName = colorDisplayName;
|
ColorDisplayName = colorDisplayName;
|
||||||
Brush = brush;
|
Brush = brush;
|
||||||
@ -210,22 +226,22 @@ public class ColorItemViewModel : ObservableObject
|
|||||||
public class FunctionalColorGroupViewModel : ObservableObject
|
public class FunctionalColorGroupViewModel : ObservableObject
|
||||||
{
|
{
|
||||||
private string _title = null!;
|
private string _title = null!;
|
||||||
|
|
||||||
public string Title
|
public string Title
|
||||||
{
|
{
|
||||||
get => _title;
|
get => _title;
|
||||||
set => SetProperty(ref _title, value);
|
set => SetProperty(ref _title, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ObservableCollection<ColorItemViewModel> LightColors { get; set; } = new();
|
public ObservableCollection<ColorItemViewModel> LightColors { get; set; } = [];
|
||||||
public ObservableCollection<ColorItemViewModel> DarkColors { get; set; } = new();
|
public ObservableCollection<ColorItemViewModel> DarkColors { get; set; } = [];
|
||||||
|
|
||||||
public FunctionalColorGroupViewModel(string title, IResourceDictionary? lightDictionary, IResourceDictionary? darkDictionary, IReadOnlyList<Tuple<string, string>> tokens)
|
public FunctionalColorGroupViewModel(string title, IResourceDictionary? lightDictionary,
|
||||||
|
IResourceDictionary? darkDictionary, IReadOnlyList<Tuple<string, string>> tokens)
|
||||||
{
|
{
|
||||||
Title = title;
|
Title = title;
|
||||||
foreach (var token in tokens)
|
foreach (var (key, name) in tokens)
|
||||||
{
|
{
|
||||||
string key = token.Item1;
|
|
||||||
string name = token.Item2;
|
|
||||||
if (lightDictionary?.TryGetValue(key, out var lightValue) ?? false)
|
if (lightDictionary?.TryGetValue(key, out var lightValue) ?? false)
|
||||||
{
|
{
|
||||||
if (lightValue is ISolidColorBrush lightBrush)
|
if (lightValue is ISolidColorBrush lightBrush)
|
||||||
@ -245,125 +261,203 @@ public class FunctionalColorGroupViewModel : ObservableObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public class ShadowItemViewModel : ObservableObject
|
||||||
|
{
|
||||||
|
private string _shadowDisplayName = null!;
|
||||||
|
|
||||||
|
public string ShadowDisplayName
|
||||||
|
{
|
||||||
|
get => _shadowDisplayName;
|
||||||
|
set => SetProperty(ref _shadowDisplayName, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _resourceKey = null!;
|
||||||
|
|
||||||
|
public string ResourceKey
|
||||||
|
{
|
||||||
|
get => _resourceKey;
|
||||||
|
set => SetProperty(ref _resourceKey, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
private string _boxShadowValue = null!;
|
||||||
|
|
||||||
|
public string BoxShadowValue
|
||||||
|
{
|
||||||
|
get => _boxShadowValue;
|
||||||
|
set => SetProperty(ref _boxShadowValue, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ShadowItemViewModel(string shadowDisplayName, BoxShadows boxShadows, string resourceKey)
|
||||||
|
{
|
||||||
|
ShadowDisplayName = shadowDisplayName;
|
||||||
|
ResourceKey = resourceKey;
|
||||||
|
BoxShadowValue = boxShadows.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public class ShadowGroupViewModel : ObservableObject
|
||||||
|
{
|
||||||
|
private string _title = null!;
|
||||||
|
|
||||||
|
public string Title
|
||||||
|
{
|
||||||
|
get => _title;
|
||||||
|
set => SetProperty(ref _title, value);
|
||||||
|
}
|
||||||
|
|
||||||
|
public ObservableCollection<ShadowItemViewModel> LightShadows { get; set; } = [];
|
||||||
|
public ObservableCollection<ShadowItemViewModel> DarkShadows { get; set; } = [];
|
||||||
|
|
||||||
|
|
||||||
|
public ShadowGroupViewModel(string title, IResourceDictionary? lightDictionary,
|
||||||
|
IResourceDictionary? darkDictionary, IReadOnlyList<Tuple<string, string>> tokens)
|
||||||
|
{
|
||||||
|
Title = title;
|
||||||
|
foreach (var (key, name) in tokens)
|
||||||
|
{
|
||||||
|
if (lightDictionary?.TryGetValue(key, out var lightValue) ?? false)
|
||||||
|
{
|
||||||
|
if (lightValue is BoxShadows lightShadow)
|
||||||
|
{
|
||||||
|
LightShadows.Add(new ShadowItemViewModel(name, lightShadow, key));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (darkDictionary?.TryGetValue(key, out var darkValue) ?? false)
|
||||||
|
{
|
||||||
|
if (darkValue is BoxShadows darkShadow)
|
||||||
|
{
|
||||||
|
DarkShadows.Add(new ShadowItemViewModel(name, darkShadow, key));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static class ColorTokens
|
public static class ColorTokens
|
||||||
{
|
{
|
||||||
public static IReadOnlyList<Tuple<string, string>> PrimaryTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> PrimaryTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorPrimary", "Primary"),
|
new("SemiColorPrimary", "Primary"),
|
||||||
new ("SemiColorPrimaryPointerover", "Primary Pointerover"),
|
new("SemiColorPrimaryPointerover", "Primary Pointerover"),
|
||||||
new ("SemiColorPrimaryActive", "Primary Active"),
|
new("SemiColorPrimaryActive", "Primary Active"),
|
||||||
new ("SemiColorPrimaryDisabled", "Primary Disabled"),
|
new("SemiColorPrimaryDisabled", "Primary Disabled"),
|
||||||
new ("SemiColorPrimaryLight", "Primary Light"),
|
new("SemiColorPrimaryLight", "Primary Light"),
|
||||||
new ("SemiColorPrimaryLightPointerover", "Primary Light Pointerover"),
|
new("SemiColorPrimaryLightPointerover", "Primary Light Pointerover"),
|
||||||
new ("SemiColorPrimaryLightActive", "Primary Light Active"),
|
new("SemiColorPrimaryLightActive", "Primary Light Active"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> SecondaryTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> SecondaryTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorSecondary", "Secondary"),
|
new("SemiColorSecondary", "Secondary"),
|
||||||
new ("SemiColorSecondaryPointerover", "Secondary Pointerover"),
|
new("SemiColorSecondaryPointerover", "Secondary Pointerover"),
|
||||||
new ("SemiColorSecondaryActive", "Secondary Active"),
|
new("SemiColorSecondaryActive", "Secondary Active"),
|
||||||
new ("SemiColorSecondaryDisabled", "Secondary Disabled"),
|
new("SemiColorSecondaryDisabled", "Secondary Disabled"),
|
||||||
new ("SemiColorSecondaryLight", "Secondary Light"),
|
new("SemiColorSecondaryLight", "Secondary Light"),
|
||||||
new ("SemiColorSecondaryLightPointerover", "Secondary Light Pointerover"),
|
new("SemiColorSecondaryLightPointerover", "Secondary Light Pointerover"),
|
||||||
new ("SemiColorSecondaryLightActive", "Secondary Light Active"),
|
new("SemiColorSecondaryLightActive", "Secondary Light Active"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> TertiaryTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> TertiaryTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorTertiary", "Tertiary"),
|
new("SemiColorTertiary", "Tertiary"),
|
||||||
new ("SemiColorTertiaryPointerover", "Tertiary Pointerover"),
|
new("SemiColorTertiaryPointerover", "Tertiary Pointerover"),
|
||||||
new ("SemiColorTertiaryActive", "Tertiary Active"),
|
new("SemiColorTertiaryActive", "Tertiary Active"),
|
||||||
new ("SemiColorTertiaryLight", "Tertiary Light"),
|
new("SemiColorTertiaryLight", "Tertiary Light"),
|
||||||
new ("SemiColorTertiaryLightPointerover", "Tertiary Light Pointerover"),
|
new("SemiColorTertiaryLightPointerover", "Tertiary Light Pointerover"),
|
||||||
new ("SemiColorTertiaryLightActive", "Tertiary Light Active"),
|
new("SemiColorTertiaryLightActive", "Tertiary Light Active"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> InformationTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> InformationTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorInformation", "Information"),
|
new("SemiColorInformation", "Information"),
|
||||||
new ("SemiColorInformationPointerover", "Information Pointerover"),
|
new("SemiColorInformationPointerover", "Information Pointerover"),
|
||||||
new ("SemiColorInformationActive", "Information Active"),
|
new("SemiColorInformationActive", "Information Active"),
|
||||||
new ("SemiColorInformationDisabled", "Information Disabled"),
|
new("SemiColorInformationDisabled", "Information Disabled"),
|
||||||
new ("SemiColorInformationLight", "Information Light"),
|
new("SemiColorInformationLight", "Information Light"),
|
||||||
new ("SemiColorInformationLightPointerover", "Information Light Pointerover"),
|
new("SemiColorInformationLightPointerover", "Information Light Pointerover"),
|
||||||
new ("SemiColorInformationLightActive", "Information Light Active"),
|
new("SemiColorInformationLightActive", "Information Light Active"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> SuccessTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> SuccessTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorSuccess", "Success"),
|
new("SemiColorSuccess", "Success"),
|
||||||
new ("SemiColorSuccessPointerover", "Success Pointerover"),
|
new("SemiColorSuccessPointerover", "Success Pointerover"),
|
||||||
new ("SemiColorSuccessActive", "Success Active"),
|
new("SemiColorSuccessActive", "Success Active"),
|
||||||
new ("SemiColorSuccessDisabled", "Success Disabled"),
|
new("SemiColorSuccessDisabled", "Success Disabled"),
|
||||||
new ("SemiColorSuccessLight", "Success Light"),
|
new("SemiColorSuccessLight", "Success Light"),
|
||||||
new ("SemiColorSuccessLightPointerover", "Success Light Pointerover"),
|
new("SemiColorSuccessLightPointerover", "Success Light Pointerover"),
|
||||||
new ("SemiColorSuccessLightActive", "Success Light Active"),
|
new("SemiColorSuccessLightActive", "Success Light Active"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> WarningTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> WarningTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorWarning", "Warning"),
|
new("SemiColorWarning", "Warning"),
|
||||||
new ("SemiColorWarningPointerover", "Warning Pointerover"),
|
new("SemiColorWarningPointerover", "Warning Pointerover"),
|
||||||
new ("SemiColorWarningActive", "Warning Active"),
|
new("SemiColorWarningActive", "Warning Active"),
|
||||||
new ("SemiColorWarningLight", "Warning Light"),
|
new("SemiColorWarningLight", "Warning Light"),
|
||||||
new ("SemiColorWarningLightPointerover", "Warning Light Pointerover"),
|
new("SemiColorWarningLightPointerover", "Warning Light Pointerover"),
|
||||||
new ("SemiColorWarningLightActive", "Warning Light Active"),
|
new("SemiColorWarningLightActive", "Warning Light Active"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> DangerTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> DangerTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorDanger", "Danger"),
|
new("SemiColorDanger", "Danger"),
|
||||||
new ("SemiColorDangerPointerover", "Danger Pointerover"),
|
new("SemiColorDangerPointerover", "Danger Pointerover"),
|
||||||
new ("SemiColorDangerActive", "Danger Active"),
|
new("SemiColorDangerActive", "Danger Active"),
|
||||||
new ("SemiColorDangerLight", "Danger Light"),
|
new("SemiColorDangerLight", "Danger Light"),
|
||||||
new ("SemiColorDangerLightPointerover", "Danger Light Pointerover"),
|
new("SemiColorDangerLightPointerover", "Danger Light Pointerover"),
|
||||||
new ("SemiColorDangerLightActive", "Danger Light Active"),
|
new("SemiColorDangerLightActive", "Danger Light Active"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> TextTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> TextTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorText0", "Text 0"),
|
new("SemiColorText0", "Text 0"),
|
||||||
new ("SemiColorText1", "Text 1"),
|
new("SemiColorText1", "Text 1"),
|
||||||
new ("SemiColorText2", "Text 2"),
|
new("SemiColorText2", "Text 2"),
|
||||||
new ("SemiColorText3", "Text 3"),
|
new("SemiColorText3", "Text 3"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> LinkTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> LinkTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorLink", "Link"),
|
new("SemiColorLink", "Link"),
|
||||||
new ("SemiColorLinkPointerover", "Link Pointerover"),
|
new("SemiColorLinkPointerover", "Link Pointerover"),
|
||||||
new ("SemiColorLinkActive", "Link Active"),
|
new("SemiColorLinkActive", "Link Active"),
|
||||||
new ("SemiColorLinkVisited", "Link Visited"),
|
new("SemiColorLinkVisited", "Link Visited"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> BackgroundTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> BackgroundTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorBackground0", "Background 0"),
|
new("SemiColorBackground0", "Background 0"),
|
||||||
new ("SemiColorBackground1", "Background 1"),
|
new("SemiColorBackground1", "Background 1"),
|
||||||
new ("SemiColorBackground2", "Background 2"),
|
new("SemiColorBackground2", "Background 2"),
|
||||||
new ("SemiColorBackground3", "Background 3"),
|
new("SemiColorBackground3", "Background 3"),
|
||||||
new ("SemiColorBackground4", "Background 4"),
|
new("SemiColorBackground4", "Background 4"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> FillTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> FillTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorFill0", "Fill 0"),
|
new("SemiColorFill0", "Fill 0"),
|
||||||
new ("SemiColorFill1", "Fill 1"),
|
new("SemiColorFill1", "Fill 1"),
|
||||||
new ("SemiColorFill2", "Fill 2"),
|
new("SemiColorFill2", "Fill 2"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> BorderTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> BorderTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorBorder", "Border"),
|
new("SemiColorBorder", "Border"),
|
||||||
};
|
};
|
||||||
|
|
||||||
public static IReadOnlyList<Tuple<string, string>> DisabledTokens { get; } = new List<Tuple<string, string>>
|
public static IReadOnlyList<Tuple<string, string>> DisabledTokens { get; } = new List<Tuple<string, string>>
|
||||||
{
|
{
|
||||||
new ("SemiColorDisabledText", "Disabled Text"),
|
new("SemiColorDisabledText", "Disabled Text"),
|
||||||
new ("SemiColorDisabledBorder", "Disabled Border"),
|
new("SemiColorDisabledBorder", "Disabled Border"),
|
||||||
new ("SemiColorDisabledBackground", "Disabled Background"),
|
new("SemiColorDisabledBackground", "Disabled Background"),
|
||||||
new ("SemiColorDisabledFill", "Disabled Fill"),
|
new("SemiColorDisabledFill", "Disabled Fill"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public static IReadOnlyList<Tuple<string, string>> ShadowTokens { get; } = new List<Tuple<string, string>>
|
||||||
|
{
|
||||||
|
new("SemiColorShadow", "Shadow"),
|
||||||
|
new("SemiShadowElevated", "Shadow Elevated"),
|
||||||
|
};
|
||||||
}
|
}
|
@ -17,5 +17,5 @@
|
|||||||
|
|
||||||
<SolidColorBrush x:Key="ColorSpectrumBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="ColorSpectrumBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
|
|
||||||
<BoxShadows x:Key="ColorPreviewerMainBoxShadow">0 0 14 0 #1AFFFFFF</BoxShadows>
|
<BoxShadows x:Key="ColorPreviewerMainBoxShadow">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -17,5 +17,5 @@
|
|||||||
|
|
||||||
<SolidColorBrush x:Key="ColorSpectrumBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="ColorSpectrumBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
|
|
||||||
<BoxShadows x:Key="ColorPreviewerMainBoxShadow">0 0 14 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="ColorPreviewerMainBoxShadow">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -39,12 +39,16 @@
|
|||||||
BorderThickness="{DynamicResource AutoCompleteBoxPopupBorderThickness}"
|
BorderThickness="{DynamicResource AutoCompleteBoxPopupBorderThickness}"
|
||||||
BoxShadow="{DynamicResource AutoCompleteBoxPopupBoxShadow}"
|
BoxShadow="{DynamicResource AutoCompleteBoxPopupBoxShadow}"
|
||||||
CornerRadius="{DynamicResource AutoCompleteBoxPopupCornerRadius}">
|
CornerRadius="{DynamicResource AutoCompleteBoxPopupCornerRadius}">
|
||||||
<ListBox
|
<Border
|
||||||
Name="PART_SelectingItemsControl"
|
CornerRadius="{DynamicResource AutoCompleteBoxPopupCornerRadius}"
|
||||||
Foreground="{TemplateBinding Foreground}"
|
ClipToBounds="True">
|
||||||
ItemTemplate="{TemplateBinding ItemTemplate}"
|
<ListBox
|
||||||
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
Name="PART_SelectingItemsControl"
|
||||||
ScrollViewer.VerticalScrollBarVisibility="Auto" />
|
Foreground="{TemplateBinding Foreground}"
|
||||||
|
ItemTemplate="{TemplateBinding ItemTemplate}"
|
||||||
|
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
||||||
|
ScrollViewer.VerticalScrollBarVisibility="Auto" />
|
||||||
|
</Border>
|
||||||
</Border>
|
</Border>
|
||||||
</Popup>
|
</Popup>
|
||||||
</Panel>
|
</Panel>
|
||||||
@ -77,12 +81,16 @@
|
|||||||
BorderThickness="{DynamicResource AutoCompleteBoxPopupBorderThickness}"
|
BorderThickness="{DynamicResource AutoCompleteBoxPopupBorderThickness}"
|
||||||
BoxShadow="{DynamicResource AutoCompleteBoxPopupBoxShadow}"
|
BoxShadow="{DynamicResource AutoCompleteBoxPopupBoxShadow}"
|
||||||
CornerRadius="{DynamicResource AutoCompleteBoxPopupCornerRadius}">
|
CornerRadius="{DynamicResource AutoCompleteBoxPopupCornerRadius}">
|
||||||
<ListBox
|
<Border
|
||||||
Name="PART_SelectingItemsControl"
|
CornerRadius="{DynamicResource AutoCompleteBoxPopupCornerRadius}"
|
||||||
Foreground="{TemplateBinding Foreground}"
|
ClipToBounds="True">
|
||||||
ItemTemplate="{TemplateBinding ItemTemplate}"
|
<ListBox
|
||||||
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
Name="PART_SelectingItemsControl"
|
||||||
ScrollViewer.VerticalScrollBarVisibility="Auto" />
|
Foreground="{TemplateBinding Foreground}"
|
||||||
|
ItemTemplate="{TemplateBinding ItemTemplate}"
|
||||||
|
ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
||||||
|
ScrollViewer.VerticalScrollBarVisibility="Auto" />
|
||||||
|
</Border>
|
||||||
</Border>
|
</Border>
|
||||||
</Popup>
|
</Popup>
|
||||||
</Panel>
|
</Panel>
|
||||||
|
@ -117,16 +117,19 @@
|
|||||||
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
BorderBrush="{DynamicResource ComboBoxPopupBorderBrush}"
|
||||||
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
BorderThickness="{DynamicResource ComboBoxPopupBorderThickness}"
|
||||||
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
BoxShadow="{DynamicResource ComboBoxPopupBoxShadow}"
|
||||||
CornerRadius="{DynamicResource ComboBoxPopupBoxCornerRadius}"
|
CornerRadius="{DynamicResource ComboBoxPopupBoxCornerRadius}">
|
||||||
ClipToBounds="True">
|
<Border
|
||||||
<ScrollViewer
|
CornerRadius="{DynamicResource ComboBoxPopupBoxCornerRadius}"
|
||||||
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
ClipToBounds="True">
|
||||||
IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
|
<ScrollViewer
|
||||||
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
|
HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
||||||
<ItemsPresenter
|
IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}"
|
||||||
Name="PART_ItemsPresenter"
|
VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}">
|
||||||
ItemsPanel="{TemplateBinding ItemsPanel}" />
|
<ItemsPresenter
|
||||||
</ScrollViewer>
|
Name="PART_ItemsPresenter"
|
||||||
|
ItemsPanel="{TemplateBinding ItemsPanel}" />
|
||||||
|
</ScrollViewer>
|
||||||
|
</Border>
|
||||||
</Border>
|
</Border>
|
||||||
</Popup>
|
</Popup>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
@ -22,100 +22,107 @@
|
|||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
BoxShadow="{DynamicResource DateTimePickerFlyoutBoxShadow}"
|
BoxShadow="{DynamicResource DateTimePickerFlyoutBoxShadow}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
ClipToBounds="True">
|
<Border
|
||||||
<Grid Name="ContentPanel" RowDefinitions="*,Auto">
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
<Grid Name="PART_PickerContainer">
|
ClipToBounds="True">
|
||||||
<Grid.Styles>
|
<Grid Name="ContentPanel" RowDefinitions="*,Auto">
|
||||||
<Style Selector="DateTimePickerPanel > ListBoxItem">
|
<Grid Name="PART_PickerContainer">
|
||||||
<Setter Property="Theme" Value="{StaticResource DateTimePickerItem}" />
|
<Grid.Styles>
|
||||||
</Style>
|
<Style Selector="DateTimePickerPanel > ListBoxItem">
|
||||||
</Grid.Styles>
|
<Setter Property="Theme" Value="{StaticResource DateTimePickerItem}" />
|
||||||
<!-- Column Definitions set in code, ignore here -->
|
</Style>
|
||||||
<Panel Name="PART_MonthHost">
|
</Grid.Styles>
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
<!-- Column Definitions set in code, ignore here -->
|
||||||
<DateTimePickerPanel
|
<Panel Name="PART_MonthHost">
|
||||||
Name="PART_MonthSelector"
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
||||||
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
<DateTimePickerPanel
|
||||||
PanelType="Month"
|
Name="PART_MonthSelector"
|
||||||
ShouldLoop="True" />
|
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
||||||
</ScrollViewer>
|
PanelType="Month"
|
||||||
<RepeatButton Name="PART_MonthUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
ShouldLoop="True" />
|
||||||
<RepeatButton Name="PART_MonthDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
</ScrollViewer>
|
||||||
</Panel>
|
<RepeatButton Name="PART_MonthUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
||||||
<Panel Name="PART_DayHost">
|
<RepeatButton Name="PART_MonthDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
</Panel>
|
||||||
<DateTimePickerPanel
|
<Panel Name="PART_DayHost">
|
||||||
Name="PART_DaySelector"
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
||||||
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
<DateTimePickerPanel
|
||||||
PanelType="Day"
|
Name="PART_DaySelector"
|
||||||
ShouldLoop="True" />
|
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
||||||
</ScrollViewer>
|
PanelType="Day"
|
||||||
<RepeatButton Name="PART_DayUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
ShouldLoop="True" />
|
||||||
<RepeatButton Name="PART_DayDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
</ScrollViewer>
|
||||||
</Panel>
|
<RepeatButton Name="PART_DayUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
||||||
<Panel Name="PART_YearHost">
|
<RepeatButton Name="PART_DayDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
</Panel>
|
||||||
<DateTimePickerPanel
|
<Panel Name="PART_YearHost">
|
||||||
Name="PART_YearSelector"
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
||||||
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
<DateTimePickerPanel
|
||||||
PanelType="Year"
|
Name="PART_YearSelector"
|
||||||
ShouldLoop="False" />
|
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
||||||
</ScrollViewer>
|
PanelType="Year"
|
||||||
<RepeatButton Name="PART_YearUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
ShouldLoop="False" />
|
||||||
<RepeatButton Name="PART_YearDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
</ScrollViewer>
|
||||||
</Panel>
|
<RepeatButton Name="PART_YearUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
||||||
<Rectangle
|
<RepeatButton Name="PART_YearDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
||||||
Name="PART_FirstSpacer"
|
</Panel>
|
||||||
Grid.Column="1"
|
<Rectangle
|
||||||
Width="1"
|
Name="PART_FirstSpacer"
|
||||||
Margin="0,4"
|
Grid.Column="1"
|
||||||
HorizontalAlignment="Center"
|
Width="1"
|
||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Margin="0,4"
|
||||||
<Rectangle
|
HorizontalAlignment="Center"
|
||||||
Name="PART_SecondSpacer"
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
Grid.Column="3"
|
<Rectangle
|
||||||
Width="1"
|
Name="PART_SecondSpacer"
|
||||||
Margin="0,4"
|
Grid.Column="3"
|
||||||
HorizontalAlignment="Center"
|
Width="1"
|
||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Margin="0,4"
|
||||||
</Grid>
|
HorizontalAlignment="Center"
|
||||||
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
<Grid
|
<Grid
|
||||||
Name="AcceptDismissGrid"
|
Name="AcceptDismissGrid"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
ColumnDefinitions="*,*">
|
ColumnDefinitions="*,Auto,*">
|
||||||
<Button
|
<Button
|
||||||
Name="PART_AcceptButton"
|
Name="PART_AcceptButton"
|
||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
HorizontalAlignment="Stretch"
|
HorizontalAlignment="Stretch"
|
||||||
VerticalAlignment="Stretch"
|
VerticalAlignment="Stretch"
|
||||||
Theme="{StaticResource DateTimePickerButton}">
|
Theme="{StaticResource DateTimePickerButton}">
|
||||||
<PathIcon
|
<PathIcon
|
||||||
Width="12"
|
Width="12"
|
||||||
Height="12"
|
Height="12"
|
||||||
Data="{DynamicResource DateTimePickerAcceptGlyph}" />
|
Data="{DynamicResource DateTimePickerAcceptGlyph}" />
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Rectangle
|
||||||
Name="PART_DismissButton"
|
Grid.Column="1"
|
||||||
Grid.Column="1"
|
Width="1"
|
||||||
HorizontalAlignment="Stretch"
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
VerticalAlignment="Stretch"
|
<Button
|
||||||
FontSize="16"
|
Name="PART_DismissButton"
|
||||||
Theme="{StaticResource DateTimePickerButton}">
|
Grid.Column="2"
|
||||||
<PathIcon
|
HorizontalAlignment="Stretch"
|
||||||
Width="12"
|
VerticalAlignment="Stretch"
|
||||||
Height="12"
|
FontSize="16"
|
||||||
Data="{DynamicResource DateTimePickerDismissGlyph}" />
|
Theme="{StaticResource DateTimePickerButton}">
|
||||||
</Button>
|
<PathIcon
|
||||||
<Rectangle
|
Width="12"
|
||||||
Grid.Column="0"
|
Height="12"
|
||||||
Grid.ColumnSpan="2"
|
Data="{DynamicResource DateTimePickerDismissGlyph}" />
|
||||||
Height="1"
|
</Button>
|
||||||
VerticalAlignment="Top"
|
<Rectangle
|
||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Grid.Column="0"
|
||||||
|
Grid.ColumnSpan="3"
|
||||||
|
Height="1"
|
||||||
|
VerticalAlignment="Top"
|
||||||
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Border>
|
||||||
</Border>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
BoxShadow="{DynamicResource MenuFlyoutBorderBoxShadow}"
|
BoxShadow="{DynamicResource MenuFlyoutBorderBoxShadow}"
|
||||||
ClipToBounds="True"
|
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
UseLayoutRounding="False">
|
UseLayoutRounding="False">
|
||||||
<ScrollViewer
|
<ScrollViewer
|
||||||
|
@ -22,122 +22,129 @@
|
|||||||
BorderBrush="{TemplateBinding BorderBrush}"
|
BorderBrush="{TemplateBinding BorderBrush}"
|
||||||
BorderThickness="{TemplateBinding BorderThickness}"
|
BorderThickness="{TemplateBinding BorderThickness}"
|
||||||
BoxShadow="{DynamicResource DateTimePickerFlyoutBoxShadow}"
|
BoxShadow="{DynamicResource DateTimePickerFlyoutBoxShadow}"
|
||||||
CornerRadius="{TemplateBinding CornerRadius}"
|
CornerRadius="{TemplateBinding CornerRadius}">
|
||||||
ClipToBounds="True">
|
<Border
|
||||||
<Grid Name="ContentPanel" RowDefinitions="*,Auto">
|
CornerRadius="{TemplateBinding CornerRadius}"
|
||||||
<Grid Name="PART_PickerContainer">
|
ClipToBounds="True">
|
||||||
<Grid.Styles>
|
<Grid Name="ContentPanel" RowDefinitions="*,Auto">
|
||||||
<Style Selector="DateTimePickerPanel > ListBoxItem">
|
<Grid Name="PART_PickerContainer">
|
||||||
<Setter Property="Theme" Value="{StaticResource DateTimePickerItem}" />
|
<Grid.Styles>
|
||||||
</Style>
|
<Style Selector="DateTimePickerPanel > ListBoxItem">
|
||||||
</Grid.Styles>
|
<Setter Property="Theme" Value="{StaticResource DateTimePickerItem}" />
|
||||||
<!-- Ignore col defs here, set in code -->
|
</Style>
|
||||||
<Panel Name="PART_HourHost" Grid.Column="0">
|
</Grid.Styles>
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
<!-- Ignore col defs here, set in code -->
|
||||||
<DateTimePickerPanel
|
<Panel Name="PART_HourHost" Grid.Column="0">
|
||||||
Name="PART_HourSelector"
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
||||||
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
<DateTimePickerPanel
|
||||||
PanelType="Hour"
|
Name="PART_HourSelector"
|
||||||
ShouldLoop="True" />
|
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
||||||
</ScrollViewer>
|
PanelType="Hour"
|
||||||
<RepeatButton Name="PART_HourUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
ShouldLoop="True" />
|
||||||
<RepeatButton Name="PART_HourDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
</ScrollViewer>
|
||||||
</Panel>
|
<RepeatButton Name="PART_HourUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
||||||
|
<RepeatButton Name="PART_HourDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
||||||
|
</Panel>
|
||||||
|
|
||||||
<Panel Name="PART_MinuteHost" Grid.Column="2">
|
<Panel Name="PART_MinuteHost" Grid.Column="2">
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
||||||
<DateTimePickerPanel
|
<DateTimePickerPanel
|
||||||
Name="PART_MinuteSelector"
|
Name="PART_MinuteSelector"
|
||||||
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
||||||
PanelType="Minute"
|
PanelType="Minute"
|
||||||
ShouldLoop="True" />
|
ShouldLoop="True" />
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
<RepeatButton Name="PART_MinuteUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
<RepeatButton Name="PART_MinuteUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
||||||
<RepeatButton Name="PART_MinuteDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
<RepeatButton Name="PART_MinuteDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<Panel Name="PART_SecondHost" Grid.Column="4">
|
<Panel Name="PART_SecondHost" Grid.Column="4">
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
||||||
<DateTimePickerPanel
|
<DateTimePickerPanel
|
||||||
Name="PART_SecondSelector"
|
Name="PART_SecondSelector"
|
||||||
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
||||||
PanelType="Second"
|
PanelType="Second"
|
||||||
ShouldLoop="True" />
|
ShouldLoop="True" />
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
<RepeatButton Name="PART_SecondUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
<RepeatButton Name="PART_SecondUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
||||||
<RepeatButton Name="PART_SecondDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
<RepeatButton Name="PART_SecondDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<Panel Name="PART_PeriodHost" Grid.Column="6">
|
<Panel Name="PART_PeriodHost" Grid.Column="6">
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Hidden">
|
||||||
<DateTimePickerPanel
|
<DateTimePickerPanel
|
||||||
Name="PART_PeriodSelector"
|
Name="PART_PeriodSelector"
|
||||||
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
ItemHeight="{DynamicResource DateTimePickerListBoxItemHeight}"
|
||||||
PanelType="TimePeriod"
|
PanelType="TimePeriod"
|
||||||
ShouldLoop="False" />
|
ShouldLoop="False" />
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
<RepeatButton Name="PART_PeriodUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
<RepeatButton Name="PART_PeriodUpButton" Theme="{StaticResource DateTimePickerUpButton}" />
|
||||||
<RepeatButton Name="PART_PeriodDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
<RepeatButton Name="PART_PeriodDownButton" Theme="{StaticResource DateTimePickerDownButton}" />
|
||||||
</Panel>
|
</Panel>
|
||||||
|
|
||||||
<Rectangle
|
<Rectangle
|
||||||
Name="PART_FirstSpacer"
|
Name="PART_FirstSpacer"
|
||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Width="1"
|
Width="1"
|
||||||
Margin="0,4"
|
Margin="0,4"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
Name="PART_SecondSpacer"
|
Name="PART_SecondSpacer"
|
||||||
Grid.Column="3"
|
Grid.Column="3"
|
||||||
Width="1"
|
Width="1"
|
||||||
Margin="0,4"
|
Margin="0,4"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
<Rectangle
|
<Rectangle
|
||||||
Name="PART_ThirdSpacer"
|
Name="PART_ThirdSpacer"
|
||||||
Grid.Column="5"
|
Grid.Column="5"
|
||||||
Width="1"
|
Width="1"
|
||||||
Margin="0,4"
|
Margin="0,4"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid
|
||||||
|
Name="AcceptDismissGrid"
|
||||||
|
Grid.Row="1"
|
||||||
|
ColumnDefinitions="*,Auto,*">
|
||||||
|
<Button
|
||||||
|
Name="PART_AcceptButton"
|
||||||
|
Grid.Column="0"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
|
Theme="{StaticResource DateTimePickerButton}">
|
||||||
|
<PathIcon
|
||||||
|
Width="12"
|
||||||
|
Height="12"
|
||||||
|
Data="{DynamicResource DateTimePickerAcceptGlyph}" />
|
||||||
|
</Button>
|
||||||
|
<Rectangle
|
||||||
|
Grid.Column="1"
|
||||||
|
Width="1"
|
||||||
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
<Button
|
||||||
|
Name="PART_DismissButton"
|
||||||
|
Grid.Column="2"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
VerticalAlignment="Stretch"
|
||||||
|
FontSize="16"
|
||||||
|
Theme="{StaticResource DateTimePickerButton}">
|
||||||
|
<PathIcon
|
||||||
|
Width="12"
|
||||||
|
Height="12"
|
||||||
|
Data="{DynamicResource DateTimePickerDismissGlyph}" />
|
||||||
|
</Button>
|
||||||
|
<Rectangle
|
||||||
|
Grid.Column="0"
|
||||||
|
Grid.ColumnSpan="3"
|
||||||
|
Height="1"
|
||||||
|
VerticalAlignment="Top"
|
||||||
|
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
||||||
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
</Border>
|
||||||
<Grid
|
|
||||||
Name="AcceptDismissGrid"
|
|
||||||
Grid.Row="1"
|
|
||||||
ColumnDefinitions="*,*">
|
|
||||||
<Button
|
|
||||||
Name="PART_AcceptButton"
|
|
||||||
Grid.Column="0"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
VerticalAlignment="Stretch"
|
|
||||||
Theme="{StaticResource DateTimePickerButton}">
|
|
||||||
<PathIcon
|
|
||||||
Width="12"
|
|
||||||
Height="12"
|
|
||||||
Data="{DynamicResource DateTimePickerAcceptGlyph}" />
|
|
||||||
</Button>
|
|
||||||
<Button
|
|
||||||
Name="PART_DismissButton"
|
|
||||||
Grid.Column="1"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
VerticalAlignment="Stretch"
|
|
||||||
FontSize="16"
|
|
||||||
Theme="{StaticResource DateTimePickerButton}">
|
|
||||||
<PathIcon
|
|
||||||
Width="12"
|
|
||||||
Height="12"
|
|
||||||
Data="{DynamicResource DateTimePickerDismissGlyph}" />
|
|
||||||
</Button>
|
|
||||||
<Rectangle
|
|
||||||
Grid.Column="0"
|
|
||||||
Grid.ColumnSpan="2"
|
|
||||||
Height="1"
|
|
||||||
VerticalAlignment="Top"
|
|
||||||
Fill="{DynamicResource DateTimePickerSeparatorBackground}" />
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
</Border>
|
</Border>
|
||||||
</ControlTemplate>
|
</ControlTemplate>
|
||||||
</Setter>
|
</Setter>
|
||||||
|
@ -74,7 +74,7 @@
|
|||||||
<Border
|
<Border
|
||||||
Name="SwitchKnobIndicator"
|
Name="SwitchKnobIndicator"
|
||||||
Background="White"
|
Background="White"
|
||||||
BoxShadow="0 0 1 1 #222E3238"
|
BoxShadow="{DynamicResource ToggleSwitchIndicatorBoxShadow}"
|
||||||
CornerRadius="{DynamicResource ToggleSwitchIndicatorCornerRadius}" />
|
CornerRadius="{DynamicResource ToggleSwitchIndicatorCornerRadius}" />
|
||||||
<Arc
|
<Arc
|
||||||
Name="SwitchKnobLoadingIndicator"
|
Name="SwitchKnobLoadingIndicator"
|
||||||
@ -319,7 +319,7 @@
|
|||||||
<Border
|
<Border
|
||||||
Name="SwitchKnobIndicator"
|
Name="SwitchKnobIndicator"
|
||||||
Background="White"
|
Background="White"
|
||||||
BoxShadow="0 0 1 1 #222E3238"
|
BoxShadow="{DynamicResource ToggleSwitchIndicatorBoxShadow}"
|
||||||
CornerRadius="{DynamicResource ToggleSwitchIndicatorCornerRadius}" />
|
CornerRadius="{DynamicResource ToggleSwitchIndicatorCornerRadius}" />
|
||||||
<Arc
|
<Arc
|
||||||
Name="SwitchKnobLoadingIndicator"
|
Name="SwitchKnobLoadingIndicator"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<BoxShadows x:Key="AutoCompleteBoxPopupBoxShadow">0 0 8 0 #1AFFFFFF</BoxShadows>
|
<BoxShadows x:Key="AutoCompleteBoxPopupBoxShadow">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
<SolidColorBrush x:Key="AutoCompleteBoxPopupBackground" Color="#43444A" />
|
<SolidColorBrush x:Key="AutoCompleteBoxPopupBackground" Color="#43444A" />
|
||||||
<SolidColorBrush x:Key="AutoCompleteBoxPopupBorderBrush" Opacity="0.08" Color="White" />
|
<SolidColorBrush x:Key="AutoCompleteBoxPopupBorderBrush" Opacity="0.08" Color="White" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -1,5 +1,5 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<BoxShadows x:Key="BorderCardBoxShadow">0 0 14 0 #1AFFFFFF</BoxShadows>
|
<BoxShadows x:Key="BorderCardBoxShadow">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
<SolidColorBrush x:Key="BorderCardBackground" Color="#232429" />
|
<SolidColorBrush x:Key="BorderCardBackground" Color="#232429" />
|
||||||
<SolidColorBrush x:Key="BorderCardBorderBrush" Opacity="0.08" Color="White" />
|
<SolidColorBrush x:Key="BorderCardBorderBrush" Opacity="0.08" Color="White" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -9,7 +9,7 @@
|
|||||||
<SolidColorBrush x:Key="CalendarDatePickerFocusBorderBrush" Color="#54A9FF" />
|
<SolidColorBrush x:Key="CalendarDatePickerFocusBorderBrush" Color="#54A9FF" />
|
||||||
<SolidColorBrush x:Key="CalendarDatePickerDisabledBackground" Opacity="0.04" Color="#E6E8EA" />
|
<SolidColorBrush x:Key="CalendarDatePickerDisabledBackground" Opacity="0.04" Color="#E6E8EA" />
|
||||||
<SolidColorBrush x:Key="CalendarDatePickerDisabledIconForeground" Opacity="0.4" Color="#E6E8EA" />
|
<SolidColorBrush x:Key="CalendarDatePickerDisabledIconForeground" Opacity="0.4" Color="#E6E8EA" />
|
||||||
<BoxShadows x:Key="CalendarDatePickerPopupBoxShadows">0 0 8 0 #1AFFFFFF</BoxShadows>
|
<BoxShadows x:Key="CalendarDatePickerPopupBoxShadows">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBackground" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBorderBrush" Opacity="0.08" Color="White" />
|
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBorderBrush" Opacity="0.08" Color="White" />
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<SolidColorBrush x:Key="ComboBoxDisabledForeground" Opacity="0.35" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="ComboBoxDisabledForeground" Opacity="0.35" Color="#F9F9F9" />
|
||||||
|
|
||||||
<BoxShadows x:Key="ComboBoxPopupBoxShadow">0 0 8 0 #1AFFFFFF</BoxShadows>
|
<BoxShadows x:Key="ComboBoxPopupBoxShadow">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
<SolidColorBrush x:Key="ComboBoxPopupBackground" Color="#43444A" />
|
<SolidColorBrush x:Key="ComboBoxPopupBackground" Color="#43444A" />
|
||||||
<SolidColorBrush x:Key="ComboBoxPopupBorderBrush" Opacity="0.08" Color="White" />
|
<SolidColorBrush x:Key="ComboBoxPopupBorderBrush" Opacity="0.08" Color="White" />
|
||||||
|
|
||||||
|
@ -26,5 +26,5 @@
|
|||||||
<SolidColorBrush x:Key="DateTimePickerButtonDisabledBackground" Opacity="0.04" Color="#E6E8EA" />
|
<SolidColorBrush x:Key="DateTimePickerButtonDisabledBackground" Opacity="0.04" Color="#E6E8EA" />
|
||||||
<SolidColorBrush x:Key="DateTimePickerButtonDisabledIconForeground" Opacity="0.4" Color="#E6E8EA" />
|
<SolidColorBrush x:Key="DateTimePickerButtonDisabledIconForeground" Opacity="0.4" Color="#E6E8EA" />
|
||||||
|
|
||||||
<BoxShadows x:Key="DateTimePickerFlyoutBoxShadow">0 0 8 0 #1AFFFFFF</BoxShadows>
|
<BoxShadows x:Key="DateTimePickerFlyoutBoxShadow">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -2,5 +2,5 @@
|
|||||||
<SolidColorBrush x:Key="FlyoutBackground" Color="#43444A" />
|
<SolidColorBrush x:Key="FlyoutBackground" Color="#43444A" />
|
||||||
<SolidColorBrush x:Key="FlyoutForeground" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="FlyoutForeground" Color="#F9F9F9" />
|
||||||
<SolidColorBrush x:Key="FlyoutBorderBrush" Opacity="0.08" Color="White" />
|
<SolidColorBrush x:Key="FlyoutBorderBrush" Opacity="0.08" Color="White" />
|
||||||
<BoxShadows x:Key="FlyoutBorderBoxShadow">0 0 8 0 #1AFFFFFF</BoxShadows>
|
<BoxShadows x:Key="FlyoutBorderBoxShadow">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -5,7 +5,7 @@
|
|||||||
<!-- MenuFlyout -->
|
<!-- MenuFlyout -->
|
||||||
<SolidColorBrush x:Key="MenuFlyoutBackground" Color="#43444A" />
|
<SolidColorBrush x:Key="MenuFlyoutBackground" Color="#43444A" />
|
||||||
<SolidColorBrush x:Key="MenuFlyoutBorderBrush" Opacity="0.08" Color="White" />
|
<SolidColorBrush x:Key="MenuFlyoutBorderBrush" Opacity="0.08" Color="White" />
|
||||||
<BoxShadows x:Key="MenuFlyoutBorderBoxShadow">0 0 8 0 #1AFFFFFF</BoxShadows>
|
<BoxShadows x:Key="MenuFlyoutBorderBoxShadow">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
|
|
||||||
<!-- MenuItem -->
|
<!-- MenuItem -->
|
||||||
<SolidColorBrush x:Key="MenuItemBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="MenuItemBackground" Color="Transparent" />
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<SolidColorBrush x:Key="NotificationCardSuccessIconForeground" Color="#5DC264" />
|
<SolidColorBrush x:Key="NotificationCardSuccessIconForeground" Color="#5DC264" />
|
||||||
<SolidColorBrush x:Key="NotificationCardWarningIconForeground" Color="#FFAE43" />
|
<SolidColorBrush x:Key="NotificationCardWarningIconForeground" Color="#FFAE43" />
|
||||||
<SolidColorBrush x:Key="NotificationCardErrorIconForeground" Color="#FC725A" />
|
<SolidColorBrush x:Key="NotificationCardErrorIconForeground" Color="#FC725A" />
|
||||||
<BoxShadows x:Key="NotificationCardBoxShadows">inset 0 0 0 1 #1AFFFFFF, 0 4 14 0 #40000000</BoxShadows>
|
<BoxShadows x:Key="NotificationCardBoxShadows">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
<SolidColorBrush x:Key="NotificationCardTitleForeground" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="NotificationCardTitleForeground" Color="#F9F9F9" />
|
||||||
<SolidColorBrush x:Key="NotificationCardMessageForeground" Opacity="0.8" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="NotificationCardMessageForeground" Opacity="0.8" Color="#F9F9F9" />
|
||||||
|
|
||||||
|
@ -421,4 +421,8 @@
|
|||||||
<SolidColorBrush x:Key="SemiColorDisabledBackground" Color="{StaticResource SemiGrey1Color}" />
|
<SolidColorBrush x:Key="SemiColorDisabledBackground" Color="{StaticResource SemiGrey1Color}" />
|
||||||
|
|
||||||
<SolidColorBrush x:Key="SemiColorDisabledFill" Opacity="0.04" Color="{StaticResource SemiGrey8Color}" />
|
<SolidColorBrush x:Key="SemiColorDisabledFill" Opacity="0.04" Color="{StaticResource SemiGrey8Color}" />
|
||||||
|
|
||||||
|
<!-- Shadow -->
|
||||||
|
<BoxShadows x:Key="SemiColorShadow">0 0 #0A000000</BoxShadows>
|
||||||
|
<BoxShadows x:Key="SemiShadowElevated">inset 0 0 0 1 #1AFFFFFF, 0 4 14 #40000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -15,4 +15,6 @@
|
|||||||
|
|
||||||
<SolidColorBrush x:Key="SimpleToggleSwitchContainerUnCheckedForeground" Opacity="0.6" Color="#F9F9F9" />
|
<SolidColorBrush x:Key="SimpleToggleSwitchContainerUnCheckedForeground" Opacity="0.6" Color="#F9F9F9" />
|
||||||
<SolidColorBrush x:Key="SimpleToggleSwitchContainerCheckedForeground" Color="White" />
|
<SolidColorBrush x:Key="SimpleToggleSwitchContainerCheckedForeground" Color="White" />
|
||||||
|
|
||||||
|
<BoxShadows x:Key="ToggleSwitchIndicatorBoxShadow">0 4 6 0 #1A000000, 0 0 1 0 #4D000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -1,5 +1,5 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<BoxShadows x:Key="AutoCompleteBoxPopupBoxShadow">0 0 8 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="AutoCompleteBoxPopupBoxShadow">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
<SolidColorBrush x:Key="AutoCompleteBoxPopupBackground" Color="White" />
|
<SolidColorBrush x:Key="AutoCompleteBoxPopupBackground" Color="White" />
|
||||||
<SolidColorBrush x:Key="AutoCompleteBoxPopupBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="AutoCompleteBoxPopupBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -1,5 +1,5 @@
|
|||||||
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
<ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
||||||
<BoxShadows x:Key="BorderCardBoxShadow">0 0 14 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="BorderCardBoxShadow">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
<SolidColorBrush x:Key="BorderCardBackground" Color="White" />
|
<SolidColorBrush x:Key="BorderCardBackground" Color="White" />
|
||||||
<SolidColorBrush x:Key="BorderCardBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="BorderCardBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -9,7 +9,7 @@
|
|||||||
<SolidColorBrush x:Key="CalendarDatePickerFocusBorderBrush" Color="#0077FA" />
|
<SolidColorBrush x:Key="CalendarDatePickerFocusBorderBrush" Color="#0077FA" />
|
||||||
<SolidColorBrush x:Key="CalendarDatePickerDisabledBackground" Opacity="0.02" Color="#2E3238" />
|
<SolidColorBrush x:Key="CalendarDatePickerDisabledBackground" Opacity="0.02" Color="#2E3238" />
|
||||||
<SolidColorBrush x:Key="CalendarDatePickerDisabledIconForeground" Opacity="0.4" Color="#2E3238" />
|
<SolidColorBrush x:Key="CalendarDatePickerDisabledIconForeground" Opacity="0.4" Color="#2E3238" />
|
||||||
<BoxShadows x:Key="CalendarDatePickerPopupBoxShadows">0 0 8 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="CalendarDatePickerPopupBoxShadows">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
|
|
||||||
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBackground" Color="Transparent" />
|
||||||
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="CalendarDatePickerBorderedDefaultBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<SolidColorBrush x:Key="ComboBoxDisabledForeground" Opacity="0.35" Color="#1C1F23" />
|
<SolidColorBrush x:Key="ComboBoxDisabledForeground" Opacity="0.35" Color="#1C1F23" />
|
||||||
|
|
||||||
<BoxShadows x:Key="ComboBoxPopupBoxShadow">0 0 8 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="ComboBoxPopupBoxShadow">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
<SolidColorBrush x:Key="ComboBoxPopupBackground" Color="White" />
|
<SolidColorBrush x:Key="ComboBoxPopupBackground" Color="White" />
|
||||||
<SolidColorBrush x:Key="ComboBoxPopupBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="ComboBoxPopupBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
|
|
||||||
|
@ -28,5 +28,5 @@
|
|||||||
<SolidColorBrush x:Key="DateTimePickerButtonDisabledBackground" Opacity="0.02" Color="#2E3238" />
|
<SolidColorBrush x:Key="DateTimePickerButtonDisabledBackground" Opacity="0.02" Color="#2E3238" />
|
||||||
<SolidColorBrush x:Key="DateTimePickerButtonDisabledIconForeground" Opacity="0.4" Color="#2E3238" />
|
<SolidColorBrush x:Key="DateTimePickerButtonDisabledIconForeground" Opacity="0.4" Color="#2E3238" />
|
||||||
|
|
||||||
<BoxShadows x:Key="DateTimePickerFlyoutBoxShadow">0 0 8 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="DateTimePickerFlyoutBoxShadow">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -2,5 +2,5 @@
|
|||||||
<SolidColorBrush x:Key="FlyoutBackground" Color="White" />
|
<SolidColorBrush x:Key="FlyoutBackground" Color="White" />
|
||||||
<SolidColorBrush x:Key="FlyoutForeground" Color="#1C1F23" />
|
<SolidColorBrush x:Key="FlyoutForeground" Color="#1C1F23" />
|
||||||
<SolidColorBrush x:Key="FlyoutBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="FlyoutBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
<BoxShadows x:Key="FlyoutBorderBoxShadow">0 0 8 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="FlyoutBorderBoxShadow">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -5,7 +5,7 @@
|
|||||||
<!-- MenuFlyout -->
|
<!-- MenuFlyout -->
|
||||||
<SolidColorBrush x:Key="MenuFlyoutBackground" Color="White" />
|
<SolidColorBrush x:Key="MenuFlyoutBackground" Color="White" />
|
||||||
<SolidColorBrush x:Key="MenuFlyoutBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
<SolidColorBrush x:Key="MenuFlyoutBorderBrush" Opacity="0.08" Color="#1C1F23" />
|
||||||
<BoxShadows x:Key="MenuFlyoutBorderBoxShadow">0 0 8 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="MenuFlyoutBorderBoxShadow">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
|
|
||||||
<!-- MenuItem -->
|
<!-- MenuItem -->
|
||||||
<SolidColorBrush x:Key="MenuItemBackground" Color="Transparent" />
|
<SolidColorBrush x:Key="MenuItemBackground" Color="Transparent" />
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<SolidColorBrush x:Key="NotificationCardSuccessIconForeground" Color="#3BB346" />
|
<SolidColorBrush x:Key="NotificationCardSuccessIconForeground" Color="#3BB346" />
|
||||||
<SolidColorBrush x:Key="NotificationCardWarningIconForeground" Color="#FC8800" />
|
<SolidColorBrush x:Key="NotificationCardWarningIconForeground" Color="#FC8800" />
|
||||||
<SolidColorBrush x:Key="NotificationCardErrorIconForeground" Color="#F93920" />
|
<SolidColorBrush x:Key="NotificationCardErrorIconForeground" Color="#F93920" />
|
||||||
<BoxShadows x:Key="NotificationCardBoxShadows">0 0 1 0 #4A000000, 0 4 14 0 #1A000000</BoxShadows>
|
<BoxShadows x:Key="NotificationCardBoxShadows">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
<SolidColorBrush x:Key="NotificationCardTitleForeground" Color="#1C1F23" />
|
<SolidColorBrush x:Key="NotificationCardTitleForeground" Color="#1C1F23" />
|
||||||
<SolidColorBrush x:Key="NotificationCardMessageForeground" Opacity="0.8" Color="#1C1F23" />
|
<SolidColorBrush x:Key="NotificationCardMessageForeground" Opacity="0.8" Color="#1C1F23" />
|
||||||
|
|
||||||
|
@ -421,4 +421,8 @@
|
|||||||
<SolidColorBrush x:Key="SemiColorDisabledBackground" Color="{StaticResource SemiGrey1Color}" />
|
<SolidColorBrush x:Key="SemiColorDisabledBackground" Color="{StaticResource SemiGrey1Color}" />
|
||||||
<!-- Official Opacity=0.04 -->
|
<!-- Official Opacity=0.04 -->
|
||||||
<SolidColorBrush x:Key="SemiColorDisabledFill" Opacity="0.02" Color="{StaticResource SemiGrey8Color}" />
|
<SolidColorBrush x:Key="SemiColorDisabledFill" Opacity="0.02" Color="{StaticResource SemiGrey8Color}" />
|
||||||
|
|
||||||
|
<!-- Shadow -->
|
||||||
|
<BoxShadows x:Key="SemiColorShadow">0 0 #0A000000</BoxShadows>
|
||||||
|
<BoxShadows x:Key="SemiShadowElevated">0 0 1 #4A000000, 0 4 14 #1A000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -15,4 +15,6 @@
|
|||||||
|
|
||||||
<SolidColorBrush x:Key="SimpleToggleSwitchContainerUnCheckedForeground" Opacity="0.62" Color="#1C1F23" />
|
<SolidColorBrush x:Key="SimpleToggleSwitchContainerUnCheckedForeground" Opacity="0.62" Color="#1C1F23" />
|
||||||
<SolidColorBrush x:Key="SimpleToggleSwitchContainerCheckedForeground" Color="White" />
|
<SolidColorBrush x:Key="SimpleToggleSwitchContainerCheckedForeground" Color="White" />
|
||||||
|
|
||||||
|
<BoxShadows x:Key="ToggleSwitchIndicatorBoxShadow">0 4 6 0 #1A000000, 0 0 1 0 #4D000000</BoxShadows>
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
@ -16,7 +16,7 @@
|
|||||||
<StreamGeometry x:Key="ComboBoxIcon">
|
<StreamGeometry x:Key="ComboBoxIcon">
|
||||||
M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z
|
M4.08045 7.59809C4.66624 7.01231 5.61599 7.01231 6.20177 7.59809L11.8586 13.2549L17.5155 7.59809C18.1013 7.01231 19.051 7.01231 19.6368 7.59809C20.2226 8.18388 20.2226 9.13363 19.6368 9.71941L12.9193 16.4369C12.3335 17.0227 11.3838 17.0227 10.798 16.4369L4.08045 9.71941C3.49467 9.13363 3.49467 8.18388 4.08045 7.59809Z
|
||||||
</StreamGeometry>
|
</StreamGeometry>
|
||||||
<Thickness x:Key="ComboBoxPopupBorderMargin">0 4</Thickness>
|
<Thickness x:Key="ComboBoxPopupBorderMargin">4</Thickness>
|
||||||
|
|
||||||
<x:Double x:Key="ComboBoxDefaultHeight">32</x:Double>
|
<x:Double x:Key="ComboBoxDefaultHeight">32</x:Double>
|
||||||
<x:Double x:Key="ComboBoxSmallHeight">24</x:Double>
|
<x:Double x:Key="ComboBoxSmallHeight">24</x:Double>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user