Fixed disabled OptionButton style (#327)

This commit is contained in:
Sergey Ortman 2025-12-05 19:01:24 +05:00 committed by GitHub
parent ea88bbc6c2
commit bf62b69bf9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);