mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 03:10:10 +08:00
update
This commit is contained in:
parent
2c4cf82f63
commit
f701f97756
@ -164,15 +164,15 @@ void FluFrameless::componentComplete() {
|
|||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
|
||||||
if (!isMaximum) {
|
if (!isMaximum) {
|
||||||
clientRect->top = originalTop + offsetSize;
|
clientRect->top = originalTop + offsetSize;
|
||||||
clientRect->bottom = originalBottom - offsetSize;
|
clientRect->bottom = originalBottom;
|
||||||
clientRect->left = originalLeft + offsetSize;
|
clientRect->left = originalLeft;
|
||||||
clientRect->right = originalRight - offsetSize;
|
clientRect->right = originalRight;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
clientRect->top = originalTop + offsetSize;
|
clientRect->top = originalTop + offsetSize;
|
||||||
clientRect->bottom = originalBottom - offsetSize;
|
clientRect->bottom = originalBottom;
|
||||||
clientRect->left = originalLeft + offsetSize;
|
clientRect->left = originalLeft;
|
||||||
clientRect->right = originalRight - offsetSize;
|
clientRect->right = originalRight;
|
||||||
#endif
|
#endif
|
||||||
_setMaximizeHovered(false);
|
_setMaximizeHovered(false);
|
||||||
*result = WVR_REDRAW;
|
*result = WVR_REDRAW;
|
||||||
|
@ -25,7 +25,6 @@ FluTheme::FluTheme(QObject *parent) : QObject{parent} {
|
|||||||
_blurBehindWindowEnabled = false;
|
_blurBehindWindowEnabled = false;
|
||||||
QGuiApplication::instance()->installEventFilter(this);
|
QGuiApplication::instance()->installEventFilter(this);
|
||||||
refreshColors();
|
refreshColors();
|
||||||
checkUpdateDesktopImage();
|
|
||||||
connect(this, &FluTheme::darkModeChanged, this, [=] {
|
connect(this, &FluTheme::darkModeChanged, this, [=] {
|
||||||
Q_EMIT darkChanged();
|
Q_EMIT darkChanged();
|
||||||
});
|
});
|
||||||
|
@ -14,7 +14,7 @@ Rectangle{
|
|||||||
property string closeText : qsTr("Close")
|
property string closeText : qsTr("Close")
|
||||||
property string stayTopText : qsTr("Sticky on Top")
|
property string stayTopText : qsTr("Sticky on Top")
|
||||||
property string stayTopCancelText : qsTr("Sticky on Top cancelled")
|
property string stayTopCancelText : qsTr("Sticky on Top cancelled")
|
||||||
property color textColor: FluTheme.dark ? "#FFFFFF" : "#000000"
|
property color textColor: FluTheme.fontPrimaryColor
|
||||||
property color minimizeNormalColor: FluTheme.itemNormalColor
|
property color minimizeNormalColor: FluTheme.itemNormalColor
|
||||||
property color minimizeHoverColor: FluTheme.itemHoverColor
|
property color minimizeHoverColor: FluTheme.itemHoverColor
|
||||||
property color minimizePressColor: FluTheme.itemPressColor
|
property color minimizePressColor: FluTheme.itemPressColor
|
||||||
|
@ -14,7 +14,7 @@ Rectangle{
|
|||||||
property string closeText : qsTr("Close")
|
property string closeText : qsTr("Close")
|
||||||
property string stayTopText : qsTr("Sticky on Top")
|
property string stayTopText : qsTr("Sticky on Top")
|
||||||
property string stayTopCancelText : qsTr("Sticky on Top cancelled")
|
property string stayTopCancelText : qsTr("Sticky on Top cancelled")
|
||||||
property color textColor: FluTheme.dark ? "#FFFFFF" : "#000000"
|
property color textColor: FluTheme.fontPrimaryColor
|
||||||
property color minimizeNormalColor: FluTheme.itemNormalColor
|
property color minimizeNormalColor: FluTheme.itemNormalColor
|
||||||
property color minimizeHoverColor: FluTheme.itemHoverColor
|
property color minimizeHoverColor: FluTheme.itemHoverColor
|
||||||
property color minimizePressColor: FluTheme.itemPressColor
|
property color minimizePressColor: FluTheme.itemPressColor
|
||||||
|
Loading…
Reference in New Issue
Block a user