Use the standard button size for icons

This commit is contained in:
David Boddie
2019-07-25 20:14:32 +00:00
parent 2e22bb5431
commit ce311e1bf1

View File

@ -502,13 +502,12 @@ render_key (EekRenderer *self,
if (!symbol) if (!symbol)
return; return;
#define SCALE 0.4
if (eek_symbol_get_icon_name (symbol)) { if (eek_symbol_get_icon_name (symbol)) {
gint scale = priv->scale_factor; gint scale = priv->scale_factor;
cairo_surface_t *icon_surface = cairo_surface_t *icon_surface =
eek_renderer_get_icon_surface (self, eek_renderer_get_icon_surface (self,
eek_symbol_get_icon_name (symbol), eek_symbol_get_icon_name (symbol),
SCALE * MIN(bounds.width, bounds.height), 16,
scale); scale);
if (icon_surface) { if (icon_surface) {
gint width = cairo_image_surface_get_width (icon_surface); gint width = cairo_image_surface_get_width (icon_surface);