hrev53703 adds 1 changeset to branch 'master'
old head: 6f7074581a4f372286613ba3202e760984cc77a9
new head: 388c78edd906f45ed419d39e3635469b7928bd84
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=388c78edd906+%5E6f7074581a4f
----------------------------------------------------------------------------
388c78edd906: AboutSystem: make hyperlinks blue
and remove silly "click on license name to read it" hint, now that they
are more obviously hyperlinks
[ Adrien Destugues <pulkomandy@xxxxxxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev53703
Commit: 388c78edd906f45ed419d39e3635469b7928bd84
URL: https://git.haiku-os.org/haiku/commit/?id=388c78edd906
Author: Adrien Destugues <pulkomandy@xxxxxxxxxxxxx>
Date: Sat Jan 11 12:25:28 2020 UTC
----------------------------------------------------------------------------
1 file changed, 5 insertions(+), 3 deletions(-)
src/apps/aboutsystem/AboutSystem.cpp | 8 +++++---
----------------------------------------------------------------------------
diff --git a/src/apps/aboutsystem/AboutSystem.cpp
b/src/apps/aboutsystem/AboutSystem.cpp
index 47514ce4f7..41a9a2929a 100644
--- a/src/apps/aboutsystem/AboutSystem.cpp
+++ b/src/apps/aboutsystem/AboutSystem.cpp
@@ -1050,9 +1050,6 @@ AboutView::_CreateCreditsView()
fCreditsView->SetFontAndColor(&font, B_FONT_ALL, &kHaikuGreen);
fCreditsView->Insert(B_TRANSLATE("\nCopyrights\n\n"));
- fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kDarkGrey);
- fCreditsView->Insert(B_TRANSLATE("[Click a license name to read the "
- "respective license.]\n\n"));
// Haiku license
BString haikuLicense = B_TRANSLATE_COMMENT("The code that is unique to "
@@ -1069,26 +1066,31 @@ AboutView::_CreateCreditsView()
int32 licensePart4 = haikuLicense.FindLast(">");
BString part;
haikuLicense.CopyInto(part, 0, licensePart1);
+ fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kDarkGrey);
fCreditsView->Insert(part);
part.Truncate(0);
haikuLicense.CopyInto(part, licensePart1 + 1, licensePart2 - 1
- licensePart1);
+ fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kLinkBlue);
fCreditsView->InsertHyperText(part, new OpenFileAction(mitPath.Path()));
part.Truncate(0);
haikuLicense.CopyInto(part, licensePart2 + 1, licensePart3 - 1
- licensePart2);
+ fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kDarkGrey);
fCreditsView->Insert(part);
part.Truncate(0);
haikuLicense.CopyInto(part, licensePart3 + 1, licensePart4 - 1
- licensePart3);
+ fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kLinkBlue);
fCreditsView->InsertHyperText(part, new
OpenFileAction(lgplPath.Path()));
part.Truncate(0);
haikuLicense.CopyInto(part, licensePart4 + 1, haikuLicense.Length() - 1
- licensePart4);
+ fCreditsView->SetFontAndColor(be_plain_font, B_FONT_ALL, &kDarkGrey);
fCreditsView->Insert(part);
// GNU copyrights