[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-27 Thread Tim Steele
On Thu, Aug 27, 2009 at 12:06 AM, Ben Goodger (Google) wrote: > I actually don't like having a mix of HTML/native UIs in the product. > When we switched to the NTP from the old Destinations page we made the > decision to have the content of tabs feel webby and the content of > dialogs feel dialogg

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-27 Thread Evan Martin
On Thu, Aug 27, 2009 at 7:42 AM, Scott Violet wrote: >> myLabel->set_bold_delimiter("*"); >> myLabel->set_text("hello *world*"); >> >> Is this totally lame? > > Then you have to worry about escape characters, which ends up being a > bit finicky. I would rather see some way to add specify an attrib

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-27 Thread Evan Martin
To be clear, Aaron's asking how to get the bold text in his paragraph, not the "More information..." link. :) On Thu, Aug 27, 2009 at 7:42 AM, Finnur Thorarinsson wrote: > > It is only incredibly painful if you mix in the link in with other words in > the middle of a sentence, like I had to do w

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-27 Thread Finnur Thorarinsson
Oh, I see. I thought you meant the link since Brett said I had done this for the About box (Now Aaron's code snippet makes more sense) :). I didn't have to do any "bolding" of text in the About box, but I can see you running into exactly the same problems I did with the link. There be dragons. I ha

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-27 Thread Scott Violet
On Thu, Aug 27, 2009 at 12:14 AM, Aaron Boodman wrote: > > On Thu, Aug 27, 2009 at 12:06 AM, Ben Goodger (Google) > wrote: >> I actually don't like having a mix of HTML/native UIs in the product. >> When we switched to the NTP from the old Destinations page we made the >> decision to have the con

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-27 Thread Finnur Thorarinsson
It is only incredibly painful if you mix in the link in with other words in the middle of a sentence, like I had to do with the About box. If you, instead, have a link below the main text (like the mock shows) it is dead simple and easy. I don't see why you should avoid using Link in that case. On

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-27 Thread Aaron Boodman
On Thu, Aug 27, 2009 at 12:06 AM, Ben Goodger (Google) wrote: > I actually don't like having a mix of HTML/native UIs in the product. > When we switched to the NTP from the old Destinations page we made the > decision to have the content of tabs feel webby and the content of > dialogs feel dialogg

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-27 Thread Ben Goodger (Google)
I actually don't like having a mix of HTML/native UIs in the product. When we switched to the NTP from the old Destinations page we made the decision to have the content of tabs feel webby and the content of dialogs feel dialoggy. As a result the NTP now feels pleasantly webby, but many of the HT

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-26 Thread Tim Steele
fwiw, another way to write a dialog like this platform independently without an extra abstraction for Label would be to use our html UI; that's what I did for the sync setup dialog/wizard flow, and so far so good! On Wed, Aug 26, 2009 at 2:15 PM, Aaron Boodman wrote: > > I'm playing with differe

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-26 Thread Finnur Thorarinsson
Yes, the views class Link is a specialization of the class Label, and it is responsible for handling hyperlinks. On Wed, Aug 26, 2009 at 15:32, Brett Wilson wrote: > +finnur who did this for the about box. > > Brett > > On Wed, Aug 26, 2009 at 2:15 PM, Aaron Boodman wrote: > > Argh. Forgot attac

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-26 Thread Brett Wilson
+finnur who did this for the about box. Brett On Wed, Aug 26, 2009 at 2:15 PM, Aaron Boodman wrote: > Argh. Forgot attachment. > > > > On Wed, Aug 26, 2009 at 2:15 PM, Aaron Boodman wrote: >> I'm playing with different ideas for the extension install dialog, and >> would like to do something lik

[chromium-dev] Re: Formatting substrings in a views::Label

2009-08-26 Thread Aaron Boodman
Argh. Forgot attachment. On Wed, Aug 26, 2009 at 2:15 PM, Aaron Boodman wrote: > I'm playing with different ideas for the extension install dialog, and > would like to do something like the attacked mock. > > I can see that there is no support for this in Label presently and I'm > told by Dean t