mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
slight changes
This commit is contained in:
parent
ce6b180522
commit
8f4b58ae08
|
@ -402,7 +402,7 @@ void BaseWindow::showEvent(QShowEvent *event)
|
|||
SetWindowLongPtr((HWND)this->winId(), GWL_STYLE,
|
||||
WS_POPUP | WS_CAPTION | WS_THICKFRAME | WS_MAXIMIZEBOX | WS_MINIMIZEBOX);
|
||||
|
||||
const MARGINS shadow = {1, 1, 1, 1};
|
||||
const MARGINS shadow = {8, 8, 8, 8};
|
||||
DwmExtendFrameIntoClientArea((HWND)this->winId(), &shadow);
|
||||
}
|
||||
|
||||
|
@ -416,7 +416,7 @@ void BaseWindow::paintEvent(QPaintEvent *event)
|
|||
|
||||
// bool windowFocused = this->window() == QApplication::activeWindow();
|
||||
|
||||
painter.fillRect(QRect(0, 1, this->width(), this->height()),
|
||||
painter.fillRect(QRect(0, 1, this->width() - 0, this->height() - 0),
|
||||
this->themeManager.window.background);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -48,7 +48,8 @@ void TitleBarButton::paintEvent(QPaintEvent *)
|
|||
int xD3 = xD * 4 / 5;
|
||||
|
||||
painter.drawRect(centerX - xD / 2 + xD2, xD, xD3, xD3);
|
||||
painter.fillRect(centerX - xD / 2, xD + xD2, xD3, xD3, QColor("#fff"));
|
||||
painter.fillRect(centerX - xD / 2, xD + xD2, xD3, xD3,
|
||||
this->themeManager.window.background);
|
||||
painter.drawRect(centerX - xD / 2, xD + xD2, xD3, xD3);
|
||||
break;
|
||||
}
|
||||
|
@ -61,7 +62,6 @@ void TitleBarButton::paintEvent(QPaintEvent *)
|
|||
break;
|
||||
}
|
||||
case User: {
|
||||
// color = QColor("#333");
|
||||
color = "#999";
|
||||
|
||||
painter.setRenderHint(QPainter::Antialiasing);
|
||||
|
@ -88,7 +88,6 @@ void TitleBarButton::paintEvent(QPaintEvent *)
|
|||
break;
|
||||
}
|
||||
case Settings: {
|
||||
// color = QColor("#333");
|
||||
color = "#999";
|
||||
painter.setRenderHint(QPainter::Antialiasing);
|
||||
painter.setRenderHint(QPainter::HighQualityAntialiasing);
|
||||
|
|
Loading…
Reference in a new issue