Include light themes as default themes

Suggestions and feature requests for the Pale Moon browser

Moderator: satrow

riiis
Lunatic
Lunatic
Posts: 417
Joined: Sat, 17 May 2014, 15:51
Location: USA

Include light themes as default themes

Unread postby riiis » Sat, 24 Mar 2018, 00:15

Persona/lightweight themes must currently be added by the user. When added, the persona/lightweight theme is recorded in "about:config" as a "user set" preference ("lightweightThemes.usedThemes"). Until the user adds a persona/lightweight theme to Pale Moon, the "lightweightThemes.usedThemes" preference is empty and hidden. Instead of "lightweightThemes.usedThemes" being empty by default, a few persona/lightweight themes could be easily preloaded in "lightweightThemes.usedThemes", as the default value of the "lightweightThemes.usedThemes" preference. That is, change the default value of "lightweightThemes.usedThemes"
from:

Code: Select all

[]

to say, something like this:

Code: Select all

[{"id":"LT-#3c7650-#000000","name":"Green","headerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","footerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","textcolor":"#000000","accentcolor":"#3c7650"},{"id":"LT-#404040-#f1f1f1","name":"Dark","headerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","footerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","textcolor":"#f1f1f1","accentcolor":"#404040"},{"id":"LT-#dcb97e-#000000","name":"Oak","headerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","footerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","textcolor":"#000000","accentcolor":"#dcb97e"},{"id":"LT-#aabcc8-#000000","name":"Sea","headerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","footerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","textcolor":"#000000","accentcolor":"#AABCC8"},{"id":"LT-#c83838-#efefef","name":"Red","headerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","footerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","textcolor":"#efefef","accentcolor":"#c83838"},{"id":"LT-#e3c100-#000000","name":"Golden","headerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","footerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","textcolor":"#000000","accentcolor":"#e3c100"},{"id":"LT-#dddddd-#000000","name":"Light","headerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","footerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","textcolor":"#000000","accentcolor":"#dddddd"},{"id":"LT-#ff8000-#000000","name":"Orange","headerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","footerURL":"resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif","textcolor":"#000000","accentcolor":"#ff8000"}]

Code: Select all

[{
      "id": "LT-#3c7650-#000000",
      "name": "Green",
      "headerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "footerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "textcolor": "#000000",
      "accentcolor": "#3c7650"
   }, {
      "id": "LT-#404040-#f1f1f1",
      "name": "Dark",
      "headerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "footerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "textcolor": "#f1f1f1",
      "accentcolor": "#404040"
   }, {
      "id": "LT-#dcb97e-#000000",
      "name": "Oak",
      "headerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "footerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "textcolor": "#000000",
      "accentcolor": "#dcb97e"
   }, {
      "id": "LT-#aabcc8-#000000",
      "name": "Sea",
      "headerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "footerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "textcolor": "#000000",
      "accentcolor": "#AABCC8"
   }, {
      "id": "LT-#c83838-#efefef",
      "name": "Red",
      "headerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "footerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "textcolor": "#efefef",
      "accentcolor": "#c83838"
   }, {
      "id": "LT-#e3c100-#000000",
      "name": "Golden",
      "headerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "footerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "textcolor": "#000000",
      "accentcolor": "#e3c100"
   }, {
      "id": "LT-#dddddd-#000000",
      "name": "Light",
      "headerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "footerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "textcolor": "#000000",
      "accentcolor": "#dddddd"
   }, {
      "id": "LT-#ff8000-#000000",
      "name": "Orange",
      "headerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "footerURL": "resource://chrome/toolkit/skin/classic/global/scrollbar/slider.gif",
      "textcolor": "#000000",
      "accentcolor": "#ff8000"
   }
]

These light themes require no downloads or external images. These light themes all use one image file ("slider.gif"), a 2px file already included in Pale Moon chrome. As a test of concept, I've listed eight persona/light themes. But, of course, the default value of the "lightweightThemes.usedThemes" preference could contain fewer or more light themes, or entirely different light themes from the above. And, more complex persona/light themes could be added to the defaults, by adding needed light theme images to Pale Moon chrome.

The latest versions of Firefox no longer support complete themes. And, Firefox calls persona/light themes simply "Themes". In contrast, the Pale Moon add-on site calls its healthy number of complete themes "Themes", whereas persona/lightweight themes are no where to be found or referenced. These differences have to be confusing to Pale Moon users migrating from Firefox or other browsers. Including a few light themes in the default value of the "lightweightThemes.usedThemes" preference-- such inclusion should partially mitigate this confusion.

User avatar
New Tobin Paradigm
Knows the dark side
Knows the dark side
Posts: 4611
Joined: Tue, 09 Oct 2012, 19:37

Re: Include light themes as default themes

Unread postby New Tobin Paradigm » Sat, 24 Mar 2018, 00:28

Request denied.


Return to “Suggestions/feature requests”

Who is online

Users browsing this forum: No registered users and 2 guests