custom dark skin for prompt

This commit is contained in:
Araxeus
2021-04-04 15:06:14 +03:00
parent 421fe67930
commit d12d16348a
2 changed files with 40 additions and 2 deletions

View File

@ -314,14 +314,15 @@ const example = `Example: "socks5://127.0.0.1:9999"`;
function setProxy(item) {
prompt({
title: 'Set Proxy',
label: 'Enter Proxy Adress (or leave empty to disable)',
label: 'Enter Proxy Address (leave empty to disable)',
value: config.get("options.proxy") || example,
inputAttrs: {
type: 'text'
},
type: 'input',
alwaysOnTop: true,
icon: iconPath
icon: iconPath,
customStylesheet: path.join(__dirname, "darkPrompt.css"),
})
.then((input) => {
if(input !== null && input !== example) {