To draw a straight line
In the toolbox, click Line .
Below the toolbox, click a line width.
Drag the pointer to draw the line.
You can draw a perfectly horizontal, vertical, or 45-degree diagonal line by holding down SHIFT while dragging.
When you drag the pointer, the foreground color is used. To use the background color, hold down the right mouse button and drag the pointer.