{"action":"created","issue":{"url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/642","labels_url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/642/labels{/name}","comments_url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/642/comments","events_url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/642/events","html_url":"https://github.com/wbsoft/frescobaldi/issues/642","id":60558902,"number":642,"title":"Symbols (monochrome menu icons) use wrong color on Ubuntu Unity","user":{"login":"dliessi","id":5209500,"avatar_url":"https://avatars.githubusercontent.com/u/5209500?v=3","gravatar_id":"","url":"https://api.github.com/users/dliessi","html_url":"https://github.com/dliessi","followers_url":"https://api.github.com/users/dliessi/followers","following_url":"https://api.github.com/users/dliessi/following{/other_user}","gists_url":"https://api.github.com/users/dliessi/gists{/gist_id}","starred_url":"https://api.github.com/users/dliessi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dliessi/subscriptions","organizations_url":"https://api.github.com/users/dliessi/orgs","repos_url":"https://api.github.com/users/dliessi/repos","events_url":"https://api.github.com/users/dliessi/events{/privacy}","received_events_url":"https://api.github.com/users/dliessi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"PeterBjuhr","id":355116,"avatar_url":"https://avatars.githubusercontent.com/u/355116?v=3","gravatar_id":"","url":"https://api.github.com/users/PeterBjuhr","html_url":"https://github.com/PeterBjuhr","followers_url":"https://api.github.com/users/PeterBjuhr/followers","following_url":"https://api.github.com/users/PeterBjuhr/following{/other_user}","gists_url":"https://api.github.com/users/PeterBjuhr/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterBjuhr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterBjuhr/subscriptions","organizations_url":"https://api.github.com/users/PeterBjuhr/orgs","repos_url":"https://api.github.com/users/PeterBjuhr/repos","events_url":"https://api.github.com/users/PeterBjuhr/events{/privacy}","received_events_url":"https://api.github.com/users/PeterBjuhr/received_events","type":"User","site_admin":false},"milestone":null,"comments":31,"created_at":"2015-03-10T19:54:21Z","updated_at":"2015-03-16T09:14:28Z","closed_at":null,"body":"Reported by @proski in https://github.com/wbsoft/frescobaldi/issues/637#issuecomment-78126940."},"comment":{"url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/comments/81521704","html_url":"https://github.com/wbsoft/frescobaldi/issues/642#issuecomment-81521704","issue_url":"https://api.github.com/repos/wbsoft/frescobaldi/issues/642","id":81521704,"user":{"login":"wbsoft","id":588454,"avatar_url":"https://avatars.githubusercontent.com/u/588454?v=3","gravatar_id":"","url":"https://api.github.com/users/wbsoft","html_url":"https://github.com/wbsoft","followers_url":"https://api.github.com/users/wbsoft/followers","following_url":"https://api.github.com/users/wbsoft/following{/other_user}","gists_url":"https://api.github.com/users/wbsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/wbsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbsoft/subscriptions","organizations_url":"https://api.github.com/users/wbsoft/orgs","repos_url":"https://api.github.com/users/wbsoft/repos","events_url":"https://api.github.com/users/wbsoft/events{/privacy}","received_events_url":"https://api.github.com/users/wbsoft/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T09:14:28Z","updated_at":"2015-03-16T09:14:28Z","body":"Yes, the actions of the snippets menu are recreated every time on display of the snippet menu, because the symbol (icon) is requested every time.\r\n\r\nBut we should not depend on that behaviour, as the whole point of the `symbols` module is that the icons change their color dynamically. When a widget wants to paint the icon of an action, it requests the pixmap from the QIconEngine of the icon. (Currently based on app-wide default text color, but hopefully we can get it to work in a smarter way.)\r\n\r\nI am now looking how a style paints icons and I see that the method `QStyle.generatedIconPixmap` is called to get the icon pixmap. That function can manipulate the pixmap before returning it. And it has access to style and palette information using the `QStyleOption`..."}}