{"action":"created","issue":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3936","repository_url":"https://api.github.com/repos/qbittorrent/qBittorrent","labels_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3936/labels{/name}","comments_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3936/comments","events_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3936/events","html_url":"https://github.com/qbittorrent/qBittorrent/pull/3936","id":111153898,"number":3936,"title":"Read and use KDE 4/5 colours for torrents list","user":{"login":"evsh","id":394621,"avatar_url":"https://avatars.githubusercontent.com/u/394621?v=3","gravatar_id":"","url":"https://api.github.com/users/evsh","html_url":"https://github.com/evsh","followers_url":"https://api.github.com/users/evsh/followers","following_url":"https://api.github.com/users/evsh/following{/other_user}","gists_url":"https://api.github.com/users/evsh/gists{/gist_id}","starred_url":"https://api.github.com/users/evsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evsh/subscriptions","organizations_url":"https://api.github.com/users/evsh/orgs","repos_url":"https://api.github.com/users/evsh/repos","events_url":"https://api.github.com/users/evsh/events{/privacy}","received_events_url":"https://api.github.com/users/evsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-10-13T10:40:52Z","updated_at":"2016-03-17T22:11:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/pulls/3936","html_url":"https://github.com/qbittorrent/qBittorrent/pull/3936","diff_url":"https://github.com/qbittorrent/qBittorrent/pull/3936.diff","patch_url":"https://github.com/qbittorrent/qBittorrent/pull/3936.patch"},"body":"Resurrection of pull request #3819. But now with an option to enable/disable (disabled by default) usage of the system colour theme, and of course without build or run-time dependencies on KF5/KDE4.\r\n\r\nThe used KDE colours are strongly connected with the torrent states (neutral/negative/positive), shows KDE colour effects (disabled and inactive) and therefore, I believe, are understandable and pleasant for KDE users. However, to implement the effects, colorutils .h + .cpp files from KF5 are directly included. But they are small files. \r\n \r\nIf XDG_CURRENT_DESKTOP environment variable suggests KDE session, read kdeglobals config file and use defined there colours for torrent list. Otherwise hard-coded default values are used."},"comment":{"url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/comments/198104640","html_url":"https://github.com/qbittorrent/qBittorrent/pull/3936#issuecomment-198104640","issue_url":"https://api.github.com/repos/qbittorrent/qBittorrent/issues/3936","id":198104640,"user":{"login":"sledgehammer999","id":273315,"avatar_url":"https://avatars.githubusercontent.com/u/273315?v=3","gravatar_id":"","url":"https://api.github.com/users/sledgehammer999","html_url":"https://github.com/sledgehammer999","followers_url":"https://api.github.com/users/sledgehammer999/followers","following_url":"https://api.github.com/users/sledgehammer999/following{/other_user}","gists_url":"https://api.github.com/users/sledgehammer999/gists{/gist_id}","starred_url":"https://api.github.com/users/sledgehammer999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sledgehammer999/subscriptions","organizations_url":"https://api.github.com/users/sledgehammer999/orgs","repos_url":"https://api.github.com/users/sledgehammer999/repos","events_url":"https://api.github.com/users/sledgehammer999/events{/privacy}","received_events_url":"https://api.github.com/users/sledgehammer999/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T22:11:03Z","updated_at":"2016-03-17T22:11:03Z","body":"I forgot to mention that I don't want dependencies on (any) DE libs.\r\nCan you query the colors via DBUS on KDE or do you have to use a KDE lib for that?\r\n\r\nA little bit of #ifdef isn't a problem.\r\n\r\n>And what do you mean by \"optional for the user\"?\r\n\r\nAs a runtime option.\r\n"}}