Merge branch 'feature/custom-themes' of github.com:hydralauncher/hydra into feature/custom-themes

This commit is contained in:
Chubby Granny Chaser
2025-02-16 19:13:34 +00:00
10 changed files with 83 additions and 62 deletions

View File

@@ -87,7 +87,6 @@ import "./themes/get-custom-theme-by-id";
import "./themes/get-active-custom-theme";
import "./themes/css-injector";
import "./themes/close-editor-window";
import "./themes/import-theme";
import "./themes/toggle-custom-theme";
import { isPortableVersion } from "@main/helpers";

View File

@@ -1,12 +0,0 @@
import { registerEvent } from "../register-event";
import { WindowManager } from "@main/services";
const importTheme = async (
_event: Electron.IpcMainInvokeEvent,
theme: string,
author: string
) => {
WindowManager.mainWindow?.webContents.send("import-theme", theme, author);
};
registerEvent("importTheme", importTheme);

View File

@@ -98,10 +98,8 @@ const handleDeepLinkPath = (uri?: string) => {
const authorCode = url.searchParams.get("author");
if (themeName && authorCode) {
WindowManager.mainWindow?.webContents.send(
"import-theme",
themeName,
authorCode
WindowManager.redirect(
`settings?theme=${themeName}&author=${authorCode}`
);
}
}