Skip to content

Window needs a border if shadows are turned off #1585

Open

Description

@albinekb

Description

image

When shadows are turned off in windows, the window is hard to see.

Version

GitHub Desktop version: 0.5.3

Steps to Reproduce

  1. Open the start menu
  2. Search for "performance"
  3. Open the app named "Adjust the appearance and performance of "Windows"
  4. Choose "Adjust for best performance"

image

This will turn off shadows, and since the window is white, you cannot see where it ends.

Is there a way to check if shadows are turned off in electron? 🤔 Otherwise I'll open an issue there, since it could be useful to have such a feature.

Expected behaviour:
The window should have a border.

Actual behaviour:
The window is hard to see against white background.

Activity

  1. shiftkey commented on May 17, 2017

    @shiftkey
    Member

    Some initial thoughts:

    • I gather this is something we should fix in the app, because Electron Has No Feels On This (cc @desktop/electron to confirm)
    • we'd likely need to touch some OS API to test for whether this is has been set (the "Show shadows under windows" checkbox is the one we care about)
    • have we thought about a border-esque design given this accessibility issue @donokuda @niik?
    • is there a macOS equivalent where you can disable window shadows like this @joshaber?
  2. kevinsawicki commented on May 17, 2017

    @kevinsawicki
    Contributor

    I gather this is something we should fix in the app, because Electron Has No Feels On This

    Yeah, if there is an API to get this information or know when this OS setting has changed it would seem worth adding to https://electron.atom.io/docs/api/system-preferences/

  3. albinekb commented on May 17, 2017

    @albinekb
    Author

    Maybe this is it: https://msdn.microsoft.com/en-us/library/windows/desktop/ms724947(v=vs.85).aspx#SPI_GETDROPSHADOW

    SPI_GETDROPSHADOW:
    Determines whether the drop shadow effect is enabled. The pvParam parameter must point to a BOOL variable that returns TRUE if enabled or FALSE if disabled.

    🤔

  4. shiftkey commented on May 17, 2017

    @shiftkey
    Member

    @albinekb maybe? I'd have to remember how we did detection in WPF because I think we had similar work to do with the classic app.

  5. rlabrecque commented on May 17, 2017

    @rlabrecque

    Even a 1 pixel border could/would probably be great design wise with or without shadow. Easier to do than modifying electron and having specific behavior. On windows using the accent color would be pretty great.

  6. added
    windows
    on May 17, 2017
  7. changed the title [-]Window needs a border if shadows are turned off [windows][/-] [+]Window needs a border if shadows are turned off[/+] on May 17, 2017
  8. joshaber commented on May 18, 2017

    @joshaber
    Contributor

    is there a macOS equivalent where you can disable window shadows like this @joshaber?

    LOL no that's crazy talk.

  9. shiftkey commented on May 18, 2017

    @shiftkey
    Member

    Paging @donoku and @niik for general feels before I return to the C++ mines

  10. niik commented on May 18, 2017

    @niik
    Member

    image

    Okay, we're definitely renaming @donokuda to @donoku

    image

    Anyway, yes, we can totally add a border when normal shadows are disabled but I would like to have some more data on how common this is first since it appears to be a non-trivial effort to determine whether shadows are drawn or not. I image this isn't a terribly common thing but I have little data to back that up.

    If someone would like to open a PR to add support for this in electron that'd be great.

  11. shiftkey commented on May 18, 2017

    @shiftkey
    Member

    If someone would like to open a PR to add support for this in electron that'd be great.

    If I can't get to this through the inbuilt system preferences I'll put together a PR.

  12. self-assigned this
    on May 18, 2017
  13. removed their assignment
    on Jun 6, 2017
  14. JonSaffron commented on Oct 24, 2017

    @JonSaffron

    Anyone using a basic or classic desktop theme within windows will experience this problem. I agree with the comment above, it's well worth just adding a very thin border in all cases.

  15. aleksey-sh commented on Jun 25, 2018

    @aleksey-sh

    Does anyone know if this is being worked on? I am working on Windows Server 2012 R2 and its really pain to not to see the application border. You have no idea how many times a day I accidentally switch applications just because I wanted to move Github Desktop window.

    Unfortunately for some reason I have no shadows visible even if option is enabled in Visual Effects. If someone has some solution for that it would be greatly appreciated. Until then I vote for some kind of a visual clue to where the application border is.

    Below screenshots are to demonstrate some of the issues

    Anyone can point me to where the border is on the bottom, not header so that I can resize?
    Anyone can say whether this is a Github Desktop on the google.com site?
    githubdesktop

    When I have multiple Github.com windows open the site's header blends in with the application header with no border.
    githubdesktop2

    Thanks

  16. oe commented on Aug 27, 2018

    @oe

    Any news?

  17. aleksey-sh commented on Nov 9, 2018

    @aleksey-sh

    I've just noticed that the README.md includes a screenshot that shows a border. However my latest installed version still missing a border. I have version 1.4.3 installed. Am I missing something? Is there an option or switch I have to change?

  18. JannesMeyer commented on Oct 5, 2019

    @JannesMeyer
    Contributor

    I'm wondering if there are any news on this issue?

    Visual Studio Code (another Electron app) offers a setting to enable native title bars/window borders:

    image

  19. ahdung commented on Feb 26, 2021

    @ahdung

    Need native window mode.

  20. jimetevenard commented on Nov 14, 2021

    @jimetevenard

    Any updates from Github team on this?

    This is still very annoying.

  21. BrendaHutchinson commented on Nov 15, 2021

    @BrendaHutchinson
  22. steveward commented on Nov 3, 2022

    @steveward
    Contributor

    Requested in #15554.

  23. steveward commented on Jan 9, 2023

    @steveward
    Contributor

    Requested in #15896.

  24. 0009-0009-1013-986X commented on Jan 12, 2023

    @0009-0009-1013-986X

    Can someone ban @Achayou from the repository, please?

  25. added
    not-planned
    on Jul 8, 2024
  26. deleted a comment from yacoco00000 on Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementnot-plannedwindows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions