Permalink
Browse files

Add a drop shadow to the canvas.

  • Loading branch information...
1 parent aefe1cc commit 9300566a2b19160b1682e6fb6d38a1949a374644 @jpobst committed May 15, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 Pinta.Gui.Widgets/Widgets/Canvas/PintaCanvas.cs
@@ -120,7 +120,9 @@ protected override bool OnExposeEvent (EventExpose e)
using (Cairo.Context g = CairoHelper.Create (GdkWindow)) {
// Draw our 1 px black border
- g.DrawRectangle (new Cairo.Rectangle (x, y, PintaCore.Workspace.CanvasSize.Width + 1, PintaCore.Workspace.CanvasSize.Height + 1), new Cairo.Color (0, 0, 0), 1);
+ g.DrawRectangle (new Cairo.Rectangle (x, y, PintaCore.Workspace.CanvasSize.Width + 1, PintaCore.Workspace.CanvasSize.Height + 1), new Cairo.Color (.5, .5, .5), 1);
+ g.DrawRectangle (new Cairo.Rectangle (x - 1, y - 1, PintaCore.Workspace.CanvasSize.Width + 3, PintaCore.Workspace.CanvasSize.Height + 3), new Cairo.Color (.8, .8, .8), 1);
+ g.DrawRectangle (new Cairo.Rectangle (x - 2, y - 2, PintaCore.Workspace.CanvasSize.Width + 5, PintaCore.Workspace.CanvasSize.Height + 5), new Cairo.Color (.9, .9, .9), 1);
// Set up our clip rectangle
g.Rectangle (new Cairo.Rectangle (x, y, PintaCore.Workspace.CanvasSize.Width, PintaCore.Workspace.CanvasSize.Height));

0 comments on commit 9300566

Please sign in to comment.