mirror of
https://gitee.com/chinware/atomui.git
synced 2024-11-29 18:38:16 +08:00
feat: 修改token
This commit is contained in:
parent
f8bc048407
commit
9662ad2ee0
@ -1,4 +1,4 @@
|
||||
namespace AtomUI.Theme
|
||||
namespace AtomUI.Theme
|
||||
{
|
||||
internal class ControlThemeRegister
|
||||
{
|
||||
@ -103,6 +103,8 @@ namespace AtomUI.Theme
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.TabStripItemTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.TabStripTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.TagTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.TimelineItemTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.TimelineTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.RangeTimePickerTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.TimePickerFlyoutPresenterTheme());
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.TimePickerPresenterTheme());
|
||||
@ -114,4 +116,4 @@ namespace AtomUI.Theme
|
||||
ThemeManager.Current.RegisterControlTheme(new AtomUI.Controls.TreeViewTheme());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
namespace AtomUI.Theme
|
||||
namespace AtomUI.Theme
|
||||
{
|
||||
internal class ControlTokenTypeRegister
|
||||
{
|
||||
@ -39,6 +39,7 @@ namespace AtomUI.Theme
|
||||
ThemeManager.Current.RegisterControlTokenType(typeof(AtomUI.Controls.ToggleSwitchToken));
|
||||
ThemeManager.Current.RegisterControlTokenType(typeof(AtomUI.Controls.TabControlToken));
|
||||
ThemeManager.Current.RegisterControlTokenType(typeof(AtomUI.Controls.TagToken));
|
||||
ThemeManager.Current.RegisterControlTokenType(typeof(AtomUI.Controls.TimelineToken));
|
||||
ThemeManager.Current.RegisterControlTokenType(typeof(AtomUI.Controls.TimePickerToken));
|
||||
ThemeManager.Current.RegisterControlTokenType(typeof(AtomUI.Controls.ToolTipToken));
|
||||
ThemeManager.Current.RegisterControlTokenType(typeof(AtomUI.Controls.TreeViewToken));
|
||||
@ -46,4 +47,4 @@ namespace AtomUI.Theme
|
||||
ThemeManager.Current.RegisterControlTokenType(typeof(AtomUI.Controls.WindowToken));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
using AtomUI.Theme.TokenSystem;
|
||||
using AtomUI.Theme.TokenSystem;
|
||||
|
||||
namespace AtomUI.Theme.Styling
|
||||
{
|
||||
@ -650,6 +650,23 @@ namespace AtomUI.Theme.Styling
|
||||
public static readonly TokenResourceKey TagBorderlessBg = new TokenResourceKey("Tag.TagBorderlessBg", "AtomUI.Token");
|
||||
}
|
||||
|
||||
public static class TimelineTokenResourceKey
|
||||
{
|
||||
public static readonly TokenResourceKey TailColor = new TokenResourceKey("Timeline.TailColor", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey TailWidth = new TokenResourceKey("Timeline.TailWidth", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey DotBorderWidth = new TokenResourceKey("Timeline.DotBorderWidth", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey ItemSelectedColor = new TokenResourceKey("Timeline.ItemSelectedColor", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey DotBg = new TokenResourceKey("Timeline.DotBg", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey ItemBgColor = new TokenResourceKey("Timeline.ItemBgColor", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey ItemPaddingBottom = new TokenResourceKey("Timeline.ItemPaddingBottom", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey RightMargin = new TokenResourceKey("Timeline.RightMargin", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey LeftMargin = new TokenResourceKey("Timeline.LeftMargin", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey LastItemContentMinHeight = new TokenResourceKey("Timeline.LastItemContentMinHeight", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey FontSize = new TokenResourceKey("Timeline.FontSize", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey ItemHeadSize = new TokenResourceKey("Timeline.ItemHeadSize", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey CustomHeadSize = new TokenResourceKey("Timeline.CustomHeadSize", "AtomUI.Token");
|
||||
}
|
||||
|
||||
public static class TimePickerTokenResourceKey
|
||||
{
|
||||
public static readonly TokenResourceKey ItemHeight = new TokenResourceKey("TimePicker.ItemHeight", "AtomUI.Token");
|
||||
@ -703,4 +720,4 @@ namespace AtomUI.Theme.Styling
|
||||
public static readonly TokenResourceKey DefaultBackground = new TokenResourceKey("Window.DefaultBackground", "AtomUI.Token");
|
||||
public static readonly TokenResourceKey DefaultForeground = new TokenResourceKey("Window.DefaultForeground", "AtomUI.Token");
|
||||
}
|
||||
}
|
||||
}
|
@ -86,20 +86,20 @@ internal class TimelineToken : AbstractControlDesignToken
|
||||
|
||||
|
||||
TailColor = _globalToken.ColorSplit;
|
||||
TailWidth = _globalToken.StyleToken.LineWidthBold;
|
||||
DotBorderWidth = _globalToken.SeedToken.Wireframe
|
||||
? _globalToken.StyleToken.LineWidthBold
|
||||
: _globalToken.SeedToken.LineWidth * 3;
|
||||
DotBg = _globalToken.ColorToken.ColorNeutralToken.ColorBgContainer;
|
||||
TailWidth = _globalToken.LineWidthBold;
|
||||
DotBorderWidth = _globalToken.Wireframe
|
||||
? _globalToken.LineWidthBold
|
||||
: _globalToken.LineWidth * 3;
|
||||
DotBg = _globalToken.ColorBgContainer;
|
||||
ItemPaddingBottom = new Thickness(0, 0, 0, _globalToken.Padding * 1.25);
|
||||
|
||||
LeftMargin = new Thickness(_globalToken.Margin, 0, 0, 0);
|
||||
RightMargin = new Thickness(0, 0, _globalToken.MarginSM, 0);
|
||||
|
||||
LastItemContentMinHeight = _globalToken.HeightToken.ControlHeightLG * 1.2;
|
||||
FontSize = _globalToken.FontToken.FontSize;
|
||||
LastItemContentMinHeight = _globalToken.ControlHeightLG * 1.2;
|
||||
FontSize = _globalToken.FontSize;
|
||||
ItemHeadSize = 10;
|
||||
CustomHeadSize = _globalToken.FontToken.FontSize;
|
||||
CustomHeadSize = _globalToken.FontSize;
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user