Fixes: Improved outputpane buttons
Details: I was not entirely happy about how they looked. This should fix a text centering issue as well as improve shadows and reduce hover glare. I also made them slightly transparent to blend them into the background color a bit.
|
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 472 B |
|
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 434 B |
|
Before Width: | Height: | Size: 407 B After Width: | Height: | Size: 483 B |
|
Before Width: | Height: | Size: 439 B After Width: | Height: | Size: 518 B |
|
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 466 B |
@@ -520,7 +520,7 @@ void OutputPaneToggleButton::paintEvent(QPaintEvent *event)
|
||||
QPushButton::paintEvent(event);
|
||||
|
||||
const QFontMetrics fm = fontMetrics();
|
||||
const int baseLine = (height() - fm.height()) / 2 + fm.ascent();
|
||||
const int baseLine = (height() - fm.height() + 1) / 2 + fm.ascent();
|
||||
const int numberWidth = fm.width(m_number);
|
||||
|
||||
QPainter p(this);
|
||||
|
||||