-
Notifications
You must be signed in to change notification settings - Fork 621
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
[Textbox] Draw text after cursor #1777
Conversation
This is getting (too) complex. I changed the ordering because there was some 'ugliness' with a normal cursor (non block)., must admit I did not think about the 'block' use-case (just a normal cursor). |
I don't think your first statement is necessarily true, at least I don't associate a block cursor with replacing. A lot of the software I use also uses block cursors for the "insert" mode. If you decide on how to handle this properly I can try to implement the new behaviour 👍 |
Ah fair enough, I misunderstood what you were trying to say. The block cursor I am talking about purely replaces the simple line cursor with a thicker one. That is what many other applications do too (most terminal emulators and text editors have this feature) and I personally find it to be much more aesthetically pleasing. |
I don't think we are mixing anything. I understand you want a block cursor, but for me (and some others (not all) I've talked to) a block cursor is a visual indication that you are in overwrite mode. So as I mentioned before, we should fix the rendering. For me the question is (given this not been in a release we can still overhaul it) what is the best solution that in general gives the best result. I've recently added on request the text outline, I think I would not even mind 'sacrificing' this for having nicer rendering of this. |
Sorry if my previous reply came off as rude, that was not my intention. I fully agree with what you are saying about the rendering, although I don't know if I am able to implement the logic you suggested. Might be that someone else has to take over at this point. |
No problem, I rather have a discussion and concluding we might not agree, then have no discussion at all. |
Lets swap it back for now, and Ill maybe rewrite the whole drawing in a later version. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
A couple of weeks ago my PR (#1753) was merged, making it possible to create block cursors. As part of that change I made the text render on top of the cursor so that text can still be read even when the cursor is at the same position. This change was reverted with this commit, effectively breaking block cursors again.
For reference, here is a screenshot of the current state
And here is what it's supposed to look like:
I myself don't see a reason for why the text can't be on top of the cursor so I opened this PR to fix that regression.