mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
CtrlLib: finituning ChGtk menu
This commit is contained in:
parent
0568f4b804
commit
0587113a83
1 changed files with 1 additions and 2 deletions
|
|
@ -510,9 +510,8 @@ void ChHostSkin()
|
|||
s.itemtext = GetInkColor();
|
||||
Image item;
|
||||
s.item = item = Hot3(CairoImage(32, 16));
|
||||
PNGEncoder().SaveFile("/home/cxl/item.png", item);
|
||||
Over(body, item);
|
||||
c = AvgColor(body);
|
||||
c = AvgColor(item);
|
||||
if(Diff(c, s.itemtext) < 100) // itemtext color too close to highlight color, fix it
|
||||
s.itemtext = IsDark(c) ? White() : Black();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue