RealRaven2000 / SmartTemplates

Thunderbird Add-on: SmartTemplates
http://smarttemplates.quickfolders.org/
Other
25 stars 14 forks source link

Convert Settings screen to HTML, and move to Tab #259

Open RealRaven2000 opened 9 months ago

RealRaven2000 commented 9 months ago

In order to be future proof, but also to simplify moving it into a tab, we need to start converting the xhtml / xul based settings screen into plain HTML. This is necessary to make SmartTemplates more compatible with Thunderbird 115 and newer versions as XUL and related layout rules are gradually removed in Thunderbird Core.

Problems

RealRaven2000 commented 9 months ago

So far, some users have made pretty dreadful experiences with the settings dialog in Thunderbid 115, so this issue must be escalated to become the next most important thing. It will be very hard to do without breaking everything, converting the Settings for QuickFolders was a nightmare and took several weeks.

I am pinning this issue to the top three now.

RealRaven2000 commented 1 month ago

Working on the preview, it doesn't functionally work yet but you can preview the layout via the test menu:

smartTemplate-fx-4.5.1pre11.zip

here is a preview of the very first page. I have to completely rewrite the code that clones this deck for each of the identities so I can fill the dropdown.

image

RealRaven2000 commented 1 month ago

Improved layout to be more functionally responsive and implemented population of accounts dropdown and the switch between its respective template pages. File Templates page is now separate, but needs to be completed later (bigger piece)

The next step will be implementation of Global & Advanced settings, which covers the majority of legacy preferences.

smartTemplate-fx-4.5.1pre17.zip

To get to the settings quickly via the status bar link you can configure extensions.smartTemplate4.settings.html = true


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 1 month ago

Latest version, this one includes the variables tab with implementation. Also shows button on file templates panel (nothing functional here yet). Had to remove a bunch of "chrome://" references in css and html source codes. Made more responsive and tidied up looks for collapsed menu (narrow main window hides menu labels)

There are still problems with reading all settings on the account templates, so this portion needs to be stabilized next.

To do (Account Templates):

smartTemplate-fx-4.5.1pre24.zip

Screenshot:

image


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 1 month ago

Next iteration: I added the missing pages and a bunch of layout improvements as well.

To do next:

image

smartTemplate-fx-4.5.1pre26.zip


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 1 month ago

I found an interesting behavior if icons in dark mode:

with the default setting of svg.context-properties.content.enabled = false

...the icons in the navigation element ul#categories are colored correctly however the icons on the main content (in #preferencesContainer) show up as black:

image

(they do show u p correctly with svg.context-properties.content.enabled = true)

I ran a test using the "youtube" icon in the categories menu on the left where it showed correctly, so it is not due the structure svg file. It seems that any rules with fill and stroke are ignored in the main area. I did copy a number of theming rules to style the vertical categories menu, but i am not sure which ones make the coloring work...

RealRaven2000 commented 1 month ago

Here is another version with a lot of layout issues fixed, but still some problems with making svg icons theme aware.

smartTemplate-fx-4.5.1pre30.zip


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 1 month ago

This next iteration implements the license page:

image

smartTemplate-fx-4.5.1pre32.zip


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 1 month ago

Next iteration, which fixes a lot of problems with accounts page. Also its now compatible with Thunderbird 128. so it's ready for the next ESR! Thankfully we do not need to split / branch the code this time around, so the version will remain backwards compatible with 115. - So far I only tested in 127.0b4 though!

image

Here is the new version:

smartTemplate-fx-4.6pre50.zip


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 1 month ago

More final layout improvement . I decided to use monochrome icons for the tabs that switch between compose cases. Also Implemented the tabs that switch between file templates (to do: implement the actual file list)

smartTemplate-fx-4.6pre55.zip

Also looks pretty useful with very small screen area now:

image


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 3 weeks ago

Latest version, with the following changes within the new settings tab:

File Templates

Miscellaneus

Additionally I found and fixed another incompatibility issue #295 which affects multiple of my Add-ons (file picker)

smartTemplate-fx-4.6pre60.zip


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 2 weeks ago

Latest version, including the following changes within the new settings tab:

smartTemplate-fx-4.6pre65.zip


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 1 week ago

Close to final version below. This one includes the following changes:

smartTemplate-fx-4.6pre71.zip


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 6 days ago

Next step to completion - added the code for saving / loading the selected account template:

smartTemplate-fx-4.6pre75.zip

image


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)

RealRaven2000 commented 5 days ago

Completed a few open items:

smartTemplate-fx-4.6pre76.zip


To try the version above download zip file and drag the file into Thunderbird Add-ons Manager (do not extract contents, it won't install like that)