Closed Bug 1700440 Opened 4 years ago Closed 4 years ago

Update the preferences dialog to be inline with the changes in bug 715799

Categories

(Thunderbird :: Preferences, task)

Tracking

(thunderbird_esr78 unaffected, thunderbird88 fixed, thunderbird89 affected)

RESOLVED FIXED
89 Branch
Tracking Status
thunderbird_esr78 --- unaffected
thunderbird88 --- fixed
thunderbird89 --- affected

People

(Reporter: Paenglab, Assigned: Paenglab)

References

Details

Attachments

(2 files, 3 obsolete files)

After bug 715799 on Windows there is now the possibility to show a badge on the taskbar icon (and a icon with a red dot in the tray). Also the system notification can be used instead of the TB new mail alert.

We need now probably a mix of the actual prefs and the Mac prefs for Windows.

Ping, could you describe exactly what is possible now (including the prefs names) to know what should come into the prefs UI?

Then hopefully Alessandro can design the needed prefs and/or a dialog.

Flags: needinfo?(remotenonsense)

Prefs newly exposed to Windows

  • mail.biff.use_system_alert, but the system alert doesn't work on Win7, not sure how to show it in pref ui. Mac always uses system alert so doesn't have this.
  • mail.notification.count.inbox_only, by default the badge shows unread count of Inbox only and chat messages... The relevant code is quite old, I don't think we have a pref to control counting of chat/feed. We might want to add those prefs and UI later. The feed part relates to bug 261841

Prefs got new meaning on Windows

  • mail.biff.show_tray_icon, previously means new messages arrive. Now means when unread count > 0, a tray icon with a red dot is shown.
Flags: needinfo?(remotenonsense)
Attached patch 1700440-new-biff-options.patch (obsolete) (deleted) — Splinter Review

Okay, how about this?

I exposed the biff-use-system-alert for Linux too.
I renamed the text of mail.biff.show_tray_icon. See following screenshot.

Assignee: nobody → richard.marti
Status: NEW → ASSIGNED
Attachment #9212041 - Flags: review?(alessandro)
Attached image newMailSettings.png (deleted) —

How it looks on Windows.

Comment on attachment 9212041 [details] [diff] [review] 1700440-new-biff-options.patch Review of attachment 9212041 [details] [diff] [review]: ----------------------------------------------------------------- Good stuff. It needs some small UI changes. Also, the commit message has a curly bracket at the beginning. We should maybe update it with: `[Windows] Expose the new biff-use-system-alert options.` ::: mail/components/preferences/general.inc.xhtml @@ +442,5 @@ > + data-l10n-id="tray-icon-unread-label"/> > + <description class="indent tip-caption" > + flex="1" > + data-l10n-id="tray-icon-unread-description"/> > + </hbox> Let's use the same UI approach we have here: https://searchfox.org/comm-central/rev/51ad486532b07f7a4f1ad64335045a46fe50de83/mail/extensions/am-e2e/am-e2e.inc.xhtml#193-197 The description should be indented underneath the checkbox. ::: mail/locales/en-US/messenger/preferences/preferences.ftl @@ +216,3 @@ > .accesskey = t > > +tray-icon-unread-description = Useful with small taskbar buttons More than "Useful" I'd use "Recommended", what do you think? Also, are those application tray icon called "buttons" in Windows? I'm not sure if this is super clear. ::: mail/themes/shared/mail/preferences/preferences.css @@ +158,5 @@ > overflow: hidden; > text-overflow: ellipsis; > } > > +.tip-caption { We already have a tip-caption class in the declared a bunch of times around different CSS files. Can we unify it? https://searchfox.org/comm-central/search?q=.tip-caption&path=&case=true&regexp=false
Attachment #9212041 - Flags: review?(alessandro) → feedback+
Attached patch 1700440-new-biff-options.patch (obsolete) (deleted) — Splinter Review

(In reply to Alessandro Castellani [:aleca] from comment #4)

It needs some small UI changes.
Also, the commit message has a curly bracket at the beginning. We should
maybe update it with:
[Windows] Expose the new biff-use-system-alert options.

done

::: mail/components/preferences/general.inc.xhtml
@@ +442,5 @@

  •              data-l10n-id="tray-icon-unread-label"/>
    
  •    <description class="indent tip-caption"
    
  •                 flex="1"
    
  •                 data-l10n-id="tray-icon-unread-description"/>
    
  •  </hbox>
    

Let's use the same UI approach we have here:
https://searchfox.org/comm-central/rev/
51ad486532b07f7a4f1ad64335045a46fe50de83/mail/extensions/am-e2e/am-e2e.inc.
xhtml#193-197

The description should be indented underneath the checkbox.

done

::: mail/locales/en-US/messenger/preferences/preferences.ftl
@@ +216,3 @@

 .accesskey = t

+tray-icon-unread-description = Useful with small taskbar buttons

More than "Useful" I'd use "Recommended", what do you think?
Also, are those application tray icon called "buttons" in Windows? I'm not
sure if this is super clear.

They call it "buttons".

::: mail/themes/shared/mail/preferences/preferences.css
@@ +158,5 @@

overflow: hidden;
text-overflow: ellipsis;
}

+.tip-caption {

We already have a tip-caption class in the declared a bunch of times around
different CSS files.
Can we unify it?
https://searchfox.org/comm-central/search?q=.tip-
caption&path=&case=true&regexp=false

Removed the rule from accountManage.css as it uses the one from preferences.css.

Attachment #9212041 - Attachment is obsolete: true
Attachment #9212291 - Flags: review+
Whiteboard: Land together with bug 1701525
Target Milestone: --- → 89 Branch
Whiteboard: Land together with bug 1701525

Comment on attachment 9212291 [details] [diff] [review]
1700440-new-biff-options.patch

Sorry thought you gave a r+ with comments.

Attachment #9212291 - Flags: review+ → review?(alessandro)
Comment on attachment 9212291 [details] [diff] [review] 1700440-new-biff-options.patch Review of attachment 9212291 [details] [diff] [review]: ----------------------------------------------------------------- ::: mail/locales/en-US/messenger/preferences/preferences.ftl @@ +207,5 @@ > > +biff-use-system-alert = > + .label = { PLATFORM() -> > + [windows] Use the system notification > + *[other] Use the system alert Well, on linux is system notification as well. And shouldn't this be all hidden on mac since notification center is the only option there. Or? @@ +216,3 @@ > .accesskey = t > > +tray-icon-unread-description = Recommended with small taskbar buttons I think "with" is not correct English here. It's "when you're using"
Attached patch 1700440-new-biff-options.patch (obsolete) (deleted) — Splinter Review

(In reply to Magnus Melin [:mkmelin] from comment #7)

Comment on attachment 9212291 [details] [diff] [review]
1700440-new-biff-options.patch

Review of attachment 9212291 [details] [diff] [review]:

::: mail/locales/en-US/messenger/preferences/preferences.ftl
@@ +207,5 @@

+biff-use-system-alert =

  • .label = { PLATFORM() ->
  •    [windows] Use the system notification
    
  •    *[other] Use the system alert
    

Removed the platform switch.

Well, on linux is system notification as well.
And shouldn't this be all hidden on mac since notification center is the
only option there. Or?

It's in the #else block of #ifdef XP_MACOSX and only shown on Linux and Windows.

@@ +216,3 @@

 .accesskey = t

+tray-icon-unread-description = Recommended with small taskbar buttons

I think "with" is not correct English here. It's "when you're using"

done

Attachment #9212291 - Attachment is obsolete: true
Attachment #9212291 - Flags: review?(alessandro)
Attachment #9212307 - Flags: review?(alessandro)
Comment on attachment 9212307 [details] [diff] [review] 1700440-new-biff-options.patch Review of attachment 9212307 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, with a little nit on the string. ::: mail/locales/en-US/messenger/preferences/preferences.ftl @@ +213,3 @@ > .accesskey = t > > +tray-icon-unread-description = Recommended when you're using small taskbar buttons No need to indicate the subject here. "Recommended when using small taskbar buttons" sounds more correct.
Attachment #9212307 - Flags: review?(alessandro) → review+
Attached patch 1700440-new-biff-options.patch (deleted) — Splinter Review

Updated the description.

Attachment #9212307 - Attachment is obsolete: true
Attachment #9212314 - Flags: review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/3c5e687f409b
[Windows] Expose the new biff-use-system-alert options. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED

Comment on attachment 9212314 [details] [diff] [review]
1700440-new-biff-options.patch

[Approval Request Comment]
User impact if declined: the user can't set the options approprately
Testing completed (on c-c, etc.): on c-c
Risk to taking this patch (and alternatives if risky): low

Attachment #9212314 - Flags: approval-comm-beta?

Comment on attachment 9212314 [details] [diff] [review]
1700440-new-biff-options.patch

[Triage Comment]
Approved for beta

Attachment #9212314 - Flags: approval-comm-beta? → approval-comm-beta+

Rule still in affect.

For 78 at least. For beta, I guess we should generally stick to it as well.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: