From 54d30a18ebfb3402eefb8a27fb17d19f1330b4b8 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 20 Apr 2015 21:22:10 -0400 Subject: [PATCH] Invert background opacity widget display values (closes #2595) --- js/id/ui/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/ui/background.js b/js/id/ui/background.js index 364161115..73c3f0bbd 100644 --- a/js/id/ui/background.js +++ b/js/id/ui/background.js @@ -215,7 +215,7 @@ iD.ui.Background = function(context) { .placement('left')) .append('div') .attr('class', 'opacity') - .style('opacity', String); + .style('opacity', function(d) { return 1.25 - d; }); var backgroundList = content.append('ul') .attr('class', 'layer-list');