Closed
Bug 1456219
Opened 7 years ago
Closed 7 years ago
Add default Light- and Dark themes to TB
Categories
(Thunderbird :: Theme, enhancement)
Thunderbird
Theme
Tracking
(thunderbird60 fixed, thunderbird61 fixed)
RESOLVED
FIXED
Thunderbird 61.0
People
(Reporter: Paenglab, Assigned: Paenglab)
References
()
Details
Attachments
(3 files, 2 obsolete files)
45.04 KB,
patch
|
Paenglab
:
review+
|
Details | Diff | Splinter Review |
44.51 KB,
patch
|
jorgk-bmo
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
1.32 KB,
patch
|
aceman
:
review+
|
Details | Diff | Splinter Review |
FX has by default a dark and a light theme. We can follow and extend them later to theme more areas.
Assignee | ||
Comment 1•7 years ago
|
||
Needs to be applied over bug 1455942.
This patch adds a dark and a light LW-theme like FX has.
They work on all platforms and I tested Win 7 Classic/Basic/Aero too.
This themes are a bit more powerful than normal LW/WX-themes because there is a compacttheme.css added that can do more.
I'm planning to extend them for example to the QFB bar, the message header and the header toolbar in composer.
I'm using now the FX icons in Add-on manager. Maybe we can add other later. But bug 1372694 will add a icon for the default theme through toolkit which makes it probably not possible to change it for us.
Comment 2•7 years ago
|
||
Comment on attachment 8970274 [details] [diff] [review]
Light-Dark-themes.patch
This works for me, however, it doesn't follow FF 59. There the light and default themes show the menu in the same colour as the tab bar. With the patch, menu and title bar are almost white and the tab bar is grey in the light theme. Is that intentional?
Attachment #8970274 -
Flags: review?(jorgk) → review+
Assignee | ||
Comment 3•7 years ago
|
||
Fixed the issue with the menubar.
Attachment #8970274 -
Attachment is obsolete: true
Attachment #8970328 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/5bbef8b40975
Add default Light and Dark themes to TB. r=jorgk
Updated•7 years ago
|
Target Milestone: --- → Thunderbird 61.0
Comment 5•7 years ago
|
||
Is this strictly patch applicable to version 61+?
The reason I ask is I've seen user requests for dark theme - which we don't have in 60.
Flags: needinfo?(richard.marti)
Assignee | ||
Comment 6•7 years ago
|
||
It should work on TB 60 too. It can be that some tweaks are needed. But this would need first to apply to TB 60 and then to be checked.
Flags: needinfo?(richard.marti)
Updated•7 years ago
|
Assignee | ||
Comment 7•7 years ago
|
||
Ah, the problem is, we have strings added. So, no uplift possible.
Comment 8•7 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #7)
> Ah, the problem is, we have strings added. So, no uplift possible.
That's unfortunate. I know it would be generally frowned up, but would it be bad to uplift and just not have the strings translated - it's not in the main UI?
Assignee | ||
Comment 9•7 years ago
|
||
This patch applies on beta with the strings removed. What do you think, can we somehow start a try build on beta to check how it works and what changes are needed to work properly? I have no local build system for beta.
Attachment #8970883 -
Flags: feedback?(jorgk)
Assignee | ||
Comment 10•7 years ago
|
||
The strings are hard coded now.
Comment 11•7 years ago
|
||
You can just push to try from comm-beta, that works.
Assignee | ||
Comment 12•7 years ago
|
||
Do I need to define the changesets? If yes, which?
Comment 13•7 years ago
|
||
Assuming you have comm-beta checked out and are at the tip + your patch, you just do a try push with the usual syntax. Nothing else required.
Assignee | ||
Comment 14•7 years ago
|
||
I had to change two variable names which changed in 61. But now I tried it and it should work on beta.
Jörg persuaded me to let the string changes in the patch. The locales which want to translate can do it, the others would be like we hard coded the strings.
Attachment #8970883 -
Attachment is obsolete: true
Attachment #8970883 -
Flags: feedback?(jorgk)
Attachment #8970971 -
Flags: approval-comm-beta?
Comment 15•7 years ago
|
||
Comment on attachment 8970971 [details] [diff] [review]
DarkLightTheme-beta.patch
OK, let's do it although we're going to get into trouble with L10n.
Attachment #8970971 -
Flags: approval-comm-beta? → approval-comm-beta+
Comment 16•7 years ago
|
||
Beta (TB 60 beta 5):
https://hg.mozilla.org/releases/comm-beta/rev/b6abecf3a8e13e56fc8d9ccb539e10d40017eaf3
status-thunderbird60:
--- → fixed
status-thunderbird61:
--- → fixed
![]() |
||
Comment 17•7 years ago
|
||
In try run https://taskcluster-artifacts.net/UT2oazXfRy2A2Z1btkhZHA/0/public/logs/live_backing.log there is now an error:
JavaScript error: chrome://messenger/content/addressbook/addressbook.js, line 15: ReferenceError: XPCOMUtils is not defined
Missing ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm"); in addressbook.js ?
Assignee | ||
Comment 18•7 years ago
|
||
Is it better with this?
Attachment #8971432 -
Flags: review?(acelists)
Comment 19•7 years ago
|
||
Hmm, do I need this for the beta? What happens without it apart from the JS error?
![]() |
||
Comment 20•7 years ago
|
||
Comment on attachment 8971432 [details] [diff] [review]
1456219-followup.patch
Review of attachment 8971432 [details] [diff] [review]:
-----------------------------------------------------------------
Yes, this fixes the error (tried locally on the test-send-button.js).
I don't know what problems the missing import causes, if any. LW theme seems the apply to the AB window even with the error (albeit it is different tone than the main window).
Attachment #8971432 -
Flags: review?(acelists) → review+
Comment 21•7 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/c86896b10e65
Follow-up: Import XPCOMUtils.jsm in addressbook.js. r=aceman DONTBUILD
Comment 22•7 years ago
|
||
Comment 23•7 years ago
|
||
For MacOS, is there a way to make the background of the tab bar dark in the default theme (so it matches the Firefox experience)?
Assignee | ||
Comment 24•7 years ago
|
||
(In reply to realDonaldTrump from comment #23)
> For MacOS, is there a way to make the background of the tab bar dark in the
> default theme (so it matches the Firefox experience)?
This added in userChrome.css should work:
#tabs-toolbar {
-moz-appearance: -moz-mac-vibrant-titlebar-dark !important;
-moz-font-smoothing-background-color: -moz-mac-vibrant-titlebar-dark !important;
background-color: #232323 !important;
color: hsl(240, 9%, 98%) !important;
text-shadow: none !important;
}
Comment 25•7 years ago
|
||
(In reply to Richard Marti (:Paenglab) from comment #24)
> (In reply to realDonaldTrump from comment #23)
> > For MacOS, is there a way to make the background of the tab bar dark in the
> > default theme (so it matches the Firefox experience)?
>
> This added in userChrome.css should work:
>
> #tabs-toolbar {
> -moz-appearance: -moz-mac-vibrant-titlebar-dark !important;
> -moz-font-smoothing-background-color: -moz-mac-vibrant-titlebar-dark
> !important;
> background-color: #232323 !important;
> color: hsl(240, 9%, 98%) !important;
> text-shadow: none !important;
> }
thank you for making thunderbird great again! tremendous!!!
You need to log in
before you can comment on or make changes to this bug.
Description
•