Skip to content

Commit

Permalink
Add a drop shadow to the canvas.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpobst committed May 15, 2012
1 parent aefe1cc commit 9300566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Pinta.Gui.Widgets/Widgets/Canvas/PintaCanvas.cs
Expand Up @@ -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));
Expand Down

0 comments on commit 9300566

Please sign in to comment.