Changeset View
Changeset View
Standalone View
Standalone View
src/agenda/agendaitem.cpp
Show First 20 Lines • Show All 1104 Lines • ▼ Show 20 Line(s) | 1063 | { | |||
---|---|---|---|---|---|
1105 | p->setRenderHint(QPainter::Antialiasing, false); | 1105 | p->setRenderHint(QPainter::Antialiasing, false); | ||
1106 | const QPen border(QBrush(QColor(200, 200, 200, 255)),1.0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); | 1106 | const QPen border(QBrush(QColor(200, 200, 200, 255)),1.0, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); | ||
1107 | p->setPen(border); | 1107 | p->setPen(border); | ||
1108 | 1108 | | |||
1109 | // header | 1109 | // header | ||
1110 | if (!frame) { | 1110 | if (!frame) { | ||
1111 | QBrush brushSolid(Qt::SolidPattern); | 1111 | QBrush brushSolid(Qt::SolidPattern); | ||
1112 | 1112 | | |||
1113 | if (selected) { | | |||
1114 | QColor top = bgColor.darker(250); | 1113 | QColor top = bgColor.darker(250); | ||
1115 | top.setAlpha(20); | 1114 | top.setAlpha(selected ? 40 : 60); | ||
1116 | brushSolid.setColor(top); | 1115 | brushSolid.setColor(top); | ||
1117 | } else { | | |||
1118 | brushSolid.setColor(QColor(255, 255, 255, 10)); | | |||
1119 | } | | |||
1120 | 1116 | | |||
1121 | p->setBrush(bgColor); | 1117 | p->setBrush(bgColor); | ||
1122 | p->drawPath(path); | 1118 | p->drawPath(path); | ||
1123 | 1119 | | |||
1124 | p->setBrush(brushSolid); | 1120 | p->setBrush(brushSolid); | ||
1125 | p->drawPath(path); | 1121 | p->drawPath(path); | ||
1126 | p->restore(); | 1122 | p->restore(); | ||
1127 | 1123 | | |||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |