tinted-theming / home

Style systems and smart build tooling for crafting high fidelity color schemes and easily using them in all your favorite apps.
MIT License
268 stars 13 forks source link

GTK + QT templates #67

Open h4-n1 opened 2 years ago

h4-n1 commented 2 years ago

I've been using @Misterio77's version of the flatcolor GTK theme, and did a bit of work on extending it to use the full range of base16 colours.

As I understand, GNOME is now moving towards GTK4/Libadwaita, which has a nice small template for colour definitions that matches up fairly nicely with base16's definitions.

I haven't found any colour template for QT themes though. I did just find Oomox, and it seems to be able to manage something similar, although I haven't tried it out yet.

I'd like to consolidate methods of defining colours for these toolkits/frameworks, and then match them up to base16's definitions. Hopefully this would let the major DEs use base16 without much effort. Does anyone have any information/thoughts on this?

actionless commented 2 years ago

yup themix-base16-plugin got base16-like templates for both gtk4 and kde but they using extra variables not defined in base16, and need to be replaced to standard ones, other than that they working nowadays, but might break as soon as smth in gtk/kde changes

oomox theme itself have extras for qt5/qt6 theme compat but those templates are not base16-compatible at all, so rewriting them would be same as writing them from scratch

Misterio77 commented 2 years ago

There's a couple of themes (one of them being materia) that support having their colors configured at compile time. Here's how we do it with nix: https://github.com/Misterio77/nix-colors/blob/main/lib/contrib/gtk-theme.nix#L37

Seems to work nicely with Qt when using https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications

actionless commented 2 years ago

There's a couple of themes

list of the themes would be more useful in this context rather than your nix-code for generating oomox/themix-file format config for building Materia

Misterio77 commented 2 years ago

I don't know which one exactly. Just sharing that it's possible without oomox - just bash is enough.

actionless commented 2 years ago

you just generating themix/oomox config file (which Materia happen to support integration with), idk if you're clueless about it or purposely undermining the effort of our project there

Misterio77 commented 2 years ago

idk if you're clueless about it or purposely undermining the effort of our project there

That's very rude. As I said, I was just sharing that it's possible to replace variables & rebuild themes - this could help with any themes (gtk4 and qt included).

Materia happens to use themix/oomox format, but any theme could be recolored by a simple sed command.

Themes that are replaceble without recompiling (such as flatcolor) are very limited.

actionless commented 2 years ago

but any theme could be recolored by a simple sed command.

sure, do it

but while you just using that was done by themix/oomox* project - don't pretend like it's your work - that's what rude, not pointing that out


that slashed "themix/oomox" spelling is not some sort of parody to "GNU/Linux", just project was renamed from Oomox to Themix, but most of the people not familiar with the new name so i often mention both old and new names

actionless commented 2 years ago

There's a couple of themes

so what are those mysterious "couple of themes" which are not related to Oomox/Themix, already mentioned in the first message?

RobLoach commented 2 months ago

Not really related to GTK theme, but I've put together template for GTKSourceView for gedit and stuffs: https://github.com/RobLoach/base16-gtksourceview

Should I just put a link to it in the readme? Happy to transfer it to this org too.

actionless commented 2 months ago

@RobLoach nice work 👍 add it also to https://github.com/chriskempson/base16-templates-source/blob/master/list.yaml so it would be accessible for Classic Base16 users as well