2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Add main window shadow for Linux

This commit is contained in:
Ilya Fedin
2020-08-14 05:14:22 +04:00
committed by John Preston
parent c529974da5
commit d02092f09e
9 changed files with 352 additions and 49 deletions

View File

@@ -101,12 +101,15 @@ public:
void clearWidgets();
QRect inner() const;
int computeMinWidth() const;
int computeMinHeight() const;
void recountGeometryConstraints();
virtual void updateControlsGeometry();
bool hasShadow() const;
public slots:
bool minimizeToTray();
void updateGlobalMenu() {
@@ -114,6 +117,7 @@ public slots:
}
protected:
void paintEvent(QPaintEvent *e) override;
void resizeEvent(QResizeEvent *e) override;
void leaveEventHook(QEvent *e) override;
@@ -179,6 +183,7 @@ protected:
private:
void refreshTitleWidget();
void updateMinimumSize();
void updateShadowSize();
void updatePalette();
void initSize();
@@ -198,6 +203,7 @@ private:
QIcon _icon;
bool _usingSupportIcon = false;
QString _titleText;
style::margins _padding;
bool _isActive = false;