ApplicationPalette {
  qproperty-link: #007acc;
  qproperty-windowDisabled: #1c1c1c;
}

QWidget {
  font-family: "Roboto Mono", "Fira Code Retina";
  background-color: #1c1c1c;
  color: #bbbbbb;
}

QAbstractButton:disabled {
  color: #555555;
}

QAbstractItemView {
  background: #191919;
  selection-background-color: transparent;
}
QAbstractItemView:active {
  selection-background-color: #333333;
}
QAbstractItemView QWidget {
  background-color: transparent;
}
QAbstractItemView #TitleLabel, QAbstractItemView #SubtitleLabel {
  color: #bbbbbb;
  selection-color: #4d90fe;
  selection-background-color: transparent;
}

QListWidget, QTreeWidget {
  border: 1px solid #444444;
}
QListView:item:hover {
  background-color: #333333;
}
QTreeView QLabel {
  padding-top: 0.1em;
  padding-bottom: 0.1em;
}

QCheckBox::indicator {
  width: 1.8em;
  height: 1.8em;
}
QCheckBox::indicator:checked {
  image: url(./Global/Themes/Default/Images/checkbox-checked.svg);
}
QCheckBox::indicator:unchecked {
  image: url(./Global/Themes/Default/Images/checkbox-unchecked.svg);
}
QCheckBox::indicator::disabled {
  image: url(./Global/Themes/Default/Images/checkbox-disabled.svg);
}

QComboBox {
  border: 1px solid #444444;
  padding: 0.1em;
  selection-background-color: #444444;
}
QComboBox:focus {
  border: 1px solid #007acc;
}
QComboBox QLineEdit, QComboBox QLineEdit:focus {
  padding: 0px;
  border: none;
  background-color: transparent;
}
QComboBox::drop-down {
  width: 0.7em;
  padding-right: 0.2em;
  image: url(./Global/Themes/Default/Images/button-down.svg);
}

QLineEdit {
  padding: 0.1em;
  border: none;
  background-color: #333333;
}
QLineEdit[PlaceHolderText = true] {
  font-style: italic;
}
QLineEdit:focus {
  border: 1px solid #007acc;
}
QLineEdit > SwitchButton:Checked {
  border: 2px solid #333333;
  padding: 0.2em;
  background-color: #30acacac;
}
QLineEdit > SideButton:hover, QLineEdit > SwitchButton:hover {
  border: 1px solid #acacac;
  background-color: #30acacac;
}
QLineEdit > SideButton:pressed, QLineEdit > SwitchButton:pressed {
  border: 1px solid #acacac;
  background-color: #60acacac;
}
QLineEdit > #CompleterButton {
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}
QLineEdit > #CompleterButton:checked {
  border: none;
  background-color: transparent;
}

QMenuBar {
  border-bottom: 1px solid #444444;
  padding-top: 0.4em;
  padding-bottom: 0.4em;
}
QMenuBar::item:pressed, QMenuBar::item:selected {
  background-color: #007acc;
}
QMenu {
  border: 1px solid #444444;
  background-color: #333333;
}
QMenu::item {
  padding: 0.4em 0.6em 0.4em 2.2em;
}
QMenu::item:default {
  font-weight: bold;
  color: white;
}
QMenu::item:disabled {
  color: #555555;
}
QMenu::item:selected {
  border: none;
  background-color: #007acc;
}
QMenu::indicator {
  width: 2em;
  height: 2em;
}
QMenu::indicator:non-exclusive:unchecked {
  image: url(./Global/Themes/Default/Images/checkbox-unchecked.svg);
}
QMenu::indicator:non-exclusive:checked {
  image: url(./Global/Themes/Default/Images/checkbox-checked.svg);
}
QMenu::indicator:exclusive:unchecked {
  image: url(./Global/Themes/Default/Images/radiobox-unchecked.svg);
}
QMenu::indicator:exclusive:checked {
  image: url(./Global/Themes/Default/Images/radiobox-checked.svg);
}
QMenu::icon {
  margin: 0.5em;
  width: 2em;
  height: 2em;
}
QMenu::icon:checked {
  position: absolute;
  left: -10em;
}
QMenu::icon:unchecked {
  position: absolute;
  left: -10em;
}
QMenu::separator {
  height: 1px;
  background-color: #555555;
}
QMenu::right-arrow {
  position: relative;
  left: -0.6em;
}

QRadioButton::indicator {
  width: 1.8em;
  height: 1.8em;
}
QRadioButton::indicator:checked {
  image: url(./Global/Themes/Default/Images/radiobox-checked.svg);
}
QRadioButton::indicator:unchecked {
  image: url(./Global/Themes/Default/Images/radiobox-unchecked.svg);
}
QRadioButton::indicator::disabled {
  image: url(./Global/Themes/Default/Images/radiobox-disabled.svg);
}

