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