whatsapp-for-linux icon indicating copy to clipboard operation
whatsapp-for-linux copied to clipboard

Add support for Freedesktop Color Schemes (Dark Mode)

Open AbrarSL opened this issue 2 years ago • 2 comments

The Freedesktop Color Scheme Preference is a new cross desktop standard for Dark & Light modes. It is now being widely adopted by major DEs such as GNOME and KDE. Apps are expected to opt in to following this preference. Some information about this preference and how to implement it can be found on GNOME's gitlab.

AbrarSL avatar May 16 '22 05:05 AbrarSL

This is not an electron app? It uses WebKitGTK for the webview and the actual app is written with GTK? Am I mistaken?

Either way regardless of what toolkit the app uses it should be possible to use DBus to check what the current system preference is and adjust the theme entirely on the application side. There is an example in the link I attached that shows how you would possibly do this with something like SDL.

AbrarSL avatar May 16 '22 07:05 AbrarSL

I did a bit of digging and discovered that this requires a bit of work with GTK3 as opposed to GTK4 which we plan to migrate to. So, I would suggest that we prioritize #239 and this will come automatically.

xeco23 avatar Nov 07 '22 23:11 xeco23