2025-07-11 09:20:23 +08:00
|
|
|
|
using System.Windows;
|
|
|
|
|
|
using System.Windows.Media;
|
|
|
|
|
|
|
|
|
|
|
|
using WPFDark.Controls.Converters;
|
|
|
|
|
|
|
|
|
|
|
|
namespace WPFDark
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class Constants
|
|
|
|
|
|
{
|
|
|
|
|
|
public const double BasicCornerRadiusPrim = 4;
|
|
|
|
|
|
public static CornerRadius BasicCornerRadius = new CornerRadius(BasicCornerRadiusPrim);
|
|
|
|
|
|
|
|
|
|
|
|
public const double GroupCornerRadiusPrim = 8;
|
|
|
|
|
|
public static CornerRadius GroupCornerRadius = new CornerRadius(GroupCornerRadiusPrim);
|
|
|
|
|
|
|
|
|
|
|
|
public const double BasicOneLineHeight = 24;
|
|
|
|
|
|
|
|
|
|
|
|
public const double ButtonPaddingX = 10;
|
|
|
|
|
|
public const double ButtonPaddingY = 3;
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly TreeListViewItemMarginConverter TreeListViewItemFirstMarginConverter = new TreeListViewItemMarginConverter
|
|
|
|
|
|
{
|
|
|
|
|
|
IsFirstColumn = true,
|
|
|
|
|
|
Length = 19
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly TreeListViewItemMarginConverter TreeListViewItemMarginConverter = new TreeListViewItemMarginConverter
|
|
|
|
|
|
{
|
|
|
|
|
|
Length = 19
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public static readonly IndentToMarginConverter LengthConverter = new IndentToMarginConverter();
|
|
|
|
|
|
|
|
|
|
|
|
public static Brush CheckerBrush => _CheckerBrush ??= (Brush) ThemeManager.Current.TryFindResource("CheckerBrush");
|
|
|
|
|
|
|
|
|
|
|
|
private static Brush? _CheckerBrush;
|
2025-07-12 23:31:32 +08:00
|
|
|
|
|
|
|
|
|
|
public static readonly DoubleColor[] PresetColors =
|
|
|
|
|
|
{
|
|
|
|
|
|
DoubleColor.Zero,
|
|
|
|
|
|
new DoubleColor{R = 0xF4/(double)0xFF, G = 0x43/(double)0xFF, B = 0x36/(double)0xFF, A = 1.0},
|
|
|
|
|
|
new DoubleColor{R = 0x9C/(double)0xFF, G = 0x27/(double)0xFF, B = 0xB0/(double)0xFF, A = 1.0},
|
|
|
|
|
|
new DoubleColor{R = 0x3F/(double)0xFF, G = 0x51/(double)0xFF, B = 0xB5/(double)0xFF, A = 1.0},
|
|
|
|
|
|
new DoubleColor{R = 0x03/(double)0xFF, G = 0xA9/(double)0xFF, B = 0xF4/(double)0xFF, A = 1.0},
|
|
|
|
|
|
new DoubleColor{R = 0x00/(double)0xFF, G = 0x96/(double)0xFF, B = 0x88/(double)0xFF, A = 1.0},
|
|
|
|
|
|
new DoubleColor{R = 0x8B/(double)0xFF, G = 0xC3/(double)0xFF, B = 0x4A/(double)0xFF, A = 1.0},
|
|
|
|
|
|
new DoubleColor{R = 0xFF/(double)0xFF, G = 0xEB/(double)0xFF, B = 0x3B/(double)0xFF, A = 1.0},
|
|
|
|
|
|
new DoubleColor{R = 0xFF/(double)0xFF, G = 0x98/(double)0xFF, B = 0x00/(double)0xFF, A = 1.0},
|
|
|
|
|
|
};
|
2025-07-11 09:20:23 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum BiaWindowCloseButtonBehavior
|
|
|
|
|
|
{
|
|
|
|
|
|
Normal,
|
|
|
|
|
|
DoNothing
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum BiaWindowAction
|
|
|
|
|
|
{
|
|
|
|
|
|
None,
|
|
|
|
|
|
Active,
|
|
|
|
|
|
Close,
|
|
|
|
|
|
Normalize,
|
|
|
|
|
|
Maximize,
|
|
|
|
|
|
Minimize
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum BiaTextTrimmingMode
|
|
|
|
|
|
{
|
|
|
|
|
|
None,
|
|
|
|
|
|
Standard,
|
|
|
|
|
|
Filepath
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|