-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ProgressBar): lightweight styling for Progress controls
fix: pr comments
- Loading branch information
1 parent
fcb79c3
commit 862ab0f
Showing
4 changed files
with
68 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ProgressBar | ||
{ | ||
public static class Resources | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "ProgressBarForeground")] | ||
public static ResourceValue<Brush> Foreground => new("ProgressBarForeground", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "ProgressBarBackground")] | ||
public static ResourceValue<Brush> Background => new("ProgressBarBackground", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "ProgressBarMinWidth")] | ||
public static ResourceValue<double> MinWidth => new("ProgressBarMinWidth", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "ProgressBarHeight")] | ||
public static ResourceValue<double> Height => new("ProgressBarHeight", true); | ||
} | ||
|
||
public static class Styles | ||
{ | ||
[ResourceKeyDefinition(typeof(Style), "ProgressBarStyle", TargetType = typeof(ProgressBar))] | ||
public static ResourceValue<Style> Default => new("ProgressBarStyle"); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ProgressRing | ||
{ | ||
public static class Resources | ||
{ | ||
public static class Foreground | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "ProgressRingForeground")] | ||
public static ResourceValue<Brush> Default => new("ProgressRingForeground", true); | ||
} | ||
|
||
public static class Background | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "ProgressRingBackground")] | ||
public static ResourceValue<Brush> Default => new("ProgressRingBackground", true); | ||
} | ||
} | ||
|
||
public static class Styles | ||
{ | ||
[ResourceKeyDefinition(typeof(Style), "ProgressRingStyle", TargetType = typeof(ProgressRing))] | ||
public static ResourceValue<Style> Default => new("ProgressRingStyle"); | ||
} | ||
} | ||
} | ||
} |