Remove windows title bar Topic is solved

Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.

Moderators: FranklinDM, Lootyhoof

Kamuisuki

Re: Remove windows title bar

Unread post by Kamuisuki » 2021-02-21, 12:13

I see this is on the palemoon.res file.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 939
Joined: 2021-01-26, 11:18

Re: Remove windows title bar

Unread post by Kris_88 » 2021-02-22, 04:25

scr1.png
In fact, it is possible to remove the window frame, at least for MS Windows.
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?
You do not have the required permissions to view the files attached to this post.

Kamuisuki

Re: Remove windows title bar

Unread post by Kamuisuki » 2021-02-22, 21:32

On your XPI there is nothing on the .css , you changed value in other files ?

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 939
Joined: 2021-01-26, 11:18

Re: Remove windows title bar

Unread post by Kris_88 » 2021-02-22, 22:41

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.

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 939
Joined: 2021-01-26, 11:18

Re: Remove windows title bar

Unread post by Kris_88 » 2021-02-23, 18:32

scr2.png
Happened...
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.
You do not have the required permissions to view the files attached to this post.

Kamuisuki

Re: Remove windows title bar

Unread post by Kamuisuki » 2021-02-23, 21:07

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?

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 939
Joined: 2021-01-26, 11:18

Re: Remove windows title bar

Unread post by Kris_88 » 2021-02-24, 06:06

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):

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>
Is there a better solution?
I dont know...

User avatar
Kris_88
Keeps coming back
Keeps coming back
Posts: 939
Joined: 2021-01-26, 11:18

Re: Remove windows title bar

Unread post by Kris_88 » 2021-02-25, 03:18

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.
You do not have the required permissions to view the files attached to this post.

Kamuisuki

Re: Remove windows title bar

Unread post by Kamuisuki » 2021-02-25, 14:42

Sankyu, i will try to combine to see.