1.1 compatible themes, take 3

Discuss application theming and theme development.
User avatar
ShareBird
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil
Contact:

Post by ShareBird »

I guess it does calculate its size in some way...

Normally the default theme has this issue:

Image

After installing JSOptions 0.7 wich installs a new Icon on PrefWindow, no more:

Image

Because JSOptions brings a new size for it...:

Image

Notice that prefwindow is a little bit bigger now...
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.
Sailfish
Posts: 5681
Joined: November 5th, 2002, 4:58 pm

Post by Sailfish »

Yeah, it seems that extension resizes the window in its jssetup.js javascript function:

Code: Select all

function setupJS(event)
{
  var prefWindow = document.getElementById('BrowserPreferences');
  if ((prefWindow.style.height)&&(prefWindow.style.height=="36em"))
  {
    prefWindow.style.height="38em";
  }
};

This can be done with extensions but not with themes, unfortunately.
User avatar
ShareBird
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil
Contact:

Post by ShareBird »

OK... I still guess this could be a solution:

http://forums.mozillazine.org/viewtopic ... 59#1294659

It isn't so elegant, but...
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.
Sailfish
Posts: 5681
Joined: November 5th, 2002, 4:58 pm

Post by Sailfish »

ShareBird wrote:OK... I still guess this could be a solution:

http://forums.mozillazine.org/viewtopic ... 59#1294659

It isn't so elegant, but...

Have you tried this? It's my understanding that CSS style overrides are ignored for elements that have the style hardcoded in the xul.

Also, I don't think that resizing the box is a correct fix (although, it may seem to work) since, in my themes' case, sans button images, I had plenty of room left over and the bottom button was still clipped.
User avatar
ShareBird
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil
Contact:

Post by ShareBird »

Sailfish wrote:Have you tried this? It's my understanding that CSS style overrides are ignored for elements that have the style hardcoded in the xul.


Yes, I tried this and it works...:

http://forums.mozillazine.org/viewtopic ... 71#1283771
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.
Sailfish
Posts: 5681
Joined: November 5th, 2002, 4:58 pm

Post by Sailfish »

Weird. Okay, so I don't have a good handle on how XUL and CSS work (or don't work) together :-)
Pikachu90000
Posts: 549
Joined: November 29th, 2004, 9:53 pm

Post by Pikachu90000 »

I now updates my theme to work with 0.8-1.1+ again. I will have more info soon.
pika9@ deviantART ~Home to the Winstripe Classic theme.
Pikachu90000's Firefox Theme Review Blog
User avatar
ShareBird
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil
Contact:

Post by ShareBird »

About the problem with "Sanitize" Button... There is a patch to fix it and WFM:

https://bugzilla.mozilla.org/show_bug.cgi?id=283697#c25
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.
User avatar
dansx6
Posts: 263
Joined: August 6th, 2003, 7:24 pm

Post by dansx6 »

Sharebird,
How do I implement this patch? Is this added to an existing file or do I copy the file?

Thanks
User avatar
ShareBird
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil
Contact:

Post by ShareBird »

That is a file inside browser.jar\content\browser\preferences in the program directory. You have to replace it with privacy.xul
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.
User avatar
dansx6
Posts: 263
Joined: August 6th, 2003, 7:24 pm

Post by dansx6 »

Thanks Sharebird
Sailfish
Posts: 5681
Joined: November 5th, 2002, 4:58 pm

Post by Sailfish »

ShareBird wrote:That is a file inside browser.jar\content\browser\preferences in the program directory. You have to replace it with privacy.xul

Adding the following to global/formatting.css seems to do the trick:

Code: Select all

separator, separator[orient="horizontal"] {
  -moz-box-flex: 1 !important;
  height: 1em;
}

Thanks, I was able to revert my button.css file back to its intended margin and get rid of my kludge hack.
User avatar
ShareBird
Posts: 2740
Joined: December 8th, 2004, 7:09 am
Location: Berlin | Made in Brasil
Contact:

Post by ShareBird »

Great!!!

I have other problems to make my personalized theme works properly... I must define min height like

Code: Select all

#BrowserPreferences {
min-height: 43em;
}
Silvermel - A Theme for Firefox and Thunderbird
YATT - Yet Another Theme Tutorial
Don't give a man a fish. Teach him how to fish instead.
User avatar
Red_Fat_Lazy_Cat
Posts: 564
Joined: April 16th, 2003, 12:45 pm
Location: The ottoman near the fireplace
Contact:

Post by Red_Fat_Lazy_Cat »

New version of Red Cats (green flavor) is now compatible with both Firefox 1.0 and 1.1 :)

Image
[url=http://www.bluecatsgraphics.com/bcgfft/ffcat/files/redcats_green3_0.jar]
Download Red Cats (green flavor) v3.0[/url]
Last edited by Red_Fat_Lazy_Cat on March 18th, 2005, 2:06 pm, edited 2 times in total.
Some people say that cats are sneaky, evil, and cruel. True, and they have many other fine qualities as well. -- Missy Dizick

My Firefox themes: Red Cats (blue & green flavor), Curacao
sasquatch
Posts: 6022
Joined: November 25th, 2003, 8:56 am

Post by sasquatch »

I updated the first post with what I think are all the compatible ones I've seen here so far. Please let me know if I missed any. Also, I'd like to see a confirmation on all of these with a "second" that they work or I'll take them off. I intend to do one more post in this series and then just let it run its course, but want some good data to start it off. Thanks.
Locked