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

Anything about browser themes, both Full Themes and Lightweight Themes (personas) should go here.

Moderators: satrow, Lootyhoof, Andrew Gilbertson

Latitude
Astronaut
Astronaut
Posts: 550
Joined: Mon, 21 Mar 2016, 18:28

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

Postby Latitude » Fri, 23 Jun 2017, 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: 21186
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

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

Postby Moonchild » Sat, 24 Jun 2017, 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 ;)
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"The wisest men follow their own direction." - Euripedes

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1006
Joined: Thu, 09 Feb 2012, 23:35
Location: United Kingdom

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

Postby Lootyhoof » Sun, 25 Jun 2017, 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: 21186
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

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

Postby Moonchild » Sun, 25 Jun 2017, 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.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"The wisest men follow their own direction." - Euripedes

User avatar
Lootyhoof
Themeist
Themeist
Posts: 1006
Joined: Thu, 09 Feb 2012, 23:35
Location: United Kingdom

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

Postby Lootyhoof » Sun, 25 Jun 2017, 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: 21186
Joined: Sun, 28 Aug 2011, 17:27
Location: 58.5°N 15.5°E
Contact:

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

Postby Moonchild » Sun, 25 Jun 2017, 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.
Improving Mozilla code: You know you're on the right track with code changes when you spend the majority of your time deleting code.

"The wisest men follow their own direction." - Euripedes

BenlyHar
Apollo supporter
Apollo supporter
Posts: 35
Joined: Fri, 17 Feb 2017, 10:16

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

Postby BenlyHar » Sun, 09 Jul 2017, 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


Return to “Themes”

Who is online

Users browsing this forum: No registered users and 3 guests