Skip to content

Commit 371b67a

Browse files
committed
GUI - add external thin black border to nav buttons
1 parent f6dbeb4 commit 371b67a

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

gui/widgets/controllayer.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void CircularButton::paintEvent(QPaintEvent *)
8282
// Draw flat solid background - no gradients
8383
painter.fillPath(circlePath, QColor(r, g, b, alpha));
8484

85-
// Single border - transitions from white to orange
85+
// Inner border - transitions from white to orange
8686
int borderR = lerp(255, orangeR, m_hoverProgress);
8787
int borderG = lerp(255, orangeG, m_hoverProgress);
8888
int borderB = lerp(255, orangeB, m_hoverProgress);
@@ -91,6 +91,11 @@ void CircularButton::paintEvent(QPaintEvent *)
9191
painter.setPen(QPen(QColor(borderR, borderG, borderB, borderAlpha), 0.8));
9292
painter.drawEllipse(buttonRect);
9393

94+
// Thin black outer border - always present
95+
QRect outerRect = buttonRect.adjusted(-1, -1, 1, 1);
96+
painter.setPen(QPen(QColor(0, 0, 0, 180), 0.6));
97+
painter.drawEllipse(outerRect);
98+
9499
if (!icon().isNull()) {
95100
// Calculate icon position
96101
QRect iconRect = QRect(0, 0, iconSize().width(), iconSize().height());

0 commit comments

Comments
 (0)