-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Extract backgrounds and modules to other repos for reusability #236
Comments
This would really help out one of the major issues I had before -- large 'codebases' which are actually just images in text format. My ide would sometimes choke on the large variables when using autocomplete. I still think the end solution should be using go embed, but debian hasn't shipped that version of go yet, so this is a great mitigating step! Would you expose the backgrounds directly as exported []byte variables or as io.Reader interfaces? And would you use a subpackage per 'set' of assets to allow tree-shaking/smaller imports (only compile in the byte arrays actually in use)? |
I had not thought about how the data would be exposed yet. The |
Funnily enough, I was actually going to propose a separate repo to throw in all my backgrounds in -- when I dropped the at least 8 more 'sets' of lite/dark variants on the way. lol The background question is a surprisingly tough one, because at least with my intentions (which I probably need to layout in a formal-issue at some point) -- think we should shoot for default backgrounds to approximate what I've been calling "adaptive wallpapers". So like the active Fynedesk theme sets a primary color, and basically it shifts a wallpaper's various hues based on it. This is def a feature that'd only work well with simple / abstract / "material" styled wallpapers, still I think it's a lot of value added. Recently I've been moving all said wallpapers from a massive shared 4k .xcf (Gimp file) to a bunch of svgs & at this point think they'll just "eventually" end up as a bunch of canvas code https://github.com/tdewolff/canvas -- which would open some interesting possibilities (like off the top of my head, simple animations, randomly generated patterns, etc, etc). But yeah, TLDR: I guess what I'm saying is I'm fully for chunking these out; But I'm also not imagining 'backgrounds' in the same way as other desktops do them and maybe ultimately if this idea I have becomes more formalized it'd be worth separating them again from any traditional wallpapers Fynedesk might pick up in the interim. |
Backgrounds repo created with some very basic code and the existing backgrounds added https://github.com/FyshOS/backgrounds/. I went with |
I am considering (and looking for feedback on) creating two new repos extracted from
fynedesk
.This would allow more consistency and code sharing between apps doing desktop-y things.
The backgrounds could bundle lots, or with tags provide a minimal setup - this would allow apps built for FyneDesk (or other well configured platforms) to bundle less in the UI if we know what is on the filesystem instead.
The text was updated successfully, but these errors were encountered: