ColorVision.Themes
1.5.7.1
dotnet add package ColorVision.Themes --version 1.5.7.1
NuGet\Install-Package ColorVision.Themes -Version 1.5.7.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
For projects that support PackageReference, copy this XML node into the project file to reference the package.
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ColorVision.Themes --version 1.5.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ColorVision.Themes, 1.5.7.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ColorVision.Themes@1.5.7.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ColorVision.Themes&version=1.5.7.1
#tool nuget:?package=ColorVision.Themes&version=1.5.7.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ColorVision.Themes
版本: 1.5.5.1 | 目标框架: .NET 8.0 / .NET 10.0 Windows
功能定位
主题管理和样式系统,提供三种预设主题(系统/浅色/深色)、自定义控件、值转换器和窗口样式。
主要功能
主题管理
- ThemeManager — 主题切换核心类,支持运行时动态切换
- 三种主题 — UseSystem / Light / Dark
- 系统主题跟随 — 自动适配 Windows 系统主题
- 标题栏颜色 — SetWindowTitleBarColor 匹配主题
- 配置持久化 — 主题选择自动保存
主题资源
| 资源文件 | 说明 |
|---|---|
Base.xaml |
基础共享样式 |
Dark.xaml |
深色主题 |
White.xaml |
浅色主题 |
Menu.xaml / GroupBox.xaml / Icons.xaml |
通用控件样式 |
自定义控件
- MessageBox — 主题化消息对话框
- ProgressRing — 进度环
- LoadingOverlay — 加载遮罩层
- UploadControl — 文件上传(拖拽 + 文件选择)
- UploadWindow / UploadMsg — 上传窗口和消息
值转换器
| 转换器 | 用途 |
|---|---|
BooleanToVisibilityReConverter |
布尔 → 可见性(反向) |
InverseBooleanConverter |
布尔反向 |
MemorySizeConverter |
字节 → 可读大小 |
EnumToVisibilityConverter |
枚举 → 可见性 |
IntToVisibilityConverter |
整数 → 可见性 |
WidthToBooleanConverter |
宽度 → 布尔 |
窗口样式
- BaseWindow — 基础窗口样式
- WindowHelper — 窗口帮助类
- WindowBlur — 窗口模糊效果(DWM)
依赖关系
- 引用: HandyControl 3.5.1
- 被引用: ColorVision.UI, ColorVision.Scheduler, ColorVision.ImageEditor
构建
dotnet build UI/ColorVision.Themes/ColorVision.Themes.csproj
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0-windows7.0
- HandyControl (>= 3.5.1)
-
net8.0-windows7.0
- HandyControl (>= 3.5.1)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on ColorVision.Themes:
| Package | Downloads |
|---|---|
|
ColorVision.UI
Package Description |
|
|
ColorVision.ImageEditor
Package Description |
|
|
ColorVision.Scheduler
Package Description |
|
|
ColorVision.Rbac
ColorVision user, role, permission, session, and audit management for WPF applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.7.1 | 236 | 7/23/2026 |
| 1.5.6.1 | 155 | 7/8/2026 |
| 1.5.5.3 | 144 | 6/2/2026 |
| 1.5.5.2 | 156 | 5/31/2026 |
| 1.5.5.1 | 169 | 4/13/2026 |
| 1.5.4.1 | 143 | 3/31/2026 |
| 1.5.1.2 | 131 | 3/31/2026 |
| 1.5.1.1 | 179 | 2/16/2026 |
| 1.4.1.1 | 161 | 2/3/2026 |
| 1.3.10.1 | 170 | 1/14/2026 |
| 1.3.8.3 | 365 | 10/17/2025 |
| 1.3.8.2 | 249 | 9/30/2025 |
| 1.3.8.1 | 286 | 9/25/2025 |
| 1.3.7.1 | 290 | 9/21/2025 |
| 1.3.6.1 | 230 | 9/5/2025 |
| 1.3.5.1 | 325 | 8/24/2025 |
| 1.3.4.1 | 240 | 8/18/2025 |
| 1.3.2.2 | 287 | 6/3/2025 |
| 1.3.2.1 | 231 | 6/2/2025 |
| 1.3.1.1 | 237 | 5/29/2025 |
Loading failed