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

updated borealis for various UI tweaks

This commit is contained in:
flb 2021-07-09 13:49:17 +02:00
parent d24e3a1461
commit 5d37786067
6 changed files with 8 additions and 9 deletions

View file

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

@ -1 +1 @@
Subproject commit 24d2d5d3062f964948e0f325fb2257a1771ee0c5 Subproject commit 909b3baef58ca594dfe4ab691d9be14b28c17417

View file

@ -228,7 +228,7 @@ void AppPage_Exclude::PopulatePage()
if R_FAILED(GetControlData(tid, controlData, controlSize, name)) continue; if R_FAILED(GetControlData(tid, controlData, controlSize, name)) continue;
brls::ToggleListItem *listItem; brls::ToggleListItem *listItem;
listItem = new brls::ToggleListItem(util::formatListItemTitle(std::string(name)), titles.find(util::formatApplicationId(tid)) != titles.end() ? 0 : 1); listItem = new brls::ToggleListItem(std::string(name), titles.find(util::formatApplicationId(tid)) != titles.end() ? 0 : 1);
listItem->setThumbnail(controlData->icon, sizeof(controlData->icon)); listItem->setThumbnail(controlData->icon, sizeof(controlData->icon));
items.insert(std::make_pair(listItem, util::formatApplicationId(tid))); items.insert(std::make_pair(listItem, util::formatApplicationId(tid)));

View file

@ -178,6 +178,9 @@ ChangelogPage::ChangelogPage() : AppletFrame(true, true)
verTitles.push_back("v2.10.1"); verTitles.push_back("v2.10.1");
changes.push_back("\uE016 Fixed crashes in airplane mode introduced in 2.10.0"); changes.push_back("\uE016 Fixed crashes in airplane mode introduced in 2.10.0");
verTitles.push_back("v2.10.2");
changes.push_back("\uE016 Borealis changes for visual tweaks (tickering labels, scroll bar etc).");
for(int i = verTitles.size() -1 ; i >= 0; i--){ for(int i = verTitles.size() -1 ; i >= 0; i--){
listItem = new brls::ListItem(verTitles[i]); listItem = new brls::ListItem(verTitles[i]);
change = changes[i]; change = changes[i];

View file

@ -255,10 +255,6 @@ std::string DownloadCheatsPage_CheatSlips::GetCheatsTitle(json cheat) {
res += "[" + p.get<std::string>() + "]" + " - "; res += "[" + p.get<std::string>() + "]" + " - ";
} }
} }
res.erase(res.length() - 3);
if(res.size() > 80){
res = res.substr(0, 79) + "\u2026";
}
return res; return res;
} }

View file

@ -60,9 +60,9 @@ ExcludePage::ExcludePage() : AppletFrame(true, true)
brls::ToggleListItem *listItem; brls::ToggleListItem *listItem;
if(titles.find(util::formatApplicationId(tid)) != titles.end()) if(titles.find(util::formatApplicationId(tid)) != titles.end())
listItem = new brls::ToggleListItem(util::formatListItemTitle(std::string(app->name)), 0); listItem = new brls::ToggleListItem(std::string(app->name), 0);
else else
listItem = new brls::ToggleListItem(util::formatListItemTitle(std::string(app->name)), 1); listItem = new brls::ToggleListItem(std::string(app->name), 1);
listItem->setThumbnail(app->icon, sizeof(app->icon)); listItem->setThumbnail(app->icon, sizeof(app->icon));
items.insert(std::make_pair(listItem, util::formatApplicationId(app->tid))); items.insert(std::make_pair(listItem, util::formatApplicationId(app->tid)));