更新图片管理
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 89 KiB |
After Width: | Height: | Size: 25 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 7.3 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 5.3 KiB |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 4.7 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 4.9 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 5.1 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 4.6 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 4.8 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 7.5 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 3.9 KiB |
After Width: | Height: | Size: 13 KiB |
38
resource.qrc
|
@ -257,5 +257,43 @@
|
||||||
<file>resource/places/user-trash-full.png</file>
|
<file>resource/places/user-trash-full.png</file>
|
||||||
<file>resource/places/user-trash.png</file>
|
<file>resource/places/user-trash.png</file>
|
||||||
<file>resource/theme.desktop</file>
|
<file>resource/theme.desktop</file>
|
||||||
|
<file>pics/bg@2x.png</file>
|
||||||
|
<file>pics/slogo-Drawing.svg</file>
|
||||||
|
<file>pics/AI-Drawing@2x.png</file>
|
||||||
|
<file>pics/loading.gif</file>
|
||||||
|
<file>pics/style/style-lolita@2x.png</file>
|
||||||
|
<file>pics/style/style-ancient@2x.png</file>
|
||||||
|
<file>pics/style/style-low-poly@2x.png</file>
|
||||||
|
<file>pics/style/style-watercolour.png</file>
|
||||||
|
<file>pics/style/style-baroque@2x.png</file>
|
||||||
|
<file>pics/style/style-surrealism@2x.png</file>
|
||||||
|
<file>pics/style/style-watercolour@2x.png</file>
|
||||||
|
<file>pics/style/style-futurism.png</file>
|
||||||
|
<file>pics/style/style-surrealism.png</file>
|
||||||
|
<file>pics/style/style-vaporwave.png</file>
|
||||||
|
<file>pics/style/style-oil-painting@2x.png</file>
|
||||||
|
<file>pics/style/style-ancient.png</file>
|
||||||
|
<file>pics/style/style-realistic@2x.png</file>
|
||||||
|
<file>pics/style/style-pixel@2x.png</file>
|
||||||
|
<file>pics/style/style-pixel.png</file>
|
||||||
|
<file>pics/style/style-futurism@2x.png</file>
|
||||||
|
<file>pics/style/style-vaporwave@2x.png</file>
|
||||||
|
<file>pics/style/style-baroque.png</file>
|
||||||
|
<file>pics/style/style-all@2x.png</file>
|
||||||
|
<file>pics/style/style-all.png</file>
|
||||||
|
<file>pics/style/style-anime@2x.png</file>
|
||||||
|
<file>pics/style/style-conceptual@2x.png</file>
|
||||||
|
<file>pics/style/style-ukiyoe.png</file>
|
||||||
|
<file>pics/style/style-cartoon@2x.png</file>
|
||||||
|
<file>pics/style/style-cyberpunk.png</file>
|
||||||
|
<file>pics/style/style-conceptual.png</file>
|
||||||
|
<file>pics/style/style-cartoon.png</file>
|
||||||
|
<file>pics/style/style-cyberpunk@2x.png</file>
|
||||||
|
<file>pics/style/style-ukiyoe@2x.png</file>
|
||||||
|
<file>pics/style/style-low-poly.png</file>
|
||||||
|
<file>pics/style/style-realistic.png</file>
|
||||||
|
<file>pics/style/style-oil-painting.png</file>
|
||||||
|
<file>pics/style/style-anime.png</file>
|
||||||
|
<file>pics/style/style-lolita.png</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|
|
@ -405,7 +405,12 @@ void aithemebar::addStyleGrid(QWidget *widget, int line)
|
||||||
*/
|
*/
|
||||||
void aithemebar::addStyleWidget()
|
void aithemebar::addStyleWidget()
|
||||||
{
|
{
|
||||||
QString path = "/usr/share/kolourpaint/pics/style/%1";
|
// QString path = "/usr/share/kolourpaint/pics/style/%1";
|
||||||
|
// 获取当前文件的目录路径
|
||||||
|
QString projectDir = QString(__FILE__).left(QString(__FILE__).lastIndexOf('/'));
|
||||||
|
|
||||||
|
// 构建相对路径
|
||||||
|
QString path = projectDir + "/../pics/style/%1";
|
||||||
QStringList styleList = {"style-ancient", "style-anime",
|
QStringList styleList = {"style-ancient", "style-anime",
|
||||||
"style-realistic","style-ukiyoe"};
|
"style-realistic","style-ukiyoe"};
|
||||||
|
|
||||||
|
|
|
@ -55,15 +55,20 @@
|
||||||
#include <ai-base/vision.h>
|
#include <ai-base/vision.h>
|
||||||
#include <kylin-ai/config.h>
|
#include <kylin-ai/config.h>
|
||||||
|
|
||||||
#define LOADING_IMAGE "/usr/share/kolourpaint/pics/loading.gif"
|
// #define LOADING_IMAGE "/usr/share/kolourpaint/pics/loading.gif"
|
||||||
#define BG_IMAGE "/usr/share/kolourpaint/pics/bg@2x.png"
|
// #define BG_IMAGE "/usr/share/kolourpaint/pics/bg@2x.png"
|
||||||
#define SLOGO_IMAGE "/usr/share/kolourpaint/pics/slogo-Drawing.svg"
|
// #define SLOGO_IMAGE "/usr/share/kolourpaint/pics/slogo-Drawing.svg"
|
||||||
#define DRAWING_IMAGE "/usr/share/kolourpaint/pics/AI-Drawing@2x.png"
|
// #define DRAWING_IMAGE "/usr/share/kolourpaint/pics/AI-Drawing@2x.png"
|
||||||
#define KYLIN_AI_DBUS "com.kylin.aiassistant"
|
#define KYLIN_AI_DBUS "com.kylin.aiassistant"
|
||||||
#define KYLIN_AI_PATH "/com/kylin/aiassistant"
|
#define KYLIN_AI_PATH "/com/kylin/aiassistant"
|
||||||
#define AI_GSETTINGS "org.kylin.aiassistant.settings"
|
#define AI_GSETTINGS "org.kylin.aiassistant.settings"
|
||||||
#define AI_KEY "isVisionSetup"
|
#define AI_KEY "isVisionSetup"
|
||||||
|
|
||||||
|
const QString LOADING_IMAGE = ":/resource/loading.gif";
|
||||||
|
const QString BG_IMAGE = ":/resource/bg@2x.png";
|
||||||
|
const QString SLOGO_IMAGE = ":/resource/slogo-Drawing.svg";
|
||||||
|
const QString DRAWING_IMAGE = ":/resource/AI-Drawing@2x.png";
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The AIModeDataThread class
|
* @brief The AIModeDataThread class
|
||||||
|
|