Create a Simple Switch Button

In the following tutorial you will learn how to create a simple switch button using Graphic's tools and effects.

Step 1

For this tutorial we'll create a new 600 x 600 pixel document. Choose File > New (Command + N) to bring up the New Document pane. Select the Grid document style, set the document units to pixels, and set the document dimensions to 600 pixels wide by 600 pixels high.
Next, we'll set up the document grid. Switch to the Grid pane in the Properties pane. If the Properties pane is not currently visible, you can click on the orange ruler icon above the Layers pane to show and hide the pane. Change the grid X Spacing and Y Spacing to 5px, set the Subdivisions to 0px, and enable Snap to Grid (Command + Shift + ').

Step 2

Focus on the Toolbar and you will notice that by default the fill color is set to white while the stroke color is set to black. Click on the fill color well and set the fill color to R=0 G=152 B=245. Next, click on the stroke color well and drag the Alpha slider to 0%, which will simply make the stroke invisible. Pick the Rectangle Tool (M), focus on your canvas and create a 600px square. Holding the Shift button will make it a lot easier for you to create a perfect square, also the grid and the Snap to Grid feature will ease your work.

Step 3

Make sure that your blue shape stays selected, focus on the Alignment section from the Properties pane and simply click the Horizontal Centers and Vertical Centers buttons which will bring your square in the center of the canvas.

Step 4

Return to your Toolbar, make sure that the Stroke is invisible then set the Fill color at R=0 G=124 B=215. Grab the Rounded Rectangle Tool (Shift + M), focus on the Titlebar and drag the Corner Radius slider at 30pt. Move to your canvas and simply create a 170 x 50px.

Step 5

Make sure that your rounded rectangle stays selected, focus on the Effects section from the Appearance pane and simply check the little box that stands for the existing Drop Shadow to activate it. If the Appearance pane is not currently visible, you can click on the blue icon above the Layers pane to show and hide the pane. Enter 1 in the Y box and 0 in the other two boxes, select Soft Light from the Blend Mode drop down-down menu and then click the color box that stands for this effects. Drag the Alpha slider at 40% and replace the existing color with a simple white (R=255 G=255 B=255).

Step 6

Make sure that your rounded rectangle stays selected and keep focusing on the Effects section from the Appearance pane. Simply right click on the existing Drop Shadow and go to Duplicate. Select the newly added effect, make sure that it lies below the existing Drop Shadow and then enter the attributes shown in the following image.

Step 7

Make sure that your rounded rectangle stays selected and keep focusing on the Effects section from the Appearance pane. Activate the existing Inner Shadow effect and enter the attributes shown in the following image.

Step 8

Make sure that your rounded rectangle stays selected, keep focusing on the Effects section from the Appearance pane and duplicate the existing Inner Shadow. Select the newly added effect, drag it below the existing Inner Shadow and then enter the attributes shown in the following image.

Step 9

Make sure that your rounded rectangle stays selected, keep focusing on the Effects section from the Appearance pane and duplicate the bottom Inner Shadow. Select the newly added effect, drag it below the existing Inner Shadows and then enter the attributes shown in the following image.

Step 10

Make sure that your rounded rectangle stays selected and keep focusing on the Effects section from the Appearance pane. Activate the existing Inner Glow and enter the attributes shown in the following image.

Step 11

Get back to your Toolbar, make sure that the Stroke is invisible then set the Fill color at R=74 G=197 B=237. Reselect the Rounded Rectangle Tool (Shift + M), focus on the Titlebar and make sure that the Corner Radius is set at 30pt. Move to your canvas, create a 90 x 40px shape and place it as shown in the following image.

Step 12

Make sure that your smaller rounded rectangle stays selected, focus on the Effects section from the Appearance pane and add a second Fill using the plus button located in the bottom, left corner of the pane. Select this new Fill, select Linear Gradient from the Type drop-down menu and Overlay from the Blend drop-down menu, set the Angle at 90 degrees and then move to the gradient sliders. Select the left slider, drag the Alpha slider at 20% and set the color at black (R=0 G=0 B=0) and then select the right slider, drag the Alpha slider at 0% and set the color at white. Simply click on the gradient bar and you will get a new gradient slider. Select it, set the color at black and the Alpha slider at 50% and then drag it to the left until the Location tooltip shows 25%. Add a fourth gradient slider, make it white and set the Location at 75%.

Step 13

Make sure that your smaller rounded rectangle stays selected and focus on the Effects section from the Appearance pane. Select the existing Stroke and replace the existing attributes with the ones shown in the following image.

Step 14

Make sure that your smaller rounded rectangle stays selected and keep focusing on the Effects section from the Appearance pane. Activate the existing Drop Shadow, drag it above the Stroke and then enter the attributes shown in the following image.

Step 15

Make sure that your smaller rounded rectangle stays selected, keep focusing on the Effects section from the Appearance pane and add a second Drop Shadow. Select this new effect, drag it below the existing Drop Shadow and then enter the attributes shown in the following image.

Step 16

Make sure that your smaller rounded rectangle stays selected, keep focusing on the Effects section from the Appearance pane and add a third Drop Shadow. Select this new effect, drag it below the existing Drop Shadows and then enter the attributes shown in the following image.

Step 17

Make sure that your smaller rounded rectangle stays selected, keep focusing on the Effects section from the Appearance pane and activate the existing Inner Shadow. Select this new effect, drag it below the bottom Drop Shadow and then enter the attributes shown in the following image.

Step 18

Make sure that your smaller rounded rectangle stays selected, keep focusing on the Effects section from the Appearance pane and add a second Inner Shadow. Select this new effect, drag it below the existing Inner Shadow and then enter the attributes shown in the following image.

Step 19

Make sure that your smaller rounded rectangle stays selected, keep focusing on the Effects section from the Appearance pane and add a third Inner Shadow. Select this new effect, drag it below the existing Inner Shadows and then enter the attributes shown in the following image.

Step 20

Make sure that your smaller rounded rectangle stays selected, keep focusing on the Effects section from the Appearance pane and add a fourth Inner Shadow. Select this new effect, drag it below the existing Inner Shadows and then enter the attributes shown in the following image.

Step 21

Return to your Toolbar, make sure that the Stroke is invisible then set the Fill color at R=255 G=255 B=255. Using the Ellipse Tool (O), create a 40px circle and place it as shown in the first image. Duplicate this shape (Command + C > Command + V), select the copy and place it as shown in the second image.

Step 22

Select your right, white circle and focus on the Effects section from the Appearance pane. Select the existing Fill and replace the flat color with the linear gradient shown in the following image. Make sure that you're setting the Angle at 45 degrees.

Step 23

Make sure that your right circle stays selected and keep focusing on the Effects section from the Appearance pane. Activate the existing Drop Shadow and enter the attributes shown in the following image.

Step 24

Make sure that your right circle stays selected and keep focusing on the Effects section from the Appearance pane. Activate the existing Inner Shadow and enter the attributes shown in the following image.

Step 25

Make sure that your right circle stays selected, keep focusing on the Effects section from the Appearance pane and add a second Inner Shadow. Select this new effect, make sure that it lies below the existing Inner Shadow and then enter the attributes shown in the following image.

Step 26

Make sure that your right circle stays selected, keep focusing on the Effects section from the Appearance pane and add a third Inner Shadow. Select this new effect, make sure that it lies below the existing Inner Shadows and then enter the attributes shown in the following image.

Step 27

Make sure that your right circle stays selected, keep focusing on the Effects section from the Appearance pane and add a fourth Inner Shadow. Select this new effect, make sure that it lies below the existing Inner Shadows and then enter the attributes shown in the following image.

Step 28

Make sure that your right circle stays selected, simply right click anywhere on your canvas and go to Copy Style. Next, select the left circle, again right click on your canvas and this time go to Paste Style. Make sure that your left circle stays selected and focus on the Effects section from the Appearance pane. Select the existing effects one by one and simply inverse the values used in the X boxes. In the end things should look like in the second image.

Step 29

Get back to your Toolbar, this time make the Fill invisible and set the Stroke color at R=0 G=124 B=215. Using the Ellipse Tool (O), create a 10px circle and place it as shown in the following image. Make sure that this shape stays selected and focus on the Effects section from the Appearance pane. Select the existing Stroke, make sure that the Width slider is set at 1pt and select Outside from the Position drop-down menu.

Step 30

Make sure that your 10px circle stays selected, focus on the Effects section from the Appearance pane, activate the existing Drop Shadow and then enter the attributes shown in the following image.

Step 31

Make sure that your 10px circle stays selected, focus on the Effects section from the Appearance pane, activate the existing Inner Shadow, drag it above the Drop Shadow effect and then enter the attributes shown in the following image.

Step 32

You will need a grid every 1px which simply means that you need to return to the Grid section from the Properties pane and enter 1px in both Spacing boxes. Return to your Toolbar, make sure that the Stroke is invisible then set the Fill color at white. Using the Ellipse Tool (O), create a 4px circle and place it as shown in the following image. Make sure that this shape stays selected, focus on the Effects section from the Appearance pane, drag the Opacity slider at 50% and select Overlay from the Blend drop-down menu.

Step 33

Reselect your 10px circle along with that 4px circle and simply Group them (Command + G). Duplicate this new group (Command + C > Command + V), select the copy, drag it to the right and place it as shown in the second image.

Finished Design

Congratulations, you've finished the tutorial!

Graphic File: ToggleButtons.idraw