Author Topic: dark color mode  (Read 1094 times)

0 Members and 1 Guest are viewing this topic.

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
    • View Profile
dark color mode
« on: July 30, 2022, 08:35:07 PM »
On making dark mode consequent i found that if you use set/putbitmap and give it a black color, it won't be seen on a black background.

Now you can use

Code: [Select]
setbitmap(bitmap, -1); it will automatically use the foreground color

Another wayt is using command(FUNCTION, 43, x, 0) where

x = 0, returns current background color
x = 1, returns current foreground color
x = 2, returns current font color

So if you use
Code: [Select]
int mycolor = command(FUNCTION, 43, 1, 0);
setbitmap(bitmap, mycolor);

it will also always be visible.






Greetings from Groningen Netherlands.

ABer

  • Administrator
  • Hero Member
  • *****
  • Posts: 1167
    • View Profile
Re: dark color mode
« Reply #1 on: August 01, 2022, 05:51:43 PM »
Thanks Jean - that's a helpful refinement. Much appreciated. Ed

Jean

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
    • View Profile
Re: dark color mode
« Reply #2 on: August 01, 2022, 06:00:48 PM »
Yeah, you should decide for yourself what to do, i noticed you have quite some colored bitmaps, would be a pity to make them all the foreground color. But you can tell users not to use a dark color set if they want to use those scripts. Can't make everybody happy.
Greetings from Groningen Netherlands.