refactor(navigation): simplify main tab labels
This commit is contained in:
+3
-16
@@ -58,9 +58,9 @@ TAB_TITLES = [
|
||||
"① 导入采集",
|
||||
"② AI生成",
|
||||
"③ 更新蝦皮",
|
||||
"④ 账号管理",
|
||||
"⑤ 设置",
|
||||
"⑥ 商品套图",
|
||||
"账号管理",
|
||||
"设置",
|
||||
"商品套图",
|
||||
]
|
||||
|
||||
TAB_STYLE = """
|
||||
@@ -307,19 +307,6 @@ def _login_status_color(status):
|
||||
return _qcolor(COLOR_MUTED)
|
||||
|
||||
|
||||
def _warning_dot_icon(size=12):
|
||||
pixmap = QPixmap(size, size)
|
||||
pixmap.fill(Qt.transparent)
|
||||
painter = QPainter(pixmap)
|
||||
painter.setRenderHint(QPainter.Antialiasing)
|
||||
painter.setPen(Qt.NoPen)
|
||||
painter.setBrush(QColor(COLOR_WARNING))
|
||||
margin = max(1, size // 6)
|
||||
painter.drawEllipse(margin, margin, size - margin * 2, size - margin * 2)
|
||||
painter.end()
|
||||
return QIcon(pixmap)
|
||||
|
||||
|
||||
def _build_empty_state_card(object_name, button_text="前往账号管理"):
|
||||
card = QWidget()
|
||||
card.setObjectName(object_name)
|
||||
|
||||
Reference in New Issue
Block a user