mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-16 20:52:06 +00:00
custom dark skin for prompt
This commit is contained in:
37
darkPrompt.css
Normal file
37
darkPrompt.css
Normal 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;
|
||||||
|
}
|
||||||
5
menu.js
5
menu.js
@ -314,14 +314,15 @@ const example = `Example: "socks5://127.0.0.1:9999"`;
|
|||||||
function setProxy(item) {
|
function setProxy(item) {
|
||||||
prompt({
|
prompt({
|
||||||
title: 'Set Proxy',
|
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,
|
value: config.get("options.proxy") || example,
|
||||||
inputAttrs: {
|
inputAttrs: {
|
||||||
type: 'text'
|
type: 'text'
|
||||||
},
|
},
|
||||||
type: 'input',
|
type: 'input',
|
||||||
alwaysOnTop: true,
|
alwaysOnTop: true,
|
||||||
icon: iconPath
|
icon: iconPath,
|
||||||
|
customStylesheet: path.join(__dirname, "darkPrompt.css"),
|
||||||
})
|
})
|
||||||
.then((input) => {
|
.then((input) => {
|
||||||
if(input !== null && input !== example) {
|
if(input !== null && input !== example) {
|
||||||
|
|||||||
Reference in New Issue
Block a user