[Github-comments] [geany/geany] Show zoom level in status bar. (#1697)
LarsGit223
notifications at xxxxx
Fri Oct 4 12:04:24 UTC 2019
LarsGit223 commented on this pull request.
> @@ -304,6 +305,21 @@ static gchar *create_statusbar_statistics(GeanyDocument *doc,
g_string_append_printf(stats_str, "%d",
sci_get_style_at(doc->editor->sci, pos));
break;
+ case 'z':
+ zoom = sci_get_zoom(doc->editor->sci);
+ if (zoom != 0)
+ {
+ gint size, percent;
+
+ size = sci_get_fontsize(doc->editor->sci, STYLE_DEFAULT);
+ if (size > 0)
+ {
+ percent = (size + zoom) * 100 / size;
I agree, out-of-scope for this PR.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1697#discussion_r331467291
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20191004/8404cefc/attachment.html>
More information about the Github-comments
mailing list