更新图片管理

This commit is contained in:
杨胜毅 2024-10-01 16:39:10 +08:00
parent 070496a684
commit 01ac9bc9f1
41 changed files with 325 additions and 266 deletions

BIN
pics/AI-Drawing@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
pics/bg@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

BIN
pics/loading.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

11
pics/slogo-Drawing.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 28 KiB

BIN
pics/style/style-all.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
pics/style/style-all@2x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
pics/style/style-anime.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
pics/style/style-lolita.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
pics/style/style-pixel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
pics/style/style-ukiyoe.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

View File

@ -257,5 +257,43 @@
<file>resource/places/user-trash-full.png</file>
<file>resource/places/user-trash.png</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>
</RCC>

View File

@ -405,7 +405,12 @@ void aithemebar::addStyleGrid(QWidget *widget, int line)
*/
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",
"style-realistic","style-ukiyoe"};

View File

@ -55,15 +55,20 @@
#include <ai-base/vision.h>
#include <kylin-ai/config.h>
#define LOADING_IMAGE "/usr/share/kolourpaint/pics/loading.gif"
#define BG_IMAGE "/usr/share/kolourpaint/pics/bg@2x.png"
#define SLOGO_IMAGE "/usr/share/kolourpaint/pics/slogo-Drawing.svg"
#define DRAWING_IMAGE "/usr/share/kolourpaint/pics/AI-Drawing@2x.png"
// #define LOADING_IMAGE "/usr/share/kolourpaint/pics/loading.gif"
// #define BG_IMAGE "/usr/share/kolourpaint/pics/bg@2x.png"
// #define SLOGO_IMAGE "/usr/share/kolourpaint/pics/slogo-Drawing.svg"
// #define DRAWING_IMAGE "/usr/share/kolourpaint/pics/AI-Drawing@2x.png"
#define KYLIN_AI_DBUS "com.kylin.aiassistant"
#define KYLIN_AI_PATH "/com/kylin/aiassistant"
#define AI_GSETTINGS "org.kylin.aiassistant.settings"
#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