luisbocanegra / kde-material-you-colors

Automatic color scheme generator from your wallpaper for KDE Plasma powered by Material You
https://store.kde.org/p/2136963
GNU General Public License v3.0
344 stars 6 forks source link

[FEATURE REQUEST] Theming for libadwaita apps #136

Open kun-codes opened 1 year ago

kun-codes commented 1 year ago

Is your feature request related to a problem? Please describe. Currently apps based on libadwaita aren't styled and they remain at the default dark or bright themes

Describe the solution you'd like I want the themes to be synced like how it is with gtk apps

Describe alternatives you've considered https://github.com/avanishsubbiah/material-you-theme

I have found this but I haven't tried it

luisbocanegra commented 1 year ago

That's a gnome extension, unless there is a way to call it outside gnome shell I don't think I'll be easy or even possible to add support for it. Also, I'm not familiar at all with gnome theming in general, much less with libadwaita, sadly.

But if there is a way to do it without having to reinvent it, it'll probably be through Gradience as they offer a command-line interface.

I'll have to check if it's possible to send the current wallpaper to it or even the colors though, the other way could be making a plugin that calls kde-material-you-colors from gradience. You may also want to look at Gradience To Qt Theme Converter (haven't tried myself)

Either way it's done I would want them be as consistent as possible with each other, that is if they don't add support for qt theming before :smile: which could be an easier task

kun-codes commented 1 year ago

hi, can you show me how to access the gradience command line interface

luisbocanegra commented 1 year ago

You access it with gradience-cli this is from the main branch so I'm not sure if it's available on the stable version yet (0.3.3 on AUR doesn't have it but git version does)

kun-codes commented 1 year ago

thanks

kun-codes commented 1 year ago

hi, can you tell me how I can get the current wallpaper to use it in my scripts? I have built a workaround for theming libadwaita apps, but the way to get the current wallpaper is not as dependable right now

luisbocanegra commented 1 year ago

You could extract it from /tmp/kde-material-you-colors.json, if you're using the on_change_hook you can put there a bash script that gets it with jq, I was thinking of passing the wallpaper and some other data as arguments so they'll be available inside the hook