Skip to content

Commit

Permalink
Updated style targets to Border.
Browse files Browse the repository at this point in the history
  • Loading branch information
DashTheDev committed Jun 20, 2024
1 parent 96e6097 commit e68c8fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PanCardView/Common/Styles/DefaultIndicatorItemStyles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ static DefaultIndicatorItemStyles()
}

public static Style DefaultSelectedIndicatorItemStyle
=> _defaultSelectedIndicatorItemStyle ??= new Style(typeof(Frame))
=> _defaultSelectedIndicatorItemStyle ??= new Style(typeof(Border))
{
Setters = {
new Setter { Property = VisualElement.BackgroundColorProperty, Value = Colors.White.MultiplyAlpha(.8f) }
}
};

public static Style DefaultUnselectedIndicatorItemStyle
=> _defaultUnselectedIndicatorItemStyle ??= new Style(typeof(Frame))
=> _defaultUnselectedIndicatorItemStyle ??= new Style(typeof(Border))
{
Setters = {
new Setter { Property = VisualElement.BackgroundColorProperty, Value = Colors.Transparent },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public CarouselSampleSrollView()
Children = {
new IndicatorsControl
{
SelectedIndicatorStyle = new Style(typeof(Frame))
SelectedIndicatorStyle = new Style(typeof(Border))
{
BasedOn = DefaultIndicatorItemStyles.DefaultSelectedIndicatorItemStyle,
Setters = {
Expand Down

0 comments on commit e68c8fd

Please sign in to comment.