Skip to content

Commit 287ab3c

Browse files
refactor: acrylic by Windows.UI.Composition
Co-Authored-By: cnbluefire <27049838+cnbluefire@users.noreply.github.com>
1 parent d411020 commit 287ab3c

File tree

11 files changed

+7
-39
lines changed

11 files changed

+7
-39
lines changed

CONFIG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ The following is a fully annotated default JSON configuration. Note that this **
3636
{
3737
"context_menu": {
3838
"theme": {
39-
// Use DWM-rounded corners instead of SetWindowRgn rounded corners on Windows 11
40-
"use_dwm_if_available": true,
4139
// Enable acrylic background effect
4240
"acrylic": true,
4341
// Corner radius (only effective when DWM-rounded corners are not used)

CONFIG_zh.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ Breeze Shell 配置文件的 JSON Schema 位于
3030
{
3131
"context_menu": {
3232
"theme": {
33-
// 在 Windows 11 下使用 DWM 圆角而不是 SetWindowRgn 圆角
34-
"use_dwm_if_available": true,
3533
// 启用亚克力背景效果
3634
"acrylic": true,
3735
// 圆角大小,仅在不使用 DWM 圆角时生效

deps/breeze-ui.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package("breeze-glfw")
33
set_urls("https://github.com/breeze-shell/glfw.git")
44
add_versions("2026.03.07+1", "a79c32a7d9ef4cd8a15b5f8ccbcdf9510c48da03")
55

6-
local BREEZE_UI_VER = "2026.03.07+15"
7-
local BREEZE_UI_HASH = "584d9d313ec12ac4725f6696773415aba477ce87"
6+
local BREEZE_UI_VER = "2026.03.22+1"
7+
local BREEZE_UI_HASH = "0c3989af0bee217cda691877431a80ae46dd3067"
88

99
package("breeze-nanosvg")
1010
add_urls("https://github.com/std-microblock/breeze-ui.git")
@@ -39,7 +39,7 @@ package("breeze-ui")
3939
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
4040

4141
if is_plat("windows") then
42-
add_syslinks("dwmapi", "shcore")
42+
add_syslinks("dwmapi", "shcore", "windowsapp", "CoreMessaging")
4343
end
4444

4545
on_install("windows", function (package)

resources/schema-zh_CN.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@
6969
"type": "object",
7070
"additionalProperties": false,
7171
"properties": {
72-
"use_dwm_if_available": {
73-
"title": "尝试使用 Windows 11 圆角",
74-
"description": "在 Windows 11 下使用 DWM 圆角而不是 SetWindowRgn 圆角",
75-
"type": "boolean",
76-
"default": true
77-
},
7872
"background_opacity": {
7973
"title": "背景透明度",
8074
"description": "0.0 表示完全透明,1.0 表示完全不透明",

resources/schema.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,6 @@
6969
"type": "object",
7070
"additionalProperties": false,
7171
"properties": {
72-
"use_dwm_if_available": {
73-
"title": "Try Using Windows 11 Rounded Corners",
74-
"description": "Use DWM rounded corners instead of SetWindowRgn rounded corners on Windows 11",
75-
"type": "boolean",
76-
"default": true
77-
},
7872
"background_opacity": {
7973
"title": "Background Opacity",
8074
"description": "0.0 means fully transparent, 1.0 means fully opaque",

src/shell/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ struct config {
3131
static animated_float_conf _default_animation;
3232
struct context_menu {
3333
struct theme {
34-
bool use_dwm_if_available = true;
3534
float background_opacity = 1;
3635
bool acrylic = true;
3736
float radius = 6;
@@ -72,6 +71,7 @@ struct config {
7271

7372
// unused, only for backward compatibility
7473
float acrylic_opacity = 0.1;
74+
bool use_dwm_if_available = true;
7575

7676
struct animation {
7777
struct main {

src/shell/entry.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void main() {
7777
set_thread_locale_utf8();
7878

7979
init_logger();
80-
install_error_handlers();
80+
// install_error_handlers();
8181
config::run_config_loader();
8282

8383
if (config::current->debug_console) {

src/shell/script/ts/src/config_page/components/ThemeCustomEditor.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,6 @@ export const ThemeCustomEditor = memo(({
162162
</OptionGroup>
163163

164164
<OptionGroup label={t("customEditor.theme.effects")}>
165-
<Toggle
166-
label={t("customEditor.theme.useDwm")}
167-
value={theme?.use_dwm_if_available ?? true}
168-
onChange={(v) => updateValue('use_dwm_if_available', v)}
169-
/>
170165
<Toggle
171166
label={t("customEditor.theme.acrylic")}
172167
value={theme?.acrylic ?? true}

src/shell/script/ts/src/config_page/pages/ContextMenuConfig.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,6 @@ const ContextMenuConfig = memo(() => {
199199
setNestedValue(newConfig, "reverse_if_open_to_up", v);
200200
update(newConfig);
201201
}} />
202-
<Toggle label={t("settings.tryWin11RoundCorner")} value={getNestedValue(config, "theme.use_dwm_if_available") ?? true} onChange={(v) => {
203-
const newConfig = { ...config };
204-
setNestedValue(newConfig, "theme.use_dwm_if_available", v);
205-
update(newConfig);
206-
}} />
207202
<Toggle label={t("settings.acrylicBackground")} value={getNestedValue(config, "theme.acrylic") ?? true} onChange={(v) => {
208203
const newConfig = { ...config };
209204
setNestedValue(newConfig, "theme.acrylic", v);

src/shell/script/ts/src/menu/configMenu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,6 @@ export const makeBreezeConfigMenu = (mainMenu) => {
543543
createBoolToggle(sub, "垂直同步", "context_menu.vsync", true);
544544
createBoolToggle(sub, "忽略自绘菜单", "context_menu.ignore_owner_draw", true);
545545
createBoolToggle(sub, "向上展开时反向排列", "context_menu.reverse_if_open_to_up", true);
546-
createBoolToggle(sub, "尝试使用 Windows 11 圆角", "context_menu.theme.use_dwm_if_available", true);
547546
createBoolToggle(sub, "亚克力背景效果", "context_menu.theme.acrylic", true);
548547
}
549548
})

0 commit comments

Comments
 (0)