0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-22 21:53:31 -05:00
LibreWolf/patches/pref-pane
2023-11-20 19:09:30 +01:00
..
category-librewolf.svg first version 2023-10-29 16:13:41 +01:00
librewolf.css first version 2023-10-29 16:13:41 +01:00
librewolf.inc.xhtml first version 2023-10-29 16:13:41 +01:00
librewolf.js Fix pref pane 2023-10-30 21:00:59 +01:00
pref-pane-small.patch pref-pane patch was also failing 2023-11-20 19:09:30 +01:00
preferences.ftl cleanup and introduce preferences.ftl 2023-10-29 17:03:41 +01:00
README.md update readme 2023-10-29 17:52:50 +01:00

overview:

  • This folder replaces the original big pref-pane.patch, the original patch is moved into the patches/removed-patches folder.
  • This new solution should make it much easier for everyone to edit the librewolf preferences.

librewolf.inc.xhtml

Contains the html elements that make up the preferences UI. for example, a checkmark to 'enable firefox sync'. In this example there is a html snippet that uses only the identity.fxaccounts.enabled setting, so no JavaScript needed.

librewolf.js

Other code called by the ui elements.

preferences.ftl

In our running xhtml example, we have a string id data-l10n-id="librewolf-sync-checkbox" that we can find in our.ftl file.

note: new files, these contain all the logic for the pref-pane:

  • category-librewolf.svg -> browser/themes/shared/preferences/category-librewolf.svg
  • librewolf.css -> browser/themes/shared/preferences/librewolf.css
  • librewolf.inc.xhtml -> browser/components/preferences/librewolf.inc.xhtml
  • librewolf.js -> browser/components/preferences/librewolf.js

note: appending these string values to the original preferences.ftl:

  • preferences.ftl -- append to --> browser/locales/en-US/browser/preferences/preferences.ftl