cleanup + rethinking the editor...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-11-18 05:22:57 +03:00
parent 32204666ec
commit cc502c8f72
2 changed files with 19 additions and 12 deletions

View File

@ -266,18 +266,6 @@ igImageGraph_template = `
text-decoration: underline; text-decoration: underline;
opacity: 0.9; opacity: 0.9;
} }
:host .controls button.R:hover,
:host .controls button.current.R {
background: red;
}
:host .controls button.G:hover,
:host .controls button.current.G {
background: green;
}
:host .controls button.B:hover,
:host .controls button.current.B {
background: blue;
}
:host .controls button:hover { :host .controls button:hover {
opacity: 1; opacity: 1;
} }

View File

@ -960,6 +960,25 @@ module.Dialogs = core.ImageGridFeatures.Feature({
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// Universal editor... // Universal editor...
// XXX EXPERIMENT...
// - how do we handle the ImageGrid context here (i.e. actions)???
// ...one way would be to split the fields into two levels, the
// generic and the domain-specific...
// XXX REVISE...
browse.items.Field =
function(actions, options){
return this([
options.title,
options.value instanceof Function ?
options.value(actions)
: options.value
], options) }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
var EditorActions = actions.Actions({ var EditorActions = actions.Actions({
// format: // format: