Ctbicon() separate icon and background colour.

Features wanted...
Post Reply
eil
Posts: 1831
Joined: 13 Jan 2011 19:44

Ctbicon() separate icon and background colour.

Post by eil »

Currently ctbicon() has icon and background as one field, so you can't set/change those individually.
Would be good to have background separated into 2nd parameter after comma, and current shape/darkmode param moved to 3rd one.
Win 7 SP1 x64 100% 1366x768|1900x1080

admin
Site Admin
Posts: 65389
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Ctbicon() separate icon and background colour.

Post by admin »

You can't set/change those individually? Why not? They are separated by an asterisk instead of a comma, who cares?

I can't change the syntax anyway. Would break old code.

eil
Posts: 1831
Joined: 13 Jan 2011 19:44

Re: Ctbicon() separate icon and background colour.

Post by eil »

Well, i can't do this ctbicon(*#F6F6F6,r) to simply add background to button's icon without changing icon.
You can't change syntax to keep old code intact, but maybe you can add an enhancement, that if there is nothing before asterisk the icon is kept as is?(not erased with background solely)
Win 7 SP1 x64 100% 1366x768|1900x1080

Post Reply