# Javascript: StatusBarViewGeneratorColors.resetGradientBackColor Method

> Obsolete. This method will be removed in one of the next versions. Since version 33.0 the status bar doesn't support horizontal gradients anymore. Resets the status bar's gradientBackColor 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.resetGradientBackColor Method
- **415 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/resetgradientbackcolor-method/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/resetgradientbackcolor-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/statusbarviewgeneratorcolors/resetgradientbackcolor-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 horizontal gradients anymore. Resets the status bar's gradientBackColor to its system dependent default value.

### Syntax

```javascript
<void> StatusBarViewGeneratorColors.resetGradientBackColor([<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.resetGradientBackColor` 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 horizontal gradients anymore. Resets the status bar's gradientBackColor to its system dependent default value.

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

function resetGradientBackColor(statusBarViewGeneratorColors) {
    statusBarViewGeneratorColors.resetGradientBackColor(
        function() {
            console.log("reset gradient back color completed.");
        },
        onTxError
    );
}
```

---

## Nearby

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