From d05e1481da78ab349ce9760d2b9b465da7b0bb92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 26 Mar 2011 14:57:03 +0000 Subject: [PATCH] Colorize "BeOS" in the credits, oh, nostalgia... (shouldn't it say "the BeOS" btw?) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41110 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/aboutsystem/AboutSystem.cpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/apps/aboutsystem/AboutSystem.cpp b/src/apps/aboutsystem/AboutSystem.cpp index e34ce98b26..f32c2d4be2 100644 --- a/src/apps/aboutsystem/AboutSystem.cpp +++ b/src/apps/aboutsystem/AboutSystem.cpp @@ -77,6 +77,8 @@ static const rgb_color kHaikuGreen = { 42, 131, 36, 255 }; static const rgb_color kHaikuOrange = { 255, 69, 0, 255 }; static const rgb_color kHaikuYellow = { 255, 176, 0, 255 }; static const rgb_color kLinkBlue = { 80, 80, 200, 255 }; +static const rgb_color kBeOSBlue = { 0, 0, 200, 255 }; +static const rgb_color kBeOSRed = { 200, 0, 0, 255 }; typedef struct { @@ -1187,8 +1189,20 @@ AboutView::_CreateCreditsView() fCreditsView->Insert(B_TRANSLATE("\n\nSpecial thanks to:\n")); fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kDarkGrey); - fCreditsView->Insert(B_TRANSLATE( + BString beosCredits(B_TRANSLATE( "Be Inc. and its developer team, for having created BeOS!\n\n")); + int32 beosOffset = beosCredits.FindFirst("BeOS"); + fCreditsView->Insert(beosCredits.String(), + (beosOffset < 0) ? beosCredits.Length() : beosOffset); + if (beosOffset > -1) { + fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kBeOSBlue); + fCreditsView->Insert("B"); + fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kBeOSRed); + fCreditsView->Insert("e"); + fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kDarkGrey); + beosCredits.Remove(0, beosOffset + 2); + fCreditsView->Insert(beosCredits.String(), beosCredits.Length()); + } fCreditsView->Insert( B_TRANSLATE("Travis Geiselbrecht (and his NewOS kernel)\n")); fCreditsView->Insert(