<div class="meta" robots="noindex">

</div>

Method

# LightBevelColor

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `Color.LightBevelColor<color.lightbevelcolor>` as a replacement.

</div>

## Description

The currently selected operating system color for drawing light lines in dividing lines and group boxes.

## Usage

*result* = **LightBevelColor**

| Part   | Type                           | Description                                                                   |
|--------|--------------------------------|-------------------------------------------------------------------------------|
| result | `Color</api/data_types/color>` | The color used for drawing the light lines in dividing lines and group boxes. |

## Notes

<div class="note">

<div class="title">

Note

</div>

This color value does not change when `Color.IsDarkMode<color.isdarkmode>` is True.

</div>

This value is useful when you are using `Canvas</api/deprecated/canvas>` controls to create custom controls. When drawing controls like dividing `lines</api/deprecated/line>` and `GroupBoxes</api/deprecated/groupbox>`, use this color for the light portions of the object (usually the top and left sides of the object).

This value can be changed by the user, so you should access this value in the Paint event handler rather than storing the value.

## Sample code

The following example uses the constants <span class="title-ref">LightBevelColor</span> and `Color.DarkBevelColor<color.darkbevelcolor>` in a `Canvas</api/deprecated/canvas>` object that has a raised 3D look. This code is in the `Canvas.Paint<canvas.paint>` event.

``` xojo
Const White = &cffffff

g.ForeColor = White
g.DrawLine(1, 1, g.Width, 1)
g.DrawLine(1, g.Height - 1, 1, 1)
g.ForeColor = DarkBevelColor
g.DrawLine(g.Width - 1, 2, g.Width - 1, g.Height)
g.DrawLine(1, g.Height - 1, g.Width, g.Height - 1)
' fill in the light gray rectangle
g.ForeColor = LightBevelColor
g.FillRect(2, 2, g.Width - 3, g.Height - 3)
```

## Compatibility

All project types on all supported operating systems.

## See also

`Color.DarkBevelColor<color.darkbevelcolor>`, `Color.DarkTingeColor<color.darktingecolor>`, `Color.DisabledTextColor<color.disabledtextcolor>`, `Color.FillColor<color.fillcolor>`, `Color.FrameColor<color.framecolor>`, `Color.HighlightColor<color.highlightcolor>`, `Color.LightTingeColor<color.lighttingecolor>`, `Color.TextColor<color.textcolor>` functions; `Color</api/data_types/color>` data type.
