Skip to content
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

Improved multi-line entry on macOS #440

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

frarees
Copy link

@frarees frarees commented Nov 28, 2018

  • Proper bg and fg colors on Dark Mode (Mojave)
  • No use of NSRegularControlSize (deprecated 10.12)
  • Keeps styling between typed characters and scripted characters
    (SetEntry/Append)

Mojave (Dark) without patch:
mojave_wofix

Mojave (Dark) with patch:
mojave_wfix

High Sierra (compiled in Mojave) with patch:
highsierra_wfix

- Proper bg and fg colors on Dark Mode (Mojave)
- No use of NSRegularControlSize (deprecated 10.12)
- Keeps styling between typed characters and scripted characters
(SetEntry/Append)
@andlabs
Copy link
Owner

andlabs commented Nov 28, 2018

NSRegularControlSize must still be used to compile on 10.8 - 10.10. Will look in more detail later.

@frarees
Copy link
Author

frarees commented Nov 29, 2018

NSRegularControlSize must still be used to compile on 10.8 - 10.10.

I'm using NSFont controlContentFont (ref):

If fontSize is 0 or negative, returns the control content font at the default size.

It's been there since 10.0. I'm not sure if this overload of the specific usage of 0 here is something introduced lately and it's hard to check without a setup, but I've also found this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants