Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.0
-
macOS 10.14
-
-
ebddd02896709d5856dc73f1a4f1479133c7ed2f (qt/qtbase/5.12)
Description
QToolbar Separator should be more light when Dark Mode. Please see attachment picture.
Seems that color is fixed in qtbase/src/plugins/styles/mac/qmacstyle_mac.mm.
case PE_IndicatorToolBarSeparator: { QPainterPath path; if (opt->state & State_Horizontal) { int xpoint = opt->rect.center().x(); path.moveTo(xpoint + 0.5, opt->rect.top() + 1); path.lineTo(xpoint + 0.5, opt->rect.bottom()); } else { int ypoint = opt->rect.center().y(); path.moveTo(opt->rect.left() + 2 , ypoint + 0.5); path.lineTo(opt->rect.right() + 1, ypoint + 0.5); } QPainterPathStroker theStroker; theStroker.setCapStyle(Qt::FlatCap); theStroker.setDashPattern(QVector<qreal>() << 1 << 2); path = theStroker.createStroke(path); p->fillPath(path, QColor(0, 0, 0, 119)); }
Attachments
Issue Links
- relates to
-
QTBUG-71526 QToolButton in QToolBar checked, in dark mode not rendered properly
- Closed
-
QTBUG-71020 QToolBar: Unreadable text on macOS 10.14 with Dark Theme
- Closed