Update to v0.1.2-alpha

- Fix glitches in some themes.
- Add multi-platform library deduplication and comparison logic
- Enhance mod and library merging logic with platform and loader preferences (prepare for forge/neoforge support)
- Fix certain runtime detect/inspect issues.

CoreLib update to 0.1.5
This commit is contained in:
wei committed 2026-11-01 01:14:06 +08:00
1 parent c55f559989
commit ef3667ae5e
16 files changed
+693 -111

No files matched your search

+171 -1
View File
@@ -10,6 +10,131 @@
/* Add your QSS styles here */
QPushButton {
background-color: palette(button);
color: palette(button-text);
border: 1px solid palette(mid);
border-radius: 4px;
padding: 6px 10px;
}
QPushButton:hover {
background-color: palette(midlight);
color: palette(button-text);
}
QPushButton:focus {
border-color: palette(highlight);
}
QPushButton:pressed,
QPushButton:checked {
background-color: palette(highlight);
color: palette(highlighted-text);
}
QPushButton:disabled {
background-color: palette(button);
color: palette(placeholder-text);
}
QComboBox {
background-color: palette(base);
color: palette(text);
border: 1px solid palette(mid);
border-radius: 4px;
padding: 4px 24px 4px 8px;
selection-background-color: palette(highlight);
selection-color: palette(highlighted-text);
}
QComboBox:focus {
border-color: palette(highlight);
}
QComboBox::drop-down {
width: 20px;
background: transparent;
border: none;
}
QComboBox QAbstractItemView,
QComboBox QLineEdit {
background-color: palette(base);
color: palette(text);
selection-background-color: palette(highlight);
selection-color: palette(highlighted-text);
}
/* Scrollbars follow the active theme palette. */
QScrollBar:vertical,
QScrollBar:horizontal {
background: palette(alternate-base);
border: none;
border-radius: 6px;
margin: 0;
padding: 2px;
}
QScrollBar:vertical {
width: 12px;
}
QScrollBar:horizontal {
height: 12px;
}
QScrollBar::handle:vertical,
QScrollBar::handle:horizontal {
background: palette(mid);
border: none;
border-radius: 4px;
}
QScrollBar::handle:vertical {
min-height: 32px;
}
QScrollBar::handle:horizontal {
min-width: 32px;
}
QScrollBar::handle:vertical:hover,
QScrollBar::handle:horizontal:hover {
background: palette(placeholder-text);
}
QScrollBar::handle:vertical:pressed,
QScrollBar::handle:horizontal:pressed {
background: palette(highlight);
}
QScrollBar::add-line:vertical,
QScrollBar::sub-line:vertical {
height: 0;
border: none;
background: transparent;
}
QScrollBar::add-line:horizontal,
QScrollBar::sub-line:horizontal {
width: 0;
border: none;
background: transparent;
}
QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical,
QScrollBar::add-page:horizontal,
QScrollBar::sub-page:horizontal {
background: transparent;
}
QAbstractScrollArea::corner {
background: palette(window);
border: none;
}
QLabel#dev_info_box {
font-size: 20pt;
font-weight: bold;
@@ -25,4 +150,49 @@ QLabel#version_label, QLabel#version_label {
QLabel#icon_label {
border-radius: 20px;
}
}
/* Modrinth follows the plugin list and details layout. */
QWidget#modrinthPage QLabel#modrinthTitle {
font-size: 20px;
font-weight: bold;
}
QWidget#modrinthPage QLabel#modrinthSectionTitle {
font-size: 14px;
font-weight: bold;
}
QWidget#modrinthPage QLabel#modrinthMuted {
color: palette(placeholder-text);
}
QListWidget#modrinthResults {
background-color: palette(base);
border: 1px solid palette(mid);
border-radius: 6px;
outline: none;
}
QListWidget#modrinthResults::item {
padding: 6px;
border-radius: 4px;
}
QListWidget#modrinthResults::item:selected {
background-color: palette(highlight);
color: palette(highlighted-text);
}
QWidget#modrinthPage QLineEdit {
padding: 7px;
border: 1px solid palette(mid);
border-radius: 5px;
background-color: palette(base);
color: palette(text);
}
QWidget#modrinthPage QSplitter::handle:horizontal {
width: 1px;
background-color: palette(mid);
}
+23
View File
@@ -56,6 +56,29 @@ QPushButton#launchButton {
min-width: 150px;
font-size: 15px;
font-weight: 600;
background-color: palette(button);
color: palette(button-text);
border: 1px solid palette(mid);
border-radius: 5px;
padding: 6px 14px;
}
QPushButton#launchButton:hover {
background-color: palette(midlight);
color: palette(button-text);
}
QPushButton#launchButton:focus {
border-color: palette(highlight);
}
QPushButton#launchButton:pressed {
background-color: palette(highlight);
color: palette(highlighted-text);
}
QPushButton#launchButton:disabled {
color: palette(placeholder-text);
}
QLabel#headerLabel {
+10 -2
View File
@@ -53,17 +53,25 @@ QToolBar:right QToolButton {
QToolBar QPushButton:hover,
QToolBar QToolButton:hover {
background-color: palette(midlight);
color: palette(button-text);
}
QToolBar QPushButton:focus,
QToolBar QToolButton:focus {
background-color: palette(midlight);
color: palette(button-text);
border-bottom: 2px solid palette(highlight);
}
QToolBar QPushButton:pressed,
QToolBar QToolButton:pressed,
QToolBar QToolButton:pressed {
background-color: palette(highlight);
color: palette(highlighted-text);
}
QToolBar QToolButton:checked {
background-color: palette(dark);
background-color: palette(highlight);
color: palette(highlighted-text);
}
QToolBar QPushButton:disabled,
+18
View File
@@ -1,4 +1,22 @@
{
"Clear selection": "Clear selection",
"Select a mod to view its details.": "Select a mod to view its details.",
"Install {count} selected mods": "Install {count} selected mods",
"{count} mods selected · Unspecified versions use the latest compatible version.": "{count} mods selected · Unspecified versions use the latest compatible version.",
"Uses saved profile settings. Profiles sharing a game directory also share mods.": "Uses saved profile settings. Profiles sharing a game directory also share mods.",
"Search Modrinth mods": "Search Modrinth mods",
"Open Modrinth project": "Open Modrinth project",
"Install with required dependencies": "Install with required dependencies",
"{name} · Minecraft {version} · {loader}\nMods: {path}": "{name} · Minecraft {version} · {loader}\nMods: {path}",
"Working...": "Working...",
"Modrinth error: {error}": "Modrinth error: {error}",
"{count} results · Page {page}": "{count} results · Page {page}",
"No compatible mods found.": "No compatible mods found.",
"No compatible versions found.": "No compatible versions found.",
"Install mods": "Install mods",
"Install {count} file(s) into {path}?": "Install {count} file(s) into {path}?",
"Installed or verified {count} mod file(s).": "Installed or verified {count} mod file(s).",
"Downloading {name}...": "Downloading {name}...",
"Profile settings": "Profile settings",
"Enable plugin": "Enable plugin",
"Disable plugin": "Disable plugin",
+18
View File
@@ -1,4 +1,22 @@
{
"Clear selection": "清除勾選",
"Select a mod to view its details.": "選擇模組以查看詳細資訊。",
"Install {count} selected mods": "安裝已勾選的 {count} 個模組",
"{count} mods selected · Unspecified versions use the latest compatible version.": "已勾選 {count} 個模組 · 未指定版本時使用最新相容版本。",
"Uses saved profile settings. Profiles sharing a game directory also share mods.": "使用已儲存的設定檔設定。共用遊戲目錄的設定檔也會共用模組。",
"Search Modrinth mods": "搜尋 Modrinth 模組",
"Open Modrinth project": "開啟 Modrinth 專案",
"Install with required dependencies": "安裝模組及必要相依套件",
"{name} · Minecraft {version} · {loader}\nMods: {path}": "{name} · Minecraft {version} · {loader}\n模組目錄:{path}",
"Working...": "處理中……",
"Modrinth error: {error}": "Modrinth 錯誤:{error}",
"{count} results · Page {page}": "{count} 個結果 · 第 {page} 頁",
"No compatible mods found.": "找不到相容的模組。",
"No compatible versions found.": "找不到相容的版本。",
"Install mods": "安裝模組",
"Install {count} file(s) into {path}?": "將 {count} 個檔案安裝至 {path}?",
"Installed or verified {count} mod file(s).": "已安裝或驗證 {count} 個模組檔案。",
"Downloading {name}...": "正在下載 {name}……",
"Profile settings": "設定檔設定",
"Enable plugin": "啟用插件",
"Disable plugin": "停用插件",