重命名控件库
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using System.Windows.Markup;
|
||||
|
||||
namespace VariaStudio.Appearance;
|
||||
namespace Melskin.Appearance;
|
||||
|
||||
/// <summary>
|
||||
/// ControlsDictionary 类继承自 ResourceDictionary,用于定义和管理控件相关的样式资源。
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.IO;
|
||||
using System.Reflection;
|
||||
using System.Windows.Media.Animation;
|
||||
|
||||
namespace VariaStudio.Appearance
|
||||
namespace Melskin.Appearance
|
||||
{
|
||||
/// <summary>
|
||||
/// 统一主题管理(合并原 ThemeManager + AppearanceManager 功能)。
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace VariaStudio.Appearance;
|
||||
namespace Melskin.Appearance;
|
||||
/// <summary>
|
||||
/// 明暗模式切换
|
||||
/// </summary>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System.IO;
|
||||
|
||||
namespace VariaStudio.Appearance
|
||||
namespace Melskin.Appearance
|
||||
{
|
||||
/// <summary>
|
||||
/// 主题偏好存储:简单文本文件:第一行 ThemeMode,第二行 ThemePalette
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using System.Windows.Markup;
|
||||
|
||||
|
||||
namespace VariaStudio.Appearance;
|
||||
namespace Melskin.Appearance;
|
||||
|
||||
/// <summary>
|
||||
/// 提供字典实现,该字典通过合并一个“模式”字典和一个依赖于模式的“调色板”字典来动态构建完整的主题。
|
||||
@@ -59,7 +59,7 @@ public class ThemesDictionary : ResourceDictionary
|
||||
// 更新 Mode 字典 (只要 Mode 有值就更新)
|
||||
if (currentMode.HasValue)
|
||||
{
|
||||
// 路径示例: /VariaStudio;component/Appearance/Themes/Dark.xaml
|
||||
// 路径示例: /Melskin;component/Appearance/Themes/Dark.xaml
|
||||
var modeSourceUri = new Uri($"{ThemeManager.ThemesDictionaryPath}{currentMode.Value}.xaml", UriKind.RelativeOrAbsolute);
|
||||
if (modeDictionary.Source != modeSourceUri)
|
||||
{
|
||||
@@ -71,7 +71,7 @@ public class ThemesDictionary : ResourceDictionary
|
||||
if (currentMode.HasValue && currentPalette.HasValue)
|
||||
{
|
||||
var paletteName = $"{currentMode.Value}{currentPalette.Value}";
|
||||
// 路径示例: /VariaStudio;component/Appearance/Themes/Accents/DarkGreen.xaml
|
||||
// 路径示例: /Melskin;component/Appearance/Themes/Accents/DarkGreen.xaml
|
||||
var paletteSourceUri = new Uri($"{ThemeManager.ThemesDictionaryPath}Accents/{paletteName}.xaml", UriKind.RelativeOrAbsolute);
|
||||
if (paletteDictionary.Source != paletteSourceUri)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user