Skip to content

Commit

Permalink
v2.1.0 修复进度条bug,修复图标显示bug,优化部分图标。服务端重新维护路径,目前可保证unix兼容性,添加音效
Browse files Browse the repository at this point in the history
  • Loading branch information
izumidonabe committed Aug 28, 2024
1 parent d80beff commit ffb355e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions ui/serverlist.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,6 @@ def __init__(self):
for server_name in self.avalible_servers:
self.Add_New_Server_Card(server_name)

#color = ThemeColor.PRIMARY.color()
#color = QColor(255, 255, 255, 18)
#color = QColor(243, 243, 243)
# color = QColor(249, 249, 249, )
# color_name = color.name()
# self.scrollAreaWidgetContents_2.setStyleSheet(f"background-color: {color_name}; border: none;")
# self.MCServersScroll.setStyleSheet("scrollAreaWidgetContents_2{background: transparent; border: none}")
#self.scrollAreaWidgetContents_2.enableTransparentBackground()





self.MCServerSetB.clicked.connect(self.MCServerSetB_clicked)
self.MCESServerSetB.clicked.connect(self.MCESServerSetB_clicked)
Expand All @@ -65,7 +53,8 @@ def Add_New_Server_Card(self,server_name):
self.MCServerIcon.setObjectName(u"MCServerIcon")
self.MCServerIcon.setMaximumSize(QSize(60, 60))
self.horizontalLayout_6.addWidget(self.MCServerIcon)
self.MCServerIcon.icon = QIcon('resources/creeper_logo.png')
icon_dir = resources_helper.get_resource_path('resources/creeper_logo.png')
self.MCServerIcon.icon = QIcon(icon_dir)

self.MCServerNameL = TitleLabel(self.CardWidget)
self.MCServerNameL.setObjectName(u"MCServerNameL")
Expand Down

0 comments on commit ffb355e

Please sign in to comment.