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

Fixes for the macOS retina display and dark theme #115

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

sergeyvfx
Copy link
Contributor

This PR consists of the fixes previously made to the LimeSuite repository:

This fixes mouse behavior in the OpenGL graph on Retina displays which has a difference between logical and physical pixels. It also fixes text in the mini log always being black which is hard to read when using dark macOS theme.

The PR consists of two consecutive commits to make it easier to track, if needed.

This fixes interaction with OpenGL graphs used, for example,
in the FFT View module of the LimeSuiteGUI. This includes:

- Zoom in by mouse-drag, where the zoom border used to be
  using wrong coordinates.

- Panning, which used to happen at half the mouse speed.

- Adding markers, which used to be added at a wrong location.

The issue was happening on the macOS with Retina displays.

This is a port of myriadrf/LimeSuite@49880e7f865 from the
original LimeSuite repository.
When the Lime Suite GUI is used on a macOS which is default to
the dark mode the information logged into the log window was hard
to read: it was defaulting to the black foreground.

The behavior now matched when no SetDefaultStyle() used at all:
the light theme will use black text, and the dark theme will use
the white color.

The limitation this change does not address is the update of the
colors in the log window when the theme is changed between dark
ans light while the limeGUI is running.

This is a port of myriadrf/LimeSuite@884070e490a
and myriadrf/LimeSuite@cc09db1f9b0 from the LimeSuite repository.
@rjonaitis rjonaitis merged commit becc3e9 into myriadrf:develop Feb 7, 2025
14 checks passed
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.

2 participants