-
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: added PipsPager lightweight styling cm
- Loading branch information
1 parent
7e9fdb0
commit 592041a
Showing
1 changed file
with
215 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,215 @@ | ||
using Microsoft.UI.Xaml; | ||
using Microsoft.UI.Xaml.Media; | ||
using Uno.Extensions.Markup.Internals; | ||
using Windows.Devices.Bluetooth.Advertisement; | ||
|
||
namespace Uno.Themes.Markup | ||
{ | ||
public static partial class Theme | ||
{ | ||
public static class PipsPager | ||
{ | ||
public static class Resources | ||
{ | ||
public static class SelectionIndicator | ||
{ | ||
public static class Foreground | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForeground")] | ||
public static ResourceValue<Brush> Default => new("PipsPagerSelectionIndicatorForeground", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("PipsPagerSelectionIndicatorForegroundPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundPressed")] | ||
public static ResourceValue<Brush> Pressed => new("PipsPagerSelectionIndicatorForegroundPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("PipsPagerSelectionIndicatorForegroundDisabled", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundFocused")] | ||
public static ResourceValue<Brush> Focused => new("PipsPagerSelectionIndicatorForegroundFocused", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundSelected")] | ||
public static ResourceValue<Brush> Selected => new("PipsPagerSelectionIndicatorForegroundSelected", true); | ||
} | ||
|
||
public static class Background | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackground")] | ||
public static ResourceValue<Brush> Default => new("PipsPagerSelectionIndicatorBackground", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackgroundPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("PipsPagerSelectionIndicatorBackgroundPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackgroundPressed")] | ||
public static ResourceValue<Brush> Pressed => new("PipsPagerSelectionIndicatorBackgroundPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackgroundSelected")] | ||
public static ResourceValue<Brush> Selected => new("PipsPagerSelectionIndicatorBackgroundSelected", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackgroundDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("PipsPagerSelectionIndicatorBackgroundDisabled", true); | ||
} | ||
|
||
public static class BorderBrush | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrush")] | ||
public static ResourceValue<Brush> Default => new("PipsPagerSelectionIndicatorBorderBrush", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrushPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("PipsPagerSelectionIndicatorBorderBrushPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrushPressed")] | ||
public static ResourceValue<Brush> Pressed => new("PipsPagerSelectionIndicatorBorderBrushPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrushSelected")] | ||
public static ResourceValue<Brush> Selected => new("PipsPagerSelectionIndicatorBorderBrushSelected", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrushDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("PipsPagerSelectionIndicatorBorderBrushDisabled", true); | ||
} | ||
|
||
public static class VisualStateEllipse | ||
{ | ||
public static class Fill | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerVisualStateEllipseFill")] | ||
public static ResourceValue<Brush> Default => new("MaterialPipsPagerVisualStateEllipseFill", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerVisualStateEllipseFillPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("MaterialPipsPagerVisualStateEllipseFillPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerVisualStateEllipseFillPressed")] | ||
public static ResourceValue<Brush> Pressed => new("MaterialPipsPagerVisualStateEllipseFillPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerVisualStateEllipseFillFocused")] | ||
public static ResourceValue<Brush> Focused => new("MaterialPipsPagerVisualStateEllipseFillFocused", true); | ||
} | ||
} | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerHorizontalOrientationButtonWidth")] | ||
public static ResourceValue<double> HorizontalOrientationWidth => new("PipsPagerHorizontalOrientationButtonWidth", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerVerticalOrientationButtonWidth")] | ||
public static ResourceValue<double> VerticalOrientationWidth => new("PipsPagerVerticalOrientationButtonWidth", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerHorizontalOrientationButtonHeight")] | ||
public static ResourceValue<double> HorizontalOrientationHeight => new("PipsPagerHorizontalOrientationButtonHeight", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerVerticalOrientationButtonHeight")] | ||
public static ResourceValue<double> VerticalOrientationHeight => new("PipsPagerVerticalOrientationButtonHeight", true); | ||
|
||
[ResourceKeyDefinition(typeof(Thickness), "PipsPagerButtonBorderThickness")] | ||
public static ResourceValue<Thickness> BorderThickness => new("PipsPagerButtonBorderThickness", true); | ||
} | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerNormalEllipseSize")] | ||
public static ResourceValue<double> NormalEllipseSize => new("PipsPagerNormalEllipseSize", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerSelectedEllipseSize")] | ||
public static ResourceValue<double> SelectedEllipseSize => new("PipsPagerSelectedEllipseSize", true); | ||
|
||
public static class NavigationButton | ||
{ | ||
public static class Background | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBackground")] | ||
public static ResourceValue<Brush> Default => new("PipsPagerNavigationButtonBackground", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBackgroundPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("PipsPagerNavigationButtonBackgroundPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBackgroundPressed")] | ||
public static ResourceValue<Brush> Pressed => new("PipsPagerNavigationButtonBackgroundPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBackgroundDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("PipsPagerNavigationButtonBackgroundDisabled", true); | ||
} | ||
|
||
public static class BorderBrush | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBorderBrush")] | ||
public static ResourceValue<Brush> Default => new("PipsPagerNavigationButtonBorderBrush", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBorderBrushPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("PipsPagerNavigationButtonBorderBrushPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBorderBrushPressed")] | ||
public static ResourceValue<Brush> Pressed => new("PipsPagerNavigationButtonBorderBrushPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBorderBrushDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("PipsPagerNavigationButtonBorderBrushDisabled", true); | ||
} | ||
|
||
public static class Foreground | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonForeground")] | ||
public static ResourceValue<Brush> Default => new("PipsPagerNavigationButtonForeground", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonForegroundPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("PipsPagerNavigationButtonForegroundPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonForegroundPressed")] | ||
public static ResourceValue<Brush> Pressed => new("PipsPagerNavigationButtonForegroundPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonForegroundDisabled")] | ||
public static ResourceValue<Brush> Disabled => new("PipsPagerNavigationButtonForegroundDisabled", true); | ||
} | ||
|
||
public static class VisualStateEllipse | ||
{ | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerNavigationVisualStatesEllipseHeight")] | ||
public static ResourceValue<double> Height => new("PipsPagerNavigationVisualStatesEllipseHeight", true); | ||
|
||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerNavigationVisualStatesEllipseWidth")] | ||
public static ResourceValue<double> Width => new("PipsPagerNavigationVisualStatesEllipseWidth", true); | ||
|
||
public static class Fill | ||
{ | ||
[ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFill")] | ||
public static ResourceValue<Brush> Default => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFill", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFillPointerOver")] | ||
public static ResourceValue<Brush> PointerOver => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFillPointerOver", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFillPressed")] | ||
public static ResourceValue<Brush> Pressed => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFillPressed", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFillFocused")] | ||
public static ResourceValue<Brush> Focused => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFillFocused", true); | ||
|
||
[ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFillUnfocused")] | ||
public static ResourceValue<Brush> Unfocused => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFillUnfocused", true); | ||
} | ||
} | ||
|
||
[ResourceKeyDefinition(typeof(Geometry), "PipsPagerPreviousPageButtonData")] | ||
public static ResourceValue<Geometry> PreviousPageData => new("PipsPagerPreviousPageButtonData", true); | ||
|
||
|
||
[ResourceKeyDefinition(typeof(Geometry), "PipsPagerNextPageButtonData")] | ||
public static ResourceValue<Geometry> NextPageData => new("PipsPagerNextPageButtonData", true); | ||
|
||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerNavigationButtonHeight")] | ||
public static ResourceValue<double> Height => new("PipsPagerNavigationButtonHeight", true); | ||
|
||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerNavigationButtonWidth")] | ||
public static ResourceValue<double> Width => new("PipsPagerNavigationButtonWidth", true); | ||
|
||
[ResourceKeyDefinition(typeof(Thickness), "PipsPagerNavigationButtonBorderThickness")] | ||
public static ResourceValue<Thickness> BorderThickness => new("PipsPagerNavigationButtonBorderThickness", true); | ||
|
||
[ResourceKeyDefinition(typeof(Thickness), "PipsPagerNavigationButtonPadding")] | ||
public static ResourceValue<Thickness> Padding => new("PipsPagerNavigationButtonPadding", true); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|