diff --git a/gb.qt4/src/CStyle.cpp b/gb.qt4/src/CStyle.cpp index 70a779fd6..ca51c5087 100644 --- a/gb.qt4/src/CStyle.cpp +++ b/gb.qt4/src/CStyle.cpp @@ -120,6 +120,9 @@ static void init_option(QStyleOption &opt, int x, int y, int w, int h, int state palette.setColor(role, TO_QCOLOR(color)); opt.palette = palette; } + + if (state & GB_DRAW_STATE_DISABLED) + opt.palette.setCurrentColorGroup(QPalette::Disabled); } static void paint_focus(QPainter *p, int x, int y, int w, int h, int state)