{"action":"created","issue":{"url":"https://api.github.com/repos/awesomeWM/awesome/issues/140","labels_url":"https://api.github.com/repos/awesomeWM/awesome/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/awesomeWM/awesome/issues/140/comments","events_url":"https://api.github.com/repos/awesomeWM/awesome/issues/140/events","html_url":"https://github.com/awesomeWM/awesome/issues/140","id":58077591,"number":140,"title":"Menubar won't open when theme.bg_focus is not a color","user":{"login":"silverhammermba","id":1031867,"avatar_url":"https://avatars.githubusercontent.com/u/1031867?v=3","gravatar_id":"","url":"https://api.github.com/users/silverhammermba","html_url":"https://github.com/silverhammermba","followers_url":"https://api.github.com/users/silverhammermba/followers","following_url":"https://api.github.com/users/silverhammermba/following{/other_user}","gists_url":"https://api.github.com/users/silverhammermba/gists{/gist_id}","starred_url":"https://api.github.com/users/silverhammermba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverhammermba/subscriptions","organizations_url":"https://api.github.com/users/silverhammermba/orgs","repos_url":"https://api.github.com/users/silverhammermba/repos","events_url":"https://api.github.com/users/silverhammermba/events{/privacy}","received_events_url":"https://api.github.com/users/silverhammermba/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/awesomeWM/awesome/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-18T14:54:15Z","updated_at":"2015-02-26T18:24:55Z","closed_at":null,"body":"Set `theme.bg_focus` to an invalid color string and try to open the menubar. I would expect the menubar to open with some placeholder color (e.g. white), since this is the behavior of other wiboxes when given invalid colors. Instead, you get this error\r\n````\r\nW: awesome: luaA_dofunction:78: error while running function\r\nstack traceback:\r\n        [C]: in ?\r\n        [C]: in function 'error'\r\n        /usr/share/awesome/lib/wibox/widget/textbox.lua:61: in function 'set_markup'\r\n        /usr/share/awesome/lib/awful/prompt.lua:225: in function 'run'\r\n        /usr/share/awesome/lib/menubar/init.lua:276: in function 'show'\r\n        /home/max/.config/awesome/rc.lua:256: in function 'press'\r\n        /usr/share/awesome/lib/awful/key.lua:42: in function </usr/share/awesome/lib/awful/key.lua:42>\r\nerror: attempt to concatenate a userdata value\r\n````\r\n\r\nI think that this is because the prompt uses `Pango.set_markup` to format the text, and Pango expects a valid color string. Another consequence of this is that you cannot use a PNG for the focus color, even though you _can_ use PNGs as the focus color in other wiboxes. The inconsistency is confusing."},"comment":{"url":"https://api.github.com/repos/awesomeWM/awesome/issues/comments/76235203","html_url":"https://github.com/awesomeWM/awesome/issues/140#issuecomment-76235203","issue_url":"https://api.github.com/repos/awesomeWM/awesome/issues/140","id":76235203,"user":{"login":"actionless","id":1655669,"avatar_url":"https://avatars.githubusercontent.com/u/1655669?v=3","gravatar_id":"","url":"https://api.github.com/users/actionless","html_url":"https://github.com/actionless","followers_url":"https://api.github.com/users/actionless/followers","following_url":"https://api.github.com/users/actionless/following{/other_user}","gists_url":"https://api.github.com/users/actionless/gists{/gist_id}","starred_url":"https://api.github.com/users/actionless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actionless/subscriptions","organizations_url":"https://api.github.com/users/actionless/orgs","repos_url":"https://api.github.com/users/actionless/repos","events_url":"https://api.github.com/users/actionless/events{/privacy}","received_events_url":"https://api.github.com/users/actionless/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T18:24:55Z","updated_at":"2015-02-26T18:24:55Z","body":">3. Set bg_normal and bg_focus to a tiled PNG pattern. The tasklist has the expected appearance but the menubar will not open.\r\n\r\ncan you now set theme.bg_cursor_focus to save hex color?"}}