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

37
darkPrompt.css Normal file
View File

@ -0,0 +1,37 @@
body {
background-color: rgba(0, 0, 0, 0.3);
background-image: linear-gradient(315deg, #200000 0%, #13253a 74%);
overflow: hidden;
color:whitesmoke;
}
#container {
background: rgba( 0, 0, 0, 0.7 );
box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
backdrop-filter: blur( 10.0px );
-webkit-backdrop-filter: blur( 10.0px );
border-radius: 10px;
border: 1px solid rgba(80, 0, 0, 0.4);
overflow: hidden;
}
#data {
background: unset;
color: whitesmoke;
border: 1px solid rgb(54, 54, 54);
}
#data:focus {
outline: unset;
border: 1px solid rgb(85, 85, 85);
}
#ok:focus, #cancel:focus {
outline: rgba(30, 0, 0, 0.3) solid 1px;
border: 1px solid rgba(60, 0, 0, 0.4);
}
#ok, #cancel {
background-color: rgb(0, 0, 0);
color: whitesmoke;
}

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) {