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

Load colors from gtk.css (libadwaita theming/recoloring) #10

Open
piousdeer opened this issue Aug 9, 2022 · 4 comments
Open

Load colors from gtk.css (libadwaita theming/recoloring) #10

piousdeer opened this issue Aug 9, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@piousdeer
Copy link
Owner

piousdeer commented Aug 9, 2022

Theming GNOME apps via ~/.config/gtk-4.0/gtk.css is gaining popularity with projects such as adw-gtk3 bringing GTK 3 support, adw-colors listing user-made themes, and Material You Color Theming automatically generating themes from your wallpapers.

VS Code themes are just static JSON files. From a quick look, there aren't APIs extensions can use to dynamically alter the current theme, but they can modify either settings.json or the theme files themselves. Bloating the user's settings file is too barbaric, but we could go with the second way. Related: vscode-dynamic-theme, vscode-wal-theme

@piousdeer piousdeer added enhancement New feature or request help wanted Extra attention is needed labels Aug 9, 2022
@piousdeer
Copy link
Owner Author

piousdeer commented Aug 9, 2022

I've found an undocumented package.json .contributes.themes[]._watch option that, when set to true, makes changes made to a theme's JSON file apply immediately (normally, you'd have to restart or reload VS Code). I've also found a project utilizing it for as long as 3 years, so it's not going away. It's also utilized in vscode-wal-theme.

@MajorCarrot
Copy link

This will be a great addition. Let me know if you need any help in testing a beta version of this (I might not be much help in programming the theme)

@piousdeer
Copy link
Owner Author

I've figured out how to get the current theme's colors via gjs. Now to rewrite the theme generator in TypeScript and wrap it all up in an extension. Expect progress soon!

@piousdeer piousdeer removed the help wanted Extra attention is needed label Aug 11, 2022
@MajorCarrot
Copy link

Sounds cool! Will eagerly wait for an update!

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

No branches or pull requests

2 participants