From 675e11960aa466d9cd28036611210d165db25556 Mon Sep 17 00:00:00 2001 From: DLmaster Date: Sun, 16 Mar 2025 01:01:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E8=A1=A5=E5=85=85=E7=BD=91=E5=9D=80?= =?UTF-8?q?=E5=A4=96=E9=93=BE=E8=B0=83=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ui/Widget.py | 5 ++++- requirements.txt | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/ui/Widget.py b/app/ui/Widget.py index 9a2eef8..0a4026b 100644 --- a/app/ui/Widget.py +++ b/app/ui/Widget.py @@ -207,10 +207,13 @@ class NoticeMessageBox(MessageBoxBase): r"\1", html, ) + html = re.sub( + r'(]*href="[^"]+"[^>]*)>', r'\1 style="color: #009faa;">', html + ) html = re.sub(r"
  • (.*?)

  • ", r"

    \1

    ", html) html = re.sub(r"", r"\1", html) - self.text.setHtml(html) + self.text.setHtml(f"{html}") class NoticeIndexCard(HeaderCardWidget): diff --git a/requirements.txt b/requirements.txt index a8597de..202a67a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,6 +8,7 @@ pywin32 pyautogui pycryptodome requests +markdown Jinja2 serverchan_sdk nuitka==2.6 \ No newline at end of file