Add macOS about menu and test plugin support(early state).

This commit is contained in:
wei committed 2026-10-25 11:39:44 +08:00
1 parent 77c4be7dcf
commit deb06f0190
10 files changed
+85 -9

No files matched your search

+1 -2
View File
@@ -10,7 +10,6 @@ from core_lib.game.version_info import LATEST_VERSION_ALIASES
from manager.profile import ProfileSummary, LaunchProfile, ProfileManager
from manager.widgets import AskForRequest, WidgetManager
from pages.process_log import ProcessLogWindow
from core_lib.qt.item_button import ItemButton
class ProfileButton(QFrame):
@@ -87,7 +86,7 @@ class ProfileButton(QFrame):
self.clicked.emit()
super().mousePressEvent(event)
class ProfileListItem(ItemButton):
class ProfileListItem(QPushButton):
selected = Signal(object)
def __init__(self, profile: ProfileSummary, parent: QWidget | None = None) -> None:
+3 -2
View File
@@ -12,10 +12,9 @@ from PySide6.QtWidgets import (
from manager.profile import ProfileDetail, ProfileManager, ProfileSummary, UpdateProfileRequest
from manager.game import AvailableVersion
from pages.add_modded_version import AddModdedVersionDialog
from core_lib.qt.item_button import ItemButton
class ManageProfileItem(ItemButton):
class ManageProfileItem(QPushButton):
selected = Signal(object)
def __init__(self, app, profile: ProfileSummary,
@@ -26,6 +25,8 @@ class ManageProfileItem(ItemButton):
self.app = app
self.profile = profile
self.setObjectName("manageProfileItem")
# Custom row backgrounds cover the full widget, including native macOS margins.
self.setAttribute(Qt.WidgetAttribute.WA_LayoutUsesWidgetRect)
self.setCheckable(True)
self.setCursor(Qt.CursorShape.PointingHandCursor)
self.setMinimumHeight(64)