Re: [code] [textadept] Theming

From: Mitchell <m.att.foicica.com>
Date: Wed, 12 Jun 2013 15:32:39 -0400 (Eastern Daylight Time)

Robert,

On Tue, 11 Jun 2013, Robert wrote:

> [snip]
>
> * What do you think about having a font adjusting API like
>
> set_theme(theme, font, fontsize) e.g.
>
> set_theme('darker', 'Monaco', 12)
>
> The last two options would be optional and would otherwise be set to
> the values now present in each theme.

This is an idea worth investigating. Thanks!

> * There are a few occasions of named colors in a few lexers:
> diff.lua
> 36: {'addition', 'fore:$(color.green)'},
> 37: {'deletion', 'fore:$(color.red)'},
> 38: {'change', 'fore:$(color.yellow)'},
>
> dmd.lua
> 151: {'traits', 'fore:$(color.yellow)'},
>
> lexer.lua
> 433:-- local style = l.STYLE_WHITESPACE..',back:$(color.grey)'
>
> markdown.lua
> 100:local hstyle = 'fore:$(color.red)'
> 109: {'hr', 'back:$(color.black),eolfilled'},
>
> I don't have these in the themes I posted the other day, they are just
> called color.base01 etc. - I could change the color names though, but
> in the green theme there is no red :-). Would you accept a patch that
> changed the style in these lexers to styles that have the appropriate
> colors in the default dark/light themes?

Yes, I'd like to see what you come up with.

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 12 Jun 2013 - 15:32:39 EDT

This archive was generated by hypermail 2.2.0 : Thu 13 Jun 2013 - 06:25:24 EDT