Commit graph

1947 commits

Author SHA1 Message Date
Emilio Cobos Álvarez
5929216f79 Bug 1789892 - Simplify statuspanel a bit. r=dao
I'm a bit baffled about bug 1789877. My best theory so far is that we're
inserting the element a bit deeper in the DOM and that causes us to
reflow slightly more stuff when tab-switching, but...

In any case while going through the code the status panel can be
simplified a bit now, so do that.

Differential Revision: https://phabricator.services.mozilla.com/D156876
2022-09-09 19:36:21 +00:00
Itiel
51b36da0d5 Bug 1788516 - Lower the list items height in about:downloads r=dao
Differential Revision: https://phabricator.services.mozilla.com/D156366
2022-09-09 15:07:30 +00:00
Emilio Cobos Álvarez
13572bce66 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 20:26:29 +00:00
Butkovits Atila
c520b707bd Backed out changeset 368a7ce1b104 (bug 1788273) for causing failures at browser_recently_closed_tabs.js. CLOSED TREE 2022-09-02 16:35:55 +03:00
Emilio Cobos Álvarez
0777329f69 Bug 1788273 - Tweak popup alignment so that it looks good on mirrored wayland popups. r=dao,mak
When these panels had arrows, I guess the bottomcenter topleft alignment
made sense so that you could precisely align the arrow, but that's not
what we do now.

Don't use bottomcenter / leftcenter / rightcenter, since we really want
the sides to align.

This shouldn't change behavior on any platform except Linux + Wayland,
where the alignment looks good now in the case of bug 1784876.

Differential Revision: https://phabricator.services.mozilla.com/D156099
2022-09-02 11:18:54 +00:00
Emilio Cobos Álvarez
6e336b34d6 Bug 1782638 - Simplify styling of bookmarks toolbar submenus. r=mak
Also, align them properly.

The issue is that we inherit the region margin introduced in bug 1772507, but
we were styling the panel in a way that causes the region to not match the
shadow size.

Simplify a bit the styling so that all the margins add up.

For uplift it'd be simpler to just set the new property to zero, I'll prepare a
patch for that. That would cause the shadows to count as popup contents, but
that's the pre-103 behavior which seems fine.

Differential Revision: https://phabricator.services.mozilla.com/D153856
2022-08-10 13:10:26 +00:00
Hiroyuki Ikezoe
74df765210 Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster
Both Chrome and Edge on Windows also move the swipe-to-nav arrow icon, the
distance of move seems to be a fixed value, it doesn't depend on the browser
window size. So we also use a fixed value, 100px here.

Chrome on Mac also moves the icon, but in a slightly different way. The icon is
a semicircle shape, it never leaves the edge of the browser window even if it's
moving during swipe gestures. So we introduce a new preference named
"browser.swipe.navigation-icon-move-distance" to implement platform dependent
swipe-to-nav icon behaviors. As of now the value on platforms other than Windows
is zero so that the icon never moves on the platforms.

Depends on D152951

Differential Revision: https://phabricator.services.mozilla.com/D150433
2022-08-02 23:08:46 +00:00
Norisz Fay
17e1015627 Backed out 2 changesets (bug 1776795) for causing bc failures on browser_test_swipe_gesture.js CLOSED TREE
Backed out changeset 7bed4509ae7c (bug 1776795)
Backed out changeset 344336b54939 (bug 1776795)
2022-08-02 10:48:53 +03:00
Hiroyuki Ikezoe
0cc2a4681a Bug 1776795 - Move the swipe-to-nav icon in response to the swipe gestures on Windows. r=tnikkel,desktop-theme-reviewers,sfoster
Both Chrome and Edge on Windows also move the swipe-to-nav arrow icon, the
distance of move seems to be a fixed value, it doesn't depend on the browser
window size. So we also use a fixed value, 100px here.

Chrome on Mac also moves the icon, but in a slightly different way. The icon is
a semicircle shape, it never leaves the edge of the browser window even if it's
moving during swipe gestures. So we introduce a new preference named
"browser.swipe.navigation-icon-move-distance" to implement platform dependent
swipe-to-nav icon behaviors. As of now the value on platforms other than Windows
is zero so that the icon never moves on the platforms.

