Page 6 of 6

Re: Object Theme Library (for Dark or Light Theme)

Posted: Wed Mar 04, 2026 10:13 pm
by ChrisR
Hello jacdelad,
Thanks, I'll take a look but I'm not very fast on PB at the moment, I'm trying to adapt to the speed of the forum :wink:

Re: Object Theme Library (for Dark or Light Theme)

Posted: Thu Mar 05, 2026 6:38 am
by jacdelad
Right now it's fast. Hurry up! :D
But for real, I'll do some more testing. I saw that ImageButtons seem not to work (I guess you simulate buttons?) and one of my SpinGadgets, but I firstly need to find out why.

Re: Object Theme Library (for Dark or Light Theme)

Posted: Fri Mar 06, 2026 4:23 pm
by ChrisR
Hello jacdelad,
I'm late, it's worse than with AI chabots.

I added SetObjectTheme(#PB_Default) = FreeObjectTheme()
It partially reverts to the default values for gadgets, without the Callback, FreeMemory(), and DeleteMapElement(),
but it is not a complete return to a pure PB interface, not everything has been cleaned up, restore the default themes

ObjectTheme v1.64

Otherwise, indeed, ImageButtons are managed in the same way as Buttons. for colors, borders. There is just DrawAlphaImage() in addition.
And for the SpinGadget, it seems to be working as intended here. With its EditBox background color accentuated, as for strings or editors.
You can change it if you want by modifying this line:

Code: Select all

If IsDarkColor(\lBackColor) : \lBackColor = AccentColor(\lBackColor, 15) : Else : \lBackColor = AccentColor(\lBackColor, -15) : EndIf

Re: Object Theme Library (for Dark or Light Theme)

Posted: Fri Mar 06, 2026 7:32 pm
by jacdelad
Thanks ChrisR! I'll try this out.

In the meantime I found some more...things: A deactivated ComboBoxGadget is painted in standard colors. Also, disabled SpinEdit too. Even if the SpinEdit is reactivated it isn't painted correctly. But I'm not sure sure, whether it's my fault or not.

Edit: Ignore the SpinEdit, there's a problem on my side. I'll fix this first before complaining again.