fix prompt width

This commit is contained in:
Araxeus
2021-05-05 03:48:07 +03:00
parent 834f8674a3
commit 6b147b098a
2 changed files with 5 additions and 6 deletions

View File

@ -323,15 +323,14 @@ function setProxy(item, win) {
}, },
icon: iconPath, icon: iconPath,
customStylesheet: "dark", customStylesheet: "dark",
width: 450,
}; };
//TODO: custom bar on prompt need testing on macOS //TODO: custom bar on prompt need testing on macOS
if (!is.macOS()) { if (!is.macOS()) {
Object.assign(options, { Object.assign(options, {
frame: false, frame: false,
customScript: path.join(__dirname, "plugins", "in-app-menu", "prompt-custom-titlebar.js"), customScript: path.join(__dirname, "plugins", "in-app-menu", "prompt-custom-titlebar.js"),
enableRemoteModule: true, enableRemoteModule: true,
height: 200,
width: 450,
}); });
} }
prompt(options, win) prompt(options, win)

View File

@ -43,7 +43,8 @@ function promptVolumeSteps(win, options) {
label: "Choose Volume Increase/Decrease Steps", label: "Choose Volume Increase/Decrease Steps",
value: options.steps || 1, value: options.steps || 1,
type: "counter", type: "counter",
counterOptions: { minimum: 0, maximum: 100, multiFire: true } counterOptions: { minimum: 0, maximum: 100, multiFire: true },
width: 380
}; };
setupPromptOptions(promptOptions); setupPromptOptions(promptOptions);
@ -65,8 +66,7 @@ function promptGlobalShortcuts(win, options, item) {
keybindOptions: [ keybindOptions: [
kb("Increase Volume", "volumeUp", options.globalShortcuts?.volumeUp), kb("Increase Volume", "volumeUp", options.globalShortcuts?.volumeUp),
kb("Decrease Volume", "volumeDown", options.globalShortcuts?.volumeDown) kb("Decrease Volume", "volumeDown", options.globalShortcuts?.volumeDown)
], ]
height: 230
}; };
setupPromptOptions(promptOptions); setupPromptOptions(promptOptions);