Replaces text chevron with Font Awesome icon (#2687)

This commit is contained in:
aMannus 2023-04-13 15:32:51 +02:00 committed by GitHub
parent 08828da9fc
commit 92fa54c3f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ namespace GameMenuBar {
std::string GetWindowButtonText(const char* text, bool menuOpen) {
char buttonText[100] = "";
if(menuOpen) { strcat(buttonText,"> "); }
if (menuOpen) {
strcat(buttonText, ICON_FA_CHEVRON_RIGHT " ");
}
strcat(buttonText, text);
if (!menuOpen) { strcat(buttonText, " "); }
return buttonText;