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">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>45</width>
|
<width>45</width>
|
||||||
<height>26</height>
|
<height>30</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>45</width>
|
<width>45</width>
|
||||||
<height>26</height>
|
<height>30</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -160,13 +160,13 @@
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>45</width>
|
<width>45</width>
|
||||||
<height>26</height>
|
<height>30</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>45</width>
|
<width>45</width>
|
||||||
<height>26</height>
|
<height>30</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
@ -195,13 +195,13 @@
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>45</width>
|
<width>45</width>
|
||||||
<height>26</height>
|
<height>30</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="maximumSize">
|
<property name="maximumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>45</width>
|
<width>45</width>
|
||||||
<height>26</height>
|
<height>30</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
|
|
|
@ -2397,7 +2397,11 @@ bool WinNativeEventFilter::setBlurEffectEnabled(void *handle,
|
||||||
// it will cover the blurred effect, so we need to
|
// it will cover the blurred effect, so we need to
|
||||||
// make the background become totally transparent. Achieve
|
// make the background become totally transparent. Achieve
|
||||||
// this by setting a palette to the window.
|
// 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
|
#endif
|
||||||
if (isWin8OrGreater() && coreData()->m_lpSetWindowCompositionAttribute) {
|
if (isWin8OrGreater() && coreData()->m_lpSetWindowCompositionAttribute) {
|
||||||
|
|
Loading…
Reference in New Issue