Differential Revision: https://phabricator.services.mozilla.com/D150433
2022-08-02 06:49:55 +00:00
Niklas Baumgardner
9e4f9f010b Bug 1774397 - Add notification dot to Firefox View button. r=Gijs,sfoster,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D151401
2022-08-01 15:19:58 +00:00
Cristian Tuns
2ddce1607e Backed out changeset f31065f9f9f0 (bug 1774397) for causing failures on browser_setup_state.js. CLOSED TREE 2022-08-01 11:06:31 -04:00
Niklas Baumgardner
23e86cad1f Bug 1774397 - Add notification dot to Firefox View button. r=Gijs,sfoster,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D151401
2022-08-01 14:00:16 +00:00
Butkovits Atila
9737f1fdf2 Backed out changeset 698658fc606b (bug 1774397) for causing multiple mochitest failures. CLOSED TREE 2022-07-29 17:19:40 +03:00
Niklas Baumgardner
7725b67743 Bug 1774397 - Add notification dot to Firefox View button. r=Gijs,sfoster,desktop-theme-reviewers,dao
Differential Revision: https://phabricator.services.mozilla.com/D151401
2022-07-29 12:56:45 +00:00
Emilio Cobos Álvarez
4c5f20179e Bug 1775247 - Implement AccentColor/AccentColorText and remove -moz-prefixed version of the color. r=mstange
As per https://github.com/w3c/csswg-drafts/issues/7347.

Mostly renaming, doesn't change behavior other than exposing the new
color keywords (tested in wpt).

Differential Revision: https://phabricator.services.mozilla.com/D149876
2022-06-22 09:45:06 +00:00
Emilio Cobos Álvarez
7d8144c871 Bug 1757506 - Restore selected tab background image. r=dao
This is closer to what the standard lwt dark mode does, and seems fair
enough. I don't mind much either way so if you feel strongly about it
lmk.

Differential Revision: https://phabricator.services.mozilla.com/D139931
2022-04-06 12:54:42 +00:00
Sam Foster
867dc97d28 Bug 1760175 - Avoid loading contextmenu.css for MacOS. r=dao
* Restore the exclusion of the context menu styling for MacOS in the manifest and the shared browser styles

Differential Revision: https://phabricator.services.mozilla.com/D141523
2022-03-21 21:59:01 +00:00
Sam Foster
137f8ac65e Bug 1753767 - use @import instead of %include-ing stylesheets in browser/themes. r=dao
* @import rather than %include stylesheets in each platform's browser.css
* Remove the inc.css suffix for @imported files
* browser.inc.css becomes browser-shared.css
* Move shared @imports to browser-shared.css
* panelUI.inc.css becomes panelUI-shared.css
* download/indicator.inc.css becomes download/indicator.css and is @import-ed.
* addons/extension-controlled.inc.css becomes addons/extension-controlled.css and is @import-ed
* places/places-tooltip.inc.css becomes places/places-tooltip.css and is @import-ed
* urlbar/dynamicResults.inc.css becomes urlbar-dynamic-results.css and is @import-ed from urlbarView.css

* Remove preprocessing flags from css resources in jar.inc.mn that no longer contain any preprocessor directives

Differential Revision: https://phabricator.services.mozilla.com/D140275
2022-03-16 18:57:18 +00:00
Bernard Igiri
7364cd035a Bug 1753760 - Remove preprocessor includes from sidebar r=dao
Replaced preprocessor includes with media queries for syncedtabs/sidebar and places/sidebar

Differential Revision: https://phabricator.services.mozilla.com/D139990
2022-03-14 15:22:51 +00:00
Bernard Igiri
6719020863 Bug 1753761 - Remove preprocessor includes from compact theme stylesheets r=dao
Replaced preprocessor includes with platform media queries.

Differential Revision: https://phabricator.services.mozilla.com/D140052
2022-03-11 13:34:48 +00:00
Dão Gottwald
1437e0d386 Bug 1758166 - Use --focus-outline instead of --deafult-focusring for XUL <radio> and <checkbox>. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D140383
2022-03-05 23:00:26 +00:00
Bernard Igiri
4542096243 Bug 1753762 - Remove preprocessor includes from WebRTC Indicator stylesheets r=dao
Replaced preprocessor includes with platform media queries.

Differential Revision: https://phabricator.services.mozilla.com/D140070
2022-03-04 19:41:14 +00:00
Bernard Igiri
acfbdde990 Bug 1753765 - Remove preprocessor includes from Customizeable PanelUI r=dao
- Replaced preprocessor includes with CSS imports
- Replaced preprocessor conditionals with CSS media queries

