[Github-comments] [geany/geany] Always load the default builtin color scheme as fallback (#1186)
Colomban Wendling
notifications at xxxxx
Mon Aug 22 10:45:03 UTC 2016
@codebrainz I mostly implemented this for things like `indicator_error` (#1185), not as a generic theme inheritance thing. And there, using the `default` style would not be very nice.
@elextr I though about implementing proper theme inheritance, but it's a lot less trivial indeed. I first tried the naive way just like this here but with an additional `[theme_info]` `inherits` key, and while it worked as expected, it wasn't really nice at any level. It only handled the `named_styles` part, and not `named_colors`, and I have no real idea in what order this is resolved so it might not even have worked properly. BTW, my idea behind this was mostly allowing users to override a small thing in a theme without having to maintain a whole "fork" of it.
We probably should rather do something like in filetypes files, and allow
```ini
# inherit colors from Fluffy
[named_colors=fluffy]
# override some
red=#ff0000
# let's be crazy, we inherit something totally different -- which doesn't really make sense, but whatever
[named_styles=inkpot]
# and override some
comment=red,#000
```
Or wait to come up with a way to support all what @codebrainz wishes for.
But IMO full inheritance, while nice, is slightly off-topic here and would deserve its won issue :)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1186#issuecomment-241376957
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20160822/f493387e/attachment.html>
More information about the Github-comments
mailing list