{"action":"created","issue":{"url":"https://api.github.com/repos/Alexander-Miller/treemacs/issues/156","repository_url":"https://api.github.com/repos/Alexander-Miller/treemacs","labels_url":"https://api.github.com/repos/Alexander-Miller/treemacs/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/Alexander-Miller/treemacs/issues/156/comments","events_url":"https://api.github.com/repos/Alexander-Miller/treemacs/issues/156/events","html_url":"https://github.com/Alexander-Miller/treemacs/issues/156","id":303603422,"number":156,"title":"Make current selection more visible","user":{"login":"axelson","id":9973,"avatar_url":"https://avatars1.githubusercontent.com/u/9973?v=4","gravatar_id":"","url":"https://api.github.com/users/axelson","html_url":"https://github.com/axelson","followers_url":"https://api.github.com/users/axelson/followers","following_url":"https://api.github.com/users/axelson/following{/other_user}","gists_url":"https://api.github.com/users/axelson/gists{/gist_id}","starred_url":"https://api.github.com/users/axelson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/axelson/subscriptions","organizations_url":"https://api.github.com/users/axelson/orgs","repos_url":"https://api.github.com/users/axelson/repos","events_url":"https://api.github.com/users/axelson/events{/privacy}","received_events_url":"https://api.github.com/users/axelson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-08T19:33:40Z","updated_at":"2018-03-09T11:05:21Z","closed_at":null,"author_association":"NONE","body":"Is there a way to make the current selection more visible? I know I could probably change something globally on my theme but ideally I'd be able to change the selected row behavior for just treemacs. I mostly want to change the background color of the selected row. Currently there's very little contrast so it can be difficult to tell what node I'm currently on.\r\n\r\nThis is how it currently looks with the `.projectile` file selected (I'm using Spacemacs dev branch):\r\n\r\n![screenshot 2018-03-08 09 27 37](https://user-images.githubusercontent.com/9973/37171998-ab15f502-22b3-11e8-8c7e-150648b09c19.png)\r\n\r\nBy the way thanks for Treemacs, I've been really enjoying it!"},"comment":{"url":"https://api.github.com/repos/Alexander-Miller/treemacs/issues/comments/371782994","html_url":"https://github.com/Alexander-Miller/treemacs/issues/156#issuecomment-371782994","issue_url":"https://api.github.com/repos/Alexander-Miller/treemacs/issues/156","id":371782994,"user":{"login":"Alexander-Miller","id":5951157,"avatar_url":"https://avatars1.githubusercontent.com/u/5951157?v=4","gravatar_id":"","url":"https://api.github.com/users/Alexander-Miller","html_url":"https://github.com/Alexander-Miller","followers_url":"https://api.github.com/users/Alexander-Miller/followers","following_url":"https://api.github.com/users/Alexander-Miller/following{/other_user}","gists_url":"https://api.github.com/users/Alexander-Miller/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexander-Miller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexander-Miller/subscriptions","organizations_url":"https://api.github.com/users/Alexander-Miller/orgs","repos_url":"https://api.github.com/users/Alexander-Miller/repos","events_url":"https://api.github.com/users/Alexander-Miller/events{/privacy}","received_events_url":"https://api.github.com/users/Alexander-Miller/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T11:05:21Z","updated_at":"2018-03-09T11:05:21Z","author_association":"OWNER","body":"Ah, I tried the setq-local part in scratch, where it did work, but it looks like activation order matters. Setting the face does nothing if hl-line-mode has already created its overlay, which is what happens if you use a mode hook. \r\nTry this as a hook instead (with the right values for you):\r\n```\r\n(overlay-put hl-line-overlay 'face 'region)\r\n(setq treemacs--selected-icon-background \"#ff0000\")\r\n(--each treemacs--icons\r\n  (progn\r\n    (treemacs--set-img-property\r\n     (get-text-property 0 'img-selected it)\r\n     :background treemacs--selected-icon-background)\r\n    (treemacs--set-img-property\r\n     (get-text-property 0 'img-unselected it)\r\n     :background treemacs--not-selected-icon-background)))\r\n```"}}
{"actor":{"display_login":"Alexander-Miller"}}