[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextHighlighterTheme["Background"] error


On Fri, 11 Apr 2025 at 12:20, Benoît Minisini <
benoit.minisini@xxxxxxxxxxxxxxxx> wrote:

> Le 11/04/2025 à 12:40, Bruce Steers a écrit :
> > My script editor is now throwing lots of errors.
> > It seems everywhere i have used $hTheme["Background"].Color
> >
> > has the Background theme style been removed?
> >
> > BruceS
>
> Yes, it's work in progress, but since the last commit it's now (almost)
> finished.
>
> Now a theme has no background anymore, but a method 'Adapt()' that let
> the theme adapt to any background you specify.
>
> This method is internally used by the TextEditor control.
>
> So put any background in your text editor, put any theme, and it should
> work magically.
>
> Regards,
>
> --
> Benoît Minisini.


can you add an "Adapt" method to the ide that makes all my now broken code
work magically?
:-\

Or more realistically put the hTheme["Background"].Color back in but make
it point to this new magic method so we can still use our previously
written code?
I have used hTheme["Background"].Color in a fair few programs.

BruceS

Follow-Ups:
Re: TextHighlighterTheme["Background"] errorBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
TextHighlighterTheme["Background"] errorBruce Steers <bsteers4@xxxxxxxxx>
Re: TextHighlighterTheme["Background"] errorBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>