[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: is it possible to ignore dark theme completely?
[Thread Prev] | [Thread Next]
- Subject: Re: is it possible to ignore dark theme completely?
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Fri, 7 Jun 2024 09:12:30 +0100
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On Thu, 6 Jun 2024 at 10:08, Bruce Steers <bsteers4@xxxxxxxxx> wrote: > > >> Picture[] is really for icons, and Picture properties, because when the >>> system icon theme changes, the internal picture is cached is used to >>> automatically reload the icons. >>> >>> You should create your own cache with a collection, so that you won't be >>> disturbed by the automatic processes behing Picture[] (dark theme >>> adaptation, and automatic reload on system icon theme changes). >>> >>> Regards, >>> >>> -- >>> Benoît Minisini. >>> >> >> Yep that's what I went with, I made a Picture.class and added a Sub >> LoadC() to it that uses a cache collection. >> >> Cheers for the advice :) >> BruceS >> > > I figured another simple workaround.. > I can use the Picture._Put method on program start to pre-load all the > pictures i want to stay original-color. > > So if i do something like > > For Each sPic As String In Dir("./Img") > Picture["./Img/" & sPic] = Picture.Load("./Img/" & sPic) > Next > > Then all future calls to load anything from the Img folder with Picture[] > uses the pre-cached original color pictures. > Dang it, forget that last idea,, I think that it's not safe from the auto-refreshing. Looking at the Picture.class code it looks like "only" pictures starting with icon:/ actually get refreshed and all other pictures in the cache are removed so will get reloaded and inverted when referenced next. Respects BruceS
is it possible to ignore dark theme completely? | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: is it possible to ignore dark theme completely? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: is it possible to ignore dark theme completely? | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: is it possible to ignore dark theme completely? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: is it possible to ignore dark theme completely? | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: is it possible to ignore dark theme completely? | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: is it possible to ignore dark theme completely? | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: is it possible to ignore dark theme completely? | Bruce Steers <bsteers4@xxxxxxxxx> |