Add customize qss support for theme.

Fix an issue that causes all feature flags will not be added to the launch command regardless of it is enabled.

Add some default themes.
This commit is contained in:
wei committed 2026-10-18 23:58:43 +08:00
1 parent 1754b01230
commit b7af7e3469
53 files changed
+1319 -130

No files matched your search

+3 -1
View File
@@ -101,7 +101,7 @@ class FileObject:
return self.sha512 == expected_hash if expected_hash else self.expected_sha512 == self.sha512
def verify_md5(self, expected_hash=None):
return self.sha1 == expected_hash if expected_hash else self.expected_sha1 == self.sha1
return self.md5 == expected_hash if expected_hash else self.expected_sha1 == self.md5
def verify(self, algorithm, expected_hash=None):
if algorithm == "sha1":
@@ -219,6 +219,8 @@ def download_file(file: FileObject, overwrite=True, progress_callback: Callable[
raise HashMismatchException("sha1", file.sha1, file.expected_sha1, file.posix_path)
elif file.expected_md5 and not file.verify_md5():
raise HashMismatchException("md5", file.md5, file.expected_md5, file.posix_path)
elif file.expected_sha512 and not file.verify_sha512():
raise HashMismatchException("sha512", file.sha512, file.expected_sha512, file.posix_path)
if any([file.expected_sha1, file.expected_md5, file.expected_sha256]):
logger.debug("File hash is match as the expected hash.")
+7 -1
View File
@@ -138,4 +138,10 @@ class ConfigValidationError(SettingsError):
details = "\n".join(
f"[{section}]\n{error}" for section, error in self.errors.items()
)
super().__init__(f"Invalid settings configuration:\n{details}")
super().__init__(f"Invalid settings configuration:\n{details}")
class ArgumentError(LauncherException):
user_message = "An error occurred while parsing arguments."
class ArgumentValueError(ArgumentError):
user_message = "An invalid argument value was provided."