-
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 PipsPafer lightweight styling cm
- Loading branch information
1 parent
e0504b4
commit 7ffabfc
Showing
1 changed file
with
247 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,247 @@ | ||
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 Default | ||
{ | ||
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 BorderThickness | ||
{ | ||
[ResourceKeyDefinition(typeof(Thickness), "PipsPagerButtonBorderThickness")] | ||
public static ResourceValue<Thickness> Default => new("PipsPagerButtonBorderThickness", true); | ||
} | ||
|
||
public static class Width | ||
{ | ||
[ResourceKeyDefinition(typeof(double), "PipsPagerHorizontalOrientationButtonWidth")] | ||
public static ResourceValue<double> HorizontalOrientation => new("PipsPagerHorizontalOrientationButtonWidth", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerVerticalOrientationButtonWidth")] | ||
public static ResourceValue<double> VerticalOrientation => new("PipsPagerVerticalOrientationButtonWidth", true); | ||
} | ||
|
||
public static class Height | ||
{ | ||
[ResourceKeyDefinition(typeof(double), "PipsPagerHorizontalOrientationButtonHeight")] | ||
public static ResourceValue<double> HorizontalOrientation => new("PipsPagerHorizontalOrientationButtonHeight", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerVerticalOrientationButtonHeight")] | ||
public static ResourceValue<double> VerticalOrientation => new("PipsPagerVerticalOrientationButtonHeight", 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); | ||
} | ||
|
||
public static class Size | ||
{ | ||
[ResourceKeyDefinition(typeof(double), "PipsPagerNormalEllipseSize")] | ||
public static ResourceValue<double> Normal => new("PipsPagerNormalEllipseSize", true); | ||
|
||
[ResourceKeyDefinition(typeof(double), "PipsPagerSelectedEllipseSize")] | ||
public static ResourceValue<double> Selected => 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 | ||
{ | ||
public static class Height | ||
{ | ||
[ResourceKeyDefinition(typeof(double), "MaterialPipsPagerNavigationButtonVisualStateEllipseHeight")] | ||
public static ResourceValue<double> Default => new("MaterialPipsPagerNavigationButtonVisualStateEllipseHeight", true); | ||
} | ||
|
||
public static class Width | ||
{ | ||
[ResourceKeyDefinition(typeof(double), "MaterialPipsPagerNavigationButtonVisualStateEllipseWidth")] | ||
public static ResourceValue<double> Default => new("MaterialPipsPagerNavigationButtonVisualStateEllipseWidth", 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); | ||
} | ||
} | ||
|
||
public static class PreviousPageData | ||
{ | ||
[ResourceKeyDefinition(typeof(Geometry), "PipsPagerPreviousPageButtonData")] | ||
public static ResourceValue<Geometry> Default => new("PipsPagerPreviousPageButtonData", true); | ||
} | ||
|
||
public static class NextPageData | ||
{ | ||
[ResourceKeyDefinition(typeof(Geometry), "PipsPagerNextPageButtonData")] | ||
public static ResourceValue<Geometry> Default => new("PipsPagerNextPageButtonData", true); | ||
} | ||
|
||
public static class Height | ||
{ | ||
[ResourceKeyDefinition(typeof(double), "PipsPagerNavigationButtonHeight")] | ||
public static ResourceValue<double> Default => new("PipsPagerNavigationButtonHeight", true); | ||
} | ||
|
||
public static class Width | ||
{ | ||
[ResourceKeyDefinition(typeof(double), "PipsPagerNavigationButtonWidth")] | ||
public static ResourceValue<double> Default => new("PipsPagerNavigationButtonWidth", true); | ||
} | ||
|
||
public static class BorderThickness | ||
{ | ||
[ResourceKeyDefinition(typeof(Thickness), "PipsPagerNavigationButtonBorderThickness")] | ||
public static ResourceValue<Thickness> Default => new("PipsPagerNavigationButtonBorderThickness", true); | ||
} | ||
|
||
public static class Padding | ||
{ | ||
[ResourceKeyDefinition(typeof(Thickness), "PipsPagerNavigationButtonPadding")] | ||
public static ResourceValue<Thickness> Default => new("PipsPagerNavigationButtonPadding", true); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|