Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overview: hide markers #1147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Overview: hide markers #1147

wants to merge 1 commit into from

Conversation

alemax-xyz
Copy link

@alemax-xyz alemax-xyz commented Dec 24, 2021

According to the Scintilla Documentation:

Any markers not associated with a visible margin will be displayed as changes in background colour in the text. A width in pixels can be set for each margin. Margins with a zero width are ignored completely.

All lines with markers, either builtin or used by plugins (git-changebar), appear on the white background, which is ugly, especially in dark themes.

This MR disables rendering of markers by making them fully transparent on the overview.

Additionally, it fixes SETMARGINWIDTHN for the last (missing) margin:

5 margins are allocated initially numbered from 0 to SC_MAX_MARGIN (4).

Before:
overview-before-fix

After:
overview-after-fix

According to the Scintilla Documentation:

> Any markers not associated with a visible margin will be displayed as changes in background colour in the text. A width in pixels can be set for each margin. Margins with a zero width are ignored completely.

All lines with markers, either builtin or used by plugins (`git-changebar`), appear on the white background, which is ugly, especially in dark themes.

This MR disables rendering of markers by making them fully transparent on the overview.

Additionally, it fixes `SETMARGINWIDTHN` for the last (missing) margin:

> 5 margins are allocated initially numbered from 0 to SC_MAX_MARGIN (4).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants