Fix vip danmaku styles (fix #5208)

This commit is contained in:
the1812 2025-04-11 19:45:27 +08:00
parent 5cffe994fa
commit 20b9a0c3f9
3 changed files with 18 additions and 17 deletions

View File

@ -1 +1 @@
移除高弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除.
移除高弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除. 高亮弹幕包含点赞多的和大会员的彩色弹幕.

View File

@ -41,21 +41,17 @@ const watchDanmakuBorderSettings = () => {
const options = defineOptionsMetadata({
highlight: {
displayName: '禁用高弹幕',
displayName: '禁用高弹幕',
defaultValue: true,
},
up: {
displayName: '禁用UP主弹幕',
displayName: '禁用 UP 主弹幕',
defaultValue: true,
},
upSlogan: {
displayName: '禁用带货弹幕',
defaultValue: true,
},
vip: {
displayName: '禁用大会员弹幕',
defaultValue: true,
},
})
type Options = OptionsOfMetadata<typeof options>

View File

@ -25,6 +25,21 @@ body.disable-highlight-danmaku-style {
text-shadow: inherit;
}
}
.bili-danmaku-x-dm-vip,
.bili-dm-vip {
display: contents !important;
text-shadow: inherit !important;
}
:where(.bili-dm, .bili-danmaku-x-dm):not([style*='--textShadow']) {
--textShadow: var(--danmaku-text-shadow);
}
.bili-danmaku-x-colorful {
background-clip: unset !important;
background-image: none !important;
--textShadow: var(--danmaku-text-shadow);
text-shadow: var(--textShadow) !important;
}
}
body.disable-up-danmaku-style {
.bili-danmaku-x-up,
@ -40,16 +55,6 @@ body.disable-up-danmaku-style {
}
}
}
body.disable-vip-danmaku-style {
.bili-danmaku-x-dm-vip,
.bili-dm-vip {
display: contents !important;
text-shadow: inherit !important;
}
:where(.bili-dm, .bili-danmaku-x-dm):not([style*='--textShadow']) {
--textShadow: var(--danmaku-text-shadow);
}
}
body.disable-upSlogan-danmaku-style {
.bili-danmaku-x-upslogan,
.bili-upslogan {