mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Add main window shadow for Linux
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user