#CustomWindow,#MessageBox,#SettingsDialog,#CreateTorrentDialog,#OpenTorrentDialog,#DTMountDialog {
    background-color: #f0f0f0;
    border: 2px solid #909090;
}

QLabel#LTitile {
    color: #b1b1b1;
}

QToolBar {
    border-bottom: none;
    border-top: none;
    spacing: 3px;
    padding-right: 2px;
    border-width: 0;
}

#torrentSorterView {
    min-height: 18px;
    max-height: 18px;
}

QToolTip {
    border: 1px solid #000;
    background-color: #ffa02f;
    padding: 1px;
    border-radius: 3px;
    opacity: 100;
}

QWidget {
    color: #b1b1b1;
    background-color: #323232;
}

QListView {
    show-decoration-selected: 1;
}

QTreeView {
    left: 15px;
    border: 1px solid #909090;
    background-color: transparent;
    show-decoration-selected: 1;
    outline: 0;
    color: #000;
}

QTreeView::branch {
    background: transparent;
}

QTreeView::item:hover {
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #d2d2d2,stop: 1 #4d4d4d);
}

QTreeView::branch:hover {
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #d2d2d2,stop: 1 #4d4d4d);
}

QTreeView::item:selected {
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #d6d6d6,stop: 1 #4d4d4d);
}

QTreeView::branch:selected {
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #d6d6d6,stop: 1 #4d4d4d);
}

QListView:item:hover:!selected {
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #d6d6d6,stop: 1 #4d4d4d);
    color: #000;
}

QTreeView::branch:selected,QListView:item:selected:!hover,QListView:item:selected:hover {
    color: #000;
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #d6d6d6,stop: 1 #4d4d4d);
}

QMenuBar::item {
    background: transparent;
}

QMenuBar::item:selected {
    background: transparent;
    border: 1px solid #fa0;
}

QMenuBar::item:pressed {
    background: #444;
    border: 1px solid #000;
    background-color: QLinearGradient(x1:0,y1:0,x2:0,y2:1,stop:1 #212121,stop:0.4 #343434);
    margin-bottom: -1px;
    padding-bottom: 1px;
}

QMenu {
    border: 1px solid #000;
}

QMenu::item {
    padding: 2px 20px;
}

QMenu::item:selected {
    color: #000;
}

QWidget:disabled {
    color: #404040;
    background-color: #323232;
}

QAbstractItemView {
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #4d4d4d,stop: 0.1 #646464,stop: 1 #5d5d5d);
}

QLineEdit {
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #4d4d4d,stop: 0 #646464,stop: 1 #5d5d5d);
    padding: 1px;
    border-style: solid;
    border: 1px solid #1e1e1e;
    border-radius: 5;
}

QPushButton, SortButton {
    color: #b1b1b1;
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #565656,stop: 0.1 #525252,stop: 0.5 #4e4e4e,stop: 0.9 #4a4a4a,stop: 1 #464646);
    border-width: 1px;
    border-color: #1e1e1e;
    border-style: solid;
    border-radius: 6;
    padding: 3px;
    font-size: 12px;
    padding-left: 5px;
    padding-right: 5px;
}

QPushButton:pressed, SortButton:pressed {
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #2d2d2d,stop: 0.1 #2b2b2b,stop: 0.5 #292929,stop: 0.9 #282828,stop: 1 #252525);
}

QPushButton:flat, SortButton:flat {
    border: none;
	background-color: transparent;
/* no border for a flat push button */
}

QComboBox {
    selection-background-color: #fa0;
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #565656,stop: 0.1 #525252,stop: 0.5 #4e4e4e,stop: 0.9 #4a4a4a,stop: 1 #464646);
    border-style: solid;
    border: 1px solid #1e1e1e;
    border-radius: 5;
}

QComboBox:hover,QPushButton:hover {
    border: 2px solid QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #ffa02f,stop: 1 #d7801a);
}

QComboBox:on {
    padding-top: 3px;
    padding-left: 4px;
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #2d2d2d,stop: 0.1 #2b2b2b,stop: 0.5 #292929,stop: 0.9 #282828,stop: 1 #252525);
    selection-background-color: #fa0;
}

QComboBox QAbstractItemView {
    border: 2px solid #a9a9a9;
    selection-background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #ffa02f,stop: 1 #d7801a);
}

QComboBox::drop-down, SortButton::menu-indicator, QPushButton::menu-indicator {
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #4d4d4d,stop: 0 #646464,stop: 1 #5d5d5d);
    subcontrol-origin: padding;
    subcontrol-position: top right;
    width: 15px;
    border-left-width: 0;
    border-left-color: #a9a9a9;
    border-left-style: solid;
/* just a single line */
    border-top-right-radius: 3px;
/* same radius as the QComboBox */
    border-bottom-right-radius: 3px;
}

QComboBox::down-arrow {
    width: 16px;
    height: 16px;
    image: url($[STYLE_DIR]/down_arrow.png);
}

QGroupBox::title {
    left: 4px;
    subcontrol-origin: margin;
    subcontrol-position: top left;
/* position at the top center */
    padding: 0 3px;
}

QGroupBox:focus {
    border: 2px solid QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #ffa02f,stop: 1 #d7801a);
}

QTextEdit:focus {
    border: 2px solid QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #ffa02f,stop: 1 #d7801a);
}

QScrollBar:horizontal {
    border: 1px solid #222;
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0.0 #121212,stop: 0.2 #282828,stop: 1 #484848);
    height: 7px;
    margin: 0 16px;
}

QScrollBar::handle:horizontal {
    background: QLinearGradient(x1: 0,y1: 0,x2: 1,y2: 0,stop: 0 #ffa02f,stop: 0.5 #d7801a,stop: 1 #ffa02f);
    min-height: 20px;
    border-radius: 2px;
}

QScrollBar::add-line:horizontal {
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: QLinearGradient(x1: 0,y1: 0,x2: 1,y2: 0,stop: 0 #ffa02f,stop: 1 #d7801a);
    width: 0;
    subcontrol-position: right;
    subcontrol-origin: margin;
}

QScrollBar::sub-line:horizontal {
    border: none;
    width: 0;
}

QScrollBar::right-arrow:horizontal,QScrollBar::left-arrow:horizontal {
    height: 0;
}

QScrollBar::add-page:horizontal,QScrollBar::sub-page:horizontal {
    height: 0;
    background: none;
}

QScrollBar:vertical {
    background: QLinearGradient(x1: 0,y1: 0,x2: 1,y2: 0,stop: 0.0 #121212,stop: 0.2 #282828,stop: 1 #484848);
    width: 7px;
    border: 1px solid #222;
}

QScrollBar::handle:vertical {
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #ffa02f,stop: 0.5 #d7801a,stop: 1 #ffa02f);
    min-height: 20px;
    border-radius: 2px;
}

QScrollBar::add-line:vertical {
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #ffa02f,stop: 1 #d7801a);
    height: 0;
    subcontrol-position: bottom;
    subcontrol-origin: margin;
}

QScrollBar::sub-line:vertical {
    border: 1px solid #1b1b19;
    border-radius: 2px;
    background: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #d7801a,stop: 1 #ffa02f);
    height: 0;
    subcontrol-position: top;
    subcontrol-origin: margin;
}

QScrollBar::up-arrow:vertical,QScrollBar::down-arrow:vertical {
    border: none;
    height: 0;
}

QScrollBar::add-page:vertical,QScrollBar::sub-page:vertical {
    background: none;
}

QTextEdit {
    background-color: #242424;
}

QPlainTextEdit {
    background-color: #242424;
}

QHeaderView::section {
    background-color: QLinearGradient(x1:0,y1:0,x2:0,y2:1,stop:0 #616161,stop: 0.5 #505050,stop: 0.6 #434343,stop:1 #656565);
    color: #fff;
    padding-left: 4px;
    border: 1px solid #6c6c6c;
}

QCheckBox:disabled {
    color: #414141;
}

QDockWidget::title {
    text-align: center;
    spacing: 3px;
/* spacing between items in the tool bar */
    background-color: QLinearGradient(x1:0,y1:0,x2:0,y2:1,stop:0 #323232,stop: 0.5 #242424,stop:1 #323232);
}

QDockWidget::close-button,QDockWidget::float-button {
    text-align: center;
    spacing: 1px;
/* spacing between items in the tool bar */
    background-color: QLinearGradient(x1:0,y1:0,x2:0,y2:1,stop:0 #323232,stop: 0.5 #242424,stop:1 #323232);
}

QDockWidget::close-button:hover,QDockWidget::float-button:hover {
    background: #242424;
}

QDockWidget::close-button:pressed,QDockWidget::float-button:pressed {
    padding: 1px -1px -1px 1px;
}

QMainWindow::separator {
    background-color: QLinearGradient(x1:0,y1:0,x2:0,y2:1,stop:0 #161616,stop: 0.5 #151515,stop: 0.6 #212121,stop:1 #343434);
    color: #fff;
    padding-left: 4px;
    border: 1px solid #4c4c4c;
    spacing: 3px;
/* spacing between items in the tool bar */
}

QMainWindow::separator:hover {
    background-color: QLinearGradient(x1:0,y1:0,x2:0,y2:1,stop:0 #d7801a,stop:0.5 #b56c17 stop:1 #ffa02f);
    color: #fff;
    padding-left: 4px;
    border: 1px solid #6c6c6c;
    spacing: 3px;
/* spacing between items in the tool bar */
}

QToolBar::handle {
    spacing: 3px;
/* spacing between items in the tool bar */
    background: url($[STYLE_DIR]/handle.png);
}

QMenu::separator {
    height: 2px;
    background-color: QLinearGradient(x1:0,y1:0,x2:0,y2:1,stop:0 #161616,stop: 0.5 #151515,stop: 0.6 #212121,stop:1 #343434);
    color: #fff;
    padding-left: 4px;
    margin-left: 10px;
    margin-right: 5px;
}

QProgressBar {
    border: 2px solid grey;
    border-radius: 5px;
    text-align: center;
    background-color: transparent;
}

QProgressBar::chunk {
    background-color: #d7801a;
    width: 2.15px;
    margin: .5px;
}

QTabBar::tab {
    color: #b1b1b1;
    border: 1px solid #444;
    border-bottom-style: none;
    background-color: #323232;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 3px;
    padding-bottom: 2px;
    margin-right: -1px;
}

QTabWidget::pane {
    border: 1px solid #444;
    top: 1px;
}

QTabBar::tab:last {
    margin-right: 0;
/* the last selected tab has nothing to overlap with on the right */
    border-top-right-radius: 3px;
}

QTabBar::tab:first:!selected {
    margin-left: 0;
/* the last selected tab has nothing to overlap with on the right */
    border-top-left-radius: 3px;
}

QTabBar::tab:!selected {
    color: #b1b1b1;
    border-bottom-style: solid;
    margin-top: 3px;
    background-color: QLinearGradient(x1:0,y1:0,x2:0,y2:1,stop:1 #212121,stop:.4 #343434);
}

QTabBar::tab:selected {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    margin-bottom: 0;
}

QTabBar::tab:!selected:hover {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    background-color: QLinearGradient(x1:0,y1:0,x2:0,y2:1,stop:1 #212121,stop:0.4 #343434,stop:0.2 #343434,stop:0.1 #fa0);
}

QRadioButton::indicator:checked,QRadioButton::indicator:unchecked {
    color: #b1b1b1;
    background-color: #323232;
    border: 1px solid #b1b1b1;
    border-radius: 6px;
}

QRadioButton::indicator:checked {
    background-color: qradialgradient(cx: 0.5,cy: 0.5,fx: 0.5,fy: 0.5,radius: 1.0,stop: 0.25 #fa0,stop: 0.3 #323232);
}

QCheckBox::indicator,QTreeView::indicator,QGroupBox::indicator {
    color: #b1b1b1;
    background-color: #323232;
    border: 1px solid #b1b1b1;
    width: 9px;
    height: 9px;
}

QGroupBox::indicator {
    margin-left: 5px;
}

QRadioButton::indicator {
    border-radius: 6px;
}

QTreeView::indicator:hover,QGroupBox::indicator:hover,QRadioButton::indicator:hover,QCheckBox::indicator:hover {
    border: 1px solid #fa0;
}

QTreeView::indicator:checked,QGroupBox::indicator:checked,QCheckBox::indicator:checked {
    image: url($[STYLE_DIR]/checkbox.png);
}

QCheckBox::indicator:disabled,QRadioButton::indicator:disabled {
    border: 1px solid #444;
}

QTreeView::indicator:indeterminate {
    image: url($[STYLE_DIR]/checkbox-partitaly.png);
}

QSpinBox {
    padding-right: 15px;
/* make room for the arrows */
    border-style: solid;
    border: 1px solid #1e1e1e;
    border-radius: 5;
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #4d4d4d,stop: 0 #646464,stop: 1 #5d5d5d);
}

QSpinBox::up-button {
    subcontrol-origin: border;
    subcontrol-position: top right;
/* position at the top right corner */
    width: 16px;
/* 16 + 2*1px border-width = 15px padding + 3px parent border */
    border: 1px solid #1e1e1e;
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #4d4d4d,stop: 0 #646464,stop: 1 #5d5d5d);
}

QSpinBox::up-arrow {
    width: 7px;
    height: 7px;
    image: url($[STYLE_DIR]/spin-plus.png);
}

QSpinBox::down-button {
    subcontrol-origin: border;
    subcontrol-position: bottom right;
/* position at bottom right corner */
    width: 16px;
    border: 1px solid #1e1e1e;
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #4d4d4d,stop: 0 #646464,stop: 1 #5d5d5d);
    border-top: none;
}

QSpinBox::down-button:hover,QSpinBox::up-button:hover {
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #d6d6d6,stop: 1 #4d4d4d);
}

QSpinBox::down-button:pressed,QSpinBox::up-button:pressed {
    background-color: QLinearGradient(x1: 0,y1: 0,x2: 0,y2: 1,stop: 0 #2d2d2d,stop: 1 #4d4d4d);
}

QSpinBox::down-arrow {
    image: url($[STYLE_DIR]/spin-minus.png);
    width: 7px;
    height: 7px;
}