From 50dbb406ea9327b82aad5f2639a623f7306074e8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 10 Nov 2018 04:01:53 +0300 Subject: [PATCH] added edge detect filter... Signed-off-by: Alex A. Naanou --- ui (gen4)/css/experimenting.css | 4 ++++ ui (gen4)/css/layout.less | 4 ++++ ui (gen4)/electron.html | 13 +++++++++++++ ui (gen4)/features/keyboard.js | 3 ++- ui (gen4)/features/ui.js | 1 + ui (gen4)/index.html | 11 +++++++++++ 6 files changed, 35 insertions(+), 1 deletion(-) diff --git a/ui (gen4)/css/experimenting.css b/ui (gen4)/css/experimenting.css index d9a0434a..f589aadd 100755 --- a/ui (gen4)/css/experimenting.css +++ b/ui (gen4)/css/experimenting.css @@ -154,6 +154,10 @@ body { .image-show-highlights { filter: contrast(0.8) brightness(0.6) contrast(1.2); } +.image-edge-detect { + -webkit-filter: url(#EdgeDetect); + filter: url(#EdgeDetect); +} diff --git a/ui (gen4)/css/layout.less b/ui (gen4)/css/layout.less index f76b7aeb..c0d0acaf 100755 --- a/ui (gen4)/css/layout.less +++ b/ui (gen4)/css/layout.less @@ -208,6 +208,10 @@ /*********************************************************************/ +.svg-filters { + display: none; +} + :focus { outline: rgba(255, 255, 255, 0.5) 1px solid; } diff --git a/ui (gen4)/electron.html b/ui (gen4)/electron.html index d0f3d5b2..38f40979 100755 --- a/ui (gen4)/electron.html +++ b/ui (gen4)/electron.html @@ -92,6 +92,19 @@ requirejs('ui') + +
+ + + + + + + + +
+ + diff --git a/ui (gen4)/features/keyboard.js b/ui (gen4)/features/keyboard.js index 2319654d..49c8567e 100755 --- a/ui (gen4)/features/keyboard.js +++ b/ui (gen4)/features/keyboard.js @@ -445,8 +445,9 @@ module.GLOBAL_KEYBOARD = { ';': 'togglePreviewFilter: "Show shadows" -- Preview shadows', ':': 'togglePreviewFilter: "Show highlights" -- Preview highlights', 'caps+:': ':', - //'ctrl-;': 'togglePreviewFilter: "Show highlights" -- Preview highlights', "'": 'togglePreviewFilter: "Black and white" -- Preview black and white', + '"': 'togglePreviewFilter: "Edge detect" -- Show edges', + 'caps+"': '"', // doc... // XXX for debug... diff --git a/ui (gen4)/features/ui.js b/ui (gen4)/features/ui.js index 491ac4dd..e181b968 100755 --- a/ui (gen4)/features/ui.js +++ b/ui (gen4)/features/ui.js @@ -2147,6 +2147,7 @@ module.PreviewFilters = core.ImageGridFeatures.Feature({ 'Black and white': 'image-bw', 'Show shadows': 'image-show-shadows', 'Show highlights': 'image-show-highlights', + 'Edge detect': 'image-edge-detect', 'No filters': 'none', }, }, diff --git a/ui (gen4)/index.html b/ui (gen4)/index.html index 9f63295f..38ca9e7f 100755 --- a/ui (gen4)/index.html +++ b/ui (gen4)/index.html @@ -100,6 +100,17 @@ requirejs(['ui']) +
+ + + + + + + + +
+