|
| 1 | +using Microsoft.UI.Xaml; |
| 2 | +using Microsoft.UI.Xaml.Media; |
| 3 | +using Uno.Extensions.Markup; |
| 4 | +using Uno.Extensions.Markup.Internals; |
| 5 | +using Windows.Devices.Bluetooth.Advertisement; |
| 6 | + |
| 7 | +namespace Uno.Themes.Markup |
| 8 | +{ |
| 9 | + public static partial class Theme |
| 10 | + { |
| 11 | + public static class PipsPager |
| 12 | + { |
| 13 | + public static class Resources |
| 14 | + { |
| 15 | + public static class SelectionIndicator |
| 16 | + { |
| 17 | + public static class Foreground |
| 18 | + { |
| 19 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForeground")] |
| 20 | + public static ThemeResourceKey<Brush> Default => new("PipsPagerSelectionIndicatorForeground"); |
| 21 | + |
| 22 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundPointerOver")] |
| 23 | + public static ThemeResourceKey<Brush> PointerOver => new("PipsPagerSelectionIndicatorForegroundPointerOver"); |
| 24 | + |
| 25 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundPressed")] |
| 26 | + public static ThemeResourceKey<Brush> Pressed => new("PipsPagerSelectionIndicatorForegroundPressed"); |
| 27 | + |
| 28 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundDisabled")] |
| 29 | + public static ThemeResourceKey<Brush> Disabled => new("PipsPagerSelectionIndicatorForegroundDisabled"); |
| 30 | + |
| 31 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundFocused")] |
| 32 | + public static ThemeResourceKey<Brush> Focused => new("PipsPagerSelectionIndicatorForegroundFocused"); |
| 33 | + |
| 34 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorForegroundSelected")] |
| 35 | + public static ThemeResourceKey<Brush> Selected => new("PipsPagerSelectionIndicatorForegroundSelected"); |
| 36 | + } |
| 37 | + |
| 38 | + public static class Background |
| 39 | + { |
| 40 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackground")] |
| 41 | + public static ThemeResourceKey<Brush> Default => new("PipsPagerSelectionIndicatorBackground"); |
| 42 | + |
| 43 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackgroundPointerOver")] |
| 44 | + public static ThemeResourceKey<Brush> PointerOver => new("PipsPagerSelectionIndicatorBackgroundPointerOver"); |
| 45 | + |
| 46 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackgroundPressed")] |
| 47 | + public static ThemeResourceKey<Brush> Pressed => new("PipsPagerSelectionIndicatorBackgroundPressed"); |
| 48 | + |
| 49 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackgroundSelected")] |
| 50 | + public static ThemeResourceKey<Brush> Selected => new("PipsPagerSelectionIndicatorBackgroundSelected"); |
| 51 | + |
| 52 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBackgroundDisabled")] |
| 53 | + public static ThemeResourceKey<Brush> Disabled => new("PipsPagerSelectionIndicatorBackgroundDisabled"); |
| 54 | + } |
| 55 | + |
| 56 | + public static class BorderBrush |
| 57 | + { |
| 58 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrush")] |
| 59 | + public static ThemeResourceKey<Brush> Default => new("PipsPagerSelectionIndicatorBorderBrush"); |
| 60 | + |
| 61 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrushPointerOver")] |
| 62 | + public static ThemeResourceKey<Brush> PointerOver => new("PipsPagerSelectionIndicatorBorderBrushPointerOver"); |
| 63 | + |
| 64 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrushPressed")] |
| 65 | + public static ThemeResourceKey<Brush> Pressed => new("PipsPagerSelectionIndicatorBorderBrushPressed"); |
| 66 | + |
| 67 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrushSelected")] |
| 68 | + public static ThemeResourceKey<Brush> Selected => new("PipsPagerSelectionIndicatorBorderBrushSelected"); |
| 69 | + |
| 70 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerSelectionIndicatorBorderBrushDisabled")] |
| 71 | + public static ThemeResourceKey<Brush> Disabled => new("PipsPagerSelectionIndicatorBorderBrushDisabled"); |
| 72 | + } |
| 73 | + |
| 74 | + public static class VisualStateEllipse |
| 75 | + { |
| 76 | + public static class Fill |
| 77 | + { |
| 78 | + [ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerVisualStateEllipseFill")] |
| 79 | + public static ThemeResourceKey<Brush> Default => new("MaterialPipsPagerVisualStateEllipseFill"); |
| 80 | + |
| 81 | + [ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerVisualStateEllipseFillPointerOver")] |
| 82 | + public static ThemeResourceKey<Brush> PointerOver => new("MaterialPipsPagerVisualStateEllipseFillPointerOver"); |
| 83 | + |
| 84 | + [ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerVisualStateEllipseFillPressed")] |
| 85 | + public static ThemeResourceKey<Brush> Pressed => new("MaterialPipsPagerVisualStateEllipseFillPressed"); |
| 86 | + |
| 87 | + [ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerVisualStateEllipseFillFocused")] |
| 88 | + public static ThemeResourceKey<Brush> Focused => new("MaterialPipsPagerVisualStateEllipseFillFocused"); |
| 89 | + } |
| 90 | + } |
| 91 | + |
| 92 | + [ResourceKeyDefinition(typeof(double), "PipsPagerHorizontalOrientationButtonWidth")] |
| 93 | + public static ThemeResourceKey<double> HorizontalOrientationWidth => new("PipsPagerHorizontalOrientationButtonWidth"); |
| 94 | + |
| 95 | + [ResourceKeyDefinition(typeof(double), "PipsPagerVerticalOrientationButtonWidth")] |
| 96 | + public static ThemeResourceKey<double> VerticalOrientationWidth => new("PipsPagerVerticalOrientationButtonWidth"); |
| 97 | + |
| 98 | + [ResourceKeyDefinition(typeof(double), "PipsPagerHorizontalOrientationButtonHeight")] |
| 99 | + public static ThemeResourceKey<double> HorizontalOrientationHeight => new("PipsPagerHorizontalOrientationButtonHeight"); |
| 100 | + |
| 101 | + [ResourceKeyDefinition(typeof(double), "PipsPagerVerticalOrientationButtonHeight")] |
| 102 | + public static ThemeResourceKey<double> VerticalOrientationHeight => new("PipsPagerVerticalOrientationButtonHeight"); |
| 103 | + |
| 104 | + [ResourceKeyDefinition(typeof(Thickness), "PipsPagerButtonBorderThickness")] |
| 105 | + public static ThemeResourceKey<Thickness> BorderThickness => new("PipsPagerButtonBorderThickness"); |
| 106 | + } |
| 107 | + |
| 108 | + public static class NavigationButton |
| 109 | + { |
| 110 | + public static class Background |
| 111 | + { |
| 112 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBackground")] |
| 113 | + public static ThemeResourceKey<Brush> Default => new("PipsPagerNavigationButtonBackground"); |
| 114 | + |
| 115 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBackgroundPointerOver")] |
| 116 | + public static ThemeResourceKey<Brush> PointerOver => new("PipsPagerNavigationButtonBackgroundPointerOver"); |
| 117 | + |
| 118 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBackgroundPressed")] |
| 119 | + public static ThemeResourceKey<Brush> Pressed => new("PipsPagerNavigationButtonBackgroundPressed"); |
| 120 | + |
| 121 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBackgroundDisabled")] |
| 122 | + public static ThemeResourceKey<Brush> Disabled => new("PipsPagerNavigationButtonBackgroundDisabled"); |
| 123 | + } |
| 124 | + |
| 125 | + public static class BorderBrush |
| 126 | + { |
| 127 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBorderBrush")] |
| 128 | + public static ThemeResourceKey<Brush> Default => new("PipsPagerNavigationButtonBorderBrush"); |
| 129 | + |
| 130 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBorderBrushPointerOver")] |
| 131 | + public static ThemeResourceKey<Brush> PointerOver => new("PipsPagerNavigationButtonBorderBrushPointerOver"); |
| 132 | + |
| 133 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBorderBrushPressed")] |
| 134 | + public static ThemeResourceKey<Brush> Pressed => new("PipsPagerNavigationButtonBorderBrushPressed"); |
| 135 | + |
| 136 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonBorderBrushDisabled")] |
| 137 | + public static ThemeResourceKey<Brush> Disabled => new("PipsPagerNavigationButtonBorderBrushDisabled"); |
| 138 | + } |
| 139 | + |
| 140 | + public static class Foreground |
| 141 | + { |
| 142 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonForeground")] |
| 143 | + public static ThemeResourceKey<Brush> Default => new("PipsPagerNavigationButtonForeground"); |
| 144 | + |
| 145 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonForegroundPointerOver")] |
| 146 | + public static ThemeResourceKey<Brush> PointerOver => new("PipsPagerNavigationButtonForegroundPointerOver"); |
| 147 | + |
| 148 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonForegroundPressed")] |
| 149 | + public static ThemeResourceKey<Brush> Pressed => new("PipsPagerNavigationButtonForegroundPressed"); |
| 150 | + |
| 151 | + [ResourceKeyDefinition(typeof(Brush), "PipsPagerNavigationButtonForegroundDisabled")] |
| 152 | + public static ThemeResourceKey<Brush> Disabled => new("PipsPagerNavigationButtonForegroundDisabled"); |
| 153 | + } |
| 154 | + |
| 155 | + public static class VisualStateEllipse |
| 156 | + { |
| 157 | + |
| 158 | + [ResourceKeyDefinition(typeof(double), "PipsPagerNavigationVisualStatesEllipseHeight")] |
| 159 | + public static ThemeResourceKey<double> Height => new("PipsPagerNavigationVisualStatesEllipseHeight"); |
| 160 | + |
| 161 | + |
| 162 | + [ResourceKeyDefinition(typeof(double), "PipsPagerNavigationVisualStatesEllipseWidth")] |
| 163 | + public static ThemeResourceKey<double> Width => new("PipsPagerNavigationVisualStatesEllipseWidth"); |
| 164 | + |
| 165 | + public static class Fill |
| 166 | + { |
| 167 | + [ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFill")] |
| 168 | + public static ThemeResourceKey<Brush> Default => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFill"); |
| 169 | + |
| 170 | + [ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFillPointerOver")] |
| 171 | + public static ThemeResourceKey<Brush> PointerOver => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFillPointerOver"); |
| 172 | + |
| 173 | + [ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFillPressed")] |
| 174 | + public static ThemeResourceKey<Brush> Pressed => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFillPressed"); |
| 175 | + |
| 176 | + [ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFillFocused")] |
| 177 | + public static ThemeResourceKey<Brush> Focused => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFillFocused"); |
| 178 | + |
| 179 | + [ResourceKeyDefinition(typeof(Brush), "MaterialPipsPagerNavigationButtonVisualStateEllipseFillUnfocused")] |
| 180 | + public static ThemeResourceKey<Brush> Unfocused => new("MaterialPipsPagerNavigationButtonVisualStateEllipseFillUnfocused"); |
| 181 | + } |
| 182 | + } |
| 183 | + |
| 184 | + [ResourceKeyDefinition(typeof(Geometry), "PipsPagerPreviousPageButtonData")] |
| 185 | + public static ThemeResourceKey<Geometry> PreviousPageData => new("PipsPagerPreviousPageButtonData"); |
| 186 | + |
| 187 | + |
| 188 | + [ResourceKeyDefinition(typeof(Geometry), "PipsPagerNextPageButtonData")] |
| 189 | + public static ThemeResourceKey<Geometry> NextPageData => new("PipsPagerNextPageButtonData"); |
| 190 | + |
| 191 | + |
| 192 | + [ResourceKeyDefinition(typeof(double), "PipsPagerNavigationButtonHeight")] |
| 193 | + public static ThemeResourceKey<double> Height => new("PipsPagerNavigationButtonHeight"); |
| 194 | + |
| 195 | + |
| 196 | + [ResourceKeyDefinition(typeof(double), "PipsPagerNavigationButtonWidth")] |
| 197 | + public static ThemeResourceKey<double> Width => new("PipsPagerNavigationButtonWidth"); |
| 198 | + |
| 199 | + [ResourceKeyDefinition(typeof(Thickness), "PipsPagerNavigationButtonBorderThickness")] |
| 200 | + public static ThemeResourceKey<Thickness> BorderThickness => new("PipsPagerNavigationButtonBorderThickness"); |
| 201 | + |
| 202 | + [ResourceKeyDefinition(typeof(Thickness), "PipsPagerNavigationButtonPadding")] |
| 203 | + public static ThemeResourceKey<Thickness> Padding => new("PipsPagerNavigationButtonPadding"); |
| 204 | + } |
| 205 | + |
| 206 | + [ResourceKeyDefinition(typeof(double), "PipsPagerNormalEllipseSize")] |
| 207 | + public static ThemeResourceKey<double> NormalEllipseSize => new("PipsPagerNormalEllipseSize"); |
| 208 | + |
| 209 | + [ResourceKeyDefinition(typeof(double), "PipsPagerSelectedEllipseSize")] |
| 210 | + public static ThemeResourceKey<double> SelectedEllipseSize => new("PipsPagerSelectedEllipseSize"); |
| 211 | + } |
| 212 | + |
| 213 | + public static class Styles |
| 214 | + { |
| 215 | + [ResourceKeyDefinition(typeof(Style), "PipsPagerStyle", TargetType = typeof(PipsPager))] |
| 216 | + public static StaticResourceKey<Style> Default => new("PipsPagerStyle"); |
| 217 | + } |
| 218 | + } |
| 219 | + } |
| 220 | +} |
| 221 | + |
| 222 | + |
0 commit comments