Skip to content

Commit

Permalink
Added proper glyphs to the UI
Browse files Browse the repository at this point in the history
Glyphs now reflect the status of the application
  • Loading branch information
wilsam239 committed Jun 12, 2020
1 parent cf4bfa5 commit 9af8e5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Binary file modified Cling-Wrap-Tesla-Overlay.ovl
Binary file not shown.
10 changes: 5 additions & 5 deletions source/gui_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
#include <fstream>

constexpr const char *const descriptions[3] = {
[0] = "Unwrapped | \uE098",
[1] = "Wrapped | \uE098",
[2] = "Error | \uE0F4",
[0] = "Unwrapped | \uE14C",
[1] = "Wrapped | \uE14B",
[2] = "Error | \uE150",

};

Expand Down Expand Up @@ -59,7 +59,7 @@ tsl::elm::Element *GuiMain::createUI() {
tsl::elm::List *dirList = new tsl::elm::List();

dirList->addItem(new tsl::elm::CustomDrawer([](tsl::gfx::Renderer *renderer, s32 x, s32 y, s32 w, s32 h) {
renderer->drawString("\uE016 Wrapped = Ready for Tinfoil\n\uE016 Unwrapped = Ready for Boot", false, x + 5, y + 20, 15, renderer->a(tsl::style::color::ColorDescription));
renderer->drawString("\uE142 Wrapped = Ready for Tinfoil\n\uE142 Unwrapped = Ready for Boot", false, x + 5, y + 20, 15, renderer->a(tsl::style::color::ColorDescription));
}), 50);

auto *readyAllButton = new tsl::elm::ListItem("Wrap");
Expand All @@ -83,7 +83,7 @@ tsl::elm::Element *GuiMain::createUI() {
dirList->addItem(resetAllButton);

dirList->addItem(new tsl::elm::CustomDrawer([](tsl::gfx::Renderer *renderer, s32 x, s32 y, s32 w, s32 h) {
renderer->drawString("\uE016 These directories can be renamed individually.", false, x + 5, y + 20, 15, renderer->a(tsl::style::color::ColorDescription));
renderer->drawString("\uE142 These directories can be renamed individually.", false, x + 5, y + 20, 15, renderer->a(tsl::style::color::ColorDescription));
}), 30);

for (const auto &dir : this->directoryListItems) {
Expand Down

0 comments on commit 9af8e5d

Please sign in to comment.