Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change text color in the Network -> Preview tab #154

Open
xnf opened this issue Jan 7, 2016 · 17 comments
Open

Change text color in the Network -> Preview tab #154

xnf opened this issue Jan 7, 2016 · 17 comments

Comments

@xnf
Copy link

xnf commented Jan 7, 2016

Hi. Thanks for the theme. Superb theme, but can You also apply light colour to the Network -> Preview tab? For JSON previews its fine, but for normal text it is still black (as default-browser-text-colour-black).I attach a screenshot of what i mean.
Can you please apply same default text colour for the Preview as it is in the Network -> Response tab?
black preview tab

@mestrini
Copy link

mestrini commented Jul 6, 2016

I'm having the same problem with the preview tab colors for sharepoint CAML soap responses.
Any development for this issue?

tx

preview_pane

@mauricecruz
Copy link
Owner

@mestrini Do you have any public sources where I can get this response. Want to see why devtools isn't picking up the theme colors.

If not, can you paste the markup of this tab (the actual devtools markup) so I can paste it in my editor

@mestrini
Copy link

@mauricecruz

If not, can you paste the markup of this tab (the actual devtools markup) so I can paste it in my editor

Please show me how to get the markup

@mauricecruz
Copy link
Owner

@mestrini - this should help you out - http://stackoverflow.com/a/12291163/1876861

@mestrini
Copy link

Thank you for the link. Didn't know one could inspect the inspector.
Had a hard time doing it since I had a running application capturing the Ctrl+Shift+I combination and the second inspector would never come up since there is no context-menu either.

Anyways... Here's the file with the complete markup. Good luck with it :)

Cheers

dev-tools_markup.txt

@ragnaro89
Copy link

Any updates on this ?

@mauricecruz
Copy link
Owner

I tried injecting the markup text but it's missing the actual preview tab markup. It's just the network shell.

If you can get me the injected markup OR setup a jsfiddle that sends a mock caml response, I can see what's going on.

@mauricecruz
Copy link
Owner

@mestrini @ragnaro89 - I'd like to support this but I'll need a little help in generating that response in devtools.

Please let me know if you can setup an example I can check.

@sajjansarkar
Copy link

I get the same bevavior and would love to see it fixed as this is my only gripe with this awesome extension.. it doesnt work (renders in black font color) with a simple text response..

@mauricecruz
Copy link
Owner

@sajjansarkar - Thanks for reporting. Would you be able to help by drafting up a dummy response that I can hit so I can see the generated response? I don't work much with soap responses and would rather not spend time scouring the internet for examples.

@sajjansarkar
Copy link

sajjansarkar commented Jun 19, 2017

@mauricecruz sure, the W3Schools example is a candidate.

https://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_ajax_ajax

image

@innovaweb-dev
Copy link

innovaweb-dev commented Jun 20, 2017

Hi all and thank for your help.
I have same problem with in the preview of network tab.

@mestrini - this should help you out - http://stackoverflow.com/a/12291163/1876861

I can edit the background-color in the file NetworkPanel.css, but i can't save this update.
.request-view.html iframe { background-color: lightgreen !important; }
When i quit the devTools, the background return to black color.

Thank you,

@mauricecruz
Copy link
Owner

@sajjansarkar - I took a look at example you provided. In that particular case, I don't think I can do anything because the markup is rendered inside an iframe.

@mestrini / @rifton007 - if you have examples where the markup is styled, but in the wrong colors, please let me know.

image

@sajjansarkar
Copy link

sajjansarkar commented Jun 29, 2017

@mauricecruz I am not understanding what kind of example you're looking for? I thought you wanted an example of an AJAX response returning plain text.. And that was it.. not sure what it being in an iframe has to do with it.. If you can let me know what type of example you're looking for maybe I can find something public

how about this one? This is not in an iframe : https://www.tutorialspoint.com//jquery/src/loading-simple-data.htm

image

@mauricecruz
Copy link
Owner

@sajjansarkar thank you for providing another example.

To clarify, I wanted to determine if the preview pane had markup/classes I could use as hooks for styling. It looks like all content is loading inside an iframe. I can't modify any markup inside an iframe because the injected css only exists in the parent.

The current chrome api doesn't allow me to execute any javascript to inject any styles inside the iframe.

If it's the case that all content inside the preview pane is loading in an iframe, I don't think I can do anything about it.

@sajjansarkar
Copy link

@mauricecruz ah ok.. got it.. how are you setting the bgcoolor of the preview pane to darkgrey though?
maybe if the response is plaintext , we could leave it white?

@innovaweb-dev
Copy link

innovaweb-dev commented Jul 1, 2017

@mauricecruz, here is a example:

snap

Thank you,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants