From 1ce1003e1a62a281185c16e7ee384a7ededb8889 Mon Sep 17 00:00:00 2001 From: SuperDude88 <82904174+SuperDude88@users.noreply.github.com> Date: Fri, 15 May 2026 01:21:01 -0400 Subject: [PATCH] Bold Back Button Name in Popup (#1376) * Bold Back Button Name Makes it stand out more, especially when the back button is called something else that's just a common word * Just b --------- Co-authored-by: Luke Street --- res/rml/overlay.rcss | 4 ++++ src/dusk/ui/overlay.cpp | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/res/rml/overlay.rcss b/res/rml/overlay.rcss index 20e084665b..8927e1a01c 100644 --- a/res/rml/overlay.rcss +++ b/res/rml/overlay.rcss @@ -58,6 +58,10 @@ toast:active { background-color: rgba(45, 43, 26, 80%); }*/ +b { + font-weight: bold; +} + toast heading { display: flex; gap: 18dp; diff --git a/src/dusk/ui/overlay.cpp b/src/dusk/ui/overlay.cpp index c9b2b8614d..2ec47e6215 100644 --- a/src/dusk/ui/overlay.cpp +++ b/src/dusk/ui/overlay.cpp @@ -147,7 +147,7 @@ Rml::String back_button_name() { #if defined(TARGET_ANDROID) || (defined(__APPLE__) && TARGET_OS_IOS && !TARGET_OS_MACCATALYST) constexpr auto kMenuNotificationPrefix = "3-finger tap or"; #else -constexpr auto kMenuNotificationPrefix = "Press F1 or"; +constexpr auto kMenuNotificationPrefix = "Press F1 or"; #endif Rml::Element* create_menu_notification(Rml::Element* parent) { @@ -169,7 +169,7 @@ Rml::Element* create_menu_notification(Rml::Element* parent) { append(row, "span")->SetInnerRML(kMenuNotificationPrefix); auto* icon = append(row, "icon"); icon->SetClass("controller", true); - append(row, "span")->SetInnerRML(escape(padButton)); + append(row, "span")->SetInnerRML("" + escape(padButton) + ""); append(row, "span")->SetInnerRML("to open menu"); return elem;