diff --git a/src/content/css/settings.css b/src/content/css/settings.css index f6a3edd..f91f2e1 100644 --- a/src/content/css/settings.css +++ b/src/content/css/settings.css @@ -126,6 +126,7 @@ button { border: none; border-radius: 5px; padding: 8px; + margin-top: 10px; transition: 0.17s ease; } button:hover { @@ -238,7 +239,7 @@ select { outline: none !important; } .acTheme { - height: 14em !important; + height: 15em !important; } .acCSP { height: 10em !important; diff --git a/src/menu.ts b/src/menu.ts index 9ca3962..f049369 100644 --- a/src/menu.ts +++ b/src/menu.ts @@ -20,10 +20,23 @@ export async function setMenu() { } }) }) + mainWindow.on("show", function () { + console.log("[Window state manager] Show") + mainWindow.focus() + globalShortcut.register("CmdOrCtrl+V", function () { + if (mainWindow.isFocused()) { + paste(mainWindow.webContents) + } + }) + }) mainWindow.on("blur", function () { console.log("[Window state manager] Defocus") globalShortcut.unregister("CmdOrCtrl+V") }) + mainWindow.on("hide", function () { + console.log("[Window state manager] Hide") + globalShortcut.unregister("CmdOrCtrl+V") + }) } var template: Electron.MenuItemConstructorOptions[] = [{ label: "ArmCord", diff --git a/src/settings/settings.html b/src/settings/settings.html index cb026c9..15c98c8 100644 --- a/src/settings/settings.html +++ b/src/settings/settings.html @@ -163,6 +163,14 @@
+
+ +
+ +
+ +
+