osltoy: Requested editor improvements#2067
osltoy: Requested editor improvements#2067silvialpz wants to merge 5 commits intoAcademySoftwareFoundation:mainfrom
Conversation
…r readability in dark mode Signed-off-by: silvialpz <74107990+silvialpz@users.noreply.github.com>
Signed-off-by: silvialpz <74107990+silvialpz@users.noreply.github.com>
Signed-off-by: silvialpz <74107990+silvialpz@users.noreply.github.com>
Signed-off-by: silvialpz <74107990+silvialpz@users.noreply.github.com>
|
The fix for the highlight color is perfect, thanks! I'm less sure about the tab. I that what you have is still adding an actual TAB character in the text of the file, and you are merely adjusting how much horizontal space is advanced for a tab character, in the Qt-based editor. But if you open the saved file in any other editor, a tab is a tab, and it will generally be 8-stop and therefore look different than it did in the osltoy window. I think that there is a subtle distinction to make between (a) what a TAB character in the file means, and (b) what happens when you hit the TAB key in the osltoy editor window. As for (a), since almost all editors will consider tab characters to align to the next 8-stop, we should do that, too, in order for osltoy to display files authored elsewhere correctly, and vice versa. As for (b), I think there are a few sensible choices:
If you want, I'm ok with you modifying this PR to ONLY tackle the highlight issue and leaving the tabs for another day / another PR, and possibly some consultation to see what other onlookers would prefer in the specific behavior. One thing I do not know is if the Qt editor widget already accounts for these choice and has a way to select them without having to write the logic ourselves. |
Signed-off-by: silvialpz <74107990+silvialpz@users.noreply.github.com>
cd85bca to
df3c9e7
Compare

Description
Tests
Only using visual verification for the UI changes.
Checklist:
already run clang-format v17 before submitting, I definitely will look at
the CI test that runs clang-format and fix anything that it highlights as
being nonconforming.