mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-20 23:54:26 +08:00
feat.融合桌面组件展示优化
This commit is contained in:
@@ -22,6 +22,10 @@ public sealed class PluginDesktopComponentOptions
|
||||
|
||||
public string? DisplayNameLocalizationKey { get; init; }
|
||||
|
||||
public string? Description { get; init; }
|
||||
|
||||
public string? DescriptionLocalizationKey { get; init; }
|
||||
|
||||
public PluginCornerRadiusPreset CornerRadiusPreset { get; init; } = PluginCornerRadiusPreset.Default;
|
||||
|
||||
public Func<IPluginAppearanceContext, double, double>? CornerRadiusResolver { get; init; }
|
||||
|
||||
@@ -20,6 +20,12 @@ public sealed class PluginDesktopComponentRegistration
|
||||
DisplayNameLocalizationKey = string.IsNullOrWhiteSpace(options.DisplayNameLocalizationKey)
|
||||
? null
|
||||
: options.DisplayNameLocalizationKey.Trim();
|
||||
Description = string.IsNullOrWhiteSpace(options.Description)
|
||||
? null
|
||||
: options.Description.Trim();
|
||||
DescriptionLocalizationKey = string.IsNullOrWhiteSpace(options.DescriptionLocalizationKey)
|
||||
? null
|
||||
: options.DescriptionLocalizationKey.Trim();
|
||||
ControlFactory = controlFactory;
|
||||
IconKey = options.IconKey.Trim();
|
||||
Category = options.Category.Trim();
|
||||
@@ -45,6 +51,10 @@ public sealed class PluginDesktopComponentRegistration
|
||||
|
||||
public string? DisplayNameLocalizationKey { get; }
|
||||
|
||||
public string? Description { get; }
|
||||
|
||||
public string? DescriptionLocalizationKey { get; }
|
||||
|
||||
public Func<IServiceProvider, PluginDesktopComponentContext, Control> ControlFactory { get; }
|
||||
|
||||
public string IconKey { get; }
|
||||
|
||||
Reference in New Issue
Block a user