From c1d7f37a07dcd3ed91844809c9a54a97b21038e0 Mon Sep 17 00:00:00 2001
From: Sophia Hadash <sophiahadash@gmail.com>
Date: Mon, 23 Aug 2021 15:01:30 +0200
Subject: [PATCH] reformat HelpComponent if-else.

---
 es-core/src/components/HelpComponent.cpp | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/es-core/src/components/HelpComponent.cpp b/es-core/src/components/HelpComponent.cpp
index b57c8c453..7c6905185 100644
--- a/es-core/src/components/HelpComponent.cpp
+++ b/es-core/src/components/HelpComponent.cpp
@@ -204,18 +204,14 @@ void HelpComponent::updateGrid()
         icon->setResize(0, height);
         icons.push_back(icon);
 
-        // Format label according to theme style.
+        // Apply text style and color from the theme to the label and add it to the label list.
         std::string lblInput = it->second;
-        if (mStyle.textStyle == "lowercase") {
+        if (mStyle.textStyle == "lowercase")
             lblInput = Utils::String::toLower(lblInput);
-        }
-        else if (mStyle.textStyle == "camelcase") {
+        else if (mStyle.textStyle == "camelcase")
             lblInput = Utils::String::toCamelCase(lblInput);
-        }
-        else {
+        else
             lblInput = Utils::String::toUpper(lblInput);
-        }
-
         auto lbl = std::make_shared<TextComponent>(
             mWindow, lblInput, font, isDimmed ? mStyle.textColorDimmed : mStyle.textColor);
         labels.push_back(lbl);