Re: Making styles exposed though getMatchedStylesForNode command editable

17 views
Skip to first unread message
Message has been deleted

Hadley Wickham

unread,
Feb 24, 2017, 12:48:39 PM2/24/17
to Emil Sjölander, devtools
I think you posed this to the wrong mailing list.
Hadley

On Fri, Feb 24, 2017 at 4:35 AM, Emil Sjölander
<sjoland...@gmail.com> wrote:
> Hi, I'm currently working on improvements to the android debugging tool
> stetho (https://github.com/facebook/stetho) and have been trying to make
> styles exposed by the android application editable. I have tried with both
> getMatchedStylesForNode and getInlineStylesForNode but I am not able to make
> any of the styles editable, they instead show up grayed out. Inspecting the
> inspector shows they have the `read-only` css class applied to them. I tried
> greping the javascript for devtools for this class but was unable to find
> any clear way to control this via the devtools RPC api defined in
> protocol.json. This may be an issue with stetho using an old version of the
> protocol but I'm not convinced about that because looking at the new version
> I don't see anything which I am hopeful would allow what I want. I also
> tried dynamically creating a stylesheet and then associating the matched
> styles of a node with that stylesheet. The idea was that maybe a style needs
> a backing stylesheet to be editable. This didn't work however I didn't
> explore this very thoroughly so happy to try again if you think this is the
> reason none of the styles are editable.
>
> --
> You received this message because you are subscribed to the Google Groups
> "devtools" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rdevtools+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
http://hadley.nz
Reply all
Reply to author
Forward
0 new messages