Skip to content

Commit

Permalink
chore: Refactor / Quality
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterbotello committed Jul 24, 2023
1 parent c1251bd commit 1e9de25
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,23 @@ public static class Resources
{
public static class Default
{
public static class FontFamily
public static class Typography
{
[ResourceKeyDefinition(typeof(Microsoft.UI.Xaml.Media.FontFamily), "SliderFontFamily")]
public static ResourceValue<Microsoft.UI.Xaml.Media.FontFamily> Default => new("SliderFontFamily", true);
}
public static class FontFamily
{
[ResourceKeyDefinition(typeof(Microsoft.UI.Xaml.Media.FontFamily), "SliderFontFamily")]
public static ResourceValue<Microsoft.UI.Xaml.Media.FontFamily> Default => new("SliderFontFamily", true);
}

public static class FontSize
{
[ResourceKeyDefinition(typeof(double), "SliderFontSize")]
public static ResourceValue<double> Default => new("SliderFontSize", true);
public static class FontSize
{
[ResourceKeyDefinition(typeof(double), "SliderFontSize")]
public static ResourceValue<double> Default => new("SliderFontSize", true);
}
}

public static class TrackFill
{
{
[ResourceKeyDefinition(typeof(Brush), "SliderTrackFill")]
public static ResourceValue<Brush> Default => new("SliderTrackFill", true);

Expand Down Expand Up @@ -64,6 +67,12 @@ public static class InlineTickBar
}
}
}

public static class Styles
{
[ResourceKeyDefinition(typeof(Style), "MaterialSliderStyle", TargetType = typeof(Slider))]
public static ResourceValue<Style> Default => new("MaterialSliderStyle");
}
}
}
}
33 changes: 33 additions & 0 deletions src/library/Uno.Themes.WinUI.Markup/Themes/Thumb.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Media;
using Uno.Extensions.Markup.Internals;

namespace Uno.Themes.Markup
{
public static partial class Theme
{
public static class Thumb
{
public static class Resources
{
public static class Default
{
public static class Background
{
[ResourceKeyDefinition(typeof(Brush), "SliderThumbBackground")]
public static ResourceValue<Brush> Default => new("SliderThumbBackground", true);

[ResourceKeyDefinition(typeof(Brush), "SliderThumbBackgroundDisabled")]
public static ResourceValue<Brush> Disabled => new("SliderThumbBackgroundDisabled", true);
}
}
}

public static class Styles
{
[ResourceKeyDefinition(typeof(Style), "MaterialSliderThumbStyle", TargetType = typeof(Microsoft.UI.Xaml.Controls.Primitives.Thumb))]
public static ResourceValue<Style> Default => new("MaterialSliderThumbStyle");
}
}
}
}

0 comments on commit 1e9de25

Please sign in to comment.