Make 100% brightness the default (closes #2824)

This commit is contained in:
Bryan Housel
2015-11-05 16:12:49 -05:00
parent 3f8e99658c
commit 0b1abc5c4f

View File

@@ -7,11 +7,11 @@ iD.ui.Background = function(context) {
['right', [-1, 0]],
['bottom', [0, 1]]],
opacityDefault = (context.storage('background-opacity') !== null) ?
(+context.storage('background-opacity')) : 0.5,
(+context.storage('background-opacity')) : 1.0,
customTemplate = context.storage('background-custom-template') || '';
// Can be 0 from <1.3.0 use or due to issue #1923.
if (opacityDefault === 0) opacityDefault = 0.5;
if (opacityDefault === 0) opacityDefault = 1.0;
function background(selection) {