Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.
Misutaa Asriel edited this page Dec 18, 2022 · 1 revision

What OBS Toolbar Supports

The OBS Toolbar is a QT Framework Dock Widget, just as all the other dock widgets. As such, it is relatively highly-themeable as is the rest of the UI. Please refer to the following documentation to help you get started:

OBS Toolbar QSS Reference

  • #toolbarDock: The QDockWidget containing the OBS Toolbar — See also #toolbarContents

  • #toolbarContents: The root frame of the QDockWidget, containing the elements of the OBS Toolbar

  • #toolbarDock #streamButton: The Start/Stop Recording button of the OBS Toolbar. Inherits any global themeing of QAbstractButton#streamButton, which is also applied to the #streamButton in the Controls Dock (e.g. color).

  • #toolbarDock #recordButton: The Start/Stop Recording button of the OBS Toolbar. Inherits any global themeing of QAbstractButton#recordButton, which is also applied to the #recordButton in the Controls Dock (e.g. color).

  • #toolbarDock #virtualCamButton: The Virtual Camera Start/Stop button of the OBS Toolbar. Inherits any global themeing of QAbstractButton[themeID="vcamButton"]*, such as what some themes may apply to the Controls Dock (e.g. color).

  • #toolbarDock #modeSwitch: The Studio Mode button of the OBS Toolbar.

  • #toolbarDisplay: The root of the toolbar integrated status display; can be themed to change it's visual appearance (e.g. border, background color).

*Note: Due to how QT works, and the fact that the Virtual Camera button in the Controls dock is generated, not universally present, themes may need to apply some stylings to both QAbstractButton[themeID="vcamButton"] and #controlsDockContents *[themeID="vcamButton"]. This is a limitation of QT UI and the way OBS Studio generates the camera button.


Examples

  1. Set the status display to have a custom background with transparency, border with transparency, and a curved design:
#toolbarDisplay {
	border: 1px solid rgba(127,127,127,0.5);
	background-color: rgba(127,127,127,0.25);
	border-radius: 6px;
}
  1. Set the toolbar to have a different background color, with transparency:
#toolbarContents {
	background-color: rgba(127,127,127,0.5;
}
  1. Set all record buttons to have a red color, and change the icon in the toolbar:
#toolbarDock #recordButton {
	qproperty-icon: url(./Theme Assets/Folder/icon.svg);
}

QAbstractButton#recordButton {
	background-color: rgb(80, 50, 60);
	border: 1px solid rgb(80, 50, 60);
}

QAbstractButton:hover#recordButton {
	background-color: rgb(180, 60, 90);
	border: 1px solid rgb(180, 60, 90);
}

QAbstractButton:checked#recordButton {
	background-color: rgb(255, 0, 20);
	border: 1px solid rgb(255, 0, 20);
}

QAbstractButton:checked:hover#recordButton {
	background-color: rgb(255, 80, 120);
	border: 1px solid rgb(255, 80, 120);
}

Further Reading

Please refer to the QT Style Sheet Syntax and the QT Style Sheet Reference for more on themeing elements, valid selector, properties, and more.

Clone this wiki locally