Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8701ac8

Browse files
committed
fix(theme): improve author link handling and enhance description display
- Updated author link to fallback to GitHub if homepage is not provided.- Enabled word wrapping for the description label to improve readability.- Adjusted placeholder label font weight for better emphasis.
1 parent7e44c24 commit8701ac8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/core/utils/themes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,15 @@ def init_ui(self):
128128
layout.addLayout(top_layout)
129129

130130
# Author label
131-
author=QLabel(f"author <a style=\"color:#0078D4;text-decoration:none\" href='{self.theme_data['homepage']}'>{self.theme_data['author']}</a>")
131+
homepage=self.theme_data['homepage']ifself.theme_data['homepage']elsef'https://github.com/{self.theme_data['author']}'
132+
author=QLabel(f"author <a style=\"color:#0078D4;font-weight:500;text-decoration:none\" href='{homepage}'>{self.theme_data['author']}</a>")
132133
author.setFont(QFont('Segoe UI',10))
133134
author.setOpenExternalLinks(True)
134135
layout.addWidget(author)
135136

136137
# Description label
137138
description=QLabel(self.theme_data['description'])
139+
description.setWordWrap(True)
138140
description.setFont(QFont('Segoe UI',10))
139141
opacity_effect=QGraphicsOpacityEffect()
140142
opacity_effect.setOpacity(0.75)
@@ -342,7 +344,8 @@ def init_ui(self):
342344
layout.setContentsMargins(0,0,0,0)
343345

344346
# Add the placeholder label
345-
self.placeholder_label=QLabel("<span style='font-weight:bold'>YASB</span> Reborn")
347+
self._icon_path=os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))),'assets','images','app_transparent.png')
348+
self.placeholder_label=QLabel("<span style='font-weight:700'>YASB</span> Reborn")
346349
self.placeholder_label.setFont(QFont('Segoe UI',64,QFont.Weight.Normal))
347350
self.placeholder_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
348351
layout.addWidget(self.placeholder_label)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp