Граф коммитов

3764 Коммитов

Автор SHA1 Сообщение Дата
Mike Conley 28ae6f7fa7 Bug 1697624 - Apply more Proton styles to PopupNotifications. r=desktop-theme-reviewers,harry
In particular, this makes it so that Proton PopupNotifications:

* Are ~400px wide (but use an em value for system font flexibility)
* Use a slightly larger font on macOS
* Have a 16px padding, regardless of platform
* Has 16px of space between each popupnotificationcontent, and before
  the popup-notification-checkbox.
* Sets a default font-weight on the WebRTC permission panel label when
  a single device label is listed

Differential Revision: https://phabricator.services.mozilla.com/D108518
2021-03-19 14:34:09 +00:00
Bogdan Tara 9e69523df0 Backed out 2 changesets (bug 1697624, bug 1697910) for browser_ext_popup_corners.js mochitest failures CLOSED TREE
Backed out changeset 392cbc9b9b1d (bug 1697910)
Backed out changeset 7e2f859d5251 (bug 1697624)
2021-03-19 09:54:35 +02:00
Tim Nguyen cc16861625 Bug 1699594 - Remove useless per-platform info-pages.css stylesheets. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D109013
2021-03-19 01:34:21 +00:00
Tim Nguyen 4bdb4cf35a Bug 1699576 - Move toolkit/themes/shared/plugins/ icons to toolkit/themes/shared/icons/. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D109005
2021-03-19 01:24:47 +00:00
Butkovits Atila 0be83f53f8 Backed out changeset d81c80f7e775 (bug 1699576) for causing failures at browser_parsable_css.js. CLOSED TREE 2021-03-19 02:26:49 +02:00
Tim Nguyen 610315a33d Bug 1699072 - Remove information.svg and flatten toolkit/themes/shared/profile. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D109007
2021-03-18 23:48:14 +00:00
Tim Nguyen 02d57f66a3 Bug 1698355 - Consolidate in-content focus outline styles. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108584
2021-03-18 23:22:07 +00:00
Tim Nguyen dc7335635b Bug 1699576 - Move toolkit/themes/shared/plugins/ icons to toolkit/themes/shared/icons/. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D109005
2021-03-18 23:14:10 +00:00
Butkovits Atila 59c50bbeb3 Backed out changeset 529ca682d2ff (bug 1698355) for causing failures at browser_parsable_css.js. 2021-03-19 01:01:48 +02:00
Tim Nguyen 1953bc5d33 Bug 1698355 - Consolidate in-content focus outline styles. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108584
2021-03-18 22:13:51 +00:00
Tim Nguyen dca495ffcc Bug 1699183 - Rename & clean up lock icons. r=preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D108815
2021-03-18 20:10:22 +00:00
Mike Conley 7e2b5085b2 Bug 1697910 - Set panel border radius to 8px when Proton is enabled. r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D108271
2021-03-18 20:00:03 +00:00
Mike Conley 36c1d26d80 Bug 1697624 - Apply more Proton styles to PopupNotifications. r=desktop-theme-reviewers,harry
In particular, this makes it so that Proton PopupNotifications:

* Are ~400px wide (but use an em value for system font flexibility)
* Use a slightly larger font on macOS
* Have a 16px padding, regardless of platform
* Has 16px of space between each popupnotificationcontent, and before
  the popup-notification-checkbox.
* Sets a default font-weight on the WebRTC permission panel label when
  a single device label is listed

Differential Revision: https://phabricator.services.mozilla.com/D108518
2021-03-18 20:00:02 +00:00
Gijs Kruitbosch ea660003e2 Bug 1699427 - Update Windows 10 context menu styling to fix colours, remove the shadow, fix padding, and submenu overlap as per spec, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108981
2021-03-18 19:36:32 +00:00
Tim Nguyen e4f5229edb Bug 1699134 - Remove --menu-icon-color in favor of currentColor & fill-opacity. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D108929
2021-03-18 14:04:53 +00:00
Tim Nguyen acf55d9a0b Bug 1699124 - Remove toolkit/themes/windows/global/icons/Error.png. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108782
2021-03-17 21:10:59 +00:00
Tim Nguyen e0e0e47210 Bug 1699083 - Remove blocklist_favicon.png and use blocked.svg instead. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108760
2021-03-17 19:03:51 +00:00
Cosmin Sabou dc2b83b3e4 Backed out changeset 294ee16f9e45 (bug 1699083) for gtest failures on WebRtcIceConnectTest. CLOSED TREE 2021-03-17 22:22:24 +02:00
Tim Nguyen f26c169fa0 Bug 1699083 - Remove blocklist_favicon.png and use blocked.svg instead. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108760
2021-03-17 19:03:51 +00:00
Bogdan Tara 218a8f642a Backed out changeset 9f582c2ddf74 (bug 1699083) for WebRtcIceConnectTest webrender failures CLOSED TREE 2021-03-17 20:41:43 +02:00
Tim Nguyen fcd8134690 Bug 1699083 - Remove blocklist_favicon.png and use blocked.svg instead. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108760
2021-03-17 17:21:51 +00:00
Tim Nguyen 10883c2a9d Bug 1699062 - Flatten toolkit/themes/*/global/alerts/. r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D108759
2021-03-17 17:17:55 +00:00
Mike Conley 1a2a277eab Bug 1697863 - Add preliminary Proton styles for browser UI menulists. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D108061
2021-03-17 17:15:10 +00:00
Brindusan Cristian 055e135f72 Backed out changeset 74e09e7c0071 (bug 1699062) for build bustages in alert.css. CLOSED TREE 2021-03-17 18:57:26 +02:00
Tim Nguyen a5f2f16f6a Bug 1699062 - Flatten toolkit/themes/*/global/alerts/. r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D108759
2021-03-17 15:31:16 +00:00
Dão Gottwald 7d3961b5d6 Bug 1699097 - Stop setting appearance: none for :root:-moz-lwtheme. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D108796
2021-03-17 15:26:34 +00:00
Tim Nguyen 0f9acecce6 Bug 1699074 - Move defaultFavicon.svg to toolkit/themes/shared/icons. r=desktop-theme-reviewers,mak,dao
Differential Revision: https://phabricator.services.mozilla.com/D108757
2021-03-17 15:19:34 +00:00
Tim Nguyen 6a6179c0ba Bug 1699119 - Remove toolkit/themes/windows/global/icons/question-64.png. r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D108779
2021-03-17 15:15:52 +00:00
Tim Nguyen 1d0d6c91f4 Bug 1699017 - Remove toolkit/themes/{osx,windows}/global/arrow/arrow-up.gif. r=Paenglab
Differential Revision: https://phabricator.services.mozilla.com/D108769
2021-03-17 12:24:04 +00:00
Tim Nguyen b1d31e62a3 Bug 1699061 - Remove sort-asc-classic.png and sort-dsc-classic.png. r=Paenglab
Differential Revision: https://phabricator.services.mozilla.com/D108756
2021-03-17 11:37:25 +00:00
Csoregi Natalia 4e97659d91 Backed out 2 changesets (bug 1697863) for valgrind failures. CLOSED TREE
Backed out changeset f82846b236e3 (bug 1697863)
Backed out changeset 64166dc7f85f (bug 1697863)
2021-03-17 01:15:11 +02:00
Mike Conley 86a29c0a16 Bug 1697947 - Apply Proton button stylings to the footers of more panels. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D108261
2021-03-16 21:48:37 +00:00
Noemi Erli da3ea13f5c Backed out changeset c35c310c49d3 (bug 1697947) for causing failures in browser_parsable_css.js 2021-03-16 22:58:27 +02:00
Mike Conley 5526055ab7 Bug 1697947 - Apply Proton button stylings to the footers of more panels. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D108261
2021-03-16 19:20:22 +00:00
Tim Nguyen b6dabb59e8 Bug 1698415 - Remove --in-content-warning-container variable and tweak --in-content-box-info-background for proton. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108388
2021-03-16 18:55:41 +00:00
Mike Conley 9a43d7d205 Bug 1697863 - Add preliminary Proton styles for browser UI menulists. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D108061
2021-03-16 17:11:23 +00:00
Tim Nguyen 4b8a2b71cf Bug 1698406 - Remove --in-content-box-background-{hover/active} variables. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108393
2021-03-16 16:33:00 +00:00
Tim Nguyen 3d1fb2c6cc Bug 1698416 - Undo --in-content-focus-outline-color variable change. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D108620
2021-03-16 12:17:21 +00:00
Tim Nguyen fdb8b2fd85 Bug 1698416 - Simplify tab and category CSS variables in common.css. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108387
2021-03-16 08:50:40 +00:00
Tim Nguyen 71621fe7dc Bug 1698345 - Tweak the toolkit shared checkbox styling. r=mconley
* Switch from :active to :hover:active for consistency with OS, and to fix common.css bug

* Tweak hover/active feedback (I guess those values are slightly opinionated towards certain themes, but should be better than nothing)

* Disable custom what's new panel checkbox styling when proton is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D108349
2021-03-15 18:03:30 +00:00
Tim Nguyen 718080bd8e Bug 1698319 - Set background-size on PiP close button. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D108348
2021-03-14 21:21:54 +00:00
Tim Nguyen a069f43498 Bug 1698361 - Move dropdown.svg & radio.svg out of toolkit/themes/shared/in-content. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108352
2021-03-14 16:20:04 +00:00
Tim Nguyen 1a6261ecc7 Bug 1698360 - Get rid of toolkit/themes/shared/incontent-icons directory. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108351
2021-03-14 16:20:00 +00:00
Tim Nguyen aa9a713683 Bug 1698352 - Remove --in-content-border-focus variable. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108350
2021-03-14 13:11:08 +00:00
Tim Nguyen eec5839457 Bug 1698058 - Update downloads panel/window icons & icon button styling. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D108189
2021-03-13 01:51:28 +00:00
smolnar 547a309816 Backed out changeset 3d812f02347c (bug 1698058) for causing OS X build bustages. CLOSED TREE 2021-03-13 03:18:51 +02:00
Tim Nguyen 6b556978c0 Bug 1698058 - Update downloads panel/window icons & icon button styling. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D108189
2021-03-13 00:35:11 +00:00
Gijs Kruitbosch d6848e7101 Bug 1692082 - fix spacing, icons and colours for checkmarks and arrows in Windows 10 menus, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D108108
2021-03-13 00:16:36 +00:00
Mike Conley 99fb99a4a8 Bug 1697315 - Add preliminary Proton styles for browser UI checkboxes. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107730
2021-03-12 17:00:53 +00:00
Tim Nguyen 8683d3c956 Bug 1698137 - De-duplicate identity-icon.svg and info.svg. r=desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D108219
2021-03-12 16:58:19 +00:00
Micah Tigley 4d147c654e Bug 1695694 - Update context menu separator colors on Windows. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D107947
2021-03-12 15:15:57 +00:00
Tim Nguyen da94fac78a Bug 1697792 - Clean up info SVG icons in the codebase. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108001
2021-03-12 09:53:16 +00:00
Alexandru Michis 09aaa7cff9 Backed out changeset 6ffdccffb2d5 (bug 1697315) for causing bc failures in browser_preferences_usage.js
CLOSED TREE
2021-03-12 08:13:05 +02:00
Mike Conley 2949934836 Bug 1697315 - Add preliminary Proton styles for browser UI checkboxes. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107730
2021-03-11 22:55:48 +00:00
Csoregi Natalia 8308087290 Backed out changeset dcc686463127 (bug 1697792) for failures on browser_parsable_css.js- icon related. CLOSED TREE 2021-03-12 05:21:41 +02:00
Tim Nguyen 6bb5c3f20a Bug 1697665 - Update common.css checkbox/radio image & sizing to match photon spec. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D107940
2021-03-11 21:15:05 +00:00
Tim Nguyen 3b6042742a Bug 1697792 - Clean up info SVG icons in the codebase. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D108001
2021-03-11 20:47:37 +00:00
Tim Nguyen 8c4fe9055e Bug 1697802 - De-duplicate close icon SVGs. r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D108003
2021-03-11 19:33:33 +00:00
leli bb2e8e2911 Bug 1665057 - Add www button on https-only error page r=ckerschb,JulianWels,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D101468
2021-03-11 17:10:06 +00:00
Erica Wright 314b24db0d Bug 1682676 - Position infobars inside of the chrome. r=mstriemer
Depends on D106012

Differential Revision: https://phabricator.services.mozilla.com/D104741
2021-03-10 19:22:56 +00:00
Molly Howell 52500a6465 Bug 1692086 - Position and scale submenu arrows correctly to spec. r=dao
I also noticed while trying out this patch that the context menu navigation
icons really need to also scale with the font size, so I've fixed that here
along with the submenu arrows.

Differential Revision: https://phabricator.services.mozilla.com/D107570
2021-03-10 16:45:42 +00:00
Tim Nguyen 2faee3fa51 Bug 1697433 - Share XUL iframe global.css styling. r=desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D107799
2021-03-10 12:37:21 +00:00
Emilio Cobos Álvarez c3fa8e2b78 Bug 1696931 - Use even padding in menuitems on OSX. r=mstange
Otherwise with some fonts the menus look off. This doesn't change visual
appearance with the default font, afaict (but I don't have such a good eye so
please double-check).

Maybe we should do this only for the content select dropdown, but then again my
untrained eye doesn't see an issue for other menuitems either so...

Differential Revision: https://phabricator.services.mozilla.com/D107630
2021-03-09 21:41:25 +00:00
Emilio Cobos Álvarez a9fb30bddc Bug 1696931 - Prevent osx menu checkmark from growing the line. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D107629
2021-03-09 21:41:25 +00:00
Emilio Cobos Álvarez 90110a9ac4 Bug 1695323 - Allow close icon to grow vertically if needed. r=jaws
Otherwise notification close icons like the canvas one look stretched
because of this rule:

  https://searchfox.org/mozilla-central/rev/5a66c4b4a41ab78a87c30c9db0d93c732c534402/toolkit/themes/shared/notification.css#124

Which grow the content of the icon.

Differential Revision: https://phabricator.services.mozilla.com/D107700
2021-03-09 18:49:15 +00:00
Alexandru Michis 17ba342722 Backed out 2 changesets (bug 1696931) for causing mochitest failures in test_menulist_position.xhtml
CLOSED TREE

Backed out changeset 02c0f8ec7483 (bug 1696931)
Backed out changeset f53eb7a72c4d (bug 1696931)
2021-03-09 20:02:38 +02:00
Emilio Cobos Álvarez 2640df5e01 Bug 1696931 - Use even padding in menuitems on OSX. r=mstange
Otherwise with some fonts the menus look off. This doesn't change visual
appearance with the default font, afaict (but I don't have such a good eye so
please double-check).

Maybe we should do this only for the content select dropdown, but then again my
untrained eye doesn't see an issue for other menuitems either so...

Depends on D107629

Differential Revision: https://phabricator.services.mozilla.com/D107630
2021-03-09 15:53:59 +00:00
Emilio Cobos Álvarez 9459fd1ae0 Bug 1696931 - Prevent osx menu checkmark from growing the line. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D107629
2021-03-09 15:53:59 +00:00
Emilio Cobos Álvarez 30cf04d26c Bug 1696988 - Add backgrounds for non-native tooltips on Linux and OSX. r=ntim
The Linux styles match Adwaita trunk[1], so it's a bit smaller than the
native ones but I think that's fine (it matches other themes more
closely, like Arc).

On OSX the system color needs to be tweaked (will do in a follow-up)
since it is windows-style yellow right now, which is rather ugly. But
this is a progression regardless.

[1]: https://gitlab.gnome.org/GNOME/gtk/-/issues/3352

Differential Revision: https://phabricator.services.mozilla.com/D107548
2021-03-09 00:33:06 +00:00
Gijs Kruitbosch 6aa99808ca Bug 1696874 - fix button margins in dialogs in non-proton, r=mtigley
Differential Revision: https://phabricator.services.mozilla.com/D107462
2021-03-08 23:49:58 +00:00
Mike Conley f70b722da2 Bug 1696987 - Apply preliminary Proton stylings to PopupNotification splitbuttons. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D107509
2021-03-08 22:04:13 +00:00
Mike Conley 19173121e0 Bug 1696946 - Suppress most PopupNotification notification icons when Proton is enabled. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D107497
2021-03-08 22:04:12 +00:00
Mike Conley baa881e8bb Bug 1696421 - Make PopupNotifications use Large Secondary style buttons when Proton is enabled. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D107211
2021-03-08 22:04:12 +00:00
Narcis Beleuzu 16d317a8b5 Backed out 1 changesets (bug 1696286) as per mconley`s request.
Backed out changeset 6f8b367e18e3 (bug 1696286)
2021-03-08 17:04:15 +02:00
Tim Nguyen 82dd844b5b Bug 1696660 - Share more content from toolkit global.css files. r=desktop-theme-reviewers,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D107335
2021-03-06 19:44:43 +00:00
Tim Nguyen 9d610c9f98 Bug 1696676 - Clean up platform-specific styling in common.css. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D107350
2021-03-06 18:29:26 +00:00
Tim Nguyen af91f2a549 Bug 1696675 - Remove obsolete .help-button styling from common.css. r=Itiel,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107346
2021-03-06 18:06:05 +00:00
Tim Nguyen ea8fdba50e Bug 1696638 - Remove obsolete .header preferences.css & common.css styling. r=preferences-reviewers,Gijs
This was originally added in bug 1120967 to space the help button that used to appear in the header. The help button has since been removed.

It's bogus in this case, because it accidentally overrides the display value of some description (which used to force their own display value).

Differential Revision: https://phabricator.services.mozilla.com/D107334
2021-03-05 16:49:42 +00:00
Gijs Kruitbosch f95c55540b Bug 1693277 - fix sizing of dialogs with various content sizes, r=mtigley
This uses the new sizeTo value supported by SubDialog.jsm to also impact
how we size things inside the dialog. It's a bit complicated because we
need the dialog to support 3 layouts:

1. the window-modal setup (which we're trying not to touch)
2. the non-proton modal setup (which uses grid layout to have one column with
   the image and the username/password fields, where applicable)
3. the proton modal setup (where we don't want the grid layout, as
   the labels for username/password go above their text fields and there's no
   big icon on the left, so there's no point)

Finally, for content modal prompts, we need to effectively determine the size
of the content and whether we need to overflow. We can't just always allow
flexbox to shrink everything, or we end up with overflow even for dialogs
with just 2 lines of text.

So with this patch, we determine the ideal height of the dialog document from
SubDialog.jsm, before setting the `.sizeDetermined` class there, thus allowing
the #infoBody part to overflow. The SubDialog.jsm code will ensure the
embedding browser is large enough to allow not overflowing/scrolling the
content.

In terms of the 3 layouts, we select for "not 1" by using `dialog[subdialog]`
(an attribute set by the SubDialog.jsm code anyway). We then use proton
pref-based @supports queries to pick between layouts (2) and (3).

Differential Revision: https://phabricator.services.mozilla.com/D107111
2021-03-05 10:50:53 +00:00
Gijs Kruitbosch 3e8f017587 Bug 1693277 - fix long text wrapping, shadows, radii and colours for proton, and clean up some CSS, r=mtigley
This moves some inline styles into CSS and fixes modal masks and shadows to match the spec.

I also noticed some negative effects from other Proton button styles on close-icon buttons in dialogs
in about:preferences (e.g. check the oversized titlebar for the fonts dialog) that I fixed here.

Differential Revision: https://phabricator.services.mozilla.com/D107109
2021-03-05 10:50:52 +00:00
Emilio Cobos Álvarez 15ccc7ae4e Bug 1696434 - Address spec changes re. color-mix. r=boris,desktop-theme-reviewers
It was clarified that the percentages are weights, and two weights are
now allowed. Missing percentages are computed as 100% - the other or
50%. Other than that, commas are required etc, which is good since
that's how I implemented it originally.

Differential Revision: https://phabricator.services.mozilla.com/D107295
2021-03-05 02:30:23 +00:00
Alexandru Michis 55e499c3cf Backed out 3 changesets (bug 1693277) for causing bc failures in browser_modal_resize.js
CLOSED TREE

Backed out changeset 0580aaec32a0 (bug 1693277)
Backed out changeset be8108cd9820 (bug 1693277)
Backed out changeset 8b9986d057d7 (bug 1693277)
2021-03-05 03:58:03 +02:00
Gijs Kruitbosch 3617dc2de5 Bug 1693277 - fix sizing of dialogs with various content sizes, r=mtigley
This uses the new sizeTo value supported by SubDialog.jsm to also impact
how we size things inside the dialog. It's a bit complicated because we
need the dialog to support 3 layouts:

1. the window-modal setup (which we're trying not to touch)
2. the non-proton modal setup (which uses grid layout to have one column with
   the image and the username/password fields, where applicable)
3. the proton modal setup (where we don't want the grid layout, as
   the labels for username/password go above their text fields and there's no
   big icon on the left, so there's no point)

Finally, for content modal prompts, we need to effectively determine the size
of the content and whether we need to overflow. We can't just always allow
flexbox to shrink everything, or we end up with overflow even for dialogs
with just 2 lines of text.

So with this patch, we determine the ideal height of the dialog document from
SubDialog.jsm, before setting the `.sizeDetermined` class there, thus allowing
the #infoBody part to overflow. The SubDialog.jsm code will ensure the
embedding browser is large enough to allow not overflowing/scrolling the
content.

In terms of the 3 layouts, we select for "not 1" by using `dialog[subdialog]`
(an attribute set by the SubDialog.jsm code anyway). We then use proton
pref-based @supports queries to pick between layouts (2) and (3).

Differential Revision: https://phabricator.services.mozilla.com/D107111
2021-03-05 00:07:36 +00:00
Gijs Kruitbosch d0ec744dc0 Bug 1693277 - fix long text wrapping, shadows, radii and colours for proton, and clean up some CSS, r=mtigley
This moves some inline styles into CSS and fixes modal masks and shadows to match the spec.

I also noticed some negative effects from other Proton button styles on close-icon buttons in dialogs
in about:preferences (e.g. check the oversized titlebar for the fonts dialog) that I fixed here.

Differential Revision: https://phabricator.services.mozilla.com/D107109
2021-03-05 00:07:35 +00:00
Geoff Lankow 54ab3624a4 Bug 1675730 - Move critical.svg from browser to toolkit. r=johannh
certviewer.html, being a toolkit file, shouldn't link to an icon in browser. This results in a broken image icon in Thunderbird.

Differential Revision: https://phabricator.services.mozilla.com/D107166
2021-03-04 21:56:05 +00:00
Tim Nguyen 629bf23c06 Bug 1696202 - Refactor close-icon.css to use color-mix(). r=preferences-reviewers,jaws
Differential Revision: https://phabricator.services.mozilla.com/D107081
2021-03-04 02:51:00 +00:00
Mike Conley f1a82bcd16 Bug 1696286 - Make it possible for PopupNotifications to be visually unopinionated. r=Gijs
Being 'visually unopinionated' means not showing distinct styling for the main action.

Differential Revision: https://phabricator.services.mozilla.com/D107128
2021-03-04 00:54:01 +00:00
Gijs Kruitbosch 45b754f38f Bug 1692111 - unify submenu arrow image use for proton, r=mconley,Itiel
Differential Revision: https://phabricator.services.mozilla.com/D106629
2021-03-02 14:10:05 +00:00
Julien Wajsberg e722b2db9d Bug 1695199 - Fix the contrast of visited links in the reader's dark mode r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D106817
2021-03-01 20:50:21 +00:00
Tim Nguyen 5fa0e52b5f Bug 1693374 - Make common.css sidebar footer styles re-usable. r=desktop-theme-reviewers,harry,robwu
Differential Revision: https://phabricator.services.mozilla.com/D106300
2021-02-26 22:18:44 +00:00
Butkovits Atila f64a8e2f9f Backed out changeset d146eb93b6d0 (bug 1693374) for causing failures at browser_interaction_telemetry.js. CLOSED TREE 2021-02-26 21:32:25 +02:00
Tim Nguyen 63b3b5e5ca Bug 1693374 - Make common.css sidebar footer styles re-usable. r=desktop-theme-reviewers,harry,robwu
Differential Revision: https://phabricator.services.mozilla.com/D106300
2021-02-26 17:44:32 +00:00
Neil Deakin f66ba76299 Bug 1691499, add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D105750
2021-02-26 13:43:10 +00:00
Jared Wein 5810ee434c Bug 1665390 - Style bookmarks toolbar and tabs toolbar tooltips. r=NeilDeakin,ntim
Differential Revision: https://phabricator.services.mozilla.com/D104257
2021-02-25 20:47:54 +00:00
Cosmin Sabou 253c39a17a Backed out changeset 36b76c196497 (bug 1691499) for bc failures on browser_decoderDoctor.js. CLOSED TREE 2021-02-25 21:47:25 +02:00
Neil Deakin 86db2fec08 Bug 1691499, add a link field to notification bar buttons to use a link instead, convert learn more buttons in notification bars to links, r=mstriemer,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D105750
2021-02-25 12:00:39 +00:00
Gijs Kruitbosch d079588fd9 Bug 1694427 - fix background colours and button padding in about:support, r=jaws,desktop-theme-reviewers,harry
Differential Revision: https://phabricator.services.mozilla.com/D106281
2021-02-24 16:08:45 +00:00
Gijs Kruitbosch 75a736b09e Bug 1692376 - stop showing hover state for menuitems in the new windows 10 menus, r=jaws
I'm also updating the colours for the spec updates to menu colours.

Differential Revision: https://phabricator.services.mozilla.com/D106009
2021-02-23 23:20:10 +00:00
harry 43ec533571 Bug 1594132 - Move background-color rules so they do not appear under appearance rules, enabling sidebar vibrancy. r=ntim,dao
`appearance` CSS rules allow elements to take on system appearance. For UI elements that we want to take on system styling, we set `appearance: auto` combined with platform-specific rules like `-moz-default-appearance: -moz-mac-vibrant-titlebar-light;`

macOS sidebar vibrancy broke because a background-color was being applied to `root`. That colour appeared under elements with `appearance: auto` set, so we wouldn't see the platform-specific styling. This patch moves the root background-color to `#navigator-toolbox`, so that it does not appear under `#sidebar-box`.

We still want a background colour applied to sidebars when a lwtheme includes one. We only want `appearance: auto` applied to sidebars when the active theme does not have sidebar styling rules. That's why `#sidebar-box:not(:-moz-lwtheme)` is changed to `#sidebar-box:not([lwt-sidebar])`.

This patch also removes the rule
```
:root:-moz-lwtheme {
  appearance: none;
}
```
from osx/global/global.css. There's no corresponding addition of a `#navigator-toolbox { appearance:none; }` rule because that rule already exists in [osx/browser.css](https://searchfox.org/mozilla-central/rev/7067bbd8194f4346ec59d77c33cd88f06763e090/browser/themes/osx/browser.css#45).

Differential Revision: https://phabricator.services.mozilla.com/D104416
2021-02-23 15:03:45 +00:00
Tim Nguyen b2f6b738b8 Bug 1693979 - Adjust visual weight of notification bar shadow and icon spacing. DONTBUILD
Reduces the uneven spacing from the icons, and the weight of the shadow (while keeping some of it, so it still looks over like part of browser chrome).

Differential Revision: https://phabricator.services.mozilla.com/D106070
2021-02-23 07:52:29 +00:00
Emilio Cobos Álvarez 15ff419df0 Bug 1694059 - Rename various nnt prefs. r=spohl,mstange
As per feedback in D105931.

Differential Revision: https://phabricator.services.mozilla.com/D105991
2021-02-22 20:05:35 +00:00
Tim Nguyen b7714f3775 Bug 1693979 - Reduce the size of notification bars. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D105865
2021-02-22 12:47:30 +00:00
Gijs Kruitbosch 0598e83a2b Bug 1693276 - update button styles for proton r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D105481
2021-02-22 10:53:34 +00:00
Emilio Cobos Álvarez 1663bc278f Bug 1693690 - Enable the native theme in toolkit/themes/osx. r=spohl
These tests rely on implementation details of nsNativeThemeCocoa.mm

Differential Revision: https://phabricator.services.mozilla.com/D105808
2021-02-19 18:16:55 +00:00
Itiel 127183db97 Bug 1693663 - Add dark mode support for about:serviceworkers r=ntim,asuth
Differential Revision: https://phabricator.services.mozilla.com/D105689
2021-02-19 09:08:29 +00:00
Molly Howell bb4c298e54 Bug 1692237 - Fix colors and backgrounds for in-content XUL menus and system-themed widgets. r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D104930
2021-02-17 23:40:52 +00:00
Emilio Cobos Álvarez cd3fa8e953 Bug 1693129 - Linux arrowpanels should be transparent. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D105357
2021-02-16 19:16:01 +00:00
Emilio Cobos Álvarez bdf8e636ad Bug 1691428 - Fix styling of unthemed menupopups and menuitems in Linux. r=dao
The background change matches Windows / Mac, and common sense too.

The customoptionstyling change is because that comment is just false,
although custom select is not enabled on Linux (though maybe it could
after this patch, will look into it separately).

Finally, give some padding to unthemed menuitems. GTK overrides this
padding with the theme one, but this allows having a sane default.

This is the padding I get with Adwaita, which is the default GTK theme.

Differential Revision: https://phabricator.services.mozilla.com/D104874
2021-02-16 13:18:14 +00:00
Itiel 139ae97eac Bug 1689480 - Add vertical clicktarget for in-content checkboxes and radiobuttons r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D103390
2021-02-12 17:05:27 +00:00
Itiel 5cc0ada0fb Bug 1689480 - Changes to about:networking checkbox to accomodate for the added margin-block r=ntim
This also gets rid of the non clickable area between the checkbox and its label.

