Re: [code] [textadept] Theme enhancements in hg

From: Robert Gieseke <rob.g.att.web.de>
Date: Wed, 15 Jul 2020 14:56:47 +0200

Hi Mitchell,

On 08.07.20 16:40, Mitchell wrote:
>
> With respect to `view:set_theme()` changes, additional properties are now passed as global variables available within a theme (instead of as a property). If you were using the `fontsize` option for overriding the default font size, you'll need to use `size` instead.
>
> view:set_theme('dark', {font = 'MyFont', fontsize = 14})
>
> becomes
>
> view:set_theme('dark', {font = 'MyFont', size = 14})
>
> Lexers with custom styles may also utilize `lexer.colors` and `lexer.styles` with `lex:add_style()`. An example is here[2].
>
> These changes are available in the current set of nightly builds.

How does one overrides colors and styles with this new setup?

Cheers
Robert

-- 
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 15 Jul 2020 - 08:56:47 EDT

This archive was generated by hypermail 2.2.0 : Thu 16 Jul 2020 - 06:35:17 EDT