registry option to switch scrollbars to full width

This commit is contained in:
Egor.Ushakov
2014-11-28 17:45:26 +03:00
parent e65a4ceabb
commit 6fe6353215
2 changed files with 11 additions and 2 deletions
@@ -592,8 +592,14 @@ public class EditorMarkupModelImpl extends MarkupModelImpl implements EditorMark
}
}
else {
int half = getThickness() / 2;
int shift = isMirrored() ? -half + 2 : half - 1;
int shift;
if (Registry.is("editor.full.width.scrollbar")) {
shift = isMirrored() ? -myMinMarkHeight + 1 : myMinMarkHeight;
}
else {
int half = getThickness() / 2;
shift = isMirrored() ? -half + 2 : half - 1;
}
g.translate(shift, 0);
super.paintThumb(g, c, thumbBounds);
g.translate(-shift, 0);
@@ -490,6 +490,9 @@ editor.caret.width.restartRequired=true
editor.transparent.scrollbar=true
editor.transparent.scrollbar.description=Don't paint background for editor scroll bars
editor.full.width.scrollbar=false
editor.full.size.scrollbar.description=Increase width of the vertical scrollbar to fit marks width
editor.xcode.like.scrollbar=false
editor.xcode.like.scrollbar.description=Enables auto-hideable Xcode-like editor stripes