[haiku-commits] r41110 - haiku/trunk/src/apps/aboutsystem

  • From: revol@xxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sat, 26 Mar 2011 15:57:03 +0100 (CET)

Author: mmu_man
Date: 2011-03-26 15:57:03 +0100 (Sat, 26 Mar 2011)
New Revision: 41110
Changeset: https://dev.haiku-os.org/changeset/41110

Modified:
   haiku/trunk/src/apps/aboutsystem/AboutSystem.cpp
Log:
Colorize "BeOS" in the credits, oh, nostalgia... (shouldn't it say "the BeOS" 
btw?) 


Modified: haiku/trunk/src/apps/aboutsystem/AboutSystem.cpp
===================================================================
--- haiku/trunk/src/apps/aboutsystem/AboutSystem.cpp    2011-03-26 07:33:24 UTC 
(rev 41109)
+++ haiku/trunk/src/apps/aboutsystem/AboutSystem.cpp    2011-03-26 14:57:03 UTC 
(rev 41110)
@@ -77,6 +77,8 @@
 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 @@
        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(


Other related posts: