Skip to content

Commit

Permalink
feat: add lightweight styling resources to ToggleButton (#1206)
Browse files Browse the repository at this point in the history
Co-authored-by: Steve Bilogan <steve.bilogan@gmail.com>
  • Loading branch information
Arieldelossantos and kazo0 committed Sep 30, 2023
1 parent 91d848e commit 1c68e88
Show file tree
Hide file tree
Showing 3 changed files with 346 additions and 23 deletions.
15 changes: 0 additions & 15 deletions src/library/Uno.Themes.WinUI.Markup/Theme.Styles.cs
Expand Up @@ -85,21 +85,6 @@ public static class PipsPager
[ResourceKeyDefinition(typeof(Style), "PipsPagerStyle", TargetType = typeof(PipsPager))]
public static StaticResourceKey<Style> Default => new("PipsPagerStyle");
}

public static class Slider
{
[ResourceKeyDefinition(typeof(Style), "SliderStyle", TargetType = typeof(Slider))]
public static StaticResourceKey<Style> Default => new("SliderStyle");
}

public static class ToggleButton
{
[ResourceKeyDefinition(typeof(Style), "TextToggleButtonStyle", TargetType = typeof(ToggleButton))]
public static StaticResourceKey<Style> Text => new("TextToggleButtonStyle");

[ResourceKeyDefinition(typeof(Style), "IconToggleButtonStyle", TargetType = typeof(ToggleButton))]
public static StaticResourceKey<Style> Icon => new("IconToggleButtonStyle");
}
}
}
}
10 changes: 2 additions & 8 deletions src/library/Uno.Themes.WinUI.Markup/Theme/Slider.cs
Expand Up @@ -74,14 +74,8 @@ public static class Background

public static class Styles
{
[ResourceKeyDefinition(typeof(Style), "MaterialSliderStyle", TargetType = typeof(Slider))]
public static StaticResourceKey<Style> Default => new("MaterialSliderStyle");

public static class Thumb
{
[ResourceKeyDefinition(typeof(Style), "MaterialSliderThumbStyle", TargetType = typeof(Microsoft.UI.Xaml.Controls.Primitives.Thumb))]
public static ThemeResourceKey<Style> Default => new("MaterialSliderThumbStyle");
}
[ResourceKeyDefinition(typeof(Style), "SliderStyle", TargetType = typeof(Slider))]
public static StaticResourceKey<Style> Default => new("SliderStyle");
}
}
}
Expand Down

0 comments on commit 1c68e88

Please sign in to comment.