[haiku-development] Re: About $application
- From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Sat, 09 Jun 2007 01:21:47 +0200 CEST
"Ryan Leavengood" <leavengood@xxxxxxxxx> wrote:
> On 6/7/07, Jonas Sundström <jonas@xxxxxxxxxxx> wrote:
...
> It sounds like a common Haiku AboutWindow class would
> be useful.
...
> If this sounds good I could add it to my list, unless someone
> else (Jonas?) really wants to do it.
Sounds good to me. Feel free!
Here's a little experiment:
http://www.kirilla.com/tmp/about/about_font_resizing.png
(Not meant as an example of what content should be in the alert.)
void
ProcessController::AboutRequested()
{
BAlert *alert = new BAlert("about", "ProcessController\n\n"
"Copyright 1997-2001,\n"
"Georges-Edouard Berenger.\n\n"
"Copyright " B_UTF8_COPYRIGHT " 2006 Haiku, Inc.\n",
"Close");
BTextView *view = alert->TextView();
BFont font;
view->SetStylable(true);
view->GetFont(&font);
font.SetFace(B_BOLD_FACE);
font.SetSize(font.Size() * 1.5);
view->SetFontAndColor(0, 17, &font);
// *** app name bold and 1.5 size plain font
// *** Is 1.5 too much ?
alert->Go();
}
Might be nice to have the grey stripe and the icon scale as well.
/Jonas.
- Follow-Ups:
- [haiku-development] Re: About $application
- From: Stephan Assmus
- [haiku-development] Re: About $application
- From: Axel Dörfler
- References:
- [haiku-development] Re: About $application
- From: Ryan Leavengood
Other related posts:
- » [haiku-development] About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- » [haiku-development] Re: About $application
- [haiku-development] Re: About $application
- From: Stephan Assmus
- [haiku-development] Re: About $application
- From: Axel Dörfler
- [haiku-development] Re: About $application
- From: Ryan Leavengood