From cc502c8f72f615a84919b605e28427a38a6cc612 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 18 Nov 2019 05:22:57 +0300 Subject: [PATCH] cleanup + rethinking the editor... Signed-off-by: Alex A. Naanou --- ui (gen4)/experiments/ig-image-graph.js | 12 ------------ ui (gen4)/features/ui-widgets.js | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 12 deletions(-) diff --git a/ui (gen4)/experiments/ig-image-graph.js b/ui (gen4)/experiments/ig-image-graph.js index 40c63c05..b235a012 100644 --- a/ui (gen4)/experiments/ig-image-graph.js +++ b/ui (gen4)/experiments/ig-image-graph.js @@ -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; } diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index be5faf5b..c0aeba60 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -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: