1
0
Fork 0
mirror of https://github.com/HamletDuFromage/aio-switch-updater.git synced 2024-11-09 12:01:44 +00:00

minor graphical tweaks

This commit is contained in:
flb 2021-01-29 22:14:40 +01:00
parent 8664a4c527
commit 69da0e6e9b
8 changed files with 13 additions and 5 deletions

1
.gitignore vendored
View file

@ -9,6 +9,7 @@ switch/
*.zip *.zip
*.bin *.bin
*.nsp *.nsp
*.psd
resources/i18n/zh-Hans resources/i18n/zh-Hans
resources/i18n/zh-Hant resources/i18n/zh-Hant
resources/i18n/en-GB resources/i18n/en-GB

View file

@ -22,7 +22,7 @@ DATA := data
INCLUDES := include lib/zipper/include INCLUDES := include lib/zipper/include
APP_TITLE := All-in-One Switch Updater APP_TITLE := All-in-One Switch Updater
APP_AUTHOR := HamletDuFromage APP_AUTHOR := HamletDuFromage
APP_VERSION := 1.5.0 APP_VERSION := 1.5.1
TARGET := $(notdir $(CURDIR)) TARGET := $(notdir $(CURDIR))
ROMFS := resources ROMFS := resources

View file

@ -1,6 +1,5 @@
#include <filesystem> #include <filesystem>
#include <string> #include <string>
#include <iostream>
#include <switch.h> #include <switch.h>

BIN
resources/gui_icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

View file

@ -58,6 +58,8 @@
"v1_4_3_text": "\uE016 Fixed switch not rebooting to hekate payload after updating.", "v1_4_3_text": "\uE016 Fixed switch not rebooting to hekate payload after updating.",
"v1_5_0": "v1.5.0", "v1_5_0": "v1.5.0",
"v1_5_0_text": "\uE016 Overhauled the app update feature.", "v1_5_0_text": "\uE016 Overhauled the app update feature.",
"v1_5_1": "v1.5.0",
"v1_5_1_text": "\uE016 A few graphical tweaks.",
"Ok_button": "Ok", "Ok_button": "Ok",
"cheats_page.cpp":"", "cheats_page.cpp":"",

View file

@ -73,6 +73,9 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
verTitles.push_back("menus/v1_5_0"_i18n ); verTitles.push_back("menus/v1_5_0"_i18n );
changes.push_back("menus/v1_5_0_text"_i18n ); changes.push_back("menus/v1_5_0_text"_i18n );
verTitles.push_back("menus/v1_5_1"_i18n );
changes.push_back("menus/v1_5_1_text"_i18n );
int nbVersions = verTitles.size(); int nbVersions = verTitles.size();
items.reserve(nbVersions); items.reserve(nbVersions);
for(int i = nbVersions -1 ; i >= 0; i--){ for(int i = nbVersions -1 ; i >= 0; i--){

View file

@ -8,8 +8,10 @@ MainFrame::MainFrame() : TabFrame()
std::string tag = getLatestTag(TAGS_INFO); std::string tag = getLatestTag(TAGS_INFO);
if(!tag.empty() && tag != APP_VERSION) if(!tag.empty() && tag != APP_VERSION)
setTitle(std::string(APP_TITLE) + "menus/main_app"_i18n ); setTitle(std::string(APP_TITLE) + "menus/main_app"_i18n );
else /* else
setTitle(std::string(APP_TITLE) + "menus/main_v"_i18n + std::string(APP_VERSION)); setTitle(std::string(APP_TITLE) + "menus/main_v"_i18n + std::string(APP_VERSION)); */
this->setIcon("romfs:/gui_icon.png");
this->setFooterText("v" + std::string(APP_VERSION));
this->addTab("menus/main_about"_i18n , new AboutTab()); this->addTab("menus/main_about"_i18n , new AboutTab());

View file

@ -123,7 +123,8 @@ ToolsTab::ToolsTab(std::string tag) : brls::List()
cleanUp->setHeight(LISTITEM_HEIGHT); cleanUp->setHeight(LISTITEM_HEIGHT);
this->addView(cleanUp); this->addView(cleanUp);
//tag = "1.TEST"; //tag = "1.TEST"
//std::cout << "tag: " << tag << std::endl;
if(!tag.empty() && tag != APP_VERSION){ if(!tag.empty() && tag != APP_VERSION){
updateApp = new brls::ListItem("menus/tool_update"_i18n + tag +")"); updateApp = new brls::ListItem("menus/tool_update"_i18n + tag +")");
std::string text("menus/tool_DownLoad"_i18n + std::string(APP_URL)); std::string text("menus/tool_DownLoad"_i18n + std::string(APP_URL));