From 3b982eecab490832c687f497e8a3e76d12e49ecc Mon Sep 17 00:00:00 2001 From: flb Date: Fri, 10 Sep 2021 20:31:18 +0200 Subject: [PATCH] Fix color scheme for default procon color profile --- resources/i18n/en-US/menus.json | 1 + source/PC_page.cpp | 2 +- source/color_swapper.cpp | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/resources/i18n/en-US/menus.json b/resources/i18n/en-US/menus.json index 1a28acf..d373f38 100644 --- a/resources/i18n/en-US/menus.json +++ b/resources/i18n/en-US/menus.json @@ -96,6 +96,7 @@ "pro_con": { "title": "Pro-Con color swapper", "desc": "You can change the internal color of your Pro Controller. Make sure it's set to Player 1.", + "warning": "Changing the grip color is currently not supported. Use Joy-Con Toolkit instead if you wish to do so.", "label": "Pro Controller color swapper", "backing_up": "Backing up the color profile", "all_done": "All done! You may need to turn your controller on and off for the change to take effect.", diff --git a/source/PC_page.cpp b/source/PC_page.cpp index f990277..5148ea1 100644 --- a/source/PC_page.cpp +++ b/source/PC_page.cpp @@ -10,7 +10,7 @@ PCPage::PCPage() : AppletFrame(true, true) { this->setTitle("menus/pro_con/title"_i18n); list = new brls::List(); - std::string labelText = "menus/pro_con/desc"_i18n; + std::string labelText = fmt::format("{}\n{}", "menus/pro_con/desc"_i18n, "menus/pro_con/warning"_i18n); label = new brls::Label(brls::LabelStyle::DESCRIPTION, labelText, true); list->addView(label); diff --git a/source/color_swapper.cpp b/source/color_swapper.cpp index 5c875e9..883e6a3 100644 --- a/source/color_swapper.cpp +++ b/source/color_swapper.cpp @@ -273,8 +273,8 @@ namespace PC { json profilesJson = fs::parseJsonFile(path); if(profilesJson.empty()){ profilesJson = {{ - {"BTN", "2d2d2d"}, - {"BODY", "e6e6e6"}, + {"BTN", "e6e6e6"}, + {"BODY", "2d2d2d"}, {"name", "Default black"} }}; }