Differential Revision: https://phabricator.services.mozilla.com/D103398
2021-02-12 17:05:25 +00:00
Itiel 4277ecab08 Bug 1692076 - Fix in-content checked/selected checkboxes/radiobuttons when printing, if Print Backgrounds is disabled r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D104764
2021-02-12 01:10:49 +00:00
Molly Howell 3de3dc09e4 Bug 1682522 - Implement new menu style for Windows 10. r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D104466
2021-02-11 00:52:56 +00:00
Noemi Erli 9ec3bcd05d Backed out changeset 01bd07adb674 (bug 1682522) for failing in browser_all_files_referenced.js 2021-02-11 01:59:20 +02:00
Molly Howell f358c64dfb Bug 1682522 - Implement new menu style for Windows 10. r=desktop-theme-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D104466
2021-02-10 22:35:37 +00:00
Yura Zenevich 10dbb554e0 Bug 1681007 - add keyboard focus styling for interactive control elements (includes control bar, click to play and track list). r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D101692
2021-02-03 01:04:54 +00:00
Yura Zenevich 1898c85db7 Bug 1681007 - convert click to play into a real button. r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D101691
2021-02-02 21:01:29 +00:00
Tim Nguyen 325953b00c Bug 1689830 - Stop using <deck> for .wizard-page-box. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D103590
2021-02-01 19:37:05 +00:00
Itiel 12f7c87ec8 Bug 1688970 - common.inc.css changes to better match the specs for radiobuttons and checkboxes r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D103096
2021-01-27 18:18:17 +00:00
Magnus Melin e4574c7ab0 Bug 1524836 - Move new HTML about:config page from browser to toolkit. r=fluent-reviewers,preferences-reviewers,geckoview-reviewers,Gijs,agi
Unbitrot and change strategy for geckoview: now map about:config directly in nsAboutRecirector.cpp

Differential Revision: https://phabricator.services.mozilla.com/D25938
2021-01-26 00:27:56 +00:00
Itiel 0dfabb9a65 Bug 1685595 - Make input[type=radio] styling match xul|radio styling in common.inc.css r=sfoster,robwu,extension-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D101064
2021-01-25 19:14:58 +00:00
Csoregi Natalia 5f5a79166e Backed out changeset 0b9a1b2668a4 (bug 1685595) for browser_parsable_css.js failures. CLOSED TREE 2021-01-25 20:22:31 +02:00
Itiel 3dc765d056 Bug 1685595 - Make input[type=radio] styling match xul|radio styling in common.inc.css r=sfoster,robwu,extension-reviewers,ntim
Differential Revision: https://phabricator.services.mozilla.com/D101064
2021-01-25 15:57:45 +00:00
Swapnik Katkoori 44f1241414 Bug 1670094 - Add RTL support for PIP explainer. r=mtigley,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D102849
2021-01-24 16:34:07 +00:00
Tony Froman d77729fe84 Bug 1678351 - Removed .pictureInPictureToggleIcon style code, removed above class selector from multi-class selector statement. r=mtigley,mhowell
Differential Revision: https://phabricator.services.mozilla.com/D102842
2021-01-24 16:14:15 +00:00
Abhishek Sharma 2086f68cb0 Bug 1685638 - Change :not(:disabled) to :enabled in CSS files. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D101130
2021-01-19 14:02:38 +00:00
Emilio Cobos Álvarez 562c44a853 Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-17 14:44:41 +00:00
Dorel Luca dac45cc702 Backed out 3 changesets (bug 1551040) for Browser-chrome failures in browser/base/content/test/static/browser_parsable_css.js
Backed out changeset f48f479bcacd (bug 1551040)
Backed out changeset a6cd4b393999 (bug 1551040)
Backed out changeset 252cbf40efcb (bug 1551040)
2021-01-17 16:38:39 +02:00
Emilio Cobos Álvarez 71b5ff7515 Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-16 19:15:59 +00:00
Bogdan Tara c88a628881 Backed out 3 changesets (bug 1551040) for stylesheets related bustage CLOSED TREE
Backed out changeset 3822fe3e163d (bug 1551040)
Backed out changeset 032025f28d8f (bug 1551040)
Backed out changeset 1aeb38c2dce3 (bug 1551040)
2021-01-16 20:53:31 +02:00
Emilio Cobos Álvarez fcace619be Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-16 10:53:09 +00:00
Mihai Alexandru Michis f1247be876 Backed out 4 changesets (bug 1551040) for causing mochitest failures.
CLOSED TREE

Backed out changeset 06c07b144db8 (bug 1551040)
Backed out changeset a6ebb45be432 (bug 1551040)
Backed out changeset 38f1416a92c3 (bug 1551040)
Backed out changeset 6c80881c8844 (bug 1551040)
2021-01-16 12:47:04 +02:00
Emilio Cobos Álvarez 08ce37b5ed Bug 1551040 - Add dark mode to plaintext.css, and a document rule to target plaintext documents. r=boris
We add two @-moz-document functions: `plain-text-document()`, matching the
obvious, and `unobservable-document()`, which matches a top-level document with
no opener. This is the equivalent check we do for automatic darkening of
`about:blank` here:

    https://searchfox.org/mozilla-central/rev/014fe72eaba26dcf6082fb9bbaf208f97a38594e/layout/base/PresShell.cpp#5282

The former we don't need to use, but it's nice to let user stylesheets target
plaintext documents properly (rather than relying on extensions or what not).

Note that these are not content-observable.

Add two tests: One showing that we produce different rendering when on dark
mode, and one showing that we produce the same one from an iframe, regardless
of dark mode.

Depends on D101517

Differential Revision: https://phabricator.services.mozilla.com/D101518
2021-01-16 03:19:38 +00:00
Markus Stange 097973bc25 Bug 1650835 - Add support for a "button-and-view" widget type. r=jaws
This widget will be used for the profiler button. The profiler button is a
two-part widget with both a command and a view. The command starts/stops the
profiler, but the starting/stopping can also be performed from inside the view.
The dropmarker button shows the view.
When this widget is located in the panel, the start/stop action is only
accessible via the view and there is no "quick-action" command.

