{"action":"created","issue":{"url":"https://api.github.com/repos/emadalam/atvjs/issues/47","repository_url":"https://api.github.com/repos/emadalam/atvjs","labels_url":"https://api.github.com/repos/emadalam/atvjs/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/emadalam/atvjs/issues/47/comments","events_url":"https://api.github.com/repos/emadalam/atvjs/issues/47/events","html_url":"https://github.com/emadalam/atvjs/issues/47","id":380122791,"node_id":"MDU6SXNzdWUzODAxMjI3OTE=","number":47,"title":"Dark loading indicator page","user":{"login":"quochuy","id":310654,"node_id":"MDQ6VXNlcjMxMDY1NA==","avatar_url":"https://avatars2.githubusercontent.com/u/310654?v=4","gravatar_id":"","url":"https://api.github.com/users/quochuy","html_url":"https://github.com/quochuy","followers_url":"https://api.github.com/users/quochuy/followers","following_url":"https://api.github.com/users/quochuy/following{/other_user}","gists_url":"https://api.github.com/users/quochuy/gists{/gist_id}","starred_url":"https://api.github.com/users/quochuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/quochuy/subscriptions","organizations_url":"https://api.github.com/users/quochuy/orgs","repos_url":"https://api.github.com/users/quochuy/repos","events_url":"https://api.github.com/users/quochuy/events{/privacy}","received_events_url":"https://api.github.com/users/quochuy/received_events","type":"User","site_admin":false},"labels":[{"id":315600405,"node_id":"MDU6TGFiZWwzMTU2MDA0MDU=","url":"https://api.github.com/repos/emadalam/atvjs/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-13T09:04:39Z","updated_at":"2018-11-13T19:46:10Z","closed_at":null,"author_association":"NONE","body":"I have an app that uses a MenuBar template with items set with reloadOnSelect.\r\nEvery time I change view it reloads the content from an API and the loading indicator shows up. Each view has a dark theme but when the loading indicator shows, the background is bright. \r\n\r\nIs it possible to set a dark background when the loader shows?\r\n\r\nI thought of setting a class to the <menuBarTemplate> element and use CSS but it does not work either."},"comment":{"url":"https://api.github.com/repos/emadalam/atvjs/issues/comments/438410454","html_url":"https://github.com/emadalam/atvjs/issues/47#issuecomment-438410454","issue_url":"https://api.github.com/repos/emadalam/atvjs/issues/47","id":438410454,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODQxMDQ1NA==","user":{"login":"emadalam","id":1067689,"node_id":"MDQ6VXNlcjEwNjc2ODk=","avatar_url":"https://avatars2.githubusercontent.com/u/1067689?v=4","gravatar_id":"","url":"https://api.github.com/users/emadalam","html_url":"https://github.com/emadalam","followers_url":"https://api.github.com/users/emadalam/followers","following_url":"https://api.github.com/users/emadalam/following{/other_user}","gists_url":"https://api.github.com/users/emadalam/gists{/gist_id}","starred_url":"https://api.github.com/users/emadalam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emadalam/subscriptions","organizations_url":"https://api.github.com/users/emadalam/orgs","repos_url":"https://api.github.com/users/emadalam/repos","events_url":"https://api.github.com/users/emadalam/events{/privacy}","received_events_url":"https://api.github.com/users/emadalam/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T19:46:10Z","updated_at":"2018-11-13T19:46:10Z","author_association":"OWNER","body":"@quochuy have you may be tried specifying a custom `loaderTemplate` with `theme=\"dark\"`?\r\n\r\n```xml\r\n<!-- loaderTemplate -->\r\n<document>\r\n    <loadingTemplate theme=\"dark\">\r\n        <activityIndicator>\r\n            <title>{{ message }}</title>\r\n        </activityIndicator>\r\n    </loadingTemplate>\r\n</document>\r\n```\r\n```js\r\nATV.start({\r\n    templates: {\r\n        loader: loaderTemplate,\r\n        // ... other templates\r\n    },\r\n    // ... menu and other configs\r\n});\r\n```\r\n\r\nReferences:\r\n\r\n- [Application initialization using configuration](https://github.com/emadalam/atvjs#application-initialization-using-configuration)\r\n- [TVML Attributes](https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/ATV_Template_Guide/TVJSAttributes.html)"}}
{"actor":{"display_login":"emadalam"}}