[DEV] set icon in the Automatic Theme folder
This commit is contained in:
parent
9cf545c434
commit
094ea2de4e
2
Build
2
Build
@ -1 +1 @@
|
|||||||
Subproject commit 0793d9eb2c2da85dc3dbe854886ba6b2fbadf4bd
|
Subproject commit a9bfdcbc6bad8a1b435296b71d852631ab38a76e
|
@ -36,7 +36,7 @@
|
|||||||
ewol::TextureFile::TextureFile(etk::UString genName, etk::UString tmpfileName, etk::Vector2D<int32_t> size) :
|
ewol::TextureFile::TextureFile(etk::UString genName, etk::UString tmpfileName, etk::Vector2D<int32_t> size) :
|
||||||
Texture(genName)
|
Texture(genName)
|
||||||
{
|
{
|
||||||
etk::UString tmpName = etk::UString("DATA:") + tmpfileName;
|
etk::UString tmpName = tmpfileName;
|
||||||
// get the upper paw2 ot the size requested...
|
// get the upper paw2 ot the size requested...
|
||||||
if (size.x>0 && size.y>0) {
|
if (size.x>0 && size.y>0) {
|
||||||
SetImageSize(size);
|
SetImageSize(size);
|
||||||
|
@ -127,7 +127,7 @@ ewol::FileChooser::FileChooser(void)
|
|||||||
if (NULL == m_widgetValidate) {
|
if (NULL == m_widgetValidate) {
|
||||||
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
m_widgetValidate->SetImage("icon/Load.svg");
|
m_widgetValidate->SetImage("THEME:GUI:Load.svg");
|
||||||
m_widgetValidate->RegisterOnEvent(this, ewolEventButtonPressed, ewolEventFileChooserValidate);
|
m_widgetValidate->RegisterOnEvent(this, ewolEventButtonPressed, ewolEventFileChooserValidate);
|
||||||
mySizerHori->SubWidgetAdd(m_widgetValidate);
|
mySizerHori->SubWidgetAdd(m_widgetValidate);
|
||||||
}
|
}
|
||||||
@ -135,7 +135,7 @@ ewol::FileChooser::FileChooser(void)
|
|||||||
if (NULL == m_widgetCancel) {
|
if (NULL == m_widgetCancel) {
|
||||||
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
m_widgetCancel->SetImage("icon/Remove.svg");
|
m_widgetCancel->SetImage("THEME:GUI:Remove.svg");
|
||||||
m_widgetCancel->RegisterOnEvent(this, ewolEventButtonPressed, ewolEventFileChooserCancel);
|
m_widgetCancel->RegisterOnEvent(this, ewolEventButtonPressed, ewolEventFileChooserCancel);
|
||||||
mySizerHori->SubWidgetAdd(m_widgetCancel);
|
mySizerHori->SubWidgetAdd(m_widgetCancel);
|
||||||
}
|
}
|
||||||
@ -199,7 +199,7 @@ ewol::FileChooser::FileChooser(void)
|
|||||||
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
mySizerVert->SubWidgetAdd(mySizerHori);
|
mySizerVert->SubWidgetAdd(mySizerHori);
|
||||||
myImage = new ewol::Image("icon/File.svg");
|
myImage = new ewol::Image("THEME:GUI:File.svg");
|
||||||
if (NULL == myImage) {
|
if (NULL == myImage) {
|
||||||
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
@ -223,7 +223,7 @@ ewol::FileChooser::FileChooser(void)
|
|||||||
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
mySizerVert->SubWidgetAdd(mySizerHori);
|
mySizerVert->SubWidgetAdd(mySizerHori);
|
||||||
myImage = new ewol::Image("icon/Folder.svg");
|
myImage = new ewol::Image("THEME:GUI:Folder.svg");
|
||||||
if (NULL == myImage) {
|
if (NULL == myImage) {
|
||||||
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
@ -242,7 +242,7 @@ ewol::FileChooser::FileChooser(void)
|
|||||||
m_widgetCurrentFolder->SetWidth(200);
|
m_widgetCurrentFolder->SetWidth(200);
|
||||||
mySizerHori->SubWidgetAdd(m_widgetCurrentFolder);
|
mySizerHori->SubWidgetAdd(m_widgetCurrentFolder);
|
||||||
}
|
}
|
||||||
myImage = new ewol::Image("icon/Home.svg");
|
myImage = new ewol::Image("THEME:GUI:Home.svg");
|
||||||
if (NULL == myImage) {
|
if (NULL == myImage) {
|
||||||
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
EWOL_ERROR("Can not allocate widget ==> display might be in error");
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user