# Javascript: StatusBarViewGeneratorColors.resetSeparatorColorDark 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. Resets the status bar's separatorColorDark to its system dependent default value.

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

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 30.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: StatusBarViewGeneratorColors.resetSeparatorColorDark Method
- **418 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/resetseparatorcolordark-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/resetseparatorcolordark-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/resetseparatorcolordark-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. Resets the status bar's separatorColorDark to its system dependent default value.

### Syntax

```javascript
<void> StatusBarViewGeneratorColors.resetSeparatorColorDark([<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])
```

### Parameters

| Parameter | Description |
|---|---|
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |

### Examples

The following example demonstrates `StatusBarViewGeneratorColors.resetSeparatorColorDark` 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. Resets the status bar's separatorColorDark to its system dependent default value.

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

function resetSeparatorColorDark(statusBarViewGeneratorColors) {
    statusBarViewGeneratorColors.resetSeparatorColorDark(
        function() {
            console.log("reset separator color dark completed.");
        },
        onTxError
    );
}
```

---

## Nearby

- **Previous:** [Javascript: StatusBarViewGeneratorColors.resetSeparatorColor Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/resetseparatorcolor-method/llms-full.txt)
- **Next:** [Javascript: StatusBarViewGeneratorColors.resetSeparatorColorLight Method](https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/resetseparatorcolorlight-method/llms-full.txt)
