theme: fix some errors and add alt-button theme extension
This commit is contained in:
parent
9e78279226
commit
a81d470eee
5 changed files with 17 additions and 6 deletions
|
|
@ -27,7 +27,7 @@ class Theme {
|
|||
} else if (!theme.includes('.css') && fs.existsSync(path.resolve(__dirname + '/../browser/themes/' + theme + '.css'))) {
|
||||
this.files.push(path.resolve(__dirname + '/../browser/themes/' + theme + '.css'))
|
||||
} else {
|
||||
console.error('Theme error: "' + themes + '" not found.')
|
||||
console.error('Theme error: "' + theme + '" not found.')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,6 @@
|
|||
"debarm": "electron-installer-debian --src dist/open-stage-control-linux-armv7l/ --arch armv7l --dest dist/open-stage-control-linux-armv7l/ --icon resources/images/logo.png",
|
||||
"watch-css": "nodemon --watch src/browser/scss -e scss -x \"npm run build-css && node scripts/reload-css.js\"",
|
||||
"watch-js": "nodemon --watch src/browser/js -e js -x \"npm run build-js\"",
|
||||
"watch-themes": "nodemon --watch app/main/themes -e css -x \"node scripts/reload-css.js\"",
|
||||
"build-css": "node scripts/build-css.js",
|
||||
"build-js": "node scripts/build-js.js > app/browser/scripts.js",
|
||||
"deploy-docs": "cd resources && mkdocs gh-deploy --clean && rm -rf site",
|
||||
|
|
|
|||
|
|
@ -18,10 +18,9 @@ fs.readdirSync(indir + '/themes/').forEach(file => {
|
|||
|
||||
})
|
||||
|
||||
|
||||
var result = sass.renderSync({
|
||||
file: indir + '/style.scss',
|
||||
outputStyle: 'compressed'
|
||||
})
|
||||
|
||||
fs.writeFileSync(outdir + '/style.css', result.css)
|
||||
fs.writeFileSync(outdir + '/styles.css', result.css)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
@import 'themes/default';
|
||||
|
||||
@import 'reset';
|
||||
|
||||
@import 'scrollbars';
|
||||
|
|
@ -557,3 +555,5 @@ body {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
@import 'themes/default';
|
||||
|
|
|
|||
13
src/browser/scss/themes/alt-buttons.scss
Normal file
13
src/browser/scss/themes/alt-buttons.scss
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
.widget.push-container.on,
|
||||
.widget.modal-container.on,
|
||||
.widget.toggle-container.on:not(.led)
|
||||
{
|
||||
background : var(--color-custom);
|
||||
}
|
||||
.widget.push-container.on > .label,
|
||||
.widget.modal-container.on > .label,
|
||||
.widget.toggle-container.on:not(.led) > .label
|
||||
{
|
||||
color: var(--color-bg);
|
||||
font-weight: bolder;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue