Add frame rendering, fix style sheet to show key borders

This commit is contained in:
David Boddie
2019-07-31 20:43:10 +00:00
parent 537ded4b58
commit 0b59262e95
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@
.key {
color: #deddda;
background: #464448;
border-style: inset;
border-width: 0.5px;
border-color: #5e5c64;
border-radius: 2px;

View File

@ -162,6 +162,10 @@ render_keyboard_surface (EekRenderer *renderer)
data.cr,
0, 0,
priv->allocation_width, priv->allocation_height);
gtk_render_frame (priv->scontext,
data.cr,
0, 0,
priv->allocation_width, priv->allocation_height);
cairo_save (data.cr);
cairo_scale (data.cr, priv->scale, priv->scale);
@ -208,6 +212,8 @@ render_key_outline (EekRenderer *renderer,
gtk_render_background (priv->key_context,
cr, 0, 0, bounds.width, bounds.height);
gtk_render_frame (priv->key_context,
cr, 0, 0, bounds.width, bounds.height);
gtk_style_context_set_state(priv->key_context, GTK_STATE_FLAG_NORMAL);
}