# Javascript: StatusBarViewGeneratorColors.getSeparatorColorDark Method

> Obsolete. This method will be removed in one of the next versions. Since version 33.0 the status bar doesn't support gradients in separators anymore. Gets the color of the dark part of a separator.

> **Note:** This is deprecated and should not be used in new work.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: StatusBarViewGeneratorColors.getSeparatorColorDark Method
- **407 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/getseparatorcolordark-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/getseparatorcolordark-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/getseparatorcolordark-method/llms-full.txt

---

### Description

`Obsolete. This method will be removed in one of the next versions.` Since version 33.0 the status bar doesn't support gradients in separators anymore. Gets the color of the dark part of a separator.

### Syntax

```javascript
<void> StatusBarViewGeneratorColors.getSeparatorColorDark(<RequestStringCallback> callback, [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Receives the color value. Is always called with an empty string. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `StatusBarViewGeneratorColors.getSeparatorColorDark` in a practical document-editing workflow. Obsolete. This method will be removed in one of the next versions. Since version 33.0 the status bar doesn't support gradients in separators anymore. Gets the color of the dark part of a separator.

```javascript
function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

function inspectSeparatorColorDark(statusBarViewGeneratorColors) {
    statusBarViewGeneratorColors.getSeparatorColorDark(
        function(result) {
            console.log("get separator color dark result:", result);
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGeneratorColors.getGradientBackColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/getgradientbackcolor-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGeneratorColors.getSeparatorColorLight Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/statusbarviewgeneratorcolors/getseparatorcolorlight-method/llms-full.txt)
