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

Add main/dawn variants for gnome shell #21

Open
mvllow opened this issue Jul 28, 2022 · 8 comments
Open

Add main/dawn variants for gnome shell #21

mvllow opened this issue Jul 28, 2022 · 8 comments

Comments

@mvllow
Copy link
Member

mvllow commented Jul 28, 2022

#20 added moon variant support for gnome shell. As mentioned in that PR, it shouldn't be too difficult to use our build tool to add support for the other two variants :)

Happy to help with any questions if someone takes this on!

@zoedsoupe
Copy link

hmmm I would like to try that!

@mvllow
Copy link
Member Author

mvllow commented Jul 28, 2022

Lovely! I think our kitty theme might be the simplest real-world example using the build tool.

@zoedsoupe
Copy link

perfect! I'll take a look

@ashbork
Copy link
Contributor

ashbork commented Oct 16, 2023

I've returned to Linux and I think I can spin something up! The old Moon version sadly doesn't work anymore, but it was due to a fragile implementation on my part.

Building seems a bit tricky to automate in the long run; I'm basically building all of gnome-shell with a different stylesheet and using the resulting gnome-shell.css - hope there's a better way but I mostly fiddled with the colors to make sure they're correct. I'm also a bit opinionated on the accent color but it's trivial to change if we decide to go with another.

Here's a POC with my beloved Moon variant (and GTK3 + GTK4 themes applied). I used Gradience for this one and I'd argue for looking into changing it a bit; the top bar color seems inconsistent (not sure if it's across GTK versions, but I think that may be the case) and I don't quite agree with replacing the Close button with a big red dot.

example of Rose Pine Moon
fullscreen example, showcasing GTK3, GTK4 and the shell.

the panel and the 'Files' program header are the same color
the panel and VS Code's header are different colors
GNOME Files' header blends perfectly into the topbar, while VSCode's doesn't.

@mvllow
Copy link
Member Author

mvllow commented Oct 16, 2023

That's looking great! As far as building, would gnome-shell-extensions help? Looks like it allows setting a user theme from a directory which could remove the need to rebuild gnome shell each time. I'm not well-versed in this realm

Edit: user-theme extensions: https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/tree/main/extensions/user-theme?ref_type=heads

@ashbork
Copy link
Contributor

ashbork commented Oct 17, 2023

Applying the theme isn't an issue exactly because we can use the User theme extension, actually building the theme is tricky; what's the project's policy on the theme sources? The resulting gnome-shell.css is actually compiled out of a huge directory of parts from the gnome-shell project, should we include it in the repo with instructions to build it and add the resulting files to a release or should we have just the results?

@mvllow
Copy link
Member Author

mvllow commented Oct 17, 2023

Oh that makes sense. Licensing doesn't seem to be an issue as far as including any or all of gnome-shell's css. For contributors it is best to allow building from source—I assume only including the result would make any modifications more difficult.

Edit: I do like the idea of having prebuilt releases though :)

@ashbork
Copy link
Contributor

ashbork commented Oct 17, 2023

I think the way to go should be Gradience + icons + gnome-shell, in which case I'd like to have the release be a tarball that you'd just extract in your home directory. Gradience really seems to be the future for GTK theming and the old GTK4 theme I wrote probably won't be as future-proof. We could also opt for an install script that'd allow the user to pick whether they'd like to use Gradience or the legacy stylesheets

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

No branches or pull requests

3 participants