cronixui 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +582 -0
  3. package/package.json +10 -7
  4. package/packages/react/src/components/Accordion.jsx +50 -0
  5. package/packages/react/src/components/Alert.jsx +62 -0
  6. package/packages/react/src/components/Avatar.jsx +34 -0
  7. package/packages/react/src/components/Badge.jsx +15 -0
  8. package/packages/react/src/components/Breadcrumb.jsx +27 -0
  9. package/packages/react/src/components/Button.jsx +21 -0
  10. package/packages/react/src/components/Card.jsx +23 -0
  11. package/packages/react/src/components/Checkbox.jsx +27 -0
  12. package/packages/react/src/components/CommandPalette.jsx +93 -0
  13. package/packages/react/src/components/Dropdown.jsx +48 -0
  14. package/packages/react/src/components/FileInput.jsx +44 -0
  15. package/packages/react/src/components/Input.jsx +22 -0
  16. package/packages/react/src/components/List.jsx +29 -0
  17. package/packages/react/src/components/Modal.jsx +65 -0
  18. package/packages/react/src/components/Nav.jsx +50 -0
  19. package/packages/react/src/components/Pagination.jsx +81 -0
  20. package/packages/react/src/components/Progress.jsx +23 -0
  21. package/packages/react/src/components/Radio.jsx +50 -0
  22. package/packages/react/src/components/Search.jsx +70 -0
  23. package/packages/react/src/components/Select.jsx +33 -0
  24. package/packages/react/src/components/Skeleton.jsx +15 -0
  25. package/packages/react/src/components/Slider.jsx +29 -0
  26. package/packages/react/src/components/Spinner.jsx +5 -0
  27. package/packages/react/src/components/Stat.jsx +19 -0
  28. package/packages/react/src/components/Table.jsx +48 -0
  29. package/packages/react/src/components/Tabs.jsx +65 -0
  30. package/packages/react/src/components/Tag.jsx +19 -0
  31. package/packages/react/src/components/Textarea.jsx +17 -0
  32. package/packages/react/src/components/Toast.jsx +78 -0
  33. package/packages/react/src/components/Toggle.jsx +34 -0
  34. package/packages/react/src/components/Tooltip.jsx +12 -0
  35. package/packages/react/src/index.js +33 -0
  36. package/packages/win/CronixUI.WinUI/Controls/FlAvatar.cs +39 -0
  37. package/packages/win/CronixUI.WinUI/Controls/FlBadge.cs +21 -0
  38. package/packages/win/CronixUI.WinUI/Controls/FlButton.cs +30 -0
  39. package/packages/win/CronixUI.WinUI/Controls/FlCard.cs +21 -0
  40. package/packages/win/CronixUI.WinUI/Controls/FlCheckBox.cs +12 -0
  41. package/packages/win/CronixUI.WinUI/Controls/FlComboBox.cs +12 -0
  42. package/packages/win/CronixUI.WinUI/Controls/FlModal.cs +34 -0
  43. package/packages/win/CronixUI.WinUI/Controls/FlNavigation.cs +12 -0
  44. package/packages/win/CronixUI.WinUI/Controls/FlProgressBar.cs +21 -0
  45. package/packages/win/CronixUI.WinUI/Controls/FlRadioButton.cs +12 -0
  46. package/packages/win/CronixUI.WinUI/Controls/FlSlider.cs +12 -0
  47. package/packages/win/CronixUI.WinUI/Controls/FlSpinner.cs +21 -0
  48. package/packages/win/CronixUI.WinUI/Controls/FlTabs.cs +12 -0
  49. package/packages/win/CronixUI.WinUI/Controls/FlTextBox.cs +21 -0
  50. package/packages/win/CronixUI.WinUI/Controls/FlToggle.cs +12 -0
  51. package/packages/win/CronixUI.WinUI/Controls/FlTooltip.cs +21 -0
  52. package/packages/win/CronixUI.WinUI/CronixUI.WinUI.csproj +21 -0
  53. package/packages/win/CronixUI.WinUI/CronixUI.WinUI.sln +33 -0
  54. package/packages/win/CronixUI.WinUI/Themes/FlAvatar.xaml +39 -0
  55. package/packages/win/CronixUI.WinUI/Themes/FlBadge.xaml +30 -0
  56. package/packages/win/CronixUI.WinUI/Themes/FlButton.xaml +36 -0
  57. package/packages/win/CronixUI.WinUI/Themes/FlCard.xaml +28 -0
  58. package/packages/win/CronixUI.WinUI/Themes/FlCheckBox.xaml +45 -0
  59. package/packages/win/CronixUI.WinUI/Themes/FlComboBox.xaml +70 -0
  60. package/packages/win/CronixUI.WinUI/Themes/FlModal.xaml +47 -0
  61. package/packages/win/CronixUI.WinUI/Themes/FlProgressBar.xaml +27 -0
  62. package/packages/win/CronixUI.WinUI/Themes/FlRadioButton.xaml +42 -0
  63. package/packages/win/CronixUI.WinUI/Themes/FlSlider.xaml +38 -0
  64. package/packages/win/CronixUI.WinUI/Themes/FlSpinner.xaml +13 -0
  65. package/packages/win/CronixUI.WinUI/Themes/FlTextBox.xaml +39 -0
  66. package/packages/win/CronixUI.WinUI/Themes/FlToggle.xaml +45 -0
  67. package/packages/win/CronixUI.WinUI/Themes/FlTooltip.xaml +31 -0
  68. package/packages/win/CronixUI.WinUI/Themes/Generic.xaml +163 -0
  69. /package/{dist → packages/web/dist}/cronixui.css +0 -0
  70. /package/{dist → packages/web/dist}/cronixui.js +0 -0
  71. /package/{dist → packages/web/dist}/cronixui.min.css +0 -0
  72. /package/{dist → packages/web/dist}/cronixui.min.js +0 -0
  73. /package/{src → packages/web/src}/cronixui.css +0 -0
  74. /package/{src → packages/web/src}/cronixui.js +0 -0
  75. /package/{src → packages/web/src}/variables.css +0 -0
@@ -0,0 +1,12 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlComboBox : ComboBox
7
+ {
8
+ public FlComboBox()
9
+ {
10
+ DefaultStyleKey = typeof(FlComboBox);
11
+ }
12
+ }
@@ -0,0 +1,34 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+ using Microsoft.UI.Xaml.Controls.Primitives;
4
+
5
+ namespace CronixUI.Controls;
6
+
7
+ public sealed class FlModal : ContentControl
8
+ {
9
+ public FlModal()
10
+ {
11
+ DefaultStyleKey = typeof(FlModal);
12
+ }
13
+
14
+ public static readonly DependencyProperty IsOpenProperty =
15
+ DependencyProperty.Register(nameof(IsOpen), typeof(bool), typeof(FlModal), new PropertyMetadata(false));
16
+
17
+ public bool IsOpen
18
+ {
19
+ get => (bool)GetValue(IsOpenProperty);
20
+ set => SetValue(IsOpenProperty, value);
21
+ }
22
+
23
+ public static readonly DependencyProperty TitleProperty =
24
+ DependencyProperty.Register(nameof(Title), typeof(string), typeof(FlModal), new PropertyMetadata(string.Empty));
25
+
26
+ public string Title
27
+ {
28
+ get => (string)GetValue(TitleProperty);
29
+ set => SetValue(TitleProperty, value);
30
+ }
31
+
32
+ public void Open() => IsOpen = true;
33
+ public void Close() => IsOpen = false;
34
+ }
@@ -0,0 +1,12 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlNavigation : NavigationView
7
+ {
8
+ public FlNavigation()
9
+ {
10
+ DefaultStyleKey = typeof(FlNavigation);
11
+ }
12
+ }
@@ -0,0 +1,21 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlProgressBar : ProgressBar
7
+ {
8
+ public FlProgressBar()
9
+ {
10
+ DefaultStyleKey = typeof(FlProgressBar);
11
+ }
12
+
13
+ public static readonly DependencyProperty VariantProperty =
14
+ DependencyProperty.Register(nameof(Variant), typeof(string), typeof(FlProgressBar), new PropertyMetadata("default"));
15
+
16
+ public string Variant
17
+ {
18
+ get => (string)GetValue(VariantProperty);
19
+ set => SetValue(VariantProperty, value);
20
+ }
21
+ }
@@ -0,0 +1,12 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlRadioButton : RadioButton
7
+ {
8
+ public FlRadioButton()
9
+ {
10
+ DefaultStyleKey = typeof(FlRadioButton);
11
+ }
12
+ }
@@ -0,0 +1,12 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlSlider : Slider
7
+ {
8
+ public FlSlider()
9
+ {
10
+ DefaultStyleKey = typeof(FlSlider);
11
+ }
12
+ }
@@ -0,0 +1,21 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlSpinner : ProgressRing
7
+ {
8
+ public FlSpinner()
9
+ {
10
+ DefaultStyleKey = typeof(FlSpinner);
11
+ }
12
+
13
+ public static readonly DependencyProperty SizeProperty =
14
+ DependencyProperty.Register(nameof(Size), typeof(string), typeof(FlSpinner), new PropertyMetadata("md"));
15
+
16
+ public string Size
17
+ {
18
+ get => (string)GetValue(SizeProperty);
19
+ set => SetValue(SizeProperty, value);
20
+ }
21
+ }
@@ -0,0 +1,12 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlTabs : TabView
7
+ {
8
+ public FlTabs()
9
+ {
10
+ DefaultStyleKey = typeof(FlTabs);
11
+ }
12
+ }
@@ -0,0 +1,21 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlTextBox : TextBox
7
+ {
8
+ public FlTextBox()
9
+ {
10
+ DefaultStyleKey = typeof(FlTextBox);
11
+ }
12
+
13
+ public static readonly DependencyProperty ErrorProperty =
14
+ DependencyProperty.Register(nameof(Error), typeof(bool), typeof(FlTextBox), new PropertyMetadata(false));
15
+
16
+ public bool Error
17
+ {
18
+ get => (bool)GetValue(ErrorProperty);
19
+ set => SetValue(ErrorProperty, value);
20
+ }
21
+ }
@@ -0,0 +1,12 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls.Primitives;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlToggle : ToggleButton
7
+ {
8
+ public FlToggle()
9
+ {
10
+ DefaultStyleKey = typeof(FlToggle);
11
+ }
12
+ }
@@ -0,0 +1,21 @@
1
+ using Microsoft.UI.Xaml;
2
+ using Microsoft.UI.Xaml.Controls;
3
+
4
+ namespace CronixUI.Controls;
5
+
6
+ public sealed class FlTooltip : ContentControl
7
+ {
8
+ public FlTooltip()
9
+ {
10
+ DefaultStyleKey = typeof(FlTooltip);
11
+ }
12
+
13
+ public static readonly DependencyProperty TooltipContentProperty =
14
+ DependencyProperty.Register(nameof(TooltipContent), typeof(object), typeof(FlTooltip), new PropertyMetadata(null));
15
+
16
+ public object TooltipContent
17
+ {
18
+ get => GetValue(TooltipContentProperty);
19
+ set => SetValue(TooltipContentProperty, value);
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ <Project Sdk="Microsoft.NET.Sdk">
2
+ <PropertyGroup>
3
+ <TargetFramework>net8.0-windows10.0.26100.0</TargetFramework>
4
+ <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
5
+ <RootNamespace>CronixUI</RootNamespace>
6
+ <RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
7
+ <UseWinUI>true</UseWinUI>
8
+ <Nullable>enable</Nullable>
9
+ <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
10
+ <EnableDefaultPageItems>false</EnableDefaultPageItems>
11
+ </PropertyGroup>
12
+
13
+ <ItemGroup>
14
+ <PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.250114005" />
15
+ <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.1741" />
16
+ </ItemGroup>
17
+
18
+ <ItemGroup>
19
+ <Page Include="Themes\\*.xaml" />
20
+ </ItemGroup>
21
+ </Project>
@@ -0,0 +1,33 @@
1
+ 
2
+ Microsoft Visual Studio Solution File, Format Version 12.00
3
+ # Visual Studio Version 18
4
+ VisualStudioVersion = 18.4.11626.88 stable
5
+ MinimumVisualStudioVersion = 10.0.40219.1
6
+ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronixUI.WinUI", "CronixUI.WinUI.csproj", "{F87AA448-0830-EBFF-EE35-B7D15A1F7043}"
7
+ EndProject
8
+ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CronixUI.Test", "..\\CronixUI.Test\\CronixUI.Test.csproj", "{A023CBB9-8D59-6857-02BE-8E5B799C59CB}"
9
+ EndProject
10
+ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FlintUI.Test", "..\FlintUI.Test\FlintUI.Test.csproj", "{A023CBB9-8D59-6857-02BE-8E5B799C59CB}"
11
+ EndProject
12
+ Global
13
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
14
+ Debug|Any CPU = Debug|Any CPU
15
+ Release|Any CPU = Release|Any CPU
16
+ EndGlobalSection
17
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
18
+ {F87AA448-0830-EBFF-EE35-B7D15A1F7043}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19
+ {F87AA448-0830-EBFF-EE35-B7D15A1F7043}.Debug|Any CPU.Build.0 = Debug|Any CPU
20
+ {F87AA448-0830-EBFF-EE35-B7D15A1F7043}.Release|Any CPU.ActiveCfg = Release|Any CPU
21
+ {F87AA448-0830-EBFF-EE35-B7D15A1F7043}.Release|Any CPU.Build.0 = Release|Any CPU
22
+ {A023CBB9-8D59-6857-02BE-8E5B799C59CB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23
+ {A023CBB9-8D59-6857-02BE-8E5B799C59CB}.Debug|Any CPU.Build.0 = Debug|Any CPU
24
+ {A023CBB9-8D59-6857-02BE-8E5B799C59CB}.Release|Any CPU.ActiveCfg = Release|Any CPU
25
+ {A023CBB9-8D59-6857-02BE-8E5B799C59CB}.Release|Any CPU.Build.0 = Release|Any CPU
26
+ EndGlobalSection
27
+ GlobalSection(SolutionProperties) = preSolution
28
+ HideSolutionNode = FALSE
29
+ EndGlobalSection
30
+ GlobalSection(ExtensibilityGlobals) = postSolution
31
+ SolutionGuid = {9B14BB06-E905-408A-90B4-8468736ABB98}
32
+ EndGlobalSection
33
+ EndGlobal
@@ -0,0 +1,39 @@
1
+ <ResourceDictionary
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns:local="using:CronixUI.Controls">
5
+
6
+ <Style TargetType="local:CnAvatar">
7
+ <Setter Property="Width" Value="40"/>
8
+ <Setter Property="Height" Value="40"/>
9
+ <Setter Property="FontFamily" Value="{StaticResource CnFontFamily}"/>
10
+ <Setter Property="FontSize" Value="{StaticResource CnTextSm}"/>
11
+ <Setter Property="FontWeight" Value="SemiBold"/>
12
+ <Setter Property="Foreground" Value="{StaticResource CnTextBrush}"/>
13
+ <Setter Property="Background" Value="{StaticResource CnAccentBrush}"/>
14
+ <Setter Property="Template">
15
+ <Setter.Value>
16
+ <ControlTemplate TargetType="local:CnAvatar">
17
+ <Grid>
18
+ <Ellipse Fill="{TemplateBinding Background}"
19
+ Width="{TemplateBinding Width}"
20
+ Height="{TemplateBinding Height}"/>
21
+ <Image x:Name="AvatarImage"
22
+ Source="{TemplateBinding Source}"
23
+ Stretch="UniformToFill"
24
+ Width="{TemplateBinding Width}"
25
+ Height="{TemplateBinding Height}"/>
26
+ <TextBlock x:Name="AvatarInitials"
27
+ Text="{TemplateBinding Initials}"
28
+ Foreground="{TemplateBinding Foreground}"
29
+ FontSize="{TemplateBinding FontSize}"
30
+ FontWeight="{TemplateBinding FontWeight}"
31
+ HorizontalAlignment="Center"
32
+ VerticalAlignment="Center"/>
33
+ </Grid>
34
+ </ControlTemplate>
35
+ </Setter.Value>
36
+ </Setter>
37
+ </Style>
38
+
39
+ </ResourceDictionary>
@@ -0,0 +1,30 @@
1
+ <ResourceDictionary
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns:local="using:CronixUI.Controls">
5
+
6
+ <Style TargetType="local:CnBadge">
7
+ <Setter Property="FontFamily" Value="{StaticResource CnFontFamily}"/>
8
+ <Setter Property="FontSize" Value="{StaticResource CnTextXs}"/>
9
+ <Setter Property="FontWeight" Value="Medium"/>
10
+ <Setter Property="Foreground" Value="{StaticResource CnTextMutedBrush}"/>
11
+ <Setter Property="Background" Value="{StaticResource CnSurface2Brush}"/>
12
+ <Setter Property="Padding" Value="4,2"/>
13
+ <Setter Property="CornerRadius" Value="999"/>
14
+ <Setter Property="Template">
15
+ <Setter.Value>
16
+ <ControlTemplate TargetType="local:CnBadge">
17
+ <Border Background="{TemplateBinding Background}"
18
+ BorderBrush="{StaticResource CnBorderBrush}"
19
+ BorderThickness="1"
20
+ CornerRadius="{TemplateBinding CornerRadius}"
21
+ Padding="{TemplateBinding Padding}">
22
+ <ContentPresenter HorizontalAlignment="Center"
23
+ VerticalAlignment="Center"/>
24
+ </Border>
25
+ </ControlTemplate>
26
+ </Setter.Value>
27
+ </Setter>
28
+ </Style>
29
+
30
+ </ResourceDictionary>
@@ -0,0 +1,36 @@
1
+ <ResourceDictionary
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns:local="using:CronixUI.Controls">
5
+
6
+ <Style TargetType="local:CnButton">
7
+ <Setter Property="FontFamily" Value="{StaticResource CnFontFamily}"/>
8
+ <Setter Property="FontSize" Value="{StaticResource CnTextBase}"/>
9
+ <Setter Property="Foreground" Value="{StaticResource CnTextBrush}"/>
10
+ <Setter Property="Background" Value="{StaticResource CnSurface2Brush}"/>
11
+ <Setter Property="BorderBrush" Value="{StaticResource CnBorderBrush}"/>
12
+ <Setter Property="BorderThickness" Value="1"/>
13
+ <Setter Property="Padding" Value="16,8"/>
14
+ <Setter Property="CornerRadius" Value="{StaticResource CnRadius}"/>
15
+ <Setter Property="HorizontalAlignment" Value="Left"/>
16
+ <Setter Property="VerticalAlignment" Value="Center"/>
17
+ <Setter Property="Template">
18
+ <Setter.Value>
19
+ <ControlTemplate TargetType="local:CnButton">
20
+ <Border x:Name="RootBorder"
21
+ Background="{TemplateBinding Background}"
22
+ BorderBrush="{TemplateBinding BorderBrush}"
23
+ BorderThickness="{TemplateBinding BorderThickness}"
24
+ CornerRadius="{TemplateBinding CornerRadius}"
25
+ Padding="{TemplateBinding Padding}">
26
+ <ContentPresenter x:Name="ContentPresenter"
27
+ HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
28
+ VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
29
+ Content="{TemplateBinding Content}"/>
30
+ </Border>
31
+ </ControlTemplate>
32
+ </Setter.Value>
33
+ </Setter>
34
+ </Style>
35
+
36
+ </ResourceDictionary>
@@ -0,0 +1,28 @@
1
+ <ResourceDictionary
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns:local="using:CronixUI.Controls">
5
+
6
+ <Style TargetType="local:CnCard">
7
+ <Setter Property="Background" Value="{StaticResource CnSurfaceBrush}"/>
8
+ <Setter Property="BorderBrush" Value="{StaticResource CnBorderBrush}"/>
9
+ <Setter Property="BorderThickness" Value="1"/>
10
+ <Setter Property="CornerRadius" Value="{StaticResource CnRadiusLg}"/>
11
+ <Setter Property="Padding" Value="20"/>
12
+ <Setter Property="Template">
13
+ <Setter.Value>
14
+ <ControlTemplate TargetType="local:CnCard">
15
+ <Border x:Name="CardBorder"
16
+ Background="{TemplateBinding Background}"
17
+ BorderBrush="{TemplateBinding BorderBrush}"
18
+ BorderThickness="{TemplateBinding BorderThickness}"
19
+ CornerRadius="{TemplateBinding CornerRadius}"
20
+ Padding="{TemplateBinding Padding}">
21
+ <ContentPresenter Content="{TemplateBinding Content}"/>
22
+ </Border>
23
+ </ControlTemplate>
24
+ </Setter.Value>
25
+ </Setter>
26
+ </Style>
27
+
28
+ </ResourceDictionary>
@@ -0,0 +1,45 @@
1
+ <ResourceDictionary
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns:local="using:CronixUI.Controls">
5
+
6
+ <Style TargetType="local:CnCheckBox">
7
+ <Setter Property="FontFamily" Value="{StaticResource CnFontFamily}"/>
8
+ <Setter Property="FontSize" Value="{StaticResource CnTextBase}"/>
9
+ <Setter Property="Foreground" Value="{StaticResource CnTextBrush}"/>
10
+ <Setter Property="Background" Value="Transparent"/>
11
+ <Setter Property="BorderBrush" Value="{StaticResource CnBorderBrush}"/>
12
+ <Setter Property="BorderThickness" Value="1"/>
13
+ <Setter Property="CornerRadius" Value="{StaticResource CnRadiusSm}"/>
14
+ <Setter Property="Template">
15
+ <Setter.Value>
16
+ <ControlTemplate TargetType="local:CnCheckBox">
17
+ <Grid>
18
+ <Grid.ColumnDefinitions>
19
+ <ColumnDefinition Width="Auto"/>
20
+ <ColumnDefinition Width="*"/>
21
+ </Grid.ColumnDefinitions>
22
+ <Border x:Name="CheckBorder"
23
+ Width="18"
24
+ Height="18"
25
+ Background="{StaticResource CnSurfaceBrush}"
26
+ BorderBrush="{TemplateBinding BorderBrush}"
27
+ BorderThickness="{TemplateBinding BorderThickness}"
28
+ CornerRadius="{StaticResource CnRadiusSm}">
29
+ <FontIcon x:Name="CheckGlyph"
30
+ Glyph="&#xE73E;"
31
+ FontSize="12"
32
+ Foreground="{StaticResource CnTextBrush}"
33
+ Opacity="0"/>
34
+ </Border>
35
+ <ContentPresenter x:Name="ContentPresenter"
36
+ Grid.Column="1"
37
+ Margin="8,0,0,0"
38
+ VerticalAlignment="Center"/>
39
+ </Grid>
40
+ </ControlTemplate>
41
+ </Setter.Value>
42
+ </Setter>
43
+ </Style>
44
+
45
+ </ResourceDictionary>
@@ -0,0 +1,70 @@
1
+ <ResourceDictionary
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns:local="using:CronixUI.Controls">
5
+
6
+ <Style TargetType="local:CnComboBox">
7
+ <Setter Property="FontFamily" Value="{StaticResource CnFontFamily}"/>
8
+ <Setter Property="FontSize" Value="{StaticResource CnTextBase}"/>
9
+ <Setter Property="Foreground" Value="{StaticResource CnTextBrush}"/>
10
+ <Setter Property="Background" Value="{StaticResource CnSurfaceBrush}"/>
11
+ <Setter Property="BorderBrush" Value="{StaticResource CnBorderBrush}"/>
12
+ <Setter Property="BorderThickness" Value="1"/>
13
+ <Setter Property="CornerRadius" Value="{StaticResource CnRadius}"/>
14
+ <Setter Property="Padding" Value="12,8"/>
15
+ <Setter Property="Template">
16
+ <Setter.Value>
17
+ <ControlTemplate TargetType="local:CnComboBox">
18
+ <Grid>
19
+ <Border x:Name="Background"
20
+ Background="{TemplateBinding Background}"
21
+ BorderBrush="{TemplateBinding BorderBrush}"
22
+ BorderThickness="{TemplateBinding BorderThickness}"
23
+ CornerRadius="{TemplateBinding CornerRadius}">
24
+ <Grid Margin="{TemplateBinding Padding}">
25
+ <ContentPresenter x:Name="ContentPresenter"
26
+ HorizontalAlignment="Left"
27
+ VerticalAlignment="Center"/>
28
+ <FontIcon x:Name="DropDownGlyph"
29
+ Glyph="&#xE70D;"
30
+ FontSize="12"
31
+ HorizontalAlignment="Right"
32
+ Foreground="{StaticResource CnTextMutedBrush}"/>
33
+ </Grid>
34
+ </Border>
35
+ <Popup x:Name="Popup">
36
+ <Border x:Name="PopupBorder"
37
+ Background="{StaticResource CnSurfaceBrush}"
38
+ BorderBrush="{StaticResource CnBorderBrush}"
39
+ BorderThickness="1"
40
+ CornerRadius="{StaticResource CnRadius}">
41
+ <ScrollViewer MaxHeight="300">
42
+ <ItemsPresenter x:Name="ItemsPresenter"/>
43
+ </ScrollViewer>
44
+ </Border>
45
+ </Popup>
46
+ </Grid>
47
+ </ControlTemplate>
48
+ </Setter.Value>
49
+ </Setter>
50
+ </Style>
51
+
52
+ <Style TargetType="ComboBoxItem" x:Key="CnComboBoxItem">
53
+ <Setter Property="FontFamily" Value="{StaticResource CnFontFamily}"/>
54
+ <Setter Property="FontSize" Value="{StaticResource CnTextBase}"/>
55
+ <Setter Property="Foreground" Value="{StaticResource CnTextBrush}"/>
56
+ <Setter Property="Padding" Value="12,8"/>
57
+ <Setter Property="Template">
58
+ <Setter.Value>
59
+ <ControlTemplate TargetType="ComboBoxItem">
60
+ <Border x:Name="LayoutRoot"
61
+ Background="Transparent"
62
+ Padding="{TemplateBinding Padding}">
63
+ <ContentPresenter/>
64
+ </Border>
65
+ </ControlTemplate>
66
+ </Setter.Value>
67
+ </Setter>
68
+ </Style>
69
+
70
+ </ResourceDictionary>
@@ -0,0 +1,47 @@
1
+ <ResourceDictionary
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns:local="using:CronixUI.Controls">
5
+
6
+ <Style TargetType="local:CnModal">
7
+ <Setter Property="FontFamily" Value="{StaticResource CnFontFamily}"/>
8
+ <Setter Property="Background" Value="{StaticResource CnSurfaceBrush}"/>
9
+ <Setter Property="BorderBrush" Value="{StaticResource CnBorderBrush}"/>
10
+ <Setter Property="BorderThickness" Value="1"/>
11
+ <Setter Property="CornerRadius" Value="{StaticResource CnRadiusLg}"/>
12
+ <Setter Property="MaxWidth" Value="500"/>
13
+ <Setter Property="Template">
14
+ <Setter.Value>
15
+ <ControlTemplate TargetType="local:CnModal">
16
+ <Grid x:Name="LayoutRoot"
17
+ Background="#B3000000"
18
+ Visibility="Collapsed">
19
+ <Border x:Name="ModalBorder"
20
+ Background="{TemplateBinding Background}"
21
+ BorderBrush="{TemplateBinding BorderBrush}"
22
+ BorderThickness="{TemplateBinding BorderThickness}"
23
+ CornerRadius="{TemplateBinding CornerRadius}"
24
+ MaxWidth="{TemplateBinding MaxWidth}"
25
+ Padding="20">
26
+ <Grid>
27
+ <Grid.RowDefinitions>
28
+ <RowDefinition Height="Auto"/>
29
+ <RowDefinition Height="*"/>
30
+ <RowDefinition Height="Auto"/>
31
+ </Grid.RowDefinitions>
32
+ <StackPanel Grid.Row="0" Orientation="Horizontal" Margin="0,0,0,16">
33
+ <TextBlock Text="{TemplateBinding Title}"
34
+ FontSize="{StaticResource CnTextLg}"
35
+ FontWeight="SemiBold"
36
+ Foreground="{StaticResource CnTextBrush}"/>
37
+ </StackPanel>
38
+ <ContentPresenter Grid.Row="1"/>
39
+ </Grid>
40
+ </Border>
41
+ </Grid>
42
+ </ControlTemplate>
43
+ </Setter.Value>
44
+ </Setter>
45
+ </Style>
46
+
47
+ </ResourceDictionary>
@@ -0,0 +1,27 @@
1
+ <ResourceDictionary
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns:local="using:CronixUI.Controls">
5
+
6
+ <Style TargetType="local:CnProgressBar">
7
+ <Setter Property="Height" Value="4"/>
8
+ <Setter Property="Background" Value="{StaticResource CnSurface3Brush}"/>
9
+ <Setter Property="Foreground" Value="{StaticResource CnAccentBrush}"/>
10
+ <Setter Property="CornerRadius" Value="2"/>
11
+ <Setter Property="Template">
12
+ <Setter.Value>
13
+ <ControlTemplate TargetType="local:CnProgressBar">
14
+ <Border x:Name="LayoutRoot"
15
+ Background="{TemplateBinding Background}"
16
+ CornerRadius="{TemplateBinding CornerRadius}">
17
+ <Border x:Name="ProgressBarIndicator"
18
+ Background="{TemplateBinding Foreground}"
19
+ HorizontalAlignment="Left"
20
+ CornerRadius="{TemplateBinding CornerRadius}"/>
21
+ </Border>
22
+ </ControlTemplate>
23
+ </Setter.Value>
24
+ </Setter>
25
+ </Style>
26
+
27
+ </ResourceDictionary>
@@ -0,0 +1,42 @@
1
+ <ResourceDictionary
2
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4
+ xmlns:local="using:CronixUI.Controls">
5
+
6
+ <Style TargetType="local:CnRadioButton">
7
+ <Setter Property="FontFamily" Value="{StaticResource CnFontFamily}"/>
8
+ <Setter Property="FontSize" Value="{StaticResource CnTextBase}"/>
9
+ <Setter Property="Foreground" Value="{StaticResource CnTextBrush}"/>
10
+ <Setter Property="Background" Value="Transparent"/>
11
+ <Setter Property="BorderBrush" Value="{StaticResource CnBorderBrush}"/>
12
+ <Setter Property="BorderThickness" Value="1"/>
13
+ <Setter Property="Template">
14
+ <Setter.Value>
15
+ <ControlTemplate TargetType="local:CnRadioButton">
16
+ <Grid>
17
+ <Grid.ColumnDefinitions>
18
+ <ColumnDefinition Width="Auto"/>
19
+ <ColumnDefinition Width="*"/>
20
+ </Grid.ColumnDefinitions>
21
+ <Ellipse x:Name="RadioBorder"
22
+ Width="18"
23
+ Height="18"
24
+ Fill="{StaticResource CnSurfaceBrush}"
25
+ Stroke="{TemplateBinding BorderBrush}"
26
+ StrokeThickness="1"/>
27
+ <Ellipse x:Name="RadioMark"
28
+ Width="8"
29
+ Height="8"
30
+ Fill="{StaticResource CnAccentBrush}"
31
+ Opacity="0"/>
32
+ <ContentPresenter x:Name="ContentPresenter"
33
+ Grid.Column="1"
34
+ Margin="8,0,0,0"
35
+ VerticalAlignment="Center"/>
36
+ </Grid>
37
+ </ControlTemplate>
38
+ </Setter.Value>
39
+ </Setter>
40
+ </Style>
41
+
42
+ </ResourceDictionary>