{"action":"created","issue":{"url":"https://api.github.com/repos/edvin/tornadofx/issues/198","repository_url":"https://api.github.com/repos/edvin/tornadofx","labels_url":"https://api.github.com/repos/edvin/tornadofx/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/edvin/tornadofx/issues/198/comments","events_url":"https://api.github.com/repos/edvin/tornadofx/issues/198/events","html_url":"https://github.com/edvin/tornadofx/issues/198","id":184704470,"number":198,"title":"PseudoClass support","user":{"login":"SlickBot","id":15200731,"avatar_url":"https://avatars.githubusercontent.com/u/15200731?v=3","gravatar_id":"","url":"https://api.github.com/users/SlickBot","html_url":"https://github.com/SlickBot","followers_url":"https://api.github.com/users/SlickBot/followers","following_url":"https://api.github.com/users/SlickBot/following{/other_user}","gists_url":"https://api.github.com/users/SlickBot/gists{/gist_id}","starred_url":"https://api.github.com/users/SlickBot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlickBot/subscriptions","organizations_url":"https://api.github.com/users/SlickBot/orgs","repos_url":"https://api.github.com/users/SlickBot/repos","events_url":"https://api.github.com/users/SlickBot/events{/privacy}","received_events_url":"https://api.github.com/users/SlickBot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-23T18:00:29Z","updated_at":"2016-10-23T19:52:26Z","closed_at":null,"body":"I was talking to @t-boom about \"better\" pseudo-class support. At the moment, if you want to add it to node, you have to create `PseudoClass` instance which accepts String as argument and then call `Node.pseudoClassStateChanged()`. In my opinion this is not intuitive and is not type safe.\r\n\r\nFor example lets say we have Styles class with `val selected by csspseudoclass()`. It would be nice to have a `Node.addPseudo(Styles.selected)` and `Node.removePseudo(Styles.selected)`. Is there any chance that something like this would get implemented?"},"comment":{"url":"https://api.github.com/repos/edvin/tornadofx/issues/comments/255610107","html_url":"https://github.com/edvin/tornadofx/issues/198#issuecomment-255610107","issue_url":"https://api.github.com/repos/edvin/tornadofx/issues/198","id":255610107,"user":{"login":"edvin","id":977035,"avatar_url":"https://avatars.githubusercontent.com/u/977035?v=3","gravatar_id":"","url":"https://api.github.com/users/edvin","html_url":"https://github.com/edvin","followers_url":"https://api.github.com/users/edvin/followers","following_url":"https://api.github.com/users/edvin/following{/other_user}","gists_url":"https://api.github.com/users/edvin/gists{/gist_id}","starred_url":"https://api.github.com/users/edvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edvin/subscriptions","organizations_url":"https://api.github.com/users/edvin/orgs","repos_url":"https://api.github.com/users/edvin/repos","events_url":"https://api.github.com/users/edvin/events{/privacy}","received_events_url":"https://api.github.com/users/edvin/received_events","type":"User","site_admin":false},"created_at":"2016-10-23T19:52:26Z","updated_at":"2016-10-23T19:52:26Z","body":"Thank you for the suggestion. We could overload `Node.addClass` and `Node.removeClass` unless you feel it is good to keep the distinction in the function names?"}}
{"actor":{"display_login":"edvin"}}