Skip to content

Commit d48a3e8

Browse files
committed
Revert 5dcf5eb.
1 parent ebfe1dd commit d48a3e8

4 files changed

Lines changed: 7 additions & 39 deletions

File tree

src/components/TopBar/TopBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ defineExpose({
509509
style="
510510
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 1) 24px, rgba(0, 0, 0, 0.9) 44px, transparent);
511511
"
512-
:style="{ backdropFilter: 'var(--bew-filter-glass-1)' }"
512+
:style="{ backdropFilter: settings.disableFrostedGlass ? 'none' : 'blur(12px)' }"
513513
pos="absolute top-0 left-0" w-full h="[calc(var(--bew-top-bar-height)+16px)]"
514514
pointer-events-none transform-gpu
515515
/>

src/contentScripts/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,8 @@ export function injectBottomCommentStyle() {
423423
styleEl.textContent = `
424424
div.bili-comments-bottom-fixed-wrapper > div {
425425
background-color: rgba(255, 255, 255, 0) !important;
426-
backdrop-filter: var(--bew-filter-glass-1);
427-
-webkit-backdrop-filter: var(--bew-filter-glass-1);
426+
backdrop-filter: blur(12px) saturate(120%);
427+
-webkit-backdrop-filter: blur(12px) saturate(120%);
428428
border-top-color: rgba(255, 255, 255, 0.22) !important;
429429
}
430430
`

src/styles/adaptedStyles/common/videoPlayer.scss

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,3 @@
1-
html:has(.bpx-player-container[data-screen="full"]),
2-
html:has(.bpx-player-container[data-screen="web"]),
3-
html:has(:fullscreen),
4-
:host-context(html:has(.bpx-player-container[data-screen="full"])),
5-
:host-context(html:has(.bpx-player-container[data-screen="web"])),
6-
:host-context(html:has(:fullscreen)) {
7-
--bew-filter-glass-1: none !important;
8-
--bew-filter-glass-2: none !important;
9-
--bew-shadow-edge-glow-1: 0 0 0 transparent !important;
10-
--bew-shadow-edge-glow-2: 0 0 0 transparent !important;
11-
}
12-
13-
html:has(.bpx-player-container[data-screen="full"]),
14-
html:has(.bpx-player-container[data-screen="web"]),
15-
html:has(:fullscreen) {
16-
&,
17-
& * {
18-
backdrop-filter: none !important;
19-
-webkit-backdrop-filter: none !important;
20-
}
21-
}
22-
23-
:host-context(html:has(.bpx-player-container[data-screen="full"])),
24-
:host-context(html:has(.bpx-player-container[data-screen="web"])),
25-
:host-context(html:has(:fullscreen)) {
26-
&,
27-
& * {
28-
backdrop-filter: none !important;
29-
-webkit-backdrop-filter: none !important;
30-
}
31-
}
32-
331
.bewly-design {
342
.bpx-player-toast-row .bpx-player-toast-item {
353
--bpx-toast-fn-color: var(--bew-theme-color);

src/styles/adaptedStyles/pages/videoPage.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181

8282
// 浅色毛玻璃:别太白,否则还是“白块”
8383
background-color: rgba(241, 242, 243, 0.22);
84-
backdrop-filter: var(--bew-filter-glass-1);
85-
-webkit-backdrop-filter: var(--bew-filter-glass-1);
84+
backdrop-filter: blur(12px) saturate(120%);
85+
-webkit-backdrop-filter: blur(12px) saturate(120%);
8686

8787
// 轻边框增加层次,缓解“矩形角明显”
8888
// 图片底实际效果好看,但纯色底实际效果不太好看,先预留着
@@ -112,8 +112,8 @@
112112
z-index: 0;
113113

114114
background-color: rgba(241, 242, 243, 0.22);
115-
backdrop-filter: var(--bew-filter-glass-1);
116-
-webkit-backdrop-filter: var(--bew-filter-glass-1);
115+
backdrop-filter: blur(12px) saturate(120%);
116+
-webkit-backdrop-filter: blur(12px) saturate(120%);
117117

118118
// 图片底实际效果好看,但纯色底实际效果不太好看,先预留着
119119
// border: 1px solid rgba(255, 255, 255, 0.22);

0 commit comments

Comments
 (0)