QScrollBar {
  border: none;
  background: transparent;
  margin: 0px 0px 0px 0px;
}
QScrollBar:horizontal {
  height: 16px;
}
QScrollBar:vertical {
  width: 16px;
}
QScrollBar::handle {
  background-color: #40c0c0c0;
}
QScrollBar::handle:horizontal {
  min-width: 1em;
}
QScrollBar::handle:vertical {
  min-height: 1em;
}
QScrollBar::handle:hover {
  background-color: #40a6a6a6;
}
QScrollBar::handle:disabled {
  background-color: none;
}
QScrollBar::add-line, QScrollBar::sub-line {
  width: 0px;
  height: 0px;
}

QSpinBox {
  border: 1px solid #444444;
  padding: 0.1em;
}
QSpinBox:focus {
  border: 1px solid #007acc;
}
QSpinBox::up-button {
  width: 0.7em;
  padding: 0em 0.2em 0em 0em;
  image: url(./Global/Themes/Default/Images/button-up.svg);
}
QSpinBox::down-button {
  width: 0.7em;
  padding: 0em 0.2em 0.2em 0em;
  image: url(./Global/Themes/Default/Images/button-down.svg);
}

QSplitter::handle:horizontal {
  width: 1px;
  background-color: #444444;
}
QSplitter::handle:vertical {
  height: 1px;
  background-color: #444444;
}

QStatusBar QLabel {
  padding-left: 0.2em;
  padding-right: 0.2em;
}
QStatusBar[messageLevel = "NormalMessage"], QStatusBar[messageLevel = "NormalMessage"] > * {
  color: #bbbbbb;
}
QStatusBar[messageLevel = "InfoMessage"], QStatusBar[messageLevel = "InfoMessage"] > * {
  background-color: #007acc;
  color: white;
}
QStatusBar[messageLevel = "WarningMessage"], QStatusBar[messageLevel = "WarningMessage"] > * {
  background-color: chocolate;
  color: white;
}
QStatusBar[messageLevel = "ErrorMessage"], QStatusBar[messageLevel = "ErrorMessage"] > * {
  background-color: deeppink;
  color: white;
}

QTabBar::scroller {
  width: 0px;
}
QTabBar::tear {
  image: none;
}
QTabBar::tab {
  background-color: #333333;
  border-left: 2px solid #1c1c1c;
  height: 2em;
  min-width: 4em;
  padding-left: 0.4em;
}
QTabBar::tab::first {
  border-color: transparent;
}
QTabBar::tab:selected {
  color: white;
  border-right: 2px solid #1c1c1c;
  background-color: #1c1c1c;
}
QTabBar::tab:!selected:hover {
  background-color: #444444;
}

QToolBar {
  border: 0.2em solid transparent;
  margin-top: 0.2em;
  spacing: 0.2em;
}
QToolBar QLabel {
  padding: 0.2em;
}

QToolButton:hover {
  background-color: #333333;
}
QToolButton::menu-indicator {
  image: none;
}

QToolTip {
  font-family: "Roboto Mono", "Fira Code Retina";
  color: #bbbbbb;
  background-color: #333333;
  border: 1px solid #1c1c1c;
  padding: 0.2em;
}

AddressBar > Completer > QListView {
  border: none;
  border-bottom: 1px solid #444444;
  selection-background-color: #333333;
}
AddressBar > Completer > QListView #CategoryLabel {
  border: none;
  border-right: 2px solid #444444;
  padding-right: 0.1em;
}
EditorWindow #CategoryLabel {
  min-width: 6.5em;
  max-width: 6.5em;
}
TerminalWindow #CategoryLabel {
  min-width: 5.2em;
  max-width: 5.2em;
}
AddressBar > Completer > QListView #CategoryLabel[category = "Opened"] {
  color: mediumseagreen;
}
AddressBar > Completer > QListView #CategoryLabel[category = "Recent"] {
  color: darkorange;
}
AddressBar > Completer > QListView #IconLabel {
  padding: 0px;
}
AddressBar > Completer > QListView #SubtitleLabel {
  color: #007ACC;
}
AddressBar > Completer > QListView #TitleLabel {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}
AddressBar > QLineEdit {
  padding: 0.2em;
}
AddressBar > QLineEdit > BreadButton {
  background-color: transparent;
}
AddressBar > QLineEdit > BreadButton[type = "ArrowButton"], AddressBar > QLineEdit > BreadButton[type = "ChevronButton"] {
  padding-left: -0.2em;
  padding-right: -0.2em;
}
AddressBar > QLineEdit > BreadButton[type = "TextButton"] {
  padding-right: -0.2em;
}
AddressBar > QLineEdit > BreadButton[partial = true] {
  color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0.0 #bbbbbb stop: 0.5 darkgray stop: 1.0 #333333);
}
AddressBar > QLineEdit > BreadButton[important = false] {
  color: #bbbbbb;
}
AddressBar > QLineEdit > BreadButton:hover, AddressBar > QLineEdit > BreadButton:pressed {
  background-color: #007acc;
  color: white;
}

CommandPalette {
  background-color: #191919;
}
CommandPalette > QLineEdit {
  font-size: 10pt;
}
CommandPalette > QLineEdit #CountLabel {
  padding-right: 0.1em;
  background-color: transparent;
}
CommandPalette > QListView {
  background-color: transparent;
  border: none;
}
CommandPalette > QListView::item::selected {
  background-color: #333333;
}
CommandPalette > QListView[singleLine=true] #SubtitleLabel {
  color: gray;
}
CommandPalette > QListView[singleLine=true] #TipLabel {
  margin-top: 0.2em;
  margin-bottom: 0.2em;
}

KitDock > QWidget,
KitDock KitPane > QLabel,
KitDock QAbstractItemView,
KitDock TabGroup,
KitDock TabGroup QWidget,
KitDock QTabBar::tab:selected,
KitDock QToolBar,
KitDock QToolBar QWidget {
  background: #191919;
}

KitPane > QFrame {
  border: none;
}
KitPane FilterEdit {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #444444;
}
KitPane FilterEdit:focus {
  border: none;
  border-bottom: 1px solid #007acc;
}

#LoginWizard > QFrame {
  border: 1px solid #444444;
  background-color: #1c1c1c;
}
#LoginWizard > QLabel {
  color: #41adff;
  font-size: 11pt;
  padding: 0.4em;
}

MessageBar {
  border-top: 1px solid #333333;
  border-bottom: 1px solid #333333;
  background-color: transparent;
}
MessageBar QWidget {
  background-color: transparent;
}
MessageBar #IconLabel[state = "Critical"] {
  qproperty-pixmap: url(./Global/Themes/Default/Images/critical.svg);
}
MessageBar #IconLabel[state = "Information"] {
  qproperty-pixmap: url(./Global/Themes/Default/Images/information.svg);
}
MessageBar #IconLabel[state = "Question"] {
  qproperty-pixmap: url(./Global/Themes/Default/Images/question.svg);
}
MessageBar #IconLabel[state = "Warning"] {
  qproperty-pixmap: url(./Global/Themes/Default/Images/warning.svg);
}
MessageBar #CloseButton {
  border: none;
  image: url(./Global/Themes/Default/Images/close-normal.svg);
}
MessageBar #CloseButton:hover {
  image: url(./Global/Themes/Default/Images/close-hover.svg);
}

#PaneGroup > QTabBar::tab {
  max-width: 12em;
}

PopupWidget, PopupWidget QWidget {
  background-color: #333333;
}
PopupWidget QLabel[enabled=false] {
  color: darkgray;
}

#QuickBar {
  background: #444444;
}

#SearchPane > QLineEdit[state = "Error"] {
  border: 1px solid deeppink;
}

SideSeparator {
  background-color: #444444;
}

TabGroup QToolButton {
  background-color: transparent;
  border: none;
}
TabGroup #TextLabel {
  padding-left: 0.2em;
  qproperty-alignment: 'AlignVCenter | AlignLeft';
}
TabGroup #TextLabel[state = "Unactivated"] {
  font-style: italic;
  color: darkgray;
}
TabGroup #TextLabel[state = "Warning"] {
  color: darkorange;
}
TabGroup #TextLabel[state = "Error"] {
  color: red;
}
TabGroup #TextLabel[state = "Changed"] {
  color: DodgerBlue;
}
TabGroup #TextLabel[state = "Saved"] {
  color: mediumseagreen;
}
TabGroup #CloseButton[state = "Unactivated"] {
  image: url(./Global/Themes/Default/Images/close-unactivated.svg);
}
TabGroup #CloseButton[state = "Normal"] {
  image: url(./Global/Themes/Default/Images/close-normal.svg);
}
TabGroup #CloseButton[state = "Warning"] {
  image: url(./Global/Themes/Default/Images/close-warning.svg);
}
TabGroup #CloseButton[state = "Error"] {
  image: url(./Global/Themes/Default/Images/close-error.svg);
}
TabGroup #CloseButton[state = "Changed"] {
  image: url(./Global/Themes/Default/Images/close-changed.svg);
}
TabGroup #CloseButton[state = "Saved"] {
  image: url(./Global/Themes/Default/Images/close-saved.svg);
}

#ToolBarPopup QLabel {
  border: none;
  border-bottom: 1px solid darkgray;
  color: darkgray;
  padding-bottom: 0.2em;
  margin-bottom: 0.3em;
}
#ToolBarPopup QToolButton[popupMode="1"] {
  margin-left: 20px;
}

TextView CompleteList {
  border: 1px solid #444444;
}
TextView CompleteList::item {
  background-color: #333333;
}
TextView CompleteList::item:selected {
  background-color: #007acc;
}
TextView > QFrame {
  border: none;
}
TextView > QProgressBar {
  qproperty-format: "%p% (%vMB / %mMB)";
}
TextView > QAbstractScrollArea QScrollBar {
  background-color: #1c1c1c;
  border: none;
  margin: 0px;
}
TextView > QAbstractScrollArea QScrollBar:vertical {
  width: 1em;
}

#TextPreview {
  background-color: #207050F0;
  border-left: none;
  border-top: 2px solid #7050F0;
  border-right: none;
  border-bottom: 2px solid #7050F0;
}

#ViewGroup > QTabBar::tab {
  max-width: 20em;
  min-width: 10em;
}
#ViewGroup > QTabBar::tab:selected:!only-one {
  border-top: 1px solid #007acc;
}
