{"action":"created","issue":{"url":"https://api.github.com/repos/AmmyUI/AmmyUI/issues/23","repository_url":"https://api.github.com/repos/AmmyUI/AmmyUI","labels_url":"https://api.github.com/repos/AmmyUI/AmmyUI/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/AmmyUI/AmmyUI/issues/23/comments","events_url":"https://api.github.com/repos/AmmyUI/AmmyUI/issues/23/events","html_url":"https://github.com/AmmyUI/AmmyUI/issues/23","id":203035105,"number":23,"title":"Lightweight style & style setters definitions","user":{"login":"aienabled","id":865384,"avatar_url":"https://avatars2.githubusercontent.com/u/865384?v=3","gravatar_id":"","url":"https://api.github.com/users/aienabled","html_url":"https://github.com/aienabled","followers_url":"https://api.github.com/users/aienabled/followers","following_url":"https://api.github.com/users/aienabled/following{/other_user}","gists_url":"https://api.github.com/users/aienabled/gists{/gist_id}","starred_url":"https://api.github.com/users/aienabled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aienabled/subscriptions","organizations_url":"https://api.github.com/users/aienabled/orgs","repos_url":"https://api.github.com/users/aienabled/repos","events_url":"https://api.github.com/users/aienabled/events{/privacy}","received_events_url":"https://api.github.com/users/aienabled/received_events","type":"User","site_admin":false},"labels":[{"id":504912785,"url":"https://api.github.com/repos/AmmyUI/AmmyUI/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":30,"created_at":"2017-01-25T07:56:28Z","updated_at":"2017-05-15T15:10:44Z","closed_at":null,"body":"Hi!\r\n\r\nCurrently style setters definition is not much differ from how it's done in XAML and personally I would like to see some improvements to make they as lightweight as possible!\r\n\r\n```\r\nStyle {\r\n    TargetType: TextBlock,\r\n    Setter { Property: \"Foreground\", Value: Blue }\r\n }\r\n```\r\n\r\nI would to have something like that:\r\n(with inline value)\r\n```\r\nStyle for TextBlock {\r\n   set Foreground: Blue\r\n}\r\n```\r\n(please note ```Style for```!)\r\n\r\n\r\n(with value in nested element, i.e. <Setter.Value>...</Setter.Value>)\r\n```\r\nStyle for TextBlock {\r\n   set Foreground { Blue } \r\n}\r\n```\r\n\r\n(and more complex case)\r\n```\r\nStyle for TextBlock {\r\n   set Foreground {\r\n       SolidColorBrush { Color: Blue } \r\n   }\r\n}\r\n```\r\n\r\nIt should also still support Key (as already implemented): \r\n```\r\nStyle for TextBlock Key=\"SomeStyleName\" {\r\n   set Foreground { Blue } \r\n}\r\n```\r\n\r\nand XAML type name:\r\n```\r\nStyle for {x:Type TextBlock} Key=\"SomeStyleName\" {\r\n   set Foreground { Blue } \r\n}\r\n```\r\n\r\nBut I really would like to omit ```Key=``` as it practically useless:\r\n```\r\nStyle for TextBlock \"SomeStyleName\" {\r\n   set Foreground { Blue } \r\n}\r\n```\r\n(so format for style definition is ```Style for {TargetType} {Key}```!)\r\n\r\nThat's will be fantastic!\r\n\r\nRegards!"},"comment":{"url":"https://api.github.com/repos/AmmyUI/AmmyUI/issues/comments/301505311","html_url":"https://github.com/AmmyUI/AmmyUI/issues/23#issuecomment-301505311","issue_url":"https://api.github.com/repos/AmmyUI/AmmyUI/issues/23","id":301505311,"user":{"login":"ionoy","id":592624,"avatar_url":"https://avatars3.githubusercontent.com/u/592624?v=3","gravatar_id":"","url":"https://api.github.com/users/ionoy","html_url":"https://github.com/ionoy","followers_url":"https://api.github.com/users/ionoy/followers","following_url":"https://api.github.com/users/ionoy/following{/other_user}","gists_url":"https://api.github.com/users/ionoy/gists{/gist_id}","starred_url":"https://api.github.com/users/ionoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ionoy/subscriptions","organizations_url":"https://api.github.com/users/ionoy/orgs","repos_url":"https://api.github.com/users/ionoy/repos","events_url":"https://api.github.com/users/ionoy/events{/privacy}","received_events_url":"https://api.github.com/users/ionoy/received_events","type":"User","site_admin":false},"created_at":"2017-05-15T15:10:44Z","updated_at":"2017-05-15T15:10:44Z","body":"First of all, this is a big off-topic for this issue. Secondly, I don't think that using abbreviations instead of full keywords will make code more readable. Yes, `resource` is on of the longer ones, but it reads very well, and not really hard to write. I also don't want to introduce our own syntax extensions to Ammy. There were originally needed as crutches for XAML, since XML is not very expressive language and wasn't meant for every situation.\r\nIf you want to continue this discussion, lets move to gitter. I don't want to clutter this issue even further."}}
{"actor":{"display_login":"ionoy"}}