You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sublime update breaks colour scheme – minimap_control from Theme no longer drawn(/drawn below) if override exists for background in the Colour Scheme with non-zero alpha
#5796
Closed
nabijaczleweli opened this issue
Dec 27, 2022
· 4 comments
The moment you save, you should notice that the minimap viewport hides behind the minimapped content of the preferences (in files taller than the screen this means you don't get a viewport at all):
Now edit the #23232301 into #23232300 (this is equivalent to removing the second <dict> stanza): the viewport is shown again
Expected behavior
The viewport is always drawn.
Actual behavior
It's hidden by the minimap body.
Sublime Text build number
4147
Operating system & version
Windows 10
(Linux) Desktop environment and/or window manager
No response
Additional information
The samples are ugly as sin since I've reduced them to the barest minimum. This was found on a full normal theme.
I think I updated from a build no older than 4146 or 4141 where this still worked.
OpenGL context information
No response
The text was updated successfully, but these errors were encountered:
Selections or other kinds of code highlighing is no longer covered by the viewport.
That said, assigning a background to an empty scope (2nd dict) seems weird. It doesn't seem to make sense at all, cause that's already covered by normal background setting.
As soon as a scope such as source is added, viewport is visible again.
Sorry, I should've explained this better, you got bamboozled by the reduction.
The original tmTheme has scope=<string>source</string>. But this only selects some syntaxes, like C++:
(note the viewport being hidden here!)
But not Plain Text:
or Mandoc:
(the viewport is visible for both)
Setting this to the empty string matches all syntaxes and gives the desired effect everywhere (darker background in the text area taken up by the file, default lighter background everywhere else – cf. the C++ example; this is an important usability feature for me).
The override to <string>#23232301</string> is a limiting case to contrast <string>#23232300</string> – my actual theme specs <string>#232323</string>, which functions for the purposes of this bug the same way as #...01; the surprising bit is that #...00 functions as-if the override didn't exist.
Please observe the following short video in which I demonstrate this effect, with scope=<string>source</string> the way you like (I forced the tmTheme view to be syntax=C++, since XML also doesn't match the source selector):
2022-12-27.15-00-20.mp4
The effect is identical if you set scope= (since all strings contain/are prefixed by the empty string).
Description of the bug
When scrolled off the end:
And when in the middle of a file:
Steps to reproduce
Nexus.tmTheme:
Afterglow-orange2.sublime-theme:
or
(either works, even empty! the opacity of the colour is also irrelevant here)
Sublime Text (Safe Mode)/Packages/User
#23232301
into#23232300
(this is equivalent to removing the second<dict>
stanza): the viewport is shown againExpected behavior
The viewport is always drawn.
Actual behavior
It's hidden by the minimap body.
Sublime Text build number
4147
Operating system & version
Windows 10
(Linux) Desktop environment and/or window manager
No response
Additional information
The samples are ugly as sin since I've reduced them to the barest minimum. This was found on a full normal theme.
I think I updated from a build no older than 4146 or 4141 where this still worked.
OpenGL context information
No response
The text was updated successfully, but these errors were encountered: