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

Re: TextHighlighterTheme["Background"] error


Le 11/04/2025 à 14:07, Bruce Steers a écrit :


On Fri, 11 Apr 2025 at 12:20, Benoît Minisini <benoit.minisini@gambas- basic.org <mailto: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?
:-\

In the IDE? It's not in the IDE.


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

There is no background anymore in the theme. Nothing can be returned by hTheme["Background"] now. Why do you use it? Can't you just remove the use of it?

Regards,

--
Benoît Minisini.


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