{"action":"created","issue":{"url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/508","labels_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/508/labels{/name}","comments_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/508/comments","events_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/508/events","html_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/pull/508","id":63197980,"number":508,"title":"Hyperlink tool tip","user":{"login":"taconaut","id":275379,"avatar_url":"https://avatars.githubusercontent.com/u/275379?v=3","gravatar_id":"","url":"https://api.github.com/users/taconaut","html_url":"https://github.com/taconaut","followers_url":"https://api.github.com/users/taconaut/followers","following_url":"https://api.github.com/users/taconaut/following{/other_user}","gists_url":"https://api.github.com/users/taconaut/gists{/gist_id}","starred_url":"https://api.github.com/users/taconaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taconaut/subscriptions","organizations_url":"https://api.github.com/users/taconaut/orgs","repos_url":"https://api.github.com/users/taconaut/repos","events_url":"https://api.github.com/users/taconaut/events{/privacy}","received_events_url":"https://api.github.com/users/taconaut/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-20T09:40:41Z","updated_at":"2015-03-21T09:01:27Z","closed_at":"2015-03-20T23:01:55Z","pull_request":{"url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/pulls/508","html_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/pull/508","diff_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/pull/508.diff","patch_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/pull/508.patch"},"body":"I wanted to add hyperlinks to tooltips to make it easier for users to find some info and thought this could be added to UMS itself.\r\n\r\nThis pull request includes:\r\n* Allow to configure tooltip foreground and background colors in the configuration (Keys are tooltip_foreground and tooltip_background). This has been added to have a common configuration for default and hyperlink tooltips\r\n* Added a new method getRGBColor to RendererConfiguration\r\n* Added a new class HyperLinkToolTip\r\n* Added an example usage in 'Subtitles language priority'\r\n\r\nA HyperLinkToolTip can be used like this:\r\n\r\n    JButton btn = new JButton() {\r\n    \t\t\tprivate static final long serialVersionUID = -2927951764552780686L;\r\n    \r\n    \t\t\tpublic JToolTip createToolTip() {\r\n    \t\t\t\tJToolTip tip = new HyperLinkToolTip();\r\n    \t\t\t\ttip.setComponent(this);\r\n    \t\t\t\treturn tip;\r\n    \t\t\t}\r\n    \r\n    \t\t\t// Set tooltip location\r\n    \t\t\tpublic Point getToolTipLocation(MouseEvent event) {\r\n    \t\t\t\treturn new Point(getWidth() / 2, getHeight() / 2);\r\n    \t\t\t}\r\n    \t\t};\r\n    \r\n    \t\tbtn.setText(\"Tooltip Test\");\r\n    \t\tbtn.setToolTipText(\"<html><div width=\\\"300\\\">Specifies the languages to search for subtitles. E.g. 'eng', 'eng,fra,esp'.<br><br>See <a href=\\\"http://en.wikipedia.org/wiki/List_of_ISO_639-2_codes\\\">this article</a> for a full list of languages.</div></html>\");"},"comment":{"url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/comments/84283703","html_url":"https://github.com/UniversalMediaServer/UniversalMediaServer/pull/508#issuecomment-84283703","issue_url":"https://api.github.com/repos/UniversalMediaServer/UniversalMediaServer/issues/508","id":84283703,"user":{"login":"taconaut","id":275379,"avatar_url":"https://avatars.githubusercontent.com/u/275379?v=3","gravatar_id":"","url":"https://api.github.com/users/taconaut","html_url":"https://github.com/taconaut","followers_url":"https://api.github.com/users/taconaut/followers","following_url":"https://api.github.com/users/taconaut/following{/other_user}","gists_url":"https://api.github.com/users/taconaut/gists{/gist_id}","starred_url":"https://api.github.com/users/taconaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taconaut/subscriptions","organizations_url":"https://api.github.com/users/taconaut/orgs","repos_url":"https://api.github.com/users/taconaut/repos","events_url":"https://api.github.com/users/taconaut/events{/privacy}","received_events_url":"https://api.github.com/users/taconaut/received_events","type":"User","site_admin":false},"created_at":"2015-03-21T09:01:27Z","updated_at":"2015-03-21T09:01:27Z","body":"Cool, thanks!"}}