fix(ui): 补充网址外链调色

This commit is contained in:
DLmaster
2025-03-16 01:01:23 +08:00
parent 0c274ecbe0
commit 675e11960a
2 changed files with 5 additions and 1 deletions

View File

@@ -207,10 +207,13 @@ class NoticeMessageBox(MessageBoxBase):
r"<span style='color: #009faa;'>\1</span>",
html,
)
html = re.sub(
r'(<a\s+[^>]*href="[^"]+"[^>]*)>', r'\1 style="color: #009faa;">', html
)
html = re.sub(r"<li><p>(.*?)</p></li>", r"<p><strong>◆ </strong>\1</p>", html)
html = re.sub(r"<ul>(.*?)</ul>", r"\1", html)
self.text.setHtml(html)
self.text.setHtml(f"<body>{html}</body>")
class NoticeIndexCard(HeaderCardWidget):

View File

@@ -8,6 +8,7 @@ pywin32
pyautogui
pycryptodome
requests
markdown
Jinja2
serverchan_sdk
nuitka==2.6