如何在xtermjs中设置滚动条主题?

Tim*_*Tim 2 xtermjs

如何在xtermjs中设置滚动条主题?我看到背景和前景的主题选项,但与滚动条无关。

Tim*_*Tim 7

如果有人在寻找,这是我在 xterm.css addind --webkit 中的解决方案到视口选择器

.xterm .xterm-viewport {
  /* On OS X this is required in order for the scroll bar to appear fully opaque */
  background-color: transparent;
  overflow-y: scroll;
  cursor: default;
  position: absolute;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  scrollbar-color: var(--highlight) var(--dark);
  scrollbar-width: thin;
}

.xterm-viewport::-webkit-scrollbar {
  background-color: var(--dark);
  width: 5px;
}

.xterm-viewport::-webkit-scrollbar-thumb {
  background: var(--highlight);
}
Run Code Online (Sandbox Code Playgroud)