Closed
Bug 1931507
Opened 1 year ago
Closed 1 year ago
Toolbox top|side border does not adapt to High Contrast Mode
Categories
(DevTools :: Framework, defect, P2)
DevTools
Framework
Tracking
(firefox134 fixed)
RESOLVED
FIXED
134 Branch
| Tracking | Status | |
|---|---|---|
| firefox134 | --- | fixed |
People
(Reporter: nchevobbe, Assigned: nchevobbe)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The border is not set in the toolbox document, but in the tab browser one, so we need to indicate to the main browser element that HCM is activated.
We already do such thing for making the browser know about devtools selected theme https://searchfox.org/mozilla-central/rev/b765e2890b0eb85b24f54bc7ff04491fd0704e30/devtools/client/framework/devtools-browser.js#138-151
/**
* This function makes sure that the "devtoolstheme" attribute is set on the
* browser window to make it possible to change colors on elements in the
* browser (like the splitter between the toolbox and web content).
*/
updateDevtoolsThemeAttribute(win) {
// Set an attribute on root element of each window to make it possible
// to change colors based on the selected devtools theme.
let devtoolsTheme = getTheme();
if (devtoolsTheme != "dark") {
devtoolsTheme = "light";
}
win.document.documentElement.setAttribute("devtoolstheme", devtoolsTheme);
},
we can probably use something similar
| Assignee | ||
Comment 1•1 year ago
|
||
Make sure the border between the content and the toolbox adapts when the toolbox
is in High Contrast Mode.
This takes inspiration from what we already do to communicate the toolbox theme
to the tab browser element so we can set the right color on the border.
Updated•1 year ago
|
Assignee: nobody → nchevobbe
Status: NEW → ASSIGNED
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c470f019b19b
[devtools] Adapt toolbox border in High Contrast Mode. r=devtools-reviewers,ochameau.
Comment 3•1 year ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
status-firefox134:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•