• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

Archived

This topic is now archived and is closed to further replies.

  • 0

[Ext] Glasser 1.0 (Alpha)

Question

6XGate    0

Windows Aero Glass for Firefox

Latest Version: 3.5.2

Firefox Versions Supported by Latest: 3.5.5 to 3.6.*

GlassFirefox.png

Get the latest news on Glasser from Sleeping Cats

The Glasser extension provides a major visual upgrade to Mozilla Firefox when running on Microsoft Windows Vista and Windows 7 by instructing Windows to make the toolbars in Firefox rendered over Windows Aero Glass. Read this entire article before install this extension.

System Requirements

Microsoft Windows Vista or Windows 7

A DirectX 9 compatible graphics processor with a WDDM driver that support Pixel Shader 2.0 and has at least 128MiB of Video RAM (as required for Windows Aero)

Your active visual style must be Window Aero.

Mozilla Firefox 3.5.5 or later. Known to work for the current 3.6 beta.

Known Issues

Because of several bugs in the Cairo graphics library, which is used in Mozilla Firefox; some font colors may now mix well over certain backgrounds when used over or near Aero rendered portions of the UI. This problem only manifests it self when using third-party themes or user-applied styles. There is also a known bug with the calculating of rendered text sizes that can cause Cairo to cut off the a small portion of the last character in some text. These are known issues with Mozilla Firefox and Cairo and both parties are working to resolve them. Usually these bugs do not cause any text to become unreadable but may produce undesired results.

Install

Get the latest version from AddOns.Mozilla.Org. With some releases, the latest version may be in a sandbox, but can be installed without problem.

Options

BarsScreenshot.jpg

Glasser can look really great with a few extra tools and finger work. If you would like your Mozilla Firefox install to look like any one of those pictured above, simply install the Stylish Add-on and check out the Glasser Extras forum on SleepingCats.org. Also, if you wish to hide the menu bar, download the Personal Menu Add-on or the Hide Menubar Add-on. Both support using the Alt key to temperately show the menu-bar and Personal Menu lets you keep a button on the toolbar to gain access to the menus.

Source Code

Glasser's native components and the extension itself is released under a 2-clause FreeBSD style license. The source code be checked out or view via anonymous SVN over HTTP. Check out the DwmXPCOM Repository for the Glasser XPCOM source and the GeckoSDK needed to compile it. Check out the Glasser Repository for the extension as it is packaged for Mozilla Firefox. You may use Firefox or your favorite SVN client to check out the source code.

Final Note, and Special Thanks

I hope you folks enjoy this extension. If anyone has any suggestions or finds any bugs, feel free to post them here or at the Glasser Forum at SleepingCats.org.

I used a similar method go get the native window handle as used in MinimizeToTray, but coded in C++.

Special thanks goes to Carl Booth for the Aqua personal bar.

Special thanks goes to Relativity_17 for the heads up on the native theme element for Windows Mail/Calendar look.

Special thanks goes to ptmb for for the heads up on the native theme element for Windows Media Player look.

License

Copyright 2008-2009 Matthew Holder. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

   1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
   2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Share this post


Link to post
Share on other sites

Recommended Posts

nazgul    0

I'm absolutely thrilled this is out, and working. Just one question/issue:

addressbarco9.jpg

The edge of my address bar does not look right. Any idea what could be causing this? I'm not using any userChrome that touches this, and I'm running the latest nightlies - it's been like this ever since I install the extension.

Share this post


Link to post
Share on other sites
APH-Alex    13

This is the most amazing thing ever, got me back to using Aero.

19902807ju2.jpg

Latest nightly of Firefox 3.0pre

Share this post


Link to post
Share on other sites
6XGate    0
Firefox can draw those toolbars without any extra images:

-moz-appearance: communications-toolbox !important;

Someone on the MozillaZine forums also mentioned it plus the media player bar too. Either way I've now added your suggestion, his, and Carl Booth aqua bar in the new release.

Also the new release should fix a crash related to FireGestures, I hope.

Share this post


Link to post
Share on other sites
6XGate    0
I am unable to install it on latest 3.0pre with vista 64bit, I see Donovann did install it, the Stylish add on is not compatible and I don't know how to work with the CSS files.

Interesting as I develop and ran this on Vista Ultimate 64-bit and ran it on Vista Business 32-bit at work. Do you get any errors of any kind. That would be helpful.

Great that this finally got made. I get this though:

@sixxgate.com/DwmCalls/CDwmCalls;1

Some sort of error. Running on Vista x64 and Firefoxx64.

Sorry about that, but since I don't know of any Official 64-bit version of Firefox, I didn't compile a 64-bit version of the extension's C++ part. If you can give me a link to a 64-bit version of Firefox 3, then I'll try and see what I can do about the 64-bit part.

