mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
registry option to switch scrollbars to full width
This commit is contained in:
+8
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user