mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-06 10:45:26 +08:00
update
This commit is contained in:
@ -13,6 +13,7 @@ FluColors *FluColors::getInstance()
|
||||
FluColors::FluColors(QObject *parent)
|
||||
: QObject{parent}
|
||||
{
|
||||
Transparent("#00000000");
|
||||
Black("#000000");
|
||||
White("#ffffff");
|
||||
Grey10("#faf9f8");
|
||||
|
@ -12,6 +12,7 @@
|
||||
class FluColors : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY_AUTO(QString,Transparent);
|
||||
Q_PROPERTY_AUTO(QString,Black);
|
||||
Q_PROPERTY_AUTO(QString,White);
|
||||
Q_PROPERTY_AUTO(QString,Grey10);
|
||||
|
@ -119,3 +119,7 @@ QRect FluTools::getVirtualGeometry(){
|
||||
QString FluTools::getApplicationDirPath(){
|
||||
return qApp->applicationDirPath();
|
||||
}
|
||||
|
||||
QUrl FluTools::getUrlByFilePath(const QString& path){
|
||||
return QUrl::fromLocalFile(path);
|
||||
}
|
||||
|
@ -122,8 +122,19 @@ public:
|
||||
*/
|
||||
Q_INVOKABLE QRect getVirtualGeometry();
|
||||
|
||||
/**
|
||||
* @brief getApplicationDirPath
|
||||
* @return
|
||||
*/
|
||||
Q_INVOKABLE QString getApplicationDirPath();
|
||||
|
||||
/**
|
||||
* @brief getUrlByFilePath
|
||||
* @param path
|
||||
* @return
|
||||
*/
|
||||
Q_INVOKABLE QUrl getUrlByFilePath(const QString& path);
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user