Komet / MediaElch

Media Manager for Kodi
https://mediaelch.github.io/mediaelch-doc/about.html
GNU Lesser General Public License v3.0
835 stars 94 forks source link

Dark Theme #761

Closed ticao2 closed 1 year ago

ticao2 commented 5 years ago

[Windows] Dark Theme

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like Windows 10, after version 1809 (October 10, 2018), has the ability to use a Dark Theme.
In MediaElch, in the Linux or OSX version, I think there is this possibility.
In Windows 10, Firefox has this capability. Apparently the MPC-HC too.
Is there any chance MediaElch for Windows 10 has this ability?

Describe alternatives you've considered No alternative

Additional context How to enable Dark Theme on Windows 10.
https://pureinfotech.com/enable-file-explorer-dark-theme-windows-10/

bugwelle commented 5 years ago

Hi,

thank you for this feature request. MediaElch uses Qt for its graphical user interface and after a quick google search I found that Qt does not yet support the dark Windows theme. See https://forum.qt.io/topic/101391/windows-10-dark-theme

We'd have to use a third-party color palette or define our own. For example https://github.com/ColinDuquesnoy/QDarkStyleSheet

To be honest, I'm not sure whether I want to do that, though. And if we use a custom theme, we'd need to get Window's settings for the currently used theme (dark/light) and change our styles based on that information. I'll think about this and will evaluate the development costs / time it takes to implement this.

But please note that there are many other issues that need to be taken care of, first. :)

ticao2 commented 5 years ago

My ignorance in programming has no limits. I thought it would be simpler. And, undoubtedly, there are more important questions than this. But maybe when QT supports it, it's easier. :-) Thank you one more time.

ghost commented 5 years ago

So what about dark mode for macOS 10.14+ ? From what I have seem so far, QT is able to support the Dark Mode on macOS.

bugwelle commented 1 year ago

So what about dark mode for macOS 10.14+ ? From what I have seem so far, QT is able to support the Dark Mode on macOS.

I'm not sure, maybe this works in Qt6. However, MediaElch's main window is customized, so it won't work with Qt's default UI colors.

bugwelle commented 1 year ago

I've done a lot of refactoring today and even played a few minutes with changing colors. The most relevant commit of today was https://github.com/Komet/MediaElch/commit/62c53047d3574f9c2a08e5775ab9fa0f88d6a36f which moved inline stylesheets to our default.css. Replacing colors in that file now works better.

I'll be doing a bit more cleanup and refactoring and will try to write a stylesheet for a dark theme (of our main window at least).

Preview:

Screenshot 2022-12-27 at 21 20 25

I only played with it for a few minutes. I know the colors don't look good, I just wanted to show that there are only a few places left that are bright white. Those need to be styled, but it's a lot better now compared to a few months ago.

There is also a lot to do:

bugwelle commented 1 year ago

With #1522, there will be an experimental dark mode. Not everything is perfect, yet, especially for TV shows, but it's a huge improvement over my 5min example from yesterday. :)

Screenshot 2022-12-28 at 18 31 00
bugwelle commented 1 year ago

More improvements with #1524.

bugwelle commented 1 year ago

TODO:

bugwelle commented 1 year ago

Besides some smaller issues, dark mode is now fully implemented (with UI settings).

ticao2 commented 1 year ago

After 3 months of political turbulence in my country, which took all my attention to social networks, in an endless fight to combat Fake News, I believe that now I will be able to return to a more or less normal life and have fun with my movie collection. I'll try to install it today and have some fun.