Remove windows title bar Topic is solved
Moderators: FranklinDM, Lootyhoof
Re: Remove windows title bar
And place the max-min-close buttons in a customize palette, then they can be moved to any toolbar.
I just need to think about how to make an element to move the window and add that too.
Maybe it makes sense to build a similar mechanism into Pale Moon?
- Attachments
-
- noframe@om.xpi
- (6.88 KiB) Downloaded 16 times
Re: Remove windows title bar
On your XPI there is nothing on the .css , you changed value in other files ?
Re: Remove windows title bar
I use the Win32 API functions to turn off the window frame, then add 3 buttons using xul overlay.
And we also need to add an element for dragging the window. I haven't done that yet.
And we also need to add an element for dragging the window. I haven't done that yet.
Re: Remove windows title bar
There are still a couple of minor bugs, but overall it works.
The frame is turned off if you place the "Dragging element" somewhere in the toolbar.
- Attachments
-
- noframe@om.xpi
- (7.71 KiB) Downloaded 17 times
Re: Remove windows title bar
You are sooo better than me.. incredible
Do you now how i can do a fusion beetween you file and the theme?
i can replace all the files?
Do you now how i can do a fusion beetween you file and the theme?
i can replace all the files?
Re: Remove windows title bar
I've never dealt with themes ...
There is a standard way to combine theme and extension:
https://developer.mozilla.org/zh-CN/doc ... _Packaging
https://wiki.mozilla.org/Extension_Mana ... m_Packages
You just pack some_theme_name.xpi, some_extension_name.xpi and additional install.rdf into one xpi file.
Install.rdf should look like this (I checked it works):
Is there a better solution?
I dont know...
There is a standard way to combine theme and extension:
https://developer.mozilla.org/zh-CN/doc ... _Packaging
https://wiki.mozilla.org/Extension_Mana ... m_Packages
You just pack some_theme_name.xpi, some_extension_name.xpi and additional install.rdf into one xpi file.
Install.rdf should look like this (I checked it works):
Code: Select all
<?xml version='1.0' encoding='utf-8'?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>theme@you</em:id>
<em:name>Theme</em:name>
<em:version>1.0</em:version>
<em:type>32</em:type>
<!-- Pale Moon -->
<em:targetApplication>
<Description>
<em:id>{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4}</em:id>
<em:minVersion>24.0a1</em:minVersion>
<em:maxVersion>29.*</em:maxVersion>
</Description>
</em:targetApplication>
</Description>
</RDF>
I dont know...
Re: Remove windows title bar
Done.
There was a nasty problem. When the window.moveTo() function is called, the state of the mouse button is sometimes lost. When dragged, the window detaches from the mouse pointer. Very strange...
I had to use the native Win32 function to work around this issue.
You can do whatever you want with it. This is a gift.
There was a nasty problem. When the window.moveTo() function is called, the state of the mouse button is sometimes lost. When dragged, the window detaches from the mouse pointer. Very strange...
I had to use the native Win32 function to work around this issue.
You can do whatever you want with it. This is a gift.
- Attachments
-
- noframe@om.xpi
- (7.93 KiB) Downloaded 25 times