feat: update light theme.
This commit is contained in:
@@ -7,7 +7,7 @@ using Avalonia.Styling;
|
||||
namespace Ursa.Controls;
|
||||
|
||||
[PseudoClasses(PC_Left, PC_Right, PC_Selected)]
|
||||
public class PaginationButton: Button, IStyleable
|
||||
public class PaginationButton: Button
|
||||
{
|
||||
public const string PC_Left = ":left";
|
||||
public const string PC_Right = ":right";
|
||||
@@ -21,16 +21,16 @@ public class PaginationButton: Button, IStyleable
|
||||
get => GetValue(PageProperty);
|
||||
set => SetValue(PageProperty, value);
|
||||
}
|
||||
public bool IsLeftForward { get; private set; }
|
||||
public bool IsRightForward { get; private set; }
|
||||
internal bool IsFastForward { get; private set; }
|
||||
internal bool IsFastBackward { get; private set; }
|
||||
|
||||
internal void SetStatus(int page, bool isSelected, bool isLeft, bool isRight)
|
||||
{
|
||||
PseudoClasses.Set(PC_Selected, isSelected);
|
||||
PseudoClasses.Set(PC_Left, isLeft);
|
||||
PseudoClasses.Set(PC_Right, isRight);
|
||||
IsLeftForward = isLeft;
|
||||
IsRightForward = isRight;
|
||||
IsFastForward = isLeft;
|
||||
IsFastBackward = isRight;
|
||||
Page = page;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user