-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Make negative areas of selection triangle transparent (& other fixes) #8484
Conversation
|
Should that |
|
@dangoor it only applies to the dark theme though. |
|
OK |
|
@dangoor it's a temporary fix. We won't need it if it's using Dark Core UI. |
|
@dangoor I think we should take out the dark scrollbar styles out as well until the dark core UI is in place, what do you think? |
|
@larz0 Seems like it could/should be scoped to only affect the editor area scrollbars. E.g. the sidebar already has different scrollbars (which are dark, narrower, and disappear on hover) and this blows them away, which is probably a bug even once we do have a fully-dark UI... |
|
@peterflynn cool I'll try and make the scrollbar styling editor-only in this PR. |
|
The dark overwritten scrollbars are the one that should be scoped to the editor, and not the default ones, since we do want the win8/linux scrollbars in the dialogs and not the default ones. |
|
@TomMalbran @peterflynn I'm having a hard time trying to isolate the scrollbars. |
|
@larz0 You should be able to do something like |
|
I tried that and I'm wondering if I had ran into a LESS bug. |
|
@larz0 Hmm... I think there used to be a LESS bug where those |
|
@peterflynn I just figured it out. It is not an issue with Less, but an issue with how the Themes manager works and with the specificity required to overwrite the default styles. The big issue is that the Themes extensions extracts the scrollbar declarations and it re-adds them in a different style block when the custom scrollbars is on. The issues is that when doing this, it doesn't add the |
|
@TomMalbran That's correct. That's why I was explaining that the order of operations needs to be swapped. The issue is that the scrollbar are extracted before they are processed by the LESS processor, which means that the platform-win & {} does not get converted to CSS... I am about to do a pull request anyways |
|
@MiguelCastillo I actually also tried using |
|
Yeah, that's where I am at right now. PITA. I was hoping to never have to touch that regex ever again :D |
|
HA! Finally found where I mentioned that. #8481 Wrong issue |
|
Oh yes. I saw that comment. But now I understand what you where saying. Hehe |
|
@peterflynn @dangoor should we merge this and make the scrollbar fix a separate PR? This definitely needs to go into 42. |
|
@larz0 I just found out that the underline cursor used for overwrite is not working on the dark theme. It looks like you didn't added a style to overwrite it. https://github.com/adobe/brackets/blob/master/src/styles/brackets_codemirror_override.less#L197 Also, maybe we can remove some of the |
|
Thanks @TomMalbran it's fixed now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I correct in thinking that this should actually be applied in the core stylesheet with the (not yet there) dark class?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep you're right, these are temporary fixes. This was fixed in the dark core UI PR.
|
Good collection of changes. Merging |
Make negative areas of selection triangle transparent (& other fixes)

Doubled checked again after a PR was merged and realized I missed two spots while I was reviewing. This PR will fix the problem in the screenshots below:
Update: There are also fixes for #8491 and #8494.