Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Style the title of a toolbarbutton?

5 views
Skip to first unread message

John J. Barton

unread,
Nov 15, 2009, 12:16:43 AM11/15/09
to
I have
<toolbarbutton label="context" id="cbContextList"
locationProvider="Chromebug.contextListLocator;"
title="Context:"
tooltiptext="currently selected context"
labeltooltip="fbTooltip" labelcontextmenu="fbContextMenu"/>

and I want to style just the "title", not the rest of the content. If
possible, how?

jjb

Philip Chee

unread,
Nov 15, 2009, 7:17:48 AM11/15/09
to

Something like:

#wrapper-cbContextList > label
{
color: salmonpink;
}

Phil

--
Philip Chee <phi...@aleytys.pc.my>, <phili...@gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.

John J. Barton

unread,
Nov 17, 2009, 1:18:52 AM11/17/09
to
Philip Chee wrote:
> On Sat, 14 Nov 2009 21:16:43 -0800, John J. Barton wrote:
>> I have
>> <toolbarbutton label="context" id="cbContextList"
>> locationProvider="Chromebug.contextListLocator;"
>> title="Context:"
>> tooltiptext="currently selected context"
>> labeltooltip="fbTooltip" labelcontextmenu="fbContextMenu"/>
>>
>> and I want to style just the "title", not the rest of the content. If
>> possible, how?
>
> Something like:
>
> #wrapper-cbContextList > label
> {
> color: salmonpink;
> }
>
> Phil
>
Hmm, I could not get this to work:
#wrapper-cbContextList > label {
color: #FF9933;
}
Got another guess?
jjb

Philip Chee

unread,
Nov 18, 2009, 1:27:06 PM11/18/09
to
On Mon, 16 Nov 2009 22:18:52 -0800, John J. Barton wrote:

> Hmm, I could not get this to work:
> #wrapper-cbContextList > label {
> color: #FF9933;
> }
> Got another guess?
> jjb

I made the assumption that you were attempting to apply the CSS to the
customize toolbar window. Perhaps I guessed wrong. Could you expand on
exactly which window and where you want to apply a style to the "title"
attribute?

John J. Barton

unread,
Nov 18, 2009, 1:55:08 PM11/18/09
to
Philip Chee wrote:
> On Mon, 16 Nov 2009 22:18:52 -0800, John J. Barton wrote:
>
>> Hmm, I could not get this to work:
>> #wrapper-cbContextList > label {
>> color: #FF9933;
>> }
>> Got another guess?
>> jjb
>
> I made the assumption that you were attempting to apply the CSS to the
> customize toolbar window. Perhaps I guessed wrong. Could you expand on
> exactly which window and where you want to apply a style to the "title"
> attribute?

The chromebug window, Context toolbar button:
http://code.google.com/p/fbug/source/browse/chromebug/branches/chromebug1.5/content/ChromeBug/chromebug.xul#253

jjb

Philip Chee

unread,
Nov 19, 2009, 6:51:54 AM11/19/09
to

Sorry I have no clue. Until chromebug works in SeaMonkey I can't
investigate the issue. As an aside, why did you use <hbox
id="cbCommandToolbox"> instead of a toolbar?

Also that file appears to suffer from extensively inconsistent
indentation issues.

John J. Barton

unread,
Nov 19, 2009, 11:11:54 AM11/19/09
to
Philip Chee wrote:
> On Wed, 18 Nov 2009 10:55:08 -0800, John J. Barton wrote:
>> Philip Chee wrote:
>>> On Mon, 16 Nov 2009 22:18:52 -0800, John J. Barton wrote:
>>>
>>>> Hmm, I could not get this to work:
>>>> #wrapper-cbContextList > label {
>>>> color: #FF9933;
>>>> }
>>>> Got another guess?
>>>> jjb
>>> I made the assumption that you were attempting to apply the CSS to the
>>> customize toolbar window. Perhaps I guessed wrong. Could you expand on
>>> exactly which window and where you want to apply a style to the "title"
>>> attribute?
>> The chromebug window, Context toolbar button:
>> http://code.google.com/p/fbug/source/browse/chromebug/branches/chromebug1.5/content/ChromeBug/chromebug.xul#253
>
> Sorry I have no clue. Until chromebug works in SeaMonkey I can't
> investigate the issue.

It doesn't? What fails?

> As an aside, why did you use <hbox
> id="cbCommandToolbox"> instead of a toolbar?

Well I vaguely understand what an hbox is but I have no idea what a
toolbar is. On the other hand the real answer is "I don't know, I just
cribbed the code from somewhere".

>
> Also that file appears to suffer from extensively inconsistent
> indentation issues.

Really? Inconsistent with what?

>
> Phil
>

Philip Chee

unread,
Nov 20, 2009, 6:40:09 AM11/20/09
to
On Thu, 19 Nov 2009 08:11:54 -0800, John J. Barton wrote:
> Philip Chee wrote:

>> Sorry I have no clue. Until chromebug works in SeaMonkey I can't
>> investigate the issue.

> It doesn't? What fails?

No idea. Nobody has told me that it works in SeaMonkey. I just assumed
that it was purely a Firefox extension.

>> As an aside, why did you use <hbox
>> id="cbCommandToolbox"> instead of a toolbar?
>
> Well I vaguely understand what an hbox is but I have no idea what a
> toolbar is.

It's what you normally use to contain toolbarbuttons. Why else are they
called _toolbar_buttons? Because otherwise you'd just use plain old
<button>s if you didn't want to use a toolbar container for some obscure
reason.

> On the other hand the real answer is "I don't know, I just
> cribbed the code from somewhere".

I do hope you're not going to tell me you've never read Neil Deakins
extremely excellent and comprehensive tutorial previously at XUL planet
but which now lives on DevMo.

>> Also that file appears to suffer from extensively inconsistent
>> indentation issues.
>
> Really? Inconsistent with what?

With itself. Id est it is internally inconsistent. Please pick one
indentation style and stick to it. People studying your code will thank
you for it.

Phil

--
Philip Chee <phi...@aleytys.pc.my>, <phili...@gmail.com>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.

[ ]Damn this hobby is expensive!
* TagZilla 0.066.6

John J. Barton

unread,
Nov 20, 2009, 11:44:57 AM11/20/09
to
Philip Chee wrote:
> On Thu, 19 Nov 2009 08:11:54 -0800, John J. Barton wrote:
>> Philip Chee wrote:
>
>>> Sorry I have no clue. Until chromebug works in SeaMonkey I can't
>>> investigate the issue.
>
>> It doesn't? What fails?
>
> No idea. Nobody has told me that it works in SeaMonkey. I just assumed
> that it was purely a Firefox extension.

Chromebug is a XUL application debugger based on a Firefox addon. dmose
has had success on Thunderbird. There are issues because Chromebug still
relies on some Firefox files and because I only work on Firefox myself.

>
>>> As an aside, why did you use <hbox
>>> id="cbCommandToolbox"> instead of a toolbar?
>> Well I vaguely understand what an hbox is but I have no idea what a
>> toolbar is.
>
> It's what you normally use to contain toolbarbuttons. Why else are they
> called _toolbar_buttons? Because otherwise you'd just use plain old
> <button>s if you didn't want to use a toolbar container for some obscure
> reason.

I don't know what is broken, the hbox seems to work ok?

>
>> On the other hand the real answer is "I don't know, I just
>> cribbed the code from somewhere".
>
> I do hope you're not going to tell me you've never read Neil Deakins
> extremely excellent and comprehensive tutorial previously at XUL planet
> but which now lives on DevMo.

Well my reading and understanding are not quite as similar as I'd like.

>
>>> Also that file appears to suffer from extensively inconsistent
>>> indentation issues.
>> Really? Inconsistent with what?
>
> With itself. Id est it is internally inconsistent. Please pick one
> indentation style and stick to it. People studying your code will thank
> you for it.

Sorry I'd need an example. It seems ok to me.

jjb

0 new messages