Differential Revision: https://phabricator.services.mozilla.com/D139727
2022-03-03 18:38:18 +00:00
Dão Gottwald
95b15421a5 Bug 1756113 - Bring focus styling in the download panel in line with other panels. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D139323
2022-03-01 15:15:29 +00:00
Bernard Igiri
4069767dae Bug 1753757 - Eliminate preprocessor %includes from Downloads stylesheets r=dao
- Replaced preprocessor includes with css imports.
- Removed preprocessor conditionals from allDownloadsView.inc.css.

Differential Revision: https://phabricator.services.mozilla.com/D139404
2022-02-28 20:34:33 +00:00
Marian-Vasile Laza
e436a73a6d Backed out changeset c83c8662c973 (bug 1753765) for causing bc failures on browser_parsable_css.js. CLOSED TREE 2022-02-28 11:38:27 -08:00
Bernard Igiri
fa86809599 Bug 1753765 - Remove preprocessor includes from Customizeable PanelUI r=dao
Replaced preprocessor includes with CSS imports

Differential Revision: https://phabricator.services.mozilla.com/D139727
2022-02-28 18:49:26 +00:00
Emilio Cobos Álvarez
58cd397f91 Bug 1741293 - Make Linux native theme toolbar bgimage a bit less opaque. r=dao
On light themes this is basically indiscernible (afaict). On dark themes
this keeps looking good, but it increases the contrast with the accent
color, which in the case of Adwaita-dark is well, pretty dark.

Differential Revision: https://phabricator.services.mozilla.com/D139708
2022-02-25 16:53:13 +00:00
Sam Foster
16f27626b8 Bug 1753764 - Fold platform-specific rules into a shared searchbar.css r=dao
* The menuitem[cmd="cmd_clearhistory"] rules in the linux stylesheet were orphaned by 5d6c747a780c (Bug 1582639) and missed in clean-up.
* Alphabetize the shared manifest files entries.

Differential Revision: https://phabricator.services.mozilla.com/D139552
2022-02-24 20:14:17 +00:00
Noemi Erli
acd7f6ab67 Backed out changeset 711b10dbdc64 (bug 1753764) for causing build bustages in checkbox.inc.css CLOSED TREE 2022-02-24 21:38:46 +02:00
Sam Foster
1d063566a2 Bug 1753764 - Fold platform-specific rules into a shared searchbar.css r=dao
* The menuitem[cmd="cmd_clearhistory"] rules in the linux stylesheet were orphaned by 5d6c747a780c (Bug 1582639) and missed in clean-up.
* Alphabetize the shared manifest files entries.

Differential Revision: https://phabricator.services.mozilla.com/D139552
2022-02-24 18:40:09 +00:00
Gijs Kruitbosch
d0146c30c7 Bug 1694546 - fix bookmark toolbar draggability on Linux, r=dao
I came across this again when trying to address bug 1756676 and figured
I would just address this bug immediately per our previous discussion
on the bug.

Differential Revision: https://phabricator.services.mozilla.com/D139421
2022-02-22 20:47:39 +00:00
Sam Foster
88cb229a60 Bug 1753759 - Eliminate the preprocessor %includes from the preferences CSS. r=dao,preferences-reviewers,mstriemer
* Inline the platform specific rules in a single preferences/dialog.css.
* Inline the platform specific rules in a single preferences/preferences.css.
  Note that the linux and windows .actionButtons margins were not in use - the margins from dialog.css were applied and are correct as-is so this override was removed.
* @import rather than %include the usercontext.css in the containers preferences UI

Differential Revision: https://phabricator.services.mozilla.com/D138979
2022-02-22 17:13:01 +00:00
Sam Foster
00392b7cce Bug 1753763 - Combine the platform-specific CSS for the controlcenter panel into a single panel.css r=dao
* Rename the shared panel.inc.css to panel.css - making it replace the platform-specific sheet we load at chrome://browser/skin/controlcenter/panel.css
* Linux and Windows stylesheets had duplicated overrides, those are inlined into panel.css at the appropriate spot
* MacOS overrides are placed in context using a @media query.
* Remove the old windows/linux/osx CSS files.

Differential Revision: https://phabricator.services.mozilla.com/D137924
2022-02-16 23:58:17 +00:00
Dão Gottwald
ad576fd69d Bug 1755184 - Remove macOS-specific --focus-ring-box-shadow. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D138624
2022-02-15 11:13:57 +00:00
Dão Gottwald
da8c281be5 Bug 1755023 - Set --focus-outline in toolkit with -moz-accent-color as the default color. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D138547
2022-02-12 19:54:58 +00:00
amy churchwell
3b43d19db5 Bug 1747459 - Remove preprocessor use for license headers from CSS files. r=sfoster,preferences-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D137555
2022-02-08 00:06:04 +00:00
Dão Gottwald
0cd6159fd9 Bug 1749948 - Make focus rings in panels more consistent. r=Itiel
Differential Revision: https://phabricator.services.mozilla.com/D135834
2022-01-25 17:14:37 +00:00
Dão Gottwald
e357b787f7 Bug 1751243 - Let the status panel use -moz-content-prefers-color-scheme. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D136509
2022-01-22 10:44:29 +00:00
Sam Foster
0cb3076241 Bug 1747422 - flatten out the preprocessor vars in downloads CSS. r=dao
* I've simply expanded/inlined the vars here. They did serve some function in making some selectors a bit more compact, but the result doesn't seem onerous to me. I.e. I think Gijs' concern in the description of this bug isn't warranted in this case.
* More importantly, the @item@ variable included the id of the list container, which used to differ between the download panel and the content/all-downloads view (about:downloads and the library/places view). With that distinction removed in the previous patch, we get straightforward reuse via includes. Figuring out how to get rid of the %includes is bug 1659584.
* Simplify some affected selectors to use :is()
* Use focus-visible rather than -moz-focusring in the windows downloads stylesheet

Differential Revision: https://phabricator.services.mozilla.com/D135401
2022-01-16 11:20:31 +00:00
Dão Gottwald
6997153530 Bug 1747715 - Make dotted focus rings 2px wide in high contrast mode. r=harry,desktop-theme-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D134712
2021-12-28 17:21:21 +00:00
Katherine Patenio
473da19fca Bug 1743226 - improve downloads user experience r=mhowell,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D133805
2021-12-21 16:58:35 +00:00
Emilio Cobos Álvarez
e9852d7f12 Bug 1745189 - Fix Linux auto-hidden menubar height. r=dao,desktop-theme-reviewers,stransky
I just noticed it was broken and buttons appeared to jump, since tabs
now have a little bit of margin.

Differential Revision: https://phabricator.services.mozilla.com/D133400
2021-12-16 17:07:26 +00:00
Emilio Cobos Álvarez
b4eb3f9643 Bug 1745894 - Don't draw window decorations when painting headerbar on wayland. r=stransky
This is a better fix for the double decorations than clipping them using
CSS.

Differential Revision: https://phabricator.services.mozilla.com/D133871
2021-12-15 13:12:01 +00:00
Emilio Cobos Álvarez
483e0c4e55 Bug 1745419 - Apply CSD radius to backdrops as well. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D133481
2021-12-13 17:07:21 +00:00
Emilio Cobos Álvarez
2abc89c41e Bug 1509931 - Use titlebar radius on Linux and make titlebar set-up work for lightweight themes. r=stransky,dao
To do this, we always draw the native titlebar behind the toolbox, and
then make the toolbox adapt to it by using the titlebar radius. This
makes us preserve the shadow properly.

On Wayland we'd double-draw the shadow (see bug 1509931 comment 4) so
this fixes it by trimming it as well using border-radius.

Differential Revision: https://phabricator.services.mozilla.com/D128681
2021-12-01 18:15:12 +00:00
Emilio Cobos Álvarez
4354146592 Bug 1432090 - Honor GTK button layout. r=stransky,desktop-theme-reviewers,dao
This is based off work by smurfd. But this patch doesn't support buttons
both at the left and right, which simplifies a lot the implementation.

Also, clean-up the existing env variables while at it.

Co-authored-by: Nicklas Boman <smurfd@gmail.com>

Differential Revision: https://phabricator.services.mozilla.com/D132073
2021-11-26 11:37:52 +00:00
Emilio Cobos Álvarez
6a990fe849 Bug 1718846 - Draw our own titlebar buttons when using lightweight themes. r=dao
Co-authored-by: Bernard Igiri <bigiri@mozilla.com>

Differential Revision: https://phabricator.services.mozilla.com/D129400
2021-11-25 14:56:15 +00:00
lamoure6
3478e8ae47 Bug 1719938 - Removed remaining (non-negated) -moz-proton media queries. r=mhowell,mtigley,emilio
Differential Revision: https://phabricator.services.mozilla.com/D125328
2021-11-22 22:10:33 +00:00
Dão Gottwald
5dbdec13b6 Bug 1740788 - Set background-origin on the selected tab's background, clean up how we set the border, and make the box-shadow full black so it works correctly on different backgrounds. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D131504
2021-11-19 19:55:20 +00:00