-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add doubleUnderscore
cursor style
#7827
Conversation
To draw the double underscore cursor draw the upper line directly. For this, I moved the initialisation of brush up to the paintType.
As far as I know all necessary changes are made and to put it "on radar" I marked the PR "Ready for review". |
upperLine.top -= 2; | ||
upperLine.bottom -= 2; |
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.
Does this look correct at all DPIs or does it need to be adjusted by a scale factor?
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.
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.
Oof, can you file a follow on issue (or search the repo for an existing one) to make sure these things get scaled? I bet its just 1px and it looks bad for all options.
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.
Hm, I couldn't find one on searching. Maybe my boolean-fu is bad. @j4james this might be a thing you know about? I don't know why I think that... but something rings a bell in my head that you might have noticed cursors aren't DPI scaled...
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.
No. I was looking at the grid line rendering (underlines, overlines, etc.). Those do now track the font style and also scale appropriately, but I don't think the cursors do (at least not all of them).
Because the doubleUnderscore cursor directly draws a line, the color needs to be set before the switch. Otherwise one line would be white.
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.
I'm okay with this because the DX code looks good, and the GDI code is technically unreachable, so I'm not really worried about how that looks.
@rhorber heads up, this merge-conflicted in |
I just want to get a bit of closure on whether we need to file a follow on for cursor shape scaling or if there's an existing one. Then I guess there's no sense on standing in the way of this any further. |
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.
Thank you for doing this. I've updated the value for the settings UI, as well, and changed the order of the enum values so that they show up nicely.
Hello @DHowett! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
I apologize for us taking so long to get to this. Sometimes, quick wins from our community slip through the cracks. I'm making sure this goes out in 1.6. 😄 |
I apologize too for not responding. 😔 (I had some busy months and was not on GitHub for work either.) I am very happy I could help. If it's okay, I will sometimes check the open issues if there is something I can do (and is not time critical 😆). |
You’re very welcome to do that! Thanks again! |
Adds a new cursor type "doubleUnderscore". Tested manually. Closes microsoft#6786
Adds a new cursor type "doubleUnderscore". Tested manually.
Closes #6786