Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
1.73k stars 94 forks source link

Is it possible to get colors defined in a GTK theme? #424

Closed Freemason-12 closed 1 month ago

Freemason-12 commented 1 month ago

I wanted to make my window borders match my GTK theme accent color, and in order to do that, I thought I need to access something like @themebg or @themefg colors. Is it possible on AGS (or maybe GJS)? I'm using sway, I was able to script away the behavior of workspace widget, and an active window name widget by using sway IPC

Aylur commented 1 month ago

your default gtk theme variables are all available in css have a look at the example bar's css to have a list of available variables you should refer to the source of the gtk theme you are using by default

Freemason-12 commented 1 month ago

I know that they're available on CSS, but how can I apply those css colors into a sway window border, not GTK window or a widget?