Add frame rendering, fix style sheet to show key borders
This commit is contained in:
		@ -7,6 +7,7 @@
 | 
				
			|||||||
.key {
 | 
					.key {
 | 
				
			||||||
    color: #deddda;
 | 
					    color: #deddda;
 | 
				
			||||||
    background: #464448;
 | 
					    background: #464448;
 | 
				
			||||||
 | 
					    border-style: inset;
 | 
				
			||||||
    border-width: 0.5px;
 | 
					    border-width: 0.5px;
 | 
				
			||||||
    border-color: #5e5c64;
 | 
					    border-color: #5e5c64;
 | 
				
			||||||
    border-radius: 2px;
 | 
					    border-radius: 2px;
 | 
				
			||||||
 | 
				
			|||||||
@ -162,6 +162,10 @@ render_keyboard_surface (EekRenderer *renderer)
 | 
				
			|||||||
                           data.cr,
 | 
					                           data.cr,
 | 
				
			||||||
                           0, 0,
 | 
					                           0, 0,
 | 
				
			||||||
                           priv->allocation_width, priv->allocation_height);
 | 
					                           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_save (data.cr);
 | 
				
			||||||
    cairo_scale (data.cr, priv->scale, priv->scale);
 | 
					    cairo_scale (data.cr, priv->scale, priv->scale);
 | 
				
			||||||
@ -208,6 +212,8 @@ render_key_outline (EekRenderer *renderer,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    gtk_render_background (priv->key_context,
 | 
					    gtk_render_background (priv->key_context,
 | 
				
			||||||
                           cr, 0, 0, bounds.width, bounds.height);
 | 
					                           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);
 | 
					    gtk_style_context_set_state(priv->key_context, GTK_STATE_FLAG_NORMAL);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user