Frewacom / pywalfox

Dynamic theming of Firefox (and Thunderbird) using your Pywal colors
https://addons.mozilla.org/en-US/firefox/addon/pywalfox/
Mozilla Public License 2.0
583 stars 12 forks source link

Saved theme location #39

Closed GrbavaCigla closed 3 years ago

GrbavaCigla commented 3 years ago

When I open browser it takes a few seconds to load. I just want to export the theme so I can use it without firefox extension. Firefox is eating a lot of ram and my compute cant survive one more extension. Where is saved theme located?

Frewacom commented 3 years ago

Pywalfox does not generate any static themes, so you will have to create your own.

You can get the colors that are used by running the following command in the Inspector console on the settings page for Pywalfox:

browser.storage.local.get('theme').then((data) => console.log(data.theme.colorscheme.browser));

I got this output, which should be enough to create a custom static theme:

{
  "icons": "#0C57AB",
  "icons_attention": "#72889D",
  "frame": "#0C0E12",
  "tab_text": "#ffffff",
  "tab_loading": "#0C57AB",
  "tab_background_text": "#c5cad0",
  "tab_selected": "#1b2029",
  "tab_line": "#0C57AB",
  "tab_background_separator": "#1b2029",
  "toolbar": "#1b2029",
  "toolbar_field": "#222833",
  "toolbar_field_focus": "#222833",
  "toolbar_field_text": "#c5cad0",
  "toolbar_field_text_focus": "#ffffff",
  "toolbar_field_border": "#1b2029",
  "toolbar_field_border_focus": "#1b2029",
  "toolbar_field_separator": "#1b2029",
  "toolbar_field_highlight": "#0C57AB",
  "toolbar_field_highlight_text": "#0C0E12",
  "toolbar_bottom_separator": "#1b2029",
  "toolbar_top_separator": "#0C0E12",
  "toolbar_vertical_separator": "#1b2029",
  "ntp_background": "#0C0E12",
  "ntp_text": "#c5cad0",
  "popup": "#1b2029",
  "popup_border": "#1b2029",
  "popup_text": "#c5cad0",
  "popup_highlight": "#0C57AB",
  "popup_highlight_text": "#0C0E12",
  "sidebar": "#1b2029",
  "sidebar_border": "#1b2029",
  "sidebar_text": "#c5cad0",
  "sidebar_highlight": "#0C57AB",
  "sidebar_highlight_text": "#ffffff",
  "bookmark_text": "#ffffff",
  "button_background_hover": "#222833",
  "button_background_active": "#222833"
}
GrbavaCigla commented 3 years ago

Thank you!