Merge branch 'master' of github.com:jean-emmanuel/open-stage-control

This commit is contained in:
jean-emmanuel 2018-11-02 10:50:14 +01:00
commit 7bc831ea38
4 changed files with 19 additions and 6 deletions

View file

@ -1,11 +1,17 @@
# Changelog
## 0.39.2
## 0.39.3
- bug fixes
- broken tabs color property
- broken `/TABS` command; this command doesn't makes panels send osc messages anymore
## 0.39.2
- bug fixes
- regresssion: broken --theme option
- regression: missing 'edit parent' action in editor's context menu
## 0.39.1
- bug fixes

View file

@ -37,4 +37,8 @@ appJson.scripts = {
"start-node": "node index.js"
}
appJson.optionalDependencies = {
electron: packageJson.optionalDependencies.electron
}
fs.writeFileSync(path.resolve(__dirname + '/../app/package.json'), JSON.stringify(appJson, null, ' '))

View file

@ -189,9 +189,12 @@ var handleClick = function(event) {
var clickX = Math.round((eventData.offsetX + eventData.target.scrollLeft) / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH,
clickY = Math.round((eventData.offsetY + eventData.target.scrollTop) / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH
actions[icon('expand') + ' ' + locales('editor_editparent')] = ()=>{
editor.select(parent)
}
actions.push({
label: icon('expand') + ' ' + locales('editor_editparent'),
action: ()=>{
editor.select(parent)
}
})
if (type === 'widget') {

View file

@ -24,8 +24,8 @@ class Theme {
if (theme.includes('.css') && fs.existsSync(theme)) {
this.files.push(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 if (!theme.includes('.css') && fs.existsSync(path.resolve(__dirname + '/../assets/themes/' + theme + '.css'))) {
this.files.push(path.resolve(__dirname + '/../assets/themes/' + theme + '.css'))
} else {
console.error('Theme error: "' + theme + '" not found.')
}