From 887122ac9c9ec6228cf1aee80d7a30d8ebccc0cf Mon Sep 17 00:00:00 2001 From: Xinrea Date: Tue, 13 Aug 2024 19:15:37 +0800 Subject: [PATCH] fix: interact message style --- src/main-window/danmu-entry.ts | 1 - src/main-window/main-window.css | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main-window/danmu-entry.ts b/src/main-window/danmu-entry.ts index ec6cc77..0e28a81 100644 --- a/src/main-window/danmu-entry.ts +++ b/src/main-window/danmu-entry.ts @@ -94,7 +94,6 @@ function doCreateInteractEntry(msg: InteractMessage) { const danmuSender = document.createElement('span') danmuSender.className = 'sender' danmuSender.innerText = msg.sender.uname - danmuSender.style.color = 'var(--font-color)' danmuEntry.appendChild(danmuSender) // Content const danmuContent = document.createElement('span') diff --git a/src/main-window/main-window.css b/src/main-window/main-window.css index 11cd639..cede0f1 100644 --- a/src/main-window/main-window.css +++ b/src/main-window/main-window.css @@ -318,6 +318,14 @@ button:hover { display: var(--interact-display); } +.interact .sender { + color: var(--uname-color)!important; +} + +.interact .content { + color: var(--uname-color)!important; +} + .danmu { position: relative; padding-top: 10px;