Add-ons for Pale Moon and other applications
General discussion, compatibility, contributed extensions, themes, plugins, and more.
Moderators: FranklinDM, Lootyhoof
-
Kamuisuki
Unread post
by Kamuisuki » 2021-02-18, 20:43
Hello ^^
This is the first time i'm trying to do my theme , and i would like to make it look like Netscape 8/8.1
By the way i'm stucking here :
How to disable the windows title on top ?
I found some lines , but maybe this is not here..
Code: Select all
#main-window[sizemode="normal"] > #titlebar {
-moz-appearance: -moz-window-titlebar;
}
#main-window[sizemode="maximized"] > #titlebar {
-moz-appearance: -moz-window-titlebar-maximized;
}
@media all and (-moz-windows-classic) {
#main-window[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container {
margin-top: 4px;
}
}
This is the real version :
https://www.versionmuseum.com/images/ap ... ipedia.png
Sankyu !
-
New Tobin Paradigm
Unread post
by New Tobin Paradigm » 2021-02-18, 20:58
You may not. However, you should attempt to support both setups. As Netscape 8 did.
-
Kamuisuki
Unread post
by Kamuisuki » 2021-02-18, 21:49
But i dont know how to do things like this ^^
-
New Tobin Paradigm
Unread post
by New Tobin Paradigm » 2021-02-18, 21:51
Learn.
-
Kamuisuki
Unread post
by Kamuisuki » 2021-02-18, 22:05
learn... where ?
i don't think there is a tutorial for this .
i found this from another , and this is not working.
Code: Select all
#titlebar-min, #titlebar-max, #titlebar-close {
display:none !important;
}
:root[sizemode="maximized"] #titlebar-max {
display:none !important;
}
#titlebar-buttonbox {
display:none!important;
}
#titlebar-buttonbox{display: none;}
#navigator-toolbox{padding-top:3px !important}
#main-window[sizemode="maximized"] #navigator-toolbox{padding-top:10px !important;}
#titlebar-close{
background-color:transparent !important;
background-position: 0px 3px;
}
#titlebar-max{
background-color:transparent !important;
background-position: 0px 3px;
}
#titlebar-min{
background-color:transparent !important;
background-position: 0px 3px;
}
#titlebar-close .toolbarbutton-icon{
margin: 0 0 0 8px !important;
}
#titlebar-close{
list-style-image: url("") !important;
background-image: none!important;
list-style-position: outside;
}
#titlebar-max > .toolbarbutton-icon{
display: none !important;
}
#titlebar-min > .toolbarbutton-icon{
display: none !important;
}
-
Kris_88
- Keeps coming back
- Posts: 933
- Joined: 2021-01-26, 11:18
Unread post
by Kris_88 » 2021-02-19, 03:07
You can turn off the "Menu Bar" (View -> Toolbars) and then the Title Bar is under your control.
Then you can overlap, for example:
#main-window::after {
content: "" !important;
}
see browser-title.css for details.
resource:///chrome/browser/content/browser/browser-title.css
By the way, this question has already been discussed on the forum:
viewtopic.php?f=24&t=3766
-
Kamuisuki
Unread post
by Kamuisuki » 2021-02-19, 09:23
Sankyu , i will try/check this n_n
But when you disable the menu bar, the menu list disappear too ,i would like to have it on other bar, but the menu items seem locked on the menu bar when you try to grab it,
i will try to find the way for changing that place.
i added the
#main-window::after {
opacity: 0 !important;
}
on userchrome like is explained on your link , restarted the browser, nothing changed.
-
Kris_88
- Keeps coming back
- Posts: 933
- Joined: 2021-01-26, 11:18
Unread post
by Kris_88 » 2021-02-19, 09:53
When the menu bar is enabled, the title area is controlled by the operating system - this is a standard window. When you disable the menu bar, the client area of the window expands to the title and you can control it from the css.
Of course, you can look for how to do this without disabling the menu. But now I don't have time for that.
-
Kamuisuki
Unread post
by Kamuisuki » 2021-02-19, 09:59
But now I don't have time for that.
I can understand , it's ok .
-
Kris_88
- Keeps coming back
- Posts: 933
- Joined: 2021-01-26, 11:18
Unread post
by Kris_88 » 2021-02-19, 18:18
I just looked, it's not very difficult there and can really be done in different ways.
Just as an example, maybe not a very honest method and the developers will correct me ...
-
Attachments
-
- appbutton@om.xpi
- (4.38 KiB) Downloaded 19 times
-
Kamuisuki
Unread post
by Kamuisuki » 2021-02-19, 18:58
I will check n_n
The only thing i would like to maintain is the menu bar (traditional) and not use the top left menu button".
That mean i need to be able to add another bar on top(if i lose the 'menu bar') push the menu bar on it and throbber.
-
Kris_88
- Keeps coming back
- Posts: 933
- Joined: 2021-01-26, 11:18
Unread post
by Kris_88 » 2021-02-19, 19:10
You can remove the button using css. But the strip itself must be left in order to be able to move the window.
This is not a standard OS titlebar.
Of course, the handling of moving the window can be rewritten too ...
-
Moonchild
- Pale Moon guru
- Posts: 35473
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
-
Contact:
Unread post
by Moonchild » 2021-02-19, 19:18
Sounds to me what you want is what Mozilla did with Australis.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
Kamuisuki
Unread post
by Kamuisuki » 2021-02-20, 09:46
I want what Netscape did with Netscape 8.0 , by the way , if i remove title bar i get the min,maxclose button.
I'm searching how to dont lose the titlebar(with menu and throbber), or recreating it on top(when you add new bar she appears bellow navigation bar.)
Shoud be a priority setting , will see.
its hard to explain with my poor english.
-
Moonchild
- Pale Moon guru
- Posts: 35473
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
-
Contact:
Unread post
by Moonchild » 2021-02-20, 11:49
You can't do that with a simple command. Windows by design always have a window frame. The only way to fake it is by painting over the title bar with tricks, which is what Pale Moon and Basilisk both do when the menu bar is disabled (draw in titlebar mode). Those theme variants have to be explicitly designed to work in that window mode.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite
-
Kamuisuki
Unread post
by Kamuisuki » 2021-02-20, 13:03
Ok , so basicly i need to adapt the skin for no titlebar mode , and make the short menu disappear(or replaced by the nscp8 brand) , then try to fix the menu position , and
modifying the close,min,max button .
Sankyu ^^
-
New Tobin Paradigm
Unread post
by New Tobin Paradigm » 2021-02-20, 13:18
You also need to reasonably support a mode with a window frame because Pale Moon does both and not all modes are not on all target operating systems.
-
Kris_88
- Keeps coming back
- Posts: 933
- Joined: 2021-01-26, 11:18
Unread post
by Kris_88 » 2021-02-20, 13:44
Kamuisuki wrote: ↑2021-02-20, 13:03
Ok , so basicly i need to adapt the skin for no titlebar mode , and make the short menu disappear(or replaced by the nscp8 brand)
Do you understand xul?
You can see how the titlebar is made.
view-source:resource:///chrome/browser/content/browser/browser.xul
<vbox id="titlebar">
<hbox id="titlebar-content">
<hbox id="appmenu-button-container">
<button id="appmenu-button"
So you can hide the button and restyle appmenu-button-container
For example:
#appmenu-button {
display: none;
}
#appmenu-button-container {
width: 30px;
height: 35px;
background: url("resource:///chrome/browser/skin/classic/browser/Privacy-32.png") white;
}
-
Kamuisuki
Unread post
by Kamuisuki » 2021-02-20, 16:19
No , i never learn computer language, i just know a bit CSS after years of modifying many website with sylish or discord skin, ... .
i'm looking for the xul content you are showing.
Sadly the ///chrome/browser/content/browser/browser.xul
doesn't exist on the skin.
-
Kris_88
- Keeps coming back
- Posts: 933
- Joined: 2021-01-26, 11:18
Unread post
by Kris_88 » 2021-02-20, 22:59
Kamuisuki wrote: ↑2021-02-20, 16:19
i'm looking for the xul content you are showing.
So this is the link.
Just paste in the address bar (for Pale Moon only) :
view-source:resource:///chrome/browser/content/browser/browser.xul