Merge branch 'master' of github.com:jean-emmanuel/open-stage-control
This commit is contained in:
commit
bfe74452e1
4 changed files with 19 additions and 6 deletions
|
|
@ -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') {
|
||||
|
||||
|
|
|
|||
|
|
@ -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.')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue