Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Weird image on toolbarbutton
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Sinistra Dexx  
View profile  
 More options Dec 5 2011, 9:15 am
Newsgroups: mozilla.dev.tech.xul
From: Sinistra Dexx <sinistra....@gmail.com>
Date: Mon, 5 Dec 2011 06:15:21 -0800 (PST)
Local: Mon, Dec 5 2011 9:15 am
Subject: Weird image on toolbarbutton
I spent a whole day on something so trivial as this one, still can't
make this work.

My basic XUL, contains a simple toolbarbutton on the
BrowseToolbarPalette palette:

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://ytweaks/skin/style.css" type="text/
css"?>
<overlay id="yTweaks" xmlns="http://www.mozilla.org/keymaster/
gatekeeper/there.is.only.xul">
        <script src="main.js" />
        <toolbarpalette id="BrowserToolbarPalette">
                <toolbarbutton id="ytweaks-main-button" class="toolbarbutton-1
chromeclass-toolbar-additional"
                        type="menu"
                        label="yTweaks"
                        tooltiptext="yTweaks"
                        state="enabled">
                </toolbarbutton>
        </toolbarpalette>
</overlay>

And the CSS is the same as the one in the tutorial:

#ytweaks-main-button {
  list-style-image: url("chrome://ytweaks/skin/icon.large.png");

}

toolbar[iconsize="small"] #ytweaks-main-button {
  list-style-image: url("chrome://ytweaks/skin/icon.small.png");

}

The manifest file:
content     ytweaks                                       chrome/
content/
overlay     chrome://browser/content/browser.xul
chrome://ytweaks/content/ui.xul

skin        ytweaks                 classic/1.0           skin/classic/
ytweaks/
style       chrome://global/content/customizeToolbar.xul
chrome://ytweaks/skin/style.css

And the folder structure:
chrome
 |-- content
 |    |-- ui.xul
 |    |-- main.js
 |-- skin
      |-- classic
           |-- ytweaks
                |-- icon.large.png
                |-- icon.small.png
                |-- style.css

And finally, the result looks like this:
http://i.imgur.com/uy3Iq.png

Totally not the same icon I made. My icon looks like this (this is the
large one):
http://i.imgur.com/2pdAF.png

==========================
Also, how can I debug these stuff? For example, how can I browse the
chrome registry. If I type a chrome URI in firefox nothing happens.
Except for the browser's main XUL file which loads another full
browser.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neil  
View profile  
 More options Dec 5 2011, 12:51 pm
Newsgroups: mozilla.dev.tech.xul
From: Neil <n...@parkwaycc.co.uk>
Date: Mon, 05 Dec 2011 17:51:50 +0000
Local: Mon, Dec 5 2011 12:51 pm
Subject: Re: Weird image on toolbarbutton

Sinistra Dexx wrote:
>I spent a whole day on something so trivial as this one, still can't make this work.

Have you read all of
https://developer.mozilla.org/en/XUL_School/Adding_Toolbars_and_Toolb...
?

--
Warning: May contain traces of nuts.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sinistra Dexx  
View profile  
 More options Dec 5 2011, 1:27 pm
Newsgroups: mozilla.dev.tech.xul
From: Sinistra Dexx <sinistra....@gmail.com>
Date: Mon, 5 Dec 2011 10:27:17 -0800 (PST)
Local: Mon, Dec 5 2011 1:27 pm
Subject: Re: Weird image on toolbarbutton
Yeah. And many others as well. I also analyzed  other add-ons (mostly
flash block) yet I'm still missing something here

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nickolay Ponomarev  
View profile  
 More options Dec 5 2011, 5:20 pm
Newsgroups: mozilla.dev.tech.xul
From: Nickolay Ponomarev <asquee...@gmail.com>
Date: Tue, 6 Dec 2011 01:20:13 +0300
Local: Mon, Dec 5 2011 5:20 pm
Subject: Re: Weird image on toolbarbutton
On Mon, Dec 5, 2011 at 6:15 PM, Sinistra Dexx <sinistra....@gmail.com>wrote:

> The manifest file:
> content     ytweaks                                       chrome/content/

skin        ytweaks                 classic/1.0

> skin/classic/ytweaks/

You meant chrome/skin/classic/ytweaks here. This kind of error is logged to
Error Console, I believe.

Nickolay


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sinistra Dexx  
View profile  
 More options Dec 5 2011, 5:27 pm
Newsgroups: mozilla.dev.tech.xul
From: Sinistra Dexx <sinistra....@gmail.com>
Date: Mon, 5 Dec 2011 14:27:15 -0800 (PST)
Local: Mon, Dec 5 2011 5:27 pm
Subject: Re: Weird image on toolbarbutton

> You meant chrome/skin/classic/ytweaks here. This kind of error is logged to
> Error Console, I believe.

> Nickolay

Wow thanks a lot. This works. But I don't understand. Why is that at
the first line of the manifest it didn't need the chrome folder, and
here does? What's the logic in this? I also tried with absolute path
but not working. Just like this. Completely inconsistent, I guess.

Btw, it doesn't shows any error in the error console.

And thanks again, you helped me a lot.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nickolay Ponomarev  
View profile  
 More options Dec 5 2011, 5:33 pm
Newsgroups: mozilla.dev.tech.xul
From: Nickolay Ponomarev <asquee...@gmail.com>
Date: Tue, 6 Dec 2011 01:33:17 +0300
Local: Mon, Dec 5 2011 5:33 pm
Subject: Re: Weird image on toolbarbutton
On Tue, Dec 6, 2011 at 2:27 AM, Sinistra Dexx <sinistra....@gmail.com>wrote:

> > You meant chrome/skin/classic/ytweaks here. This kind of error is logged
> to
> > Error Console, I believe.

> > Nickolay

> Wow thanks a lot. This works. But I don't understand. Why is that at
> the first line of the manifest it didn't need the chrome folder

I don't understand, are you talking about this line?

content     ytweaks                                       *chrome/*content/

Nickolay


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sinistra Dexx  
View profile  
 More options Dec 5 2011, 5:35 pm
Newsgroups: mozilla.dev.tech.xul
From: Sinistra Dexx <sinistra....@gmail.com>
Date: Mon, 5 Dec 2011 14:35:40 -0800 (PST)
Local: Mon, Dec 5 2011 5:35 pm
Subject: Re: Weird image on toolbarbutton

> I don't understand, are you talking about this line?

> content     ytweaks                                       *chrome/*content/

> Nickolay

omg, I feel so stupid now...

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »