Lower window height

pull/3/head
reionwong 5 years ago
parent 2ae419ca7b
commit d8405ea29f

@ -73,8 +73,8 @@ void Button::paint(QPainter *painter, const QRect &repaintRegion)
painter->save(); painter->save();
painter->setRenderHints(QPainter::Antialiasing); painter->setRenderHints(QPainter::Antialiasing);
QRect btnRect(0, 0, 30 * decoration->devicePixelRatio(), QRect btnRect(0, 0, 28 * decoration->devicePixelRatio(),
30 * decoration->devicePixelRatio()); 28 * decoration->devicePixelRatio());
btnRect.moveCenter(rect.center()); btnRect.moveCenter(rect.center());
if (isHovered() || isPressed()) { if (isHovered() || isPressed()) {

@ -226,7 +226,7 @@ void Decoration::updateButtonsGeometry()
auto s = settings(); auto s = settings();
auto c = client().toStrongRef().data(); auto c = client().toStrongRef().data();
int right_margin = 5; int right_margin = 4;
int button_spacing = 10; int button_spacing = 10;
foreach (const QPointer<KDecoration2::DecorationButton> &button, m_leftButtons->buttons() + m_rightButtons->buttons()) { foreach (const QPointer<KDecoration2::DecorationButton> &button, m_leftButtons->buttons() + m_rightButtons->buttons()) {

@ -90,7 +90,7 @@ private:
friend class MinimizeButton; friend class MinimizeButton;
private: private:
int m_titleBarHeight = 38; int m_titleBarHeight = 33;
int m_frameRadius = 12; int m_frameRadius = 12;
qreal m_devicePixelRatio = 1.0; qreal m_devicePixelRatio = 1.0;
QColor m_titleBarBgColor = QColor(255, 255, 255, 255); QColor m_titleBarBgColor = QColor(255, 255, 255, 255);

Loading…
Cancel
Save