Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

Delay in the theme refresh #9

Open
Sottti opened this issue Jan 10, 2020 · 1 comment
Open

Delay in the theme refresh #9

Sottti opened this issue Jan 10, 2020 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Sottti
Copy link

Sottti commented Jan 10, 2020

Looking at the theme switchiing looks like there's a delay. Looking at the code looks like the refresh rate is 3 seconds.

Looks like other apps are doing it instantly (this is the difference) and it looks kind of laggy. Is there any way we could have it switching as quickly as other apps or is it nor possible?

Thanks!

@gilday gilday added enhancement New feature or request help wanted Extra attention is needed labels Jan 18, 2020
@gilday
Copy link
Owner

gilday commented Jan 18, 2020

Good observation. Apps which change instantly are almost always native applications developed using Apple's AppKit framework. The AppKit frameworks exposes callbacks for the OS to trigger theme changes.

On the other hand, IDEA is a Java application not developed with AppKit. As you've discovered, this plugin uses the polling mechanism as a workaround to detect when the theme has changed. I'm sure there is a better solution which involves a complex bridge between Java and macOS native AppKit code; however, such a solution is a bit over my head, so I've labeled this issue with "help wanted".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants