Display all theme info
This commit is contained in:
@@ -30,9 +30,9 @@
|
|||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u16 name[0x80];
|
u16 name[0x40];
|
||||||
u16 desc[0x100];
|
u16 desc[0x80];
|
||||||
u16 author[0x80];
|
u16 author[0x40];
|
||||||
|
|
||||||
bool has_icon;
|
bool has_icon;
|
||||||
ssize_t icon_id;
|
ssize_t icon_id;
|
||||||
|
|||||||
@@ -125,9 +125,17 @@ void draw_theme_interface(Theme_s * themes_list, int theme_count, int selected_t
|
|||||||
{
|
{
|
||||||
draw_base_interface();
|
draw_base_interface();
|
||||||
pp2d_draw_text_center(GFX_TOP, 4, 0.5, 0.5, COLOR_WHITE, "Theme mode");
|
pp2d_draw_text_center(GFX_TOP, 4, 0.5, 0.5, COLOR_WHITE, "Theme mode");
|
||||||
wchar_t title[0x80] = {0};
|
wchar_t title[0x40] = {0};
|
||||||
utf16_to_utf32((u32*)title, current_theme.name, 0x80);
|
utf16_to_utf32((u32*)title, current_theme.name, 0x40);
|
||||||
pp2d_draw_wtext(20, 30, 0.7, 0.7, COLOR_WHITE, title);
|
pp2d_draw_wtext(20, 30, 0.7, 0.7, COLOR_WHITE, title);
|
||||||
|
wchar_t author[0x40] = {0};
|
||||||
|
utf16_to_utf32((u32*)author, current_theme.author, 0x40);
|
||||||
|
pp2d_draw_text(20, 50, 0.5, 0.5, COLOR_WHITE, "By: ");
|
||||||
|
pp2d_draw_wtext(44, 50, 0.5, 0.5, COLOR_WHITE, author);
|
||||||
|
wchar_t description[0x80] = {0};
|
||||||
|
utf16_to_utf32((u32*)description, current_theme.desc, 0x80);
|
||||||
|
pp2d_draw_wtext(20, 65, 0.5, 0.5, COLOR_WHITE, description);
|
||||||
|
|
||||||
|
|
||||||
pp2d_draw_on(GFX_BOTTOM);
|
pp2d_draw_on(GFX_BOTTOM);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user