-
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(HyperlinkButton): lightweight styling for hyperlinkbutton
fix: unecessary imports feat(HyperlinkButton): lightweight styling for hyperlinkbutton
- Loading branch information
Showing
2 changed files
with
97 additions
and
2 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
95 changes: 95 additions & 0 deletions
95
...ary/Uno.Themes.WinUI.Markup/Theme.LightWeight/Themes.LightWeightStyles.HyperlinkButton.cs
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,95 @@ | ||
using Microsoft.UI.Xaml.Media; | ||
using Uno.Extensions.Markup.Internals; | ||
|
||
namespace Uno.Themes.Markup | ||
{ | ||
public static partial class Theme | ||
{ | ||
public static class HyperlinkButton | ||
{ | ||
public static class Resources | ||
{ | ||
public static class Default | ||
{ | ||
public static class Foreground | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonForeground")] | ||
public static ResourceValue<Brush> Default => new("HyperlinkButtonForeground", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonForegroundPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("HyperlinkButtonForegroundPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonForegroundPressed")] | ||
public static ResourceValue<Brush> Pressed => new("HyperlinkButtonForegroundPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonForegroundDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("HyperlinkButtonForegroundDisabled", true); | ||
} | ||
|
||
public static class Background | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBackground")] | ||
public static ResourceValue<Brush> Default => new("HyperlinkButtonBackground", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBackgroundPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("HyperlinkButtonBackgroundPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBackgroundPressed")] | ||
public static ResourceValue<Brush> Pressed => new("HyperlinkButtonBackgroundPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBackgroundDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("HyperlinkButtonBackgroundDisabled", true); | ||
} | ||
|
||
public static class BorderBrush | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBorderBrush")] | ||
public static ResourceValue<Brush> Default => new("HyperlinkButtonBorderBrush", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBorderBrushPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("HyperlinkButtonBorderBrushPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBorderBrushPressed")] | ||
public static ResourceValue<Brush> Pressed => new("HyperlinkButtonBorderBrushPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBorderBrushDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("HyperlinkButtonBorderBrushDisabled", true); | ||
} | ||
|
||
public static class Opacity | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBackgroundOpacity")] | ||
public static ResourceValue<Brush> Default => new("HyperlinkButtonBackgroundOpacity", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBackgroundOpacityPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("HyperlinkButtonBackgroundOpacityPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBackgroundOpacityPressed")] | ||
public static ResourceValue<Brush> Pressed => new("HyperlinkButtonBackgroundOpacityPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "HyperlinkButtonBackgroundOpacityDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("HyperlinkButtonBackgroundOpacityDisabled", true); | ||
} | ||
|
||
public static class Typo | ||
{ | ||
[ResourceKeyDefinition(typeof(FontFamily), "HyperlinkButtonFontFamily")] | ||
public static ResourceValue<FontFamily> FontFamily => new("HyperlinkButtonFontFamily", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "HyperlinkButtonFontSize")] | ||
public static ResourceValue<double> FontSize => new("HyperlinkButtonFontSize", true); | ||
} | ||
} | ||
|
||
public static class Secondary | ||
{ | ||
public static class Foreground | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "SecondaryHyperlinkButtonForeground")] | ||
public static ResourceValue<Brush> Default => new("SecondaryHyperlinkButtonForeground", true); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |