原MODS名称:Windows 11 Taskbar Styler
🎨 Windows 11 任务栏样式器的 Matter 主题 ✨
作者: ZoraizLajwer
☀️ 浅色模式
Light🌙 深色模式
Preview Left Center 🔊 音量面板 🔆 亮度面板⚠️ 注意
天气图标旁边的小图标不是主题的一部分;它是一个独立的 Rainmeter 皮肤,也是我的另一个项目。你可以从 Spotibar 下载它。📋 需要了解的事项
- 🖥️ 主题设计基于 Windows 11 – 23H2
- 🎭 兼容浅色和深色模式
- 🔤 从 Google Fonts 安装 Tektur 字体(时钟自定义需要)
🔧 获得类似效果所需的 Windhawk 模组
要获得类似效果,除了任务栏样式器外,还需要安装和配置以下 Windhawk 模组:- ⏰ 任务栏时钟自定义 – 用于设置时钟样式。
{
"ShowSeconds": 1,
"TimeFormat": "hh':'mm':'ss tt",
"DateFormat": "ddd' -' MMM dd",
"WeekdayFormat": "dddd",
"TopLine": "%date%",
"BottomLine": "%time%",
"MiddleLine": "%weekday%",
"TooltipLine": "",
"Width": 180,
"Height": 60,
"MaxWidth": 0,
"TextSpacing": -1,
"WebContentsUpdateInterval": 10,
"TimeStyle.Visible": 1,
"TimeStyle.TextColor": "",
"TimeStyle.TextAlignment": "Center",
"TimeStyle.FontSize": 0,
"TimeStyle.FontFamily": "Tektur",
"TimeStyle.FontWeight": "Medium",
"TimeStyle.FontStyle": "",
"TimeStyle.FontStretch": "",
"TimeStyle.CharacterSpacing": 0,
"DateStyle.TextColor": "",
"DateStyle.TextAlignment": "Center",
"DateStyle.FontSize": 0,
"DateStyle.FontFamily": "Tektur",
"DateStyle.FontWeight": "Medium",
"DateStyle.FontStyle": "",
"DateStyle.FontStretch": "",
"DateStyle.CharacterSpacing": 0,
"oldTaskbarOnWin11": 0
}
- 📐 任务栏高度和图标大小
- 要将按钮设置为正方形,将
任务栏按钮宽度= 45 图标大小= 23任务栏高度= 48
🎯 主题选择
该主题已集成到模组中,可以直接从模组的设置中选择:
📂 在 Windhawk 中打开 Windows 11 任务栏样式器模组。
⚙️ 进入”设置”选项卡。
🎨 选择主题并保存设置。
主题样式也可以手动导入。请按照以下步骤操作:🛠️ 手动安装
styleConstants:
- mainRadius = 8
- transparent = <SolidColorBrush Color="Transparent"/>
- base = <AcrylicBrush TintColor="{ThemeResource SystemAltLowColor}" TintOpacity="1" TintLuminosityOpacity="0.7" FallbackColor="{ThemeResource SystemChromeLowColor}" />
- overlay = <AcrylicBrush TintColor="{ThemeResource SystemAltLowColor}" TintOpacity="1" TintLuminosityOpacity="0.8" FallbackColor="{ThemeResource CardStrokeColorDefaultSolid}" />
- overlay2 = <AcrylicBrush TintColor="{ThemeResource SystemAltLowColor}" TintOpacity="1" TintLuminosityOpacity="0.5" FallbackColor="{ThemeResource CardStrokeColorDefaultSolid}" />
- accentColor = <SolidColorBrush Color="{ThemeResource SystemAccentColor}" Opacity = "1" />
- inverseBW = <SolidColorBrush Color="{ThemeResource SystemBaseHighColor}" Opacity = "1" />
- active = <AcrylicBrush TintColor="{ThemeResource SystemAltLowColor}" TintOpacity="1" TintLuminosityOpacity="1" FallbackColor="{ThemeResource CardStrokeColorDefaultSolid}" />
controlStyles:
- target: Taskbar.TaskbarFrame > Grid#RootGrid > Taskbar.TaskbarBackground > Grid > Rectangle#BackgroundFill
styles:
- Fill := $transparent
- target: Rectangle#BackgroundStroke
styles:
- Fill := $transparent
- target: Taskbar.TaskbarBackground#HoverFlyoutBackgroundControl
styles:
- Fill:=$base
- CornerRadius = $mainRadius
- target: Taskbar.AugmentedEntryPointButton#AugmentedEntryPointButton
styles:
- Margin=-1,1,1,1
- target: Taskbar.TaskListButtonPanel@CommonStates > Grid > Border#BackgroundElement, Taskbar.TaskListButtonPanel@CommonStates > Border#BackgroundElement
styles:
- CornerRadius = $mainRadius
- Background :=$base
- Background@InactivePointerOver :=$overlay2
- Background@ActivePointerOver:=$overlay
- Background@ActiveNormal :=$active
- target: Taskbar.ExperienceToggleButton#LaunchListButton[AutomationProperties.Name=Task View]
styles:
- Margin=0,0,2,0
- target: Taskbar.TaskListButton#TaskListButton[AutomationProperties.Name=Copilot] > Grid#IconPanel > Border#BackgroundElement, Taskbar.TaskListButton#TaskListButton[AutomationProperties.Name=Copilot] > Taskbar.TaskListLabeledButtonPanel#IconPanel > Border#BackgroundElement
styles:
- Visibility = 1
- target: Taskbar.SearchBoxButton
styles:
- Margin=0,0,2,0
- target: SearchUx.SearchUI.SearchButtonControl
styles:
- Margin=0,0,2,0
- target: Border#BackgroundElement
styles:
- BorderThickness=0
- target: Grid#IconPanel@CommonStates > Border#BackgroundElement, Taskbar.TaskListLabeledButtonPanel@CommonStates > Border#BackgroundElement
styles:
- Background@InactiveNormal :=$base
- Background@ActiveNormal :=$active
- Background@InactivePointerOver :=$overlay2
- Background@ActivePointerOver:=$overlay
- CornerRadius = $mainRadius
- Margin = 1,0,1,0
- Background@MultiWindowNormal:=$base
- Background@MultiWindowPointerOver:=$overlay2
- Background@MultiWindowActive:=$active
- Background@MultiWindowPressed:=$overlay
- target: Border#MultiWindowElement
styles:
- CornerRadius = $mainRadius
- Padding = 7,0,8,0
- Background :=$accentColor
- target: Grid#IconPanel > TextBlock#LabelControl, Taskbar.TaskListLabeledButtonPanel > TextBlock#LabelControl
styles:
- Margin=0,0,2,0
- target: Grid#IconPanel@RunningIndicatorStates > Rectangle#RunningIndicator, Taskbar.TaskListLabeledButtonPanel@RunningIndicatorStates > Rectangle#RunningIndicator
styles:
- Fill := $inverseBW
- RadiusX=1.5
- RadiusY=1.5
- Height=4
- Width=12
- Fill@ActiveRunningIndicator :=$accentColor
- Width@ActiveRunningIndicator=21
- target: StackPanel#SystemTrayFrameGrid, Grid#SystemTrayFrameGrid
styles:
- Background:=$base
- CornerRadius = $mainRadius
- Margin=0,5,12,5
- Padding=5,0,0,0
- target: Border#BackgroundBorder
styles:
- Margin=2,5,2,5
- CornerRadius=8
- BorderThickness = 0
- target: Grid#OverflowRootGrid > Border
styles:
- Background:=$base
- Shadow :=
- CornerRadius = 14
- target: Windows.UI.Xaml.Shapes.Rectangle#HorizontalTrackRect
styles:
- Height = 8
- Margin = 0
- Fill := $overlay
- target: Windows.UI.Xaml.Shapes.Rectangle#HorizontalDecreaseRect
styles:
- Height = 8
- target: Windows.UI.Xaml.Controls.TextBlock#volumeLevelText
styles:
- FontFamily = Tektur
- Margin = 0,-2,0,0
- target: Windows.UI.Xaml.Controls.Grid#VolumeConfirmator
styles:
- Padding = 8,0,3,0
- CornerRadius = 20
- target: Windows.UI.Xaml.Controls.Grid#ConfirmatorMainGrid
styles:
- Background :=$base
- CornerRadius = 14
- BorderThickness = 0
- Margin = 0,0,0,10
- Shadow :=
- target: Windows.UI.Xaml.Controls.Grid#BrightnessConfirmator
styles:
- Padding = 15,0,17,0
- CornerRadius = 20
- target: Microsoft.UI.Xaml.Controls.AnimatedIcon#BrightnessIcon
styles:
- Margin = 0,-1,12,0
- target: Microsoft.UI.Xaml.Controls.ProgressBar#ProgressIndicator
styles:
- Margin = 0,0,0,1
- target: Windows.UI.Xaml.Shapes.Rectangle#ProgressBarTrack
styles:
- Fill := $inverseBW
- RadiusX = 1.5
- RadiusY = 1.5
- target: Windows.UI.Xaml.Shapes.Rectangle#DeterminateProgressBarIndicator
styles:
- Fill :=$accentColor
- target: Taskbar.TaskListButton#TaskListButton > Grid#IconPanel > Microsoft.UI.Xaml.Controls.ProgressBar#ProgressIndicator, Taskbar.TaskListButton#TaskListButton > Taskbar.TaskListLabeledButtonPanel#IconPanel > Microsoft.UI.Xaml.Controls.ProgressBar#ProgressIndicator
styles:
- MinHeight = 4
- Width = 26
- target: Windows.UI.Xaml.Controls.ContentPresenter#ContentPresenter
styles:
- BorderThickness = 0
- target: Taskbar.ExperienceToggleButton#LaunchListButton[AutomationProperties.Name=Start]
styles:
- Margin = 0,0,2,0
- target: Taskbar.Badge#BadgeControl
styles:
- Height = 14
- MinWidth = 14
- Margin = 0,0,0,0
- CornerRadius = 20
- target: Taskbar.Badge > Grid > Windows.UI.Xaml.Shapes.Rectangle#BackgroundRect
styles:
- RadiusX = 4
- RadiusY = 4
- target: MenuFlyoutPresenter
styles:
- Background := $base
- Shadow :=
- CornerRadius = 8
- target: SearchUx.SearchUI.SearchButtonRootGrid@CommonStates > Grid > Border#BackgroundElement, SearchUx.SearchUI.SearchButtonRootGrid@CommonStates > Border#BackgroundElement
styles:
- Background@InactiveNormal :=$base
- CornerRadius = $mainRadius
- Background :=$base
- Background@InactivePointerOver :=$overlay2
- Background@ActivePointerOver:=$overlay
- Background@ActiveNormal :=$active
🎨 修改任务栏图标的背景颜色
要修改任务栏图标的背景颜色,你需要编辑 styleConstants 中的颜色定义。以下是各个颜色常量的说明:
| 常量名称 | 用途 | 默认颜色 |
|---|---|---|
$base | 图标默认背景色 | 半透明亚克力效果 |
$overlay | 鼠标悬停时活动窗口的背景色 | 较深的亚克力效果 |
$overlay2 | 鼠标悬停时非活动窗口的背景色 | 中等亚克力效果 |
$active | 活动窗口的背景色 | 最深的亚克力效果 |
$accentColor | 多窗口指示器的背景色 | 系统强调色 |
$inverseBW | 运行指示器的颜色 | 系统基础高对比色 |
📝 修改步骤:
1、📂 在 Windhawk 中打开 Windows 11 任务栏样式器模组
2、🔧 进入”高级”选项卡
3、🎯 找到你想要修改的颜色常量(如 styleConstants[2] 对应 $base)
4、🎨 修改颜色值,例如:
– 使用纯色:<SolidColorBrush Color="#FF5733"/>
– 使用半透明色:<SolidColorBrush Color="#FF5733" Opacity="0.5"/>
– 使用系统颜色:<SolidColorBrush Color="{ThemeResource SystemAccentColor}"/>
💡 示例:将背景改为蓝色
将 styleConstants[2] 从:
"styleConstants[2]": "base = <AcrylicBrush TintColor=\"{ThemeResource SystemAltLowColor}\" TintOpacity=\"1\" TintLuminosityOpacity=\"0.7\" FallbackColor=\"{ThemeResource SystemChromeLowColor}\" />"
改为:
"styleConstants[2]": "base = <SolidColorBrush Color=\"#2196F3\" Opacity=\"0.8\"/>"
💡 提示:
- 🎨 颜色格式为 ARGB(Alpha, Red, Green, Blue)
- 🔍 可以使用在线颜色选择器获取颜色代码
- 💾 修改后点击保存即可看到效果
- 🔄 如果不满意,可以恢复默认的 JSON 配置
评论(0)
暂无评论