-
Notifications
You must be signed in to change notification settings - Fork 14
/
DefaultIndicatorItemStyles.cs
29 lines (26 loc) · 1.01 KB
/
DefaultIndicatorItemStyles.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
namespace PanCardView.Controls.Styles
{
public static class DefaultIndicatorItemStyles
{
private static Style _defaultSelectedIndicatorItemStyle;
private static Style _defaultUnselectedIndicatorItemStyle;
static DefaultIndicatorItemStyles()
{
}
public static Style DefaultSelectedIndicatorItemStyle
=> _defaultSelectedIndicatorItemStyle ??= new Style(typeof(Border))
{
Setters = {
new Setter { Property = VisualElement.BackgroundColorProperty, Value = Colors.White.MultiplyAlpha(.8f) }
}
};
public static Style DefaultUnselectedIndicatorItemStyle
=> _defaultUnselectedIndicatorItemStyle ??= new Style(typeof(Border))
{
Setters = {
new Setter { Property = VisualElement.BackgroundColorProperty, Value = Colors.Transparent },
new Setter { Property = Border.StrokeProperty, Value = Colors.White.MultiplyAlpha(.8f) }
}
};
}
}