# 工具栏自定义

## 按钮

您可以将自己的按钮添加到顶部工具栏。

[createButton(options)](/tradingview/4-tu-biao-ding-zhi/widget-methods.md#createbuttonoptions)

## 样式

图表库具有2个预定义的颜色主题。 它们是显示图表的最佳选择。 但是，从1.16开始，您可以更改工具栏的颜色以使其完全适合您的背景。 您可以在[themes.html](https://github.com/tradingview/charting_library/blob/unstable/themed.html) 中看到自定义的示例。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://zlq4863947.gitbook.io/tradingview/fu-lu/toolbars.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
