MultiButtonTRansparent.patch
MultiButton.cpp (copia locale) | ||
---|---|---|
390 | 390 |
cr.left = lx; |
391 | 391 |
cr.right = rx; |
392 | 392 |
r = cr; |
393 |
paper = HasFocus() ? SColorHighlight() : SColorPaper(); |
|
393 |
if(!IsTransparent()) |
|
394 |
paper = HasFocus() ? SColorHighlight() : SColorPaper(); |
|
394 | 395 |
if(HasFocus()) |
395 | 396 |
text = SColorHighlightText(); |
396 | 397 |
w.DrawRect(r, paper); |
... | ... | |
401 | 402 |
r = Rect(max(lx, m.left), m.top, min(rx, sz.cx - m.right), sz.cy - m.bottom); |
402 | 403 |
Color paper; |
403 | 404 |
if(mst == CTRL_HOT && !IsTrivial()) |
404 |
paper = Blend(SColorHighlight, SColorPaper, 235); |
|
405 |
paper = IsTransparent() ? Null : Blend(SColorHighlight, SColorPaper, 235);
|
|
405 | 406 |
else |
406 | 407 |
if(mst == CTRL_PRESSED && !IsTrivial()) |
407 |
paper = Blend(SColorHighlight, SColorFace, 235); |
|
408 |
paper = IsTransparent() ? Null : Blend(SColorHighlight, SColorFace, 235);
|
|
408 | 409 |
else |
409 | 410 |
if(HasFocus()) { |
410 |
paper = SColorHighlight(); |
|
411 |
paper = IsTransparent() ? Null : SColorHighlight();
|
|
411 | 412 |
text = SColorHighlightText(); |
412 | 413 |
} |
413 | 414 |
else |
414 |
paper = SColorPaper(); |
|
415 |
paper = IsTransparent() ? Null : SColorPaper();
|
|
415 | 416 |
w.DrawRect(r, paper); |
416 | 417 |
cr = r; |
417 | 418 |
} |