gui: Clear item selection for pages tab and include checkbox textures

This commit is contained in:
Joel16 2022-07-03 18:12:32 -04:00
parent c3da438fe5
commit 3642dfab2f
4 changed files with 8 additions and 1 deletions

View File

@ -104,5 +104,7 @@ vita_create_vpk(${PROJECT_NAME}.vpk ${VITA_TITLEID} ${PROJECT_NAME}.self
FILE res/db.png res/db.png
FILE res/folder.png res/folder.png
FILE res/page.png res/page.png
FILE res/checked.png res/checked.png
FILE res/unchecked.png res/unchecked.png
FILE res/trash.png res/trash.png
)

View File

@ -469,6 +469,7 @@ namespace GUI {
entries.pages[i].pageNo = entries.pages[old_page_id].pageNo;
entries.pages[old_page_id].pageNo = temp;
old_page_id = -1;
ImGui::ClearActiveID();
}
}
}

View File

@ -10,6 +10,8 @@
#include "textures.h"
#include "utils.h"
int _newlib_heap_size_user = 192 * 1024 * 1024;
namespace Services {
void SetDefaultTheme(void) {
ImGui::GetStyle().FrameRounding = 4.0f;

View File

@ -10,7 +10,7 @@
std::vector<Tex> icons;
namespace Textures {
constexpr int max_textures = 5;
constexpr int max_textures = 7;
static bool Create(unsigned char *data, GLint format, Tex &texture) {
// Create a OpenGL texture identifier
@ -61,6 +61,8 @@ namespace Textures {
"app0:res/db.png",
"app0:res/folder.png",
"app0:res/page.png",
"app0:res/checked.png",
"app0:res/unchecked.png",
"app0:res/trash.png"
};