about:performance table data
8 posts
• Page 1 of 1
What stylesheet in a theme controls the colours in the data part of the table in about:performance? I cannot find a stylesheet called aboutPerformance.css, so where are these colours set up? It is not in common.css.
There is an internal style sheet within the aboutPerformance.xhtml file.
Reference http://dxr.mozilla.org/mozilla-release/source/toolkit/components/aboutperformance/content/aboutPerformance.xhtml http://dxr.mozilla.org/mozilla-release/search?q=%23subprocess-reports I see that one of these files has this line:
@import url("chrome://global/skin/in-content/common.css"); I added the variable "--aboutSupport-table-background" to global > in-content > common.css, but it did nothing. What do I have to add to a theme to get the table background to change? Failing that, how would I get the text in the table data to change colour? I don't know what file to edit in a theme. I can change the style with the userContent.css file.
If that works in userContent.css, why does it not work in common.css? The about:performance page loads common.css.
I can change the style when I add the following entry in the common.css file in the style editor in the browser toolbox.
Did you remember to purge the caches when you start up the application? http://developer.mozilla.org/en/Extensions/Updating_extensions_for_Firefox_4#Caching P.S. I can change the style when I run the following code in the scratchpad window in the browser environment. (run once to set style and run twice to reset style)
Last edited by morat on September 10th, 2018, 7:29 am, edited 1 time in total.
After I cleared the cache, the first suggestion worked. I did not have to use the style editor to add that code. All I had to do was extract common.css from the theme .xpi file, add the code to it, then put it back in. Thanks for the solution.
The second block of code produces an error: Exception: TypeError: Components.classes is undefined You're welcome.
P.S. You likely ran the code in the content environment, not the browser environment. Instructions: * set devtools.chrome.enabled preference to true * open scratchpad window * environment > browser * edit > paste * execute > run
8 posts
• Page 1 of 1
Who is onlineUsers browsing this forum: No registered users and 2 guests |
![]() |