feat: update light theme.

This commit is contained in:
rabbitism
2023-06-21 20:12:43 +08:00
parent 105c996af4
commit c4f49765b8
7 changed files with 85 additions and 25 deletions

View File

@@ -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;
}