fix(ui): 补充网址外链调色
This commit is contained in:
@@ -207,10 +207,13 @@ class NoticeMessageBox(MessageBoxBase):
|
|||||||
r"<span style='color: #009faa;'>\1</span>",
|
r"<span style='color: #009faa;'>\1</span>",
|
||||||
html,
|
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"<li><p>(.*?)</p></li>", r"<p><strong>◆ </strong>\1</p>", html)
|
||||||
html = re.sub(r"<ul>(.*?)</ul>", r"\1", html)
|
html = re.sub(r"<ul>(.*?)</ul>", r"\1", html)
|
||||||
|
|
||||||
self.text.setHtml(html)
|
self.text.setHtml(f"<body>{html}</body>")
|
||||||
|
|
||||||
class NoticeIndexCard(HeaderCardWidget):
|
class NoticeIndexCard(HeaderCardWidget):
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ pywin32
|
|||||||
pyautogui
|
pyautogui
|
||||||
pycryptodome
|
pycryptodome
|
||||||
requests
|
requests
|
||||||
|
markdown
|
||||||
Jinja2
|
Jinja2
|
||||||
serverchan_sdk
|
serverchan_sdk
|
||||||
nuitka==2.6
|
nuitka==2.6
|
||||||
Reference in New Issue
Block a user