From ac81e26efe2f970abc11b4fcb592fa66ac54034b Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 30 Dec 2016 04:24:38 +0300 Subject: [PATCH] cleanup, tweaking and added separators to .config['action-category-order']... Signed-off-by: Alex A. Naanou --- ui (gen4)/css/widget/browse.css | 7 +++++++ ui (gen4)/features/base.js | 2 +- ui (gen4)/features/ui-widgets.js | 12 ++++++++++-- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/css/widget/browse.css b/ui (gen4)/css/widget/browse.css index edd415d6..312366a5 100755 --- a/ui (gen4)/css/widget/browse.css +++ b/ui (gen4)/css/widget/browse.css @@ -336,6 +336,13 @@ } +/* hide first/last separators... */ +.browse-widget .list>hr.separator:first-child, +.browse-widget .list>hr.separator:last-child { + display: none; +} + + /****************************************************** Cloud List ***/ diff --git a/ui (gen4)/features/base.js b/ui (gen4)/features/base.js index 93d79c98..3bcc443d 100755 --- a/ui (gen4)/features/base.js +++ b/ui (gen4)/features/base.js @@ -873,7 +873,7 @@ module.CropActions = actions.Actions({ // crop... // - crop: ['- Crop/Crop image list', + crop: ['Crop/Crop', function(list, flatten){ list = list || this.data.getImages() diff --git a/ui (gen4)/features/ui-widgets.js b/ui (gen4)/features/ui-widgets.js index 1ea3a71f..c134766a 100755 --- a/ui (gen4)/features/ui-widgets.js +++ b/ui (gen4)/features/ui-widgets.js @@ -766,7 +766,10 @@ var BrowseActionsActions = actions.Actions({ '50:Crop', 'Crop/80:Crop marked images', 'Crop/80:Crop bookmarked images', - 'Crop/70:Flatten', + // NOTE: we can also add separators here... + //'Crop/70:---', + 'Crop/60:Crop', + 'Crop/50:Flatten', // ... 'Crop/-80:Uncrop and keep crop image order', 'Crop/-81:Uncrop all', @@ -775,7 +778,8 @@ var BrowseActionsActions = actions.Actions({ '-50:Interface', '-60:Workspace', '-70:System', - '-80:Development', + '-80:---', + '-90:Development', '-90:Test', ], @@ -1109,6 +1113,10 @@ var BrowseActionsActions = actions.Actions({ || (cur[key] != null && Object.keys(cur[key]).length > 0)){ make(text + '/') + + // item: line... + } else if(text == '---'){ + make(text) } }) }