The structure of the widget is as follows:

toolbaritem.toolbaritem-combined-buttons
 - toolbarbutton.toolbarbutton-1
 - toolbarbutton.toolbarbutton-1.toolbarbutton-combined-buttons-dropmarker

The dropmarker icon is the toolbarbutton icon of the second toolbarbutton.
The dropmarker button is only shown in the toolbar or in the customize palette.
It is hidden when the widget is located in the panel.
In the toolbar, the hover effect of the dropmarker needs to have the same height
as the hover effect of the regular button. However, due to the different image
size (12x12 instead of 16x16) it requires more vertical padding.

Differential Revision: https://phabricator.services.mozilla.com/D98216
2021-01-15 18:14:04 +00:00
Bernard Igiri bb0ba02a14 Bug 1660848 - Add a check for updates option to application menus r=fluent-reviewers,jaws,harry,Gijs,flod,mkaply
Adding a check for updates option to the application menu, changing the about dialog styling to match the mockup, and adding a minimum delay to the checking for updates message.

Differential Revision: https://phabricator.services.mozilla.com/D95195
2021-01-15 14:26:58 +00:00
Bogdan Tara 47070cef21 Backed out changeset 8dc3f02e20ca (bug 1660848) for multiple mochitest failures CLOSED TREE 2021-01-12 03:22:03 +02:00
Bernard Igiri f6d19cf7e6 Bug 1660848 - Add a check for updates option to application menus r=fluent-reviewers,jaws,harry,Gijs,flod,mkaply
Adding a check for updates option to the application menu, changing the about dialog styling to match the mockup, and adding a minimum delay to the checking for updates message.

Differential Revision: https://phabricator.services.mozilla.com/D95195
2021-01-11 22:37:05 +00:00
Sam Foster 98d8d74c74 Bug 1682079 - Move icons used by new print UI into toolkit. r=mstriemer,desktop-theme-reviewers,ntim
* Move shared open-in-new and print icons into toolkit and update references
* The pendingpaint.png reference will be removed in bug 1679133

Differential Revision: https://phabricator.services.mozilla.com/D101239
2021-01-11 20:58:06 +00:00
Andrei Cristian Petcu 06afeb5583 Bug 1650675 Import dialog summary r=jaws,flod
Depends on D83193

Differential Revision: https://phabricator.services.mozilla.com/D85647
2021-01-08 17:07:26 +00:00
Tim Nguyen 73a733f254 Bug 1685628 - Fix common.css radio button hover styles to be consistent with checkboxes. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D101094
2021-01-08 13:17:31 +00:00
Kartik Gautam 7ae6aea145 Bug 1684173 - Add newline character at end of files when missing r=sylvestre,geckoview-reviewers,agi
Differential Revision: https://phabricator.services.mozilla.com/D100484
2021-01-07 08:53:08 +00:00
Cosmin Sabou 2978aa00a3 Backed out changeset dbed1cdf588f (bug 1684173) for mochitest plain and devtools failures. a=backout DONTBUILD 2020-12-28 00:43:51 +02:00
Kartik Gautam 775cdec032 Bug 1684173 - Add newline character at end of files when missing r=sylvestre
Depends on D100443

Differential Revision: https://phabricator.services.mozilla.com/D100484
2020-12-27 11:43:41 +00:00
Sonia Singla e93cdf8646 Bug 1683648 - Remove unused pluginHelp-16.png and contentPluginDisabled.png. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D100271
2020-12-21 19:25:03 +00:00
Kartik Gautam 5d5093a494 Bug 1679452 - Replace :not(X):not(Y) with :not(X, Y) r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D100147
2020-12-19 11:24:13 +00:00
Gijs Kruitbosch c99bd785b6 Bug 1546213 - fix link colours in reader mode to have more contrast, r=jaws
Differential Revision: https://phabricator.services.mozilla.com/D100142
2020-12-18 18:07:21 +00:00
Zeid Zabaneh 6dd38ea3b9 Bug 1590671 - Improve aboutNetworking styling on mobile r=ntim
- update menu to be horizontal and padded on mobile to give tables more space
- improve font size in menu and inputs
- hide title on mobile
- misc. style changes

Differential Revision: https://phabricator.services.mozilla.com/D99551
2020-12-16 20:25:55 +00:00
Kartik Gautam f7ffcd09fb Bug 1679758 - Remove trailing empty lines r=sylvestre,marionette-reviewers,jgraham
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-15 10:34:54 +00:00
Dorel Luca 7320ae982a Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
Kartik Gautam caf549c200 Bug 1679758 - Remove trailing empty lines r=sylvestre
Differential Revision: https://phabricator.services.mozilla.com/D99595
2020-12-13 13:28:30 +00:00
Toshihito Kikuchi 9ca8c4ec98 Bug 1669036 - Part10: Add a new section "Third-Party Modules" to about:support r=fluent-reviewers,jaws,Gijs
The new section is displayed when the browser.enableAboutThirdParty pref is true.

This is a prototype of the project where we plan to disclose third-party modules
info to the users.  Once we find out what is the best place and the best way to
show these data, we remove this section.

Differential Revision: https://phabricator.services.mozilla.com/D93832
2020-12-10 23:43:36 +00:00