mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Fixed disabled OptionButton style (#327)
This commit is contained in:
parent
ea88bbc6c2
commit
bf62b69bf9
1 changed files with 1 additions and 2 deletions
|
|
@ -748,10 +748,9 @@ void ButtonOption::Paint(Draw& w) {
|
|||
if(VisibleAccessKeys() && IsEnabled())
|
||||
dl.accesskey = accesskey;
|
||||
int i = !IsShowEnabled() ? CTRL_DISABLED :
|
||||
push ? CTRL_PRESSED :
|
||||
push || option ? CTRL_PRESSED :
|
||||
HasMouseIn() || HasFocus() ? CTRL_HOT :
|
||||
CTRL_NORMAL;
|
||||
if(option) i = CTRL_PRESSED;
|
||||
ChPaint(this, w, sz, style->look[i]);
|
||||
dl.ink = style->textcolor[i];
|
||||
dl.Paint(w, 3, 3, sz.cx - 6, sz.cy - 6, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue