{"action":"created","issue":{"url":"https://api.github.com/repos/JasonBarnabe/stylish-chrome/issues/103","labels_url":"https://api.github.com/repos/JasonBarnabe/stylish-chrome/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/JasonBarnabe/stylish-chrome/issues/103/comments","events_url":"https://api.github.com/repos/JasonBarnabe/stylish-chrome/issues/103/events","html_url":"https://github.com/JasonBarnabe/stylish-chrome/pull/103","id":70178265,"number":103,"title":"Editor: option to select CodeMirror CSS theme","user":{"login":"tophf","id":1310400,"avatar_url":"https://avatars.githubusercontent.com/u/1310400?v=3","gravatar_id":"","url":"https://api.github.com/users/tophf","html_url":"https://github.com/tophf","followers_url":"https://api.github.com/users/tophf/followers","following_url":"https://api.github.com/users/tophf/following{/other_user}","gists_url":"https://api.github.com/users/tophf/gists{/gist_id}","starred_url":"https://api.github.com/users/tophf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tophf/subscriptions","organizations_url":"https://api.github.com/users/tophf/orgs","repos_url":"https://api.github.com/users/tophf/repos","events_url":"https://api.github.com/users/tophf/events{/privacy}","received_events_url":"https://api.github.com/users/tophf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-22T16:48:06Z","updated_at":"2015-05-05T08:43:35Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JasonBarnabe/stylish-chrome/pulls/103","html_url":"https://github.com/JasonBarnabe/stylish-chrome/pull/103","diff_url":"https://github.com/JasonBarnabe/stylish-chrome/pull/103.diff","patch_url":"https://github.com/JasonBarnabe/stylish-chrome/pull/103.patch"},"body":"~~Uses [getPackageDirectoryEntry](https://developer.chrome.com/extensions/runtime#method-getPackageDirectoryEntry) to populate the list of available CSS themes.~~ \r\n\r\nCurrently Stylish is shipped with 34 themes in addition to a built-in \"default\": 3024-day, 3024-night, ambiance, ambiance-mobile, base16-dark, base16-light, blackboard, cobalt, colorforth, eclipse, elegant, erlang-dark, lesser-dark, liquibyte, mbo, mdn-like, midnight, monokai, neat, neo, night, paraiso-dark, paraiso-light, pastel-on-dark, rubyblue, solarized, the-matrix, tomorrow-night-bright, tomorrow-night-eighties, twilight, vibrant-ink, xq-dark, xq-light, zenburn.\r\n\r\nA non-elegant timer-based CodeMirror refresh is used because some themes (rubyblue and a few others) have a small issue immediately upon selection: part of the gutter overlaps the text. A straightforward `cm.refresh()` isn't enough, unfortunately.\r\n\r\n~~P.S. `Default` (the first list item) isn't translated. I'll do it later when PR #94 is handled. On the other hand we can avoid localizing it by renaming to `[CodeMirror]`.~~"},"comment":{"url":"https://api.github.com/repos/JasonBarnabe/stylish-chrome/issues/comments/98996003","html_url":"https://github.com/JasonBarnabe/stylish-chrome/pull/103#issuecomment-98996003","issue_url":"https://api.github.com/repos/JasonBarnabe/stylish-chrome/issues/103","id":98996003,"user":{"login":"tophf","id":1310400,"avatar_url":"https://avatars.githubusercontent.com/u/1310400?v=3","gravatar_id":"","url":"https://api.github.com/users/tophf","html_url":"https://github.com/tophf","followers_url":"https://api.github.com/users/tophf/followers","following_url":"https://api.github.com/users/tophf/following{/other_user}","gists_url":"https://api.github.com/users/tophf/gists{/gist_id}","starred_url":"https://api.github.com/users/tophf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tophf/subscriptions","organizations_url":"https://api.github.com/users/tophf/orgs","repos_url":"https://api.github.com/users/tophf/repos","events_url":"https://api.github.com/users/tophf/events{/privacy}","received_events_url":"https://api.github.com/users/tophf/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T08:43:35Z","updated_at":"2015-05-05T08:43:35Z","body":"* removed getPackageDirectoryEntry enumeration, it's too slow, the theme control flickers, especially with userstyles that display options block horizontally in narrow windows.\r\n* fully eliminated keymap & theme controls flicker on page load (as I see it here) by moving `<script src=\"edit.js\"></script>` into HEAD"}}