Share this post


Link to post
Share on other sites
neastea18    0
It doesn?t work for me?

All that happens when i drag & drop the install.rdf file is this:

What am i doing wrong?

Normally you should have a xpi file called GLASSER

drag it on the main screen of Firefox

A screen should display and ask if you want to install

Sorry I forgot the link to the file on 1st page: http://www.sixxgate.com/files/glasser.xpi

Share this post


Link to post
Share on other sites
DigitalE    10

Amazing!

I have been waiting for this since day 1!

Share this post


Link to post
Share on other sites
+Mystic    8

Thanks! I will definetly be applying this when I move to Vista shortly.

Share this post


Link to post
Share on other sites
6XGate    0
I think I may be able to help :) I'm a narcissistic C++ programmer who is especially careful when it comes to x64 support (I also have experience with DWM APIs). If you're not going to be committing any changes to the source code I can begin porting it to x64.

You may want to wait until add code to allow the Thunk to work in 64-bit. I am still looking into that part.

Share this post


Link to post
Share on other sites
nistrum    0

Oh thanks! I was so hacked off about FF3 not supporting glass I was even considering writing it myself. Good to see it can be integrated so transparently :). Keep up the good work.

--Matt

Share this post


Link to post
Share on other sites
andy_rose    10
I'm using the latest build from here:

http://www.mozilla-x86-64.com/download.html

Since I am on Vista 64 bit, what will I benefit from using Firefox 64 bit? Less memory usage, better\faster performance?

Also, it looks like when using the explorer toolbar code in userchrome, the text is not using clear-type. Any way to fix that?

thumb-33642.png

FULL

Share this post


Link to post
Share on other sites
6XGate    0
Well I'm running the latest version, and it works just fine. Its just when I want to have the smaller version of the personal menu icon on the bookmarks toolbar, like your screenshot on the first page, by default it shows the large image. If I select 'use small icons' on the toolbar settings it does that for all the icons which I dont want. The instructions about modifying the jar file also haven't worked, as the image seems to display incorrectly. Ive tried it using a new profile with only just that extension as well.

I sees the problem now... Google an addon called toolbarmode. You may have to use the nightly test tool to make it work, but it lets you change the toolbar setting per toolbar. I use it.

Share this post


Link to post
Share on other sites
ranpan    4

Wow I have been waiting for someone to do this for so long!!!!! You are my hero! :D Looks sweet!

Share this post


Link to post
Share on other sites
+Fahim S.    1,036

Nice job but I am not touching it until it goes gold.

Share this post


Link to post
Share on other sites
6XGate    0
Since I am on Vista 64 bit, what will I benefit from using Firefox 64 bit? Less memory usage, better\faster performance?

Also, it looks like when using the explorer toolbar code in userchrome, the text is not using clear-type. Any way to fix that?

thumb-33642.png

FULL

It's using Clear-Type, it's just not shadowing it which Firefox doesn't support any CSS for yet.

Share this post


Link to post
Share on other sites
nazgul    0
Great that this finally got made. I get this though:

@sixxgate.com/DwmCalls/CDwmCalls;1

Some sort of error. Running on Vista x64 and Firefoxx64.

I'm getting this same error, but running Vista Business 32, and just the current FF3 nightly. Oh well, can't wait till this is final, glad to see someone doing it!

Share this post


Link to post
Share on other sites
vajlent    2

Thanx mate!

but how do i install the menubars?

Share this post


Link to post
Share on other sites
Kudo    14
You mentioned in the OP that this works with a handful of themes. Any chance you could state what themes you have got this working with?

As far as I know and tested it only works with Firefox 3 default theme.

Share this post


Link to post
Share on other sites
Simon    177

Oh thank God someone did it.

Share this post


Link to post
Share on other sites
Julius Caro    55
Someone has posted a stylish that allows the options menu to be glasser as well :)

http://userstyles.org/styles/6588

what is the behavior of the menu bar if the window is maximized? I thought the purpose of that different background for the menu bar was readability. Since the 'glass' goes 'black' once the window is maximized, black-on-black can't be read.

I'm not on windows so I can't test it right now

Share this post


Link to post
Share on other sites
Julius Caro    55

Update: I was right!!! Edit: No, you were right! LOL I hadn't read the part where you had mentioned the .lib files.

After some INTENSE googling, I found a link to this: http://www.vector64.com/lib.7z

I replaced the .lib with those included in that archive. Compiled, replaced the .dll and the other file, recompressed to .zip, renamed to .XPI.

And IT WORKS!!!!!!!!!!! I ****ing compiled the thing to work in firefox 64-bit!!! I'm happy lol

Proof:

glasserdr0.th.png

Share this post


Link to post
Share on other sites
Julius Caro    55

So I got a modified prcpucfg.h from here: http://64.233.183.104/search?q=cache:syQaK...lient=firefox-a

The error output now is:

1>------ Build started: Project: dwmxpcom, Configuration: Debug x64 ------
1>Compiling...
1>CDwmCalls.cpp
1>.\CDwmCalls.cpp(143) : error C2065: 'GWL_WNDPROC' : undeclared identifier
1>.\CDwmCalls.cpp(144) : error C2065: 'GWL_WNDPROC' : undeclared identifier

Now according to this...

http://64.233.183.104/search?q=cache:8pBLT...lient=firefox-a

& this

http://msdn2.microsoft.com/en-us/library/m...898(VS.85).aspx

another function should be used? in the last link it mentions GWLP_WNDPROC instead of GWL_WNDPROC.

Changing the lines in which GWL_WNDPROC are referenced to this:

	// Now sub-class the window so we can get theme change messages
	_oldProc = (WNDPROC)::GetWindowLongPtr(_hWnd, GWLP_WNDPROC);
	::SetWindowLongPtr(_hWnd, GWLP_WNDPROC, (LONG_PTR)_CreateEventProc());

	return NS_OK;

But the linker will fail miserably:

1>------ Build started: Project: dwmxpcom, Configuration: Debug x64 ------
1>Compiling...
1>CDwmCalls.cpp
1>Linking...
1>   Creating library C:\Users\Julius\Documents\dwmxpcom\x64\Debug\dwmxpcom.lib and object C:\Users\Julius\Documents\dwmxpcom\x64\Debug\dwmxpcom.exp
1>CDwmCalls.obj : error LNK2019: unresolved external symbol "public: __cdecl nsCOMPtr_base::~nsCOMPtr_base(void)" (??1nsCOMPtr_base@@QEAA@XZ) referenced in function "public: __cdecl nsCOMPtr<class nsIDOMWindow>::~nsCOMPtr<class nsIDOMWindow>(void)" (??1?$nsCOMPtr@VnsIDOMWindow@@@@QEAA@XZ)
1>CDwmCalls.obj : error LNK2019: unresolved external symbol "public: void __cdecl nsCOMPtr_base::assign_from_qi_with_error(class nsQueryInterfaceWithError const &,struct nsID const &)" (?assign_from_qi_with_error@nsCOMPtr_base@@QEAAXAEBVnsQueryInterfaceWithError@@AEBUnsID@@@Z) referenced in function "public: __cdecl nsCOMPtr<class nsIInterfaceRequestor>::nsCOMPtr<class nsIInterfaceRequestor>(class nsQueryInterfaceWithError const &)" (??0?$nsCOMPtr@VnsIInterfaceRequestor@@@@QEAA@AEBVnsQueryInterfaceWithError@@@Z)
1>CDwmCallsModule.obj : error LNK2019: unresolved external symbol "unsigned int __cdecl NS_NewGenericModule2(struct nsModuleInfo const *,class nsIModule * *)" (?NS_NewGenericModule2@@YAIPEBUnsModuleInfo@@PEAPEAVnsIModule@@@Z) referenced in function NSGetModule
1>C:\Users\Julius\Documents\dwmxpcom\x64\Debug\dwmxpcom.dll : fatal error LNK1120: 3 unresolved externals
1>Build log was saved at "file://c:\Users\Julius\Documents\dwmxpcom\dwmxpcom\x64\Debug\BuildLog.htm"
1>dwmxpcom - 4 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
neastea18    0

You have to download this file http://www.sixxgate.com/files/GlasserExtras.zip choose the menubar style you want for example this one "Vista Personal Bar - Windows Explorer"

Rename it as userchrome and drag it in your chrome folder "C:\Users\your username\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default\chrome

restart firefox and open your eyes

neastea18

PS: Could you check my bug please?

Thanks

Share this post


Link to post
Share on other sites
+Audioboxer    2,876

Just installed this, great (Y)

Is some text being cut off slightly early a bug with running this, or a bug with FF3 Beta 5? (text in FF itself, such as on bookmarks toolbar/search toolbar). Text on forums/webpages is fine.

I haven't noticed it till I installed Glasser :/

edit: It seems Glasser causes the text cut-off. When it's disabled, text is fine.

Minor issue though!

Share this post


Link to post
Share on other sites
ViperAFK    796

Glasser looks pretty messed up in firefox 3 RC1:

post-159052-1210903081_thumb.png

Share this post


Link to post
Share on other sites
jtherrien    0

It's running well in Firefox 3 B5 on Vista 32. Very nice work!

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.