update
parent
1491abc614
commit
0003f8192e
|
@ -97,7 +97,7 @@ FluWindow {
|
||||||
z:999
|
z:999
|
||||||
items: ItemsOriginal
|
items: ItemsOriginal
|
||||||
footerItems:ItemsFooter
|
footerItems:ItemsFooter
|
||||||
topPadding:Qt.platform.os === "osx" ? 20 : 5
|
topPadding:FluTools.isMacos() ? 20 : 5
|
||||||
displayMode:MainEvent.displayMode
|
displayMode:MainEvent.displayMode
|
||||||
logo: "qrc:/example/res/image/favicon.ico"
|
logo: "qrc:/example/res/image/favicon.ico"
|
||||||
title:"FluentUI"
|
title:"FluentUI"
|
||||||
|
|
|
@ -39,4 +39,27 @@ QString FluTools::readFile(const QString &fileName)
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool FluTools::isMacos(){
|
||||||
|
#if defined(Q_OS_MACOS)
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
bool FluTools::isLinux(){
|
||||||
|
#if defined(Q_OS_LINUX)
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
bool FluTools::isWin(){
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,12 @@ public:
|
||||||
*/
|
*/
|
||||||
Q_INVOKABLE QString readFile(const QString &fileName);
|
Q_INVOKABLE QString readFile(const QString &fileName);
|
||||||
|
|
||||||
|
Q_INVOKABLE bool isMacos();
|
||||||
|
|
||||||
|
Q_INVOKABLE bool isLinux();
|
||||||
|
|
||||||
|
Q_INVOKABLE bool isWin();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // FLUTOOLS_H
|
#endif // FLUTOOLS_H
|
||||||
|
|
|
@ -20,7 +20,7 @@ Rectangle{
|
||||||
property color closeHoverColor: Qt.rgba(251/255,115/255,115/255,1)
|
property color closeHoverColor: Qt.rgba(251/255,115/255,115/255,1)
|
||||||
property bool showDark: false
|
property bool showDark: false
|
||||||
property bool titleVisible: true
|
property bool titleVisible: true
|
||||||
property bool isMac: Qt.platform.os === "osx"
|
property bool isMac: FluTools.isMacos()
|
||||||
property color borerlessColor : FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
|
property color borerlessColor : FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
|
||||||
id:root
|
id:root
|
||||||
color: Qt.rgba(0,0,0,0)
|
color: Qt.rgba(0,0,0,0)
|
||||||
|
|
Loading…
Reference in New Issue