adwaita-qt
adwaita-qt copied to clipboard
[WIP] Adjustable accent colors
I just changed some code in src/lib/adwaitacolors.cpp because I wanted it Red. I suggest adding a define to ease building a custom colored version like :
//#define MAIN_THEME_COLOR "#3584e4"
#define MAIN_THEME_COLOR "#E44335"
then in
static QPalette paletteAdwaita()
{
...
QColor selected_bg_color = QColor(MAIN_THEME_COLOR);
...
static QPalette paletteAdwaitaDark()
{
...
QColor selected_bg_color = Colors::darken(QColor(MAIN_THEME_COLOR), 0.2);
...
That's something I would like to see, but I would like to have this configurable by the user, not during compilation. In libadwaita they have various accent colors so next time we do a major Adwaita update, we will definitely include some option for this.
I just shared it because meanwhile it is easy to built it.
https://github.com/flatpak/xdg-desktop-portal/pull/815 could be relevant here.