IDEA-150906 / IDEA-149395 calculate scroll background from view automatically

This commit is contained in:
Sergey Malenkov
2016-04-15 18:42:20 +03:00
parent f3920dd5d9
commit 7d8430ffd2
2 changed files with 2 additions and 2 deletions
@@ -57,7 +57,7 @@ final class ScrollColorProducer implements NotNullProducer<Color> {
Color background = JBScrollPane.getViewBackground((JScrollPane)parent);
if (background != null) {
if (!background.equals(myOriginal)) {
myModified = ColorUtil.shift(background, ColorUtil.isDark(background) ? 1.05 : 0.98);
myModified = ColorUtil.shift(background, ColorUtil.isDark(background) ? 1.05 : 0.96);
myOriginal = background;
}
return myModified;
@@ -111,7 +111,7 @@ ide.splitter.mouseZone=6
ide.smart.horizontal.scrolling=true
ide.scroll.new.layout=true
ide.scroll.align.component=true
ide.scroll.background.auto=false
ide.scroll.background.auto=true
ide.scroll.background.wide=false
ide.scroll.bar.expand.animation=false
ide.scroll.track.border.paint=false