{"action":"opened","issue":{"url":"https://api.github.com/repos/omz/Pythonista-Issues/issues/127","repository_url":"https://api.github.com/repos/omz/Pythonista-Issues","labels_url":"https://api.github.com/repos/omz/Pythonista-Issues/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/omz/Pythonista-Issues/issues/127/comments","events_url":"https://api.github.com/repos/omz/Pythonista-Issues/issues/127/events","html_url":"https://github.com/omz/Pythonista-Issues/issues/127","id":168119967,"number":127,"title":"Editor.present_themed > should also check for user's custom themes","user":{"login":"danrcook","id":12954427,"avatar_url":"https://avatars.githubusercontent.com/u/12954427?v=3","gravatar_id":"","url":"https://api.github.com/users/danrcook","html_url":"https://github.com/danrcook","followers_url":"https://api.github.com/users/danrcook/followers","following_url":"https://api.github.com/users/danrcook/following{/other_user}","gists_url":"https://api.github.com/users/danrcook/gists{/gist_id}","starred_url":"https://api.github.com/users/danrcook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrcook/subscriptions","organizations_url":"https://api.github.com/users/danrcook/orgs","repos_url":"https://api.github.com/users/danrcook/repos","events_url":"https://api.github.com/users/danrcook/events{/privacy}","received_events_url":"https://api.github.com/users/danrcook/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-28T15:08:32Z","updated_at":"2016-07-28T15:08:32Z","closed_at":null,"body":"This only checks the Themes2 directory for themes (maybe there's a reason that you have it that way @omz... I'm not sure), but it would be nice if it could load someone's custom theme as well.\r\n\r\n```\r\n>>> editor.get_theme_dict()['name']\r\n'mytest'\r\n>>> import ui\r\n>>> import editor\r\n>>> v = ui.View()\r\n>>> editor.present_themed(v, theme_name=editor.get_theme_dict()['name'])\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/var/containers/Bundle/Application/BFFB50DA-BF68-427B-A5E1-2DA994A786BA/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/editor.py\", line 197, in present_themed\r\n    apply_ui_theme(v, theme_name)\r\n  File \"/var/containers/Bundle/Application/BFFB50DA-BF68-427B-A5E1-2DA994A786BA/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/editor.py\", line 176, in apply_ui_theme\r\n    t = get_theme_dict(theme_name)\r\n  File \"/var/containers/Bundle/Application/BFFB50DA-BF68-427B-A5E1-2DA994A786BA/Pythonista3.app/Frameworks/PythonistaKit3.framework/pylib/site-packages/editor.py\", line 163, in get_theme_dict\r\n    with open(theme_path, 'r') as f:\r\nFileNotFoundError: [Errno 2] No such file or directory: '/var/containers/Bundle/Application/BFFB50DA-BF68-427B-A5E1-2DA994A786BA/Pythonista3.app/Themes2/mytest.json'\r\n```"}}
{"actor":{"display_login":"danrcook"}}