Nicolas Chevobbe
3a3ae50758
Bug 1915872 - [devtools] Make getColor rely on CSS variables computed values. r=devtools-reviewers,ochameau.
...
The function used to parse the variables.css file and do some regex matching
on the light/dark theme rules to extract the declaration value of a variable.
This patch makes the function simpler by getting the computed value of the
CSS variable, which automatically adapt to the current theme since we do set
`color-scheme` value properly when setting a theme.
In order for this to work properly, the variables that might be used in this
function need to be registered so the engine know they are colors.
We take this as an opportunity to rename the function to `getCssVariableColor`,
which is more explicit, and also make it take the actual CSS variable name,
and not only the suffix part that comes after `--theme-` for better grep-ability.
The test in browser_theme.js is adapted to reflect those changes.
Differential Revision: https://phabricator.services.mozilla.com/D220718
2024-09-03 15:00:54 +00:00
..
2022-11-03 16:23:03 +00:00
2024-04-23 08:43:03 +00:00
2023-05-20 12:26:49 +00:00
2024-03-04 14:16:31 +00:00
2023-05-20 12:26:49 +00:00
2024-03-28 15:15:24 +00:00
2023-05-20 12:26:49 +00:00
2023-09-14 15:06:22 +00:00
2023-05-20 12:26:49 +00:00
2024-03-05 14:21:15 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2024-03-05 14:21:15 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2022-09-30 15:17:39 +00:00
2022-09-30 15:17:39 +00:00
2024-03-05 14:21:15 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2024-04-26 09:18:12 +00:00
2024-01-26 13:12:07 +00:00
2023-05-20 12:26:49 +00:00
2024-01-26 13:12:07 +00:00
2023-05-20 12:26:49 +00:00
2023-06-19 17:18:27 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2024-01-26 13:12:07 +00:00
2024-01-26 13:12:07 +00:00
2024-01-26 13:12:07 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2024-01-26 13:12:07 +00:00
2024-01-26 13:12:07 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2024-01-26 13:12:07 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-12-04 19:27:57 +00:00
2023-12-04 19:27:57 +00:00
2023-12-04 19:27:57 +00:00
2024-08-07 14:55:23 +00:00
2024-01-26 13:12:07 +00:00
2023-11-23 11:14:51 +00:00
2024-01-26 13:12:07 +00:00
2024-01-08 16:40:44 +00:00
2024-08-06 07:43:38 +00:00
2023-05-20 12:26:49 +00:00
2024-08-21 11:39:20 +00:00
2023-05-20 12:26:49 +00:00
2024-01-26 13:12:07 +00:00
2023-05-20 12:26:49 +00:00
2024-01-26 13:12:07 +00:00
2023-05-20 12:26:49 +00:00
2023-06-19 17:18:27 +00:00
2024-09-03 13:22:14 +00:00
2022-09-30 15:17:39 +00:00
2022-09-30 15:17:39 +00:00
2024-03-28 15:15:24 +00:00
2024-03-05 14:21:15 +00:00
2024-02-19 23:30:40 +00:00
2023-05-20 12:26:49 +00:00
Bug 1875090 - Rename BrowserTestUtils.is_visible() to isVisible() r=Gijs,settings-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,translations-reviewers,sgalich,bytesized,sfoster
2024-01-19 02:15:33 +00:00
2024-03-05 14:21:15 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2024-01-26 13:12:07 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2024-06-28 15:33:56 +00:00
2024-09-03 15:00:54 +00:00
2024-03-05 14:21:15 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
Bug 1873732 - remove outdated manifest conditions and use consistent conditions. r=aryx,necko-reviewers,jgilbert,settings-reviewers,credential-management-reviewers,devtools-reviewers,sessionstore-reviewers,dom-storage-reviewers,sgalich,kershaw,nchevobbe,janv,dao
2024-01-25 00:27:05 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2023-05-20 12:26:49 +00:00
2024-03-05 14:21:15 +00:00
2024-03-05 14:21:15 +00:00
2024-03-05 14:21:15 +00:00
2024-03-05 14:21:15 +00:00
2022-11-04 11:35:28 +00:00
2022-11-04 11:35:28 +00:00
2022-11-04 11:35:28 +00:00
2023-05-20 12:26:49 +00:00
2023-07-07 15:23:10 +00:00
2024-01-26 13:12:07 +00:00
2024-03-05 14:21:15 +00:00
2023-05-20 12:26:49 +00:00
2024-08-22 14:48:07 +00:00
2023-05-20 12:26:53 +00:00
2023-05-20 12:26:49 +00:00
2023-02-14 10:34:19 +00:00