FedoraQt / adwaita-qt

A style to bend Qt applications to look like they belong into GNOME Shell
Other
488 stars 48 forks source link

[WIP] Adjustable accent colors #153

Open boussou opened 3 years ago

boussou commented 3 years ago

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);
...
grulja commented 3 years ago

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.

boussou commented 3 years ago

I just shared it because meanwhile it is easy to built it.

orowith2os commented 1 year ago

https://github.com/flatpak/xdg-desktop-portal/pull/815 could be relevant here.