mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
cleanup + rethinking the editor...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
32204666ec
commit
cc502c8f72
@ -266,18 +266,6 @@ igImageGraph_template = `
|
||||
text-decoration: underline;
|
||||
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 {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@ -960,6 +960,25 @@ module.Dialogs = core.ImageGridFeatures.Feature({
|
||||
//---------------------------------------------------------------------
|
||||
// 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({
|
||||
|
||||
// format:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user