Ian Bicking schrieb:
> Roger Binns wrote:
>> Georg Brandl wrote:
>>> I'm glad about every comment and criticism.
>> 
>> One thing to consider is that some us are unable to create themed
>> content due to not being artistic enough.  Generally I would like to
>> point to an existing theme designed by someone with good taste, but just
>> change some colours.  For example I'd like to point at the current theme
>> but make it red rather than blue.  It would be nice to be able to do
>> that with one line of configuration :-)

I know this is nice to have, but a color scheme consists of more than just
one color.  Usually there are at least three different "scheme" colors, and
some others, like greys, that are chosen to match the lightness of the scheme.

However, I'm not a designer, so if one corrects me here..

> I'd just really like if we could config the theme through conf.py.  A 
> nice theme could then be easily changed.  For instance, the slate-blue 
> theme is spreading wide to the point it feels generic (in a bad way) 
> like the generic WordPress or Blogger themes.

I agree. This is why I want to see more themes being created and used :)

> So, I imagine something like, in conf.py:
> 
> theme_color = '#f99'
> 
> Then in the theme, something like:
> 
> conf.setdefault('theme_color', '#9ff') # or whatever the default is
> conf.setdefault('theme_accent',
>      Color(conf['theme_color']).brightness(0.7)).hex())
> .. and so on, for all the colors ...
> 
> This would make it really easy for people to change the themes, and 
> fight some of the genericism.
> 
> Being able to prep the configuration with a Python file, and not Python 
> in templates, would be nice.  Like, at first I imagined just doing:
> 
> color: {{conf.get('theme_accent', Color(conf.get('theme_color', 
> '#9ff')).brightness(0.7).hex())}}
> 
> But that's clearly going to be horrible fast.

I want to make themes safe, so that no arbitrary Python code can be
executed when you download and use a new theme (otherwise you'd have to
unpack the zip file, look into the conf file etc...).  (The templates
run sandboxed, so this is safe barring bugs in Jinja.)

Georg

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to