Why couldn't themes change this "new tab" page?

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

Moderators: FranklinDM, Lootyhoof

Latitude

Why couldn't themes change this "new tab" page?

Unread post by Latitude » 2017-06-23, 13:16

Not the "about:newtab" page, but another new tab page which would appear if press "+".
zxcv.png

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Why couldn't themes change this "new tab" page?

Unread post by Moonchild » 2017-06-24, 23:22

Themes (full themes, anyway) can change the empty logo page (about:logopage) if they wish, but themes do have to be aware of it, in that case ;)
"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

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1566
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: Why couldn't themes change this "new tab" page?

Unread post by Lootyhoof » 2017-06-25, 00:09

Moonchild wrote:Themes (full themes, anyway) can change the empty logo page (about:logopage) if they wish, but themes do have to be aware of it, in that case ;)
As it's an HTML page (rather than XUL) it's not possible for themes to directly style it unless the page looks at themes for the styling.

That said, something akin to Home Styler might work...

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Why couldn't themes change this "new tab" page?

Unread post by Moonchild » 2017-06-25, 17:51

I'd think that using a media query on about:logopage would be able to override the default styling if included in a theme, though? I never tried that, though, so I may be wrong.
"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

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1566
Joined: 2012-02-09, 23:35
Location: United Kingdom

Re: Why couldn't themes change this "new tab" page?

Unread post by Lootyhoof » 2017-06-25, 17:59

On a userstyle this is possible since it works on both chrome and content. Themes, though, are only designed to work on chrome (this includes in-content XUL pages), unless specifically designated by a resource.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35402
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Why couldn't themes change this "new tab" page?

Unread post by Moonchild » 2017-06-25, 18:37

Of course! Yes, in that case something that works on content pages (e.g. Home Styler alike) or a usercontent.css would be a way to style it.
"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

BenlyHar

Re: Why couldn't themes change this "new tab" page?

Unread post by BenlyHar » 2017-07-09, 13:58

Lootyhoof wrote:On a userstyle this is possible since it works on both chrome and content. Themes, though, are only designed to work on chrome (this includes in-content XUL pages), unless specifically designated by a resource.
Yeah works fine on chrome

Locked