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

User avatar
Latitude
Astronaut
Astronaut
Posts: 506
Joined: Mon Mar 21, 2016 6:28 pm

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

Postby Latitude » Fri Jun 23, 2017 1:16 pm

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: 20055
Joined: Sun Aug 28, 2011 5:27 pm
Location: 58.5°N 15.5°E
Contact:

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

Postby Moonchild » Sat Jun 24, 2017 11:22 pm

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.

User avatar
Lootyhoof
Themeist
Themeist
Posts: 926
Joined: Thu Feb 09, 2012 11:35 pm
Location: United Kingdom

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

Postby Lootyhoof » Sun Jun 25, 2017 12:09 am

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: 20055
Joined: Sun Aug 28, 2011 5:27 pm
Location: 58.5°N 15.5°E
Contact:

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

Postby Moonchild » Sun Jun 25, 2017 5:51 pm

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.

User avatar
Lootyhoof
Themeist
Themeist
Posts: 926
Joined: Thu Feb 09, 2012 11:35 pm
Location: United Kingdom

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

Postby Lootyhoof » Sun Jun 25, 2017 5:59 pm

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: 20055
Joined: Sun Aug 28, 2011 5:27 pm
Location: 58.5°N 15.5°E
Contact:

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

Postby Moonchild » Sun Jun 25, 2017 6:37 pm

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.

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

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

Postby BenlyHar » Sun Jul 09, 2017 1:58 pm

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 1 guest