forked from github_mirror/framelesshelper
Fix wrong size of the 3 system buttons.
Signed-off-by: Yuhang Zhao <2546789017@qq.com>
This commit is contained in:
parent
c82f2aa0f5
commit
b21f1023b5
|
@ -125,13 +125,13 @@
|
|||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>26</height>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>26</height>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
|
@ -160,13 +160,13 @@
|
|||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>26</height>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>26</height>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
|
@ -195,13 +195,13 @@
|
|||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>26</height>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>45</width>
|
||||
<height>26</height>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
|
|
|
@ -2397,7 +2397,11 @@ bool WinNativeEventFilter::setBlurEffectEnabled(void *handle,
|
|||
// it will cover the blurred effect, so we need to
|
||||
// make the background become totally transparent. Achieve
|
||||
// this by setting a palette to the window.
|
||||
widget->setPalette(enabled ? QPalette(Qt::transparent) : QPalette());
|
||||
QPalette palette = {};
|
||||
if (enabled) {
|
||||
palette.setColor(QPalette::Window, Qt::transparent);
|
||||
}
|
||||
widget->setPalette(palette);
|
||||
}
|
||||
#endif
|
||||
if (isWin8OrGreater() && coreData()->m_lpSetWindowCompositionAttribute) {
|
||||
|
|
Loading…
Reference in New Issue