Coder Social home page Coder Social logo

dreadnaut / bordercolors-d Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 4.0 85 KB

A Thunderbird add-on to color-code the compose window based on the selected identity.

License: GNU General Public License v3.0

JavaScript 85.15% HTML 9.50% CSS 5.36%
identity thunderbird thunderbird-addon

bordercolors-d's People

Contributors

dreadnaut avatar igzmanuelmartinvivaldi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bordercolors-d's Issues

Updated translations for 'fr': French (français, langue française)

Here's the French translation ;)

Updated translations for 'fr': French (français, langue française):

{
    "__WET_GROUP__INFO": { "message": "Add-on information" },
    "addonDescription": {
        "message": "Affiche une bordure colorée autour de la fenêtre de nouveau message, pour mieux distinguer les différentes identités.",
        "description": "Description of the add-on, as it appears in the Add-ons list.",
        "hash": "0ac94e4f9e4880ca6f53cd3038a5f1ba"
    },

    "__WET_GROUP__OPTIONS": { "message": "Options page" },
    "heading-color-selector": {
        "message": "Assignez une couleur à vos identités",
        "description": "The heading above the list of identities, in the options",
        "hash": "57abd671dbc4c34f4bcf2a74d20a9b89"
    },
    "heading-style-selector": {
        "message": "Choisissez un style",
        "description": "The heading above the list of styles, in the options",
        "hash": "a3899dbbe45549708debbeb5da964121"
    },
    "heading-size-selector": {
        "message": "Choisissez la taille de l'effet",
        "description": "The heading above the list of style sizes, in the options",
        "hash": "c874118b5a422cd1da95d79668242a64"
    },

    "__WET_GROUP__SIZES": { "message": "Size labels" },
    "size-small": {
        "message": "Petit",
        "description": "Label for the 'small' size option",
        "hash": "d0d2f0a67e8380b6d56afd2c519065e8"
    },
    "size-medium": {
        "message": "Moyen",
        "description": "Label for the 'medium' size option",
        "hash": "caec1707dd0f5d31df8494dfec47fa76"
    },
    "size-large": {
        "message": "Grand",
        "description": "Label for the 'large' size option",
        "hash": "3c0dd80ba7f83df0abc7e0d65271cde3"
    },

    "__WET_GROUP__STYLES": { "message": "Style names" },
    "style-all-sides": {
        "message": "Bordure de chaque côté",
        "description": "A border along all four sides of the composer",
        "hash": "219934c1083136297b034e5734b405fc"
    },
    "style-top-and-bottom": {
        "message": "Bordure en haut et en bas",
        "description": "A border at the top and bottom of the composer",
        "hash": "12ce9ee69b2df1897b97b5c1d8d764f1"
    },
    "style-top": {
        "message": "Bordure en haut",
        "description": "A border at the top of the composer",
        "hash": "c3f37cff75df622003488734973c83c3"
    },
    "style-left-side-gradient": {
        "message": "Dégradé du côté gauche",
        "description": "A gradient on the left side of the composer",
        "hash": "96d41d3d33d38e4e20cb5ee96135f79a"
    },
    "style-background-top-right-gradient": {
        "message": "Dégradé dans le coin en haut à droite",
        "description": "A gradient in the top-right corner of the composer",
        "hash": "52d41670cd42d00ac6bc66d8f6f04ab6"
    },
    "style-background-four-corners-gradient": {
        "message": "Dégradé aux quatre coins",
        "description": "A gradient in each corner of the composer",
        "hash": "6cb3f2506d915cd71d9dff5b3bb795e8"
    },
    "style-background-bottom-gradient": {
        "message": "Dégradé en bas",
        "description": "A gradient at the bottom of the composer",
        "hash": "65198fbd589445302ecaf2755dfc4348"
    },
    "style-background": {
        "message": "Couleur d'arrière plan",
        "description": "The color is applied to the whole background of the composer",
        "hash": "61a5d688fc22af610e2fc0636cbf7533"
    },

    "__WET_LOCALE__": { "message": "fr" }
}

Add new styles and customisation options

Thundebird 78 introduces limitations to what can be customised in the Compose window. Because of this, I had to drop many of the styles that BorderColors has supported for years. At this point, the only area of the window that we can style is the text editor. However, modern CSS gives us a trove of options.

This issue is here to collect new ideas for styling the compose window based on the selected identity.

Currently supported by the add-on:

  • All sides
  • Top and bottom border
  • Top border
  • Gradient on the left side
  • Gradient in the top-right corner
  • Gradient in all four corners
  • Gradient at the bottom
  • Background color

Only black color

I just discover and try "bordercolors-d" extension on TB 91
Despite chosing a different color by account, only BLAK color appears.
For non colored account a pointed black line appears
Desactivating all other extension does not help
Any way to solve this issue ?
image
image

Changes for TB68

Bordercolors D requires changes to work on TB68 - including to replace the xul colorpicker which was removed in TB64.

I amended it locally to work on TB68a on Linux. I added a new manifest.json and made changes to options.xul and options.js Those 3 files are in the link.

I think the earliest version of TB this will work with is 64 (after bug 1489930 fixed) but I've only tested it on 68a, and only on Linux (bearing in mind #1).

Hope you find this useful and can update the ATN version for when 68 is released.

I've linked 1 file to this:

Dave

Improve documentation on the Options panel

When I change the Highlight Style and/or the Size of Effect, the change(s) seem(s) to affect only one of my identities. The options window does not make it clear that that will happen. Moreover, how does one switch between accounts, when setting those attributes? Further: what does the little hand symbol mean? I am unsure whether here we have poor UI design or else a bug. Screenshot:

image

Border Colours 2021.4.1
Thunderbird 78.14 x64
Windows 10 Pro - 21H1 (2009: 19043)

Choosen colors are not saved

I am using Thunderbird T19.9.1 on Linux MINT 20.3 and I cannot use "bordercolors" because the colors I choose for each email address are not saved. When I restart Thunderbird the colors have been reseted to their default value. I was thinking first it was because I use a the "main password" feature of thunderbird, but removing this password change nothing.

TB 91 not sending mail while bordercolors-d is active

Hi,
With the new TB 91, I cannot send messages anymore while bordercolors-d is active. Simply nothings happens, and the compose window stays open. Disabling bordercolors-d solves the problem. My precise TB version is 91.0.3.
I like the add-on, and I hope there will be a solution. Peter

Gradients are stretched and sometimes invisible (with long emails)

if I understand correctly, the height of gradient is derived from the "height of email", meaning: not the message window, but the message body itself. while I don't have any idea for the bottom gradient [and it's sometimes not visible, especially with long emails, and unfortunately I've got a lot of them at work - forward of the forward of the forward ... etc. ;)], is it possible to make the upper-right-corner gradient to stay not resized?
I mean - so it can be the very same size no matter how long the message is. that would be great for visibility. now - it sometimes goes way beyond the lower border of the window, and while I scroll the message, I'm revealing the rest of gradient.

Make 'Color selectors' window scrollable.

The height of the 'Color selectors' window seems to depend on the the number of defined identities. The window apparently accommodates all the defined identities plus any UI elements like buttons. This causes the window to extend past the display border but there is no way to scroll. This makes it impossible to save the border colors.

This window should at least be scrollable, and preferably also resizable with a sticky size.

Colors do not apply, all borders are black

Hey guys,
Great Add-On! Became especially viable to me, since Identity Chooser Add-On out source their color functionality to this add-on. As Bob pointed out it would be great if the add-on would work under Thunberbird 78.5 and higher. The problem for me is that, the borders are all black. I have tried all forms of borders with no change. I use system colors and I tried both the dark and the light theme.

[Windows:] Options are unreadable (black-on-black)

Border Colours 2021.4.1
Thunderbird 78.14 x64
Windows 10 Pro - 21H1 (2009: 19043)

When I set Thunderbird's theme to its default theme or to its inbuilt light theme or to its inbuilt dark theme, I see this:

image

I have not tried the addOn on an other operating system.

Update (~9 Nov) has broken text/background colour

I use the Dark Theme, but have dark text on a light background set for both reading (General-> language & Appearance -> Colours) and composing (Composition -> HTML Style -> "Use reader's default colours" is UNSET).

The recent update (which includes, "Dark and custom themes support") has broken this, as it just puts the Dark Theme colours into place.

Switching style in one editor changes the style in other open editor windows as well

When I have more than one editor window open, switching the identity in one editor changes the style in all open editor windows.

Steps to reproduce:

  1. Have more than one identity configured in Thunderbird with different colors

  2. Open two editor windows

  3. Choose different identity in editor 1

Expected behavior:

  • The style should change only in the editor where the identity was changed.

Actual behavior:

  • Style changed in editor 1 and editor 2

Per from-address, rather than account

Hi,

I really like this add-on except that it doesn't quite work the way I need :-)

I (effectively) have only one Thunderbird account and one identity. The default identity within that account is, say, [email protected]. However, I only use the [email protected] address with my close friends. For any other emails (commercial, mailing lists, etc) I make use of catchAll delivery and use addresses like [email protected], [email protected], [email protected], etc. None of these are set up as actual thunderbird "identities". Instead, I use the "Reply from this identity when delivery headers match" feature (also known as the catchAllIdentity feature). [Note: I used to be a very heavy user of the Virtual Identity plugin].

This is fine for replying. However, when I create a new email, it defaults to sending from the default address: [email protected]. As I said, that is fine if I am sending email to my friends, but if I am sending it somewhere else I want to have a reminder that I need to manually change the From address.

BorderColors-D almost does exactly what I want. But I need it to choose the colour based on the From address instead of the thunderbird identity. Is that something you might consider adding?

I realise that it would be hard to manually add every address to the preferences list. In my use case that doesn't matter - I only need the warning colouring for when I use my default identity address [email protected].

Thanks for all your work on this great plugin! Any feedback on this suggestion would be great.

Error opening the extension Options

Thuderbird 60.3.3 (32-bit) [Windows 10 - Spanish]

Error de lectura XML: entidad no definida
Ubicación: chrome://bordercolors-d/content/options.xul
Número de línea 41, columna 7:
------^

smtp error message and duplication of messages

With Thunderbird 78.7.0 configured with 8 different butl addresses and different providers. I have the following problem, smtp + error message in sent and received messages they are visible several times. 2 or 3 times the same message sent or received.
If I disable this add-on, the problem disappears completely and everything works normally.

The error is not only with outlook smtp, but also with other providers.

2021-02-01_15-25-26

Stop requesting to "Have full, unrestricted access to Thunderbird, and your computer"

Hello!

Currently, bordercolors-d needs "full, unrestricted access to Thunderbird, and your computer" (like many other useful and great TB extensions), Is it possible (mid-term) to change that?

Explanation from Mozilla:

The extension is using an older technology and has full access to Thunderbird’s internal APIs and does not need to request individual permissions. Up to Thunderbird 68 almost every add-on had this unrestricted access without specifically asking for it. Add-ons request this permission, as long as the new permission based API system does not yet offer the functionality they need. ...

So do I understand it correctly that as of now, the new permission based API system of TB does not offer the functionality needed by bordercolors-d?

how/where does it work?

Hi,

I installed this in TB 68.11 and I can see the add on. But how do I activate or configure it?

thanks for you time

How to deploy with predefined configuration?

Hello,

First, thanks for this usefull extension !

I'm planning to use it at work for many workstations, and I would like to know if there is a way to automatically configure it ?
I'm using the Mozilla policies's to install the extension, but I don't find any configuration file or similar that i can deploy into all Thunderbird profils.

Is there a way to do what I'm trying to do ?

Thanks !

Not Working

I am using Thunderbird version 78.13.0 and the border colors doesn't seem to work. I set it up and restarted but see no changes at all to messages. Am I suppose to do something else to get it to work?

No identities listed in the add-on options

Windows 10 (64-bit)
Thunderbird 68.6.0 (32-bit) 78.6.0 (32-bit)

I just installed this add-on and I cannot assign colors by identity. The box labeled "Assogn colors to your identities" is about 1 line high and is empty.

What am I doing wrong?

Thanks,
Doug

Styles do not apply when a color override is in place

I have several email accounts, and have allocated each with a different colour via the Bordercolors options menu in its Add-ons entry. The border position selected is top and bottom border.

However, when I compose an email from any one of my accounts, the border remains the same colour, at a dark blue, although it is in the correct position. More notably, the colour it shows is not anywhere near the colours I have allocated per email account.

Examples are attached.

I note that you mention elsewhere that there are some bugs needing resolution, but it is not clear whether this particular colour problem is among them.

bordercolor#1
border#2

Cannot set colour on Linux from colour wheel

TB 78.2.2 (64-bit) on SuSE Linux - xfce
Addon version 2020.9.1 (downloaded from here)

Setting the colour by clicking the colour wheel does not work.
Using the colour-picker does. So not serious - maybe only Linux.

See video:
https://github.com/revad/revad.github.io/blob/master/shared/screenrecorder-bordercolors-2020-09-20.mp4

Do the prefs have to be accessed from the 3-dot menu, btw? I thought they were missing at first.
On my addon 'Limit non-BCC recipients) they appear as a tab.

Your manifest:
"options_ui": {
"browser_style": true,
"open_in_tab": true,
"page": "pages/options.html"
},

Mine:
"options_ui": {
"page": "prefs.html",
"browser_style" : true,
"chrome_style": true
},

Add support for localisation

The mailextension rewrite did not carry over localised resources. We should re-add them, at least for the Options page.

  1. Investigate how localised resources work in TB78+
  2. Move English text out of the code
  3. Add at least one other language
  4. Add more languages, possibly using web-ext-translator

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.