Giter Club home page Giter Club logo

current-task's Issues

Dark border around main app window on Mac in dark mode

On Mac, when using dark mode, there is a black border around the main app window:

border

It seems that this is a bug in Electron/Chromium/macOS that is outside our control. Relevant Electron issue: electron/electron#13164

The good news is that the border only stands out against a light background, which should be the exception rather than the rule in dark mode. Example of how it looks against a dark background:

dark mode dark background

Multi-screen behavior is partially broken if screens have different scale factors

Reproduction scenario:

  • Set up two screens
  • Make sure they have different scale factors (for example, primary at 125% and secondary at 100%)
  • Start the app
  • Make the app switch to nagging mode and back
    • Result: everything should still be fine
  • Move the app window to the secondary screen
  • Make the app switch to nagging mode and back
    • Result: window placement is off, both for nag screen on primary and normal window on secondary

Seems to be caused by a bug in Electron.

Related Electron issue: electron/electron#10862

Edit: There might be some kind of workaround out there, but for now I am marking this as blocked.

Window is higher than Windows taskbar with small buttons

Electron apparently applies a minimum height of 38px for frameless windows (like the one we are using). Issue on Electron repo: electron/electron#23200.

This means that, if Windows taskbar is using small buttons, we can't make our window as thin as the taskbar.
For now, we handle that case by making sure the bottom of our window is aligned with the bottom of the screen (it then has a part that sticks out above the taskbar).

Some potentially related issues regarding Electron and frameless window size:

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.