Aesthetical changes. No functional change.
Manually applied humdinger's Decorator_aesthetics.diff patch from #7874.
This commit is contained in:
@@ -74,7 +74,7 @@ LookAndFeelSettingsView::LookAndFeelSettingsView(const char* name)
|
|||||||
// Decorator menu
|
// Decorator menu
|
||||||
_BuildDecorMenu();
|
_BuildDecorMenu();
|
||||||
fDecorMenuField = new BMenuField("decorator",
|
fDecorMenuField = new BMenuField("decorator",
|
||||||
B_TRANSLATE("Window decorator:"), fDecorMenu);
|
B_TRANSLATE("Decorator:"), fDecorMenu);
|
||||||
|
|
||||||
fDecorInfoButton = new BButton(B_TRANSLATE("About"),
|
fDecorInfoButton = new BButton(B_TRANSLATE("About"),
|
||||||
new BMessage(kMsgDecorInfo));
|
new BMessage(kMsgDecorInfo));
|
||||||
@@ -179,13 +179,14 @@ LookAndFeelSettingsView::MessageReceived(BMessage *msg)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
BString authorsText(decor->Authors().String());
|
BString authorsText(decor->Authors().String());
|
||||||
authorsText.ReplaceAll(", ", "\n ");
|
authorsText.ReplaceAll(", ", "\n\t");
|
||||||
|
|
||||||
BString infoText("Name: %decorName\n"
|
BString infoText(B_TRANSLATE("%decorName\n\n"
|
||||||
"Authors:\n %decorAuthors\n"
|
"Authors:\n\t%decorAuthors\n\n"
|
||||||
"URL: %decorURL\n"
|
"URL: %decorURL\n"
|
||||||
"License: %decorLic\n"
|
"License: %decorLic\n\n"
|
||||||
"Description:\n %decorDesc\n");
|
"%decorDesc\n"));
|
||||||
|
|
||||||
|
|
||||||
infoText.ReplaceFirst("%decorName", decor->Name().String());
|
infoText.ReplaceFirst("%decorName", decor->Name().String());
|
||||||
infoText.ReplaceFirst("%decorAuthors", authorsText.String());
|
infoText.ReplaceFirst("%decorAuthors", authorsText.String());
|
||||||
@@ -193,7 +194,7 @@ LookAndFeelSettingsView::MessageReceived(BMessage *msg)
|
|||||||
infoText.ReplaceFirst("%decorURL", decor->SupportURL().String());
|
infoText.ReplaceFirst("%decorURL", decor->SupportURL().String());
|
||||||
infoText.ReplaceFirst("%decorDesc", decor->ShortDescription().String());
|
infoText.ReplaceFirst("%decorDesc", decor->ShortDescription().String());
|
||||||
|
|
||||||
BAlert *infoAlert = new BAlert(B_TRANSLATE("About Decorator"),
|
BAlert *infoAlert = new BAlert(B_TRANSLATE("About decorator"),
|
||||||
infoText.String(), B_TRANSLATE("OK"));
|
infoText.String(), B_TRANSLATE("OK"));
|
||||||
infoAlert->SetFlags(infoAlert->Flags() | B_CLOSE_ON_ESCAPE);
|
infoAlert->SetFlags(infoAlert->Flags() | B_CLOSE_ON_ESCAPE);
|
||||||
infoAlert->Go();
|
infoAlert->Go();
|
||||||
|
|||||||
Reference in New Issue
Block a user