mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 06:05:58 -06:00
CtrlLib: Finetuning ChGtk menu color
This commit is contained in:
parent
8153de66d4
commit
6a8db67e10
1 changed files with 3 additions and 4 deletions
|
|
@ -537,10 +537,9 @@ void ChHostSkin()
|
|||
s.topitem[2] = topitem;
|
||||
s.topitemtext[2] = GetInkColor();
|
||||
Over(m, topitem);
|
||||
if(Diff(AvgColor(m), s.topitemtext[2]) < 100) {
|
||||
s.topitem[2] = SColorHighlight();
|
||||
s.topitemtext[2] = SColorHighlightText();
|
||||
}
|
||||
c = AvgColor(m);
|
||||
if(Diff(c, s.topitemtext[2]) < 100)
|
||||
s.topitemtext[2] = IsDark(c) ? White() : Black();
|
||||
}
|
||||
|
||||
SwapOKCancel_Write(Environment().Get("KDE_FULL_SESSION", String()) != "true");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue