Code Monkey home page Code Monkey logo

Comments (5)

weisJ avatar weisJ commented on June 1, 2024 1

I am using the official API for switching the theme i.e.

QuickChangeLookAndFeel.switchLafAndUpdateUI(LafManager.getInstance(), targetLaf, true);

I'll have to see if there is a more reliable api but please consider reporting this to Jetbrains.

from auto-dark-mode.

bric3 avatar bric3 commented on June 1, 2024

@eugene-stativka I see you are using the material theme, it maybe a good idea to see if it's related to this plugin in particular. Or the combination of the theme and intellij.

from auto-dark-mode.

weisJ avatar weisJ commented on June 1, 2024

@bric3 It also occurs when using the Dracula theme. I have had it happen myself but could not reproduce it reliably.

from auto-dark-mode.

weisJ avatar weisJ commented on June 1, 2024

I wonder if this has to do with updating the laf asynchronously. IntelliJ platform itself only ever calls it synchronously i.e.

QuickChangeLookAndFeel.switchLafAndUpdateUI(LafManager.getInstance(), targetLaf, false);

I guess I'll do the same thing.
However it's still worth while to report that changing the laf asynchronously does not work properly.

Edit: The theme settings panel itself also calls the method asynchronously, so there is something else at play here.
Nonetheless I'll test how it behaves when calling it synchronously.

from auto-dark-mode.

weisJ avatar weisJ commented on June 1, 2024

@eugene-stativka The new pre-release hopefully resolves this problem.

from auto-dark-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.