Giter Club home page Giter Club logo

Comments (7)

LeeAlephium avatar LeeAlephium commented on August 13, 2024 3

I'll haul my Windows machine out from the basement to test since I need it anyway to access some drives...

from desktop-wallet.

LeeAlephium avatar LeeAlephium commented on August 13, 2024 3

Confirmed working by @sven-hash! ✨ Even says it works without restarting the application.

unknown

from desktop-wallet.

lf94 avatar lf94 commented on August 13, 2024 1

I think electron/electron#23479 gives a better understanding of the issue and better solutions than the two you've linked. I agree, it looks non-trivial to deal with as a web developer.

As someone said concisely:

Electron has implemented a fix, however it uses nonpublic APIs and is therefore gated behind a build flag (electron/electron#23479 (comment)).

We can opt to use this build flag or ignore the issue. IMO as long as we "keep on top" of using the nonpublic API, it's ok, since this is just for non-consequential eye-candy.

Code-wise the solution appears to be simple:

const { nativeTheme } = require('electron')
nativeTheme.themeSource = 'system'

But I'm not sure if this requires us to build a particular version of electron.

from desktop-wallet.

nop33 avatar nop33 commented on August 13, 2024 1

If this is the fix, and we can verify that it works (in need of a windows machine), then I say let's just fix it.

from desktop-wallet.

LeeAlephium avatar LeeAlephium commented on August 13, 2024 1

https://github.com/electron/electron/releases/tag/v20.0.0 Added immersive dark mode, simply updating should correct the problem

from desktop-wallet.

nop33 avatar nop33 commented on August 13, 2024

I think this is more complicated than it looks.

Have a look here: https://stackoverflow.com/questions/46222035/set-color-of-windows-titlebar-electron-js

and here: https://www.npmjs.com/package/custom-electron-titlebar

from desktop-wallet.

LeeAlephium avatar LeeAlephium commented on August 13, 2024

Well my Window's machine appears to be dead. It won't power on at all... Going to ask some users in the Discord.

from desktop-wallet.

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.