Skip to content

An option to switch into a Dark theme would be very useful #1324

Closed

Description

@m4heshd

Details for the issue

In my experience most of the developers are night owls and keep looking at screens for about 16 hours a day. In my case i have a 2nd monitor where i have sqlitebrowser open pretty much all the time. Since i have to look at the light colored window all the the time it makes my eyes hurt in a little while. I use this tool a lot. So it would be amazing if it's possible to switch to a Dark theme.

Useful extra information

I'm opening this issue because:

  • DB4S is crashing
  • DB4S has a bug
  • DB4S needs a feature
  • DB4S has another problem

I'm using DB4S on:

  • Windows: ( version: ___ )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using DB4S version:

  • 3.10.1
  • 3.10.0
  • 3.9.1
  • Other: ___

I have also:

Activity

  1. justinclift commented on Feb 21, 2018

    @justinclift
    Member

    As a thought, it seems like windows can set any application to a dark theme:

        http://troubleshooter.xyz/wiki/enable-dark-theme-for-every-application-in-windows-10/

    The "Enable a Dark Theme for Windows Desktop Applications" section on that page shows how. I just did similar for a Windows 7 desktop here to try it, and it seems to work. 😄

  2. m4heshd commented on Feb 21, 2018

    @m4heshd
    Author

    Hi Justin. The problem is only method that works with DB4S is if you change the default Windows colors which ruins the experience of windows. I'm already using windows Dark mode and tried all of these before. I've even tried better ones like this.

    DB4S looks like this when i use the above theme which is OK but not perfect. Lots of missing texts and random white backgrounds.

    image

    Also this messes up all other applications. It'll be really good if there's a native option for the theme in the app.

  3. justinclift commented on Feb 22, 2018

    @justinclift
    Member

    No worries, that definitely makes sense. To me anyway. 😄

  4. m4heshd commented on Feb 24, 2018

    @m4heshd
    Author

    Thank you for understanding.

  5. self-assigned this
    on Feb 25, 2018
  6. mgrojo commented on Feb 25, 2018

    @mgrojo
    Member

    @m4heshd I've implemented a series of changes for a better support of operating system dark themes. If there aren't any saved settings the default colours adjust automatically to the light or dark system theme.

    Would you have some time to test it in our next nightly build? https://nightlies.sqlitebrowser.org/latest/
    Be sure to restore the default preferences using the new button for that purpose before taking into
    account the changes or after having changed the system theme.

    Your test would be specially needed since I use Ubuntu Linux and this might be very system dependent. This is an example using the Arc-dark theme in Ubuntu:
    imagen

  7. justinclift commented on Feb 25, 2018

    @justinclift
    Member

    Oooooooo Aaaaaaaaaa.... just tried it out with KDE (4.x) on my CentOS 7 desktop:

    db4s-kde-dark_theme1

    This looks pretty good @mgrojo. 😁

    Haven't actually played around with KDE themes before... might stick with this dark one for a while, as I was getting kind of sick of the previous KDE look. 😉

    @m4heshd The button mentioned by @mgrojo is the new "Restore Defaults" button in the Preferences dialog. It's in the bottom left, on the same level as the Save and Cancel buttons. 😄

  8. m4heshd commented on Feb 25, 2018

    @m4heshd
    Author

    Thank you for the update. Tested it out and gotta say it looks really good. The Table component still has a white bg and i understand why that's happening. Overall it looks like this.

    image

  9. justinclift commented on Feb 25, 2018

    @justinclift
    Member

    @m4heshd Just to check, did you compile it yourself or did you download from our nightly builds server?

    If it's the download from the nightly build server, then that only gets updated once per day (~5am UTC), so it won't have @mgrojo's changes in it yet. 😉

  10. m4heshd commented on Feb 25, 2018

    @m4heshd
    Author

    Oops.. My bad. 😁

  11. justinclift commented on Feb 25, 2018

    @justinclift
    Member

    Hmmm, once the nightly builds are ready + known to work on Windows, it's probably worth mentioning this Dark Theme support on Twitter. I'll get that done tomorrow sometime. 😄

  12. 5 remaining items

  13. m4heshd commented on Feb 26, 2018

    @m4heshd
    Author

    Everything seems to be looking good. Colored texts are bright and all the backgrounds are dark. Thanks. ☺

    image

  14. justinclift commented on Feb 26, 2018

    @justinclift
    Member

    Awesome. I'll make a Twitter post about it now. Is it ok to use your screenshot in the Twitter post? (me being lazy here)

  15. justinclift commented on Feb 26, 2018

    @justinclift
    Member

    Meh, I used all three of our screenshots. So, Ubuntu, CentOS, and Windows. 😄

        https://twitter.com/sqlitebrowser/status/967968416236785665

  16. m4heshd commented on Feb 26, 2018

    @m4heshd
    Author

    Everything's perfect. I wish i could get into Qt right now. I'm a huge GUI nerd even though i'm not any kind of a UI specialist. But i got my hands full with trying to migrate all of my Java Swing GUI apps to ElectronJS. Definitely going to get my hands on with Qt when this framework war is done. 😥

    PS: Big thanks to @mgrojo 🙏

  17. mgrojo commented on Feb 28, 2018

    @mgrojo
    Member

    You're welcome @m4heshd. Now I'm using a dark theme for my desktop too 😄

  18. justinclift commented on Jun 23, 2018

    @justinclift
    Member

    Errr... it worked on Win7 when I tested it. Kind of thinking it should work on Win 8.1 too.

    You do need to click the "Restore Defaults" button (bottom left) in the Preferences dialog though, to get it to use the new theme.

  19. m4heshd commented on Jun 23, 2018

    @m4heshd
    Author

    Worked for me on Win 10. Remember it needs a system-wide theme for this to work. Not sure if the functionality will remain after Redstone 5.

  20. Atralb commented on Nov 25, 2020

    @Atralb

    So, this feature can only adapt to a system theme ? There isn't any choice inside SQLiteBrowser to set which theme you want to use on the fly ?

  21. mgrojo commented on Nov 25, 2020

    @mgrojo
    Member

    Both modes are present: "Follow the desktop mode" and "Dark style". Look at Preferences > General > Application Style.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions