mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Fix vip danmaku styles (fix #5208)
This commit is contained in:
parent
5cffe994fa
commit
20b9a0c3f9
@ -1 +1 @@
|
|||||||
移除高赞弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除.
|
移除高亮弹幕或 UP 主弹幕的特殊样式, 弹幕内容不会移除. 高亮弹幕包含点赞多的和大会员的彩色弹幕.
|
||||||
|
|||||||
@ -41,21 +41,17 @@ const watchDanmakuBorderSettings = () => {
|
|||||||
|
|
||||||
const options = defineOptionsMetadata({
|
const options = defineOptionsMetadata({
|
||||||
highlight: {
|
highlight: {
|
||||||
displayName: '禁用高赞弹幕',
|
displayName: '禁用高亮弹幕',
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
},
|
},
|
||||||
up: {
|
up: {
|
||||||
displayName: '禁用UP主弹幕',
|
displayName: '禁用 UP 主弹幕',
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
},
|
},
|
||||||
upSlogan: {
|
upSlogan: {
|
||||||
displayName: '禁用带货弹幕',
|
displayName: '禁用带货弹幕',
|
||||||
defaultValue: true,
|
defaultValue: true,
|
||||||
},
|
},
|
||||||
vip: {
|
|
||||||
displayName: '禁用大会员弹幕',
|
|
||||||
defaultValue: true,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
type Options = OptionsOfMetadata<typeof options>
|
type Options = OptionsOfMetadata<typeof options>
|
||||||
|
|||||||
@ -25,6 +25,21 @@ body.disable-highlight-danmaku-style {
|
|||||||
text-shadow: inherit;
|
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 {
|
body.disable-up-danmaku-style {
|
||||||
.bili-danmaku-x-up,
|
.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 {
|
body.disable-upSlogan-danmaku-style {
|
||||||
.bili-danmaku-x-upslogan,
|
.bili-danmaku-x-upslogan,
|
||||||
.bili-upslogan {
|
.bili-upslogan {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user