mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
3b50d8f280
commit
7f991ad084
@ -236,8 +236,7 @@ class CalibreStyle: public QProxyStyle {
|
||||
QPalette::Text);
|
||||
w = menuItem->fontMetrics.horizontalAdvance(menuItem->text) + margin;
|
||||
}
|
||||
QColor col = menuItem->palette.color(QPalette::Window);
|
||||
if (col.valueF() < 0.45) painter->setPen(Qt::gray);
|
||||
if (menuItem->palette.color(QPalette::Window).valueF() < 0.45) painter->setPen(Qt::gray);
|
||||
else painter->setPen(QColor(0, 0, 0, 60).lighter(106));
|
||||
bool reverse = menuItem->direction == Qt::RightToLeft;
|
||||
painter->drawLine(menuItem->rect.left() + margin + (reverse ? 0 : w), menuItem->rect.center().y(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user