Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GTK + QT templates #67

Open
h4-n1 opened this issue Aug 23, 2022 · 10 comments
Open

GTK + QT templates #67

h4-n1 opened this issue Aug 23, 2022 · 10 comments

Comments

@h4-n1
Copy link

h4-n1 commented Aug 23, 2022

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
Copy link
Member

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
Copy link
Member

Misterio77 commented Sep 19, 2022

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
Copy link
Member

actionless commented Sep 19, 2022

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
Copy link
Member

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

@actionless
Copy link
Member

actionless commented Sep 19, 2022

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
Copy link
Member

Misterio77 commented Sep 19, 2022

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
Copy link
Member

actionless commented Sep 19, 2022

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
Copy link
Member

actionless commented Sep 19, 2022

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
Copy link

RobLoach commented Jul 29, 2024

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
Copy link
Member

actionless commented Jul 29, 2024

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants