{"action":"closed","issue":{"url":"https://api.github.com/repos/Alecaddd/sequeler/issues/90","repository_url":"https://api.github.com/repos/Alecaddd/sequeler","labels_url":"https://api.github.com/repos/Alecaddd/sequeler/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/Alecaddd/sequeler/issues/90/comments","events_url":"https://api.github.com/repos/Alecaddd/sequeler/issues/90/events","html_url":"https://github.com/Alecaddd/sequeler/issues/90","id":300799288,"number":90,"title":"Use monospace font from system settings in query editor","user":{"login":"ajashton","id":126952,"avatar_url":"https://avatars0.githubusercontent.com/u/126952?v=4","gravatar_id":"","url":"https://api.github.com/users/ajashton","html_url":"https://github.com/ajashton","followers_url":"https://api.github.com/users/ajashton/followers","following_url":"https://api.github.com/users/ajashton/following{/other_user}","gists_url":"https://api.github.com/users/ajashton/gists{/gist_id}","starred_url":"https://api.github.com/users/ajashton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajashton/subscriptions","organizations_url":"https://api.github.com/users/ajashton/orgs","repos_url":"https://api.github.com/users/ajashton/repos","events_url":"https://api.github.com/users/ajashton/events{/privacy}","received_events_url":"https://api.github.com/users/ajashton/received_events","type":"User","site_admin":false},"labels":[{"id":843295334,"url":"https://api.github.com/repos/Alecaddd/sequeler/labels/not-bug","name":"not-bug","color":"c2e0c6","default":false},{"id":659996303,"url":"https://api.github.com/repos/Alecaddd/sequeler/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-27T21:27:50Z","updated_at":"2018-02-28T01:46:31Z","closed_at":"2018-02-28T01:46:31Z","author_association":"NONE","body":"This would be nice for consistency with Terminal and other apps. This change worked for me:\r\n\r\n```diff\r\ndiff --git a/src/Layouts/Views/Query.vala b/src/Layouts/Views/Query.vala\r\nindex 2558db9..91b11ab 100644\r\n--- a/src/Layouts/Views/Query.vala\r\n+++ b/src/Layouts/Views/Query.vala\r\n@@ -76,7 +76,8 @@ public class Sequeler.Layouts.Views.Query : Gtk.Grid {\r\n \t\ttry\r\n \t\t{\r\n \t\t\tvar style = new Gtk.CssProvider ();\r\n-\t\t\tstyle.load_from_data (\"* {font: %s;}\".printf (\"Droid Sans Mono 11\"), -1);\r\n+\t\t\tvar font_name = new GLib.Settings (\"org.gnome.desktop.interface\").get_string (\"monospace-font-name\");\r\n+\t\t\tstyle.load_from_data (\"* {font: %s;}\".printf (font_name), -1);\r\n \t\t\tquery_builder.get_style_context ().add_provider (style, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION);\r\n \t\t}\r\n \t\tcatch (Error e)\r\n```"}}
{"actor":{"display_login":"Alecaddd"}}