Build a 16×18 dock-side indicator: hollow rectangle (the main window) with a thin shaded strip flush against one inner wall, representing the applet panel docked on that side. Visual language matches the pop-out icon's thin-strip-as-panel motif.
| 48 | // the applet panel docked on that side. Visual language matches the |
| 49 | // pop-out icon's thin-strip-as-panel motif. |
| 50 | QPixmap buildDockSideIcon(bool fillLeft, bool active) |
| 51 | { |
| 52 | QPixmap pm(16, 18); |
| 53 | pm.fill(Qt::transparent); |
| 54 | QPainter p(&pm); |
| 55 | p.setRenderHint(QPainter::Antialiasing, false); |
| 56 | const QColor stroke(active ? QColor(255, 255, 255, 230) |
| 57 | : QColor(138, 168, 192, 200)); |
| 58 | p.setPen(QPen(stroke, 1)); |
| 59 | p.setBrush(Qt::NoBrush); |
| 60 | // Outline 13×14: columns 1 and 14, rows 2 and 16. Interior 12×13. |
| 61 | p.drawRect(1, 2, 13, 14); |
| 62 | // Shaded strip 4 px wide, spanning top-to-bottom of the outer rect |
| 63 | // (rows 3–15 = full interior height), flush against the chosen wall: |
| 64 | // left = cols 2–5 |
| 65 | // right = cols 10–13 |
| 66 | if (fillLeft) |
| 67 | p.fillRect(2, 3, 4, 13, stroke); |
| 68 | else |
| 69 | p.fillRect(10, 3, 4, 13, stroke); |
| 70 | p.end(); |
| 71 | return pm; |
| 72 | } |
| 73 | |
| 74 | // Build a 16×18 pop-out indicator: hollow square (the main waterfall |
| 75 | // window) on the left, with a smaller filled rectangle to its right |
no outgoing calls
no test coverage detected