/* Set the selection colors for all widgets.*/


@defaultTextColor = rgb(250, 248, 216);
@darkBkgndColor = rgb(20, 20, 20);
@lightBkgndColor = rgb(30, 30, 30);
@borderColor = rgb(0,0,0);
@decorationColor = rgb(200,0,0);



QDialog{
  border: 1px solid @borderColor;
  background-color: @lightBkgndColor
}


QMessageBox,QFileDialog{
  border: 1px solid #FF0000;
  background-color: @lightBkgndColor
}


QTabBar QToolButton { /* the scroll buttons are tool buttons */
    background-color:  @lightBkgndColor;
    border: 1px solid @borderColor;  
 }

QMessageBox>QDialogButtonBox>QPushButton, QFileDialog>QDialogButtonBox>QPushButton,QFontDialog>QDialogButtonBox>QPushButton{ 
   border: none;
   padding: 5px;
   padding-left:20px;
   padding-right:20px;
   background-color: qlineargradient(spread:pad, x1:0.477, y1:0.034, x2:0.472, y2:1, stop:0 rgba(0, 0, 0, 255), stop:0.551136 rgba(115, 113, 115, 255), stop:1 rgba(0, 0, 0, 255));
}

QFrame#ctrlFrame,QFrame#spinFrame,QFrame#playControlFrame,QFrame#visFrame,NewQueryDlg>QFrame{
    border-radius: 5px;
    border: 1px solid @borderColor
}


QDoubleSpinBox{
    border-radius: 2px;
    border: 1px solid rgb(148,0,0);
}

QFrame#mcframe {  
    border: 1px solid #FF0000;
    border-radius: 2px; 
}

QDialog#TrackPropertyDlg{
    border: 1px solid #FF0000;
    border-radius: 5px; 
}

QListWidget {
   color: @defaultTextColor
   border-radius: 5px;
   border: 1px solid @borderColor;
   background-color: darkGray;
}

QMainWindow,QTabWidget {
   background-color: @darkBkgndColor
}

QMainWindow::separator {
     background: @borderColor;
     width: 3px; /* when vertical */
     height: 3px; /* when horizontal */
 }

QMainWindow::separator:hover {
     background:  #FF0000;
 }


QTableView {
     color: @defaultTextColor
     alternate-background-color: @darkBkgndColor
     background: @lightBkgndColor 
}


QTableView QTableCornerButton::section {
     background-color: qradialgradient(spread:pad, cx:0, cy:0, radius:0.996, fx:0, fy:0, stop:0 rgba(148, 0, 0, 255), stop:0.335227 rgba(148, 0, 0, 255), stop:0.892045 rgb(76, 76, 76));
     border: 1px solid rgba(0, 0, 0, 0);
     border-bottom-color:black;
     border-right-color:black;
}


QSplitter::handle:vertical {
    background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0,stop:0 rgba(255, 255, 255, 0), stop:0.407273 rgba(200, 200, 200, 255), 
    stop:0.4825 rgba(101, 104, 113, 235), 
    stop:0.6 rgba(255, 255, 255, 0));
    height: 7px; 
}


QHeaderView::section {
    color:  rgb(240,40,0);
    background-color: rgb(76, 76, 76); 
}

QTableWidget {
    color: @defaultTextColor
    border-radius: 5px;
    border: 1px solid @borderColor
    alternate-background-color: @lightBkgndColor;
    background: @darkBkgndColor 
}


QTableWidget#twDone {
   background-color: rgb(143, 143, 143);
   alternate-background-color: rgb(120, 120, 120);
   color: rgb(80, 80, 80);
}



QTableWidget#twPlay {
   background-color: rgb(80, 80, 80);
   color: rgb(255, 255, 255);
}



QTreeWidget {
    color: rgb(240,40,0);
    border-radius: 5px;
    border: 1px solid @borderColor
    background-color: @darkBkgndColor
}

QTabWidget::pane {
     border: 1px solid @borderColor
     background-color: @lightBkgndColor
}


QTabBar::tab {
    color: @defaultTextColor;
    background-color: @lightBkgndColor;
    border: 1px solid #808080; 
    min-width: 80;
    min-height: 20;
    alignment:  left;
}

QTabBar::tab:selected {
    color:@defaultTextColor;
    border: 1px solid @decorationColor;
    background-color: @lightBkgndColor;
    margin-left: -6px;
    margin-right: -6px;
}

QTabBar QToolButton::right-arrow {
     image:  url(:/images/rightarrow.png);
}

QTabBar QToolButton::left-arrow {
     image:  url(:/images/leftarrow.png);
}


QWidget#dockWidgetArea {
    color: @defaultTextColor
    background-color: @lightBkgndColor
}

QWidget#PlayerColorOptTab {
        background-color: @lightBkgndColor
}


QDockWidget{
    color: @defaultTextColor;
    border: 1px solid black;
    background-color: @darkBkgndColor
}


QDockWidget::close-button, QDockWidget::float-button {
     background: gray;
     padding: 3px;
 }

QDockWidget::title {
    color: @defaultTextColor
    background-color: rgb(40, 40, 40);
}

QPushButton { 
   border-radius: 3px;
   border: none;
   padding-left:5px;
   padding-right:5px;
   color: rgb(240,40,0);
   background-color: qlineargradient(spread:pad, x1:0.477, y1:0.034, x2:0.472, y2:1, 
     stop:0 rgba(0, 0, 0, 255), 
     stop:0.5 rgba(115, 113, 115, 255), 
     stop:1 rgba(0, 0, 0, 255));
}

QPushButton:disabled {
     border-radius: 3px;
     border: none;
     padding-left:5px;
     padding-right:5px;
     color: rgb(155, 45, 0);
     background-color:  #808080;
 }


QPushButton:pressed {
     border-radius: 3px;
     border: none;
     padding-left:5px;
     padding-right:5px;
     background-color:  #808080;
 }

QPushButton:checked {
     color:  @defaultTextColor
     background-color: qlineargradient(spread:pad, x1:0.477, y1:0.034, x2:0.472, y2:1,
       stop:0   rgba(125, 125, 125, 255),
       stop:0.5 rgba(20, 20, 20, 255), 
       stop:1   rgba(125, 125, 125, 255));
     border-style: inset;
     border: 1px solid rgb(148,0,0);
 }

QPushButtonShadow {  
   border-radius: 5px; 
}



Player {
     qproperty-ctrlImages: ":/images/player_play_r1.png;:/images/player_pause_r1.png;:/images/player_next_r1.png;:/images/player_stop_r1_64.png;:/images/arrow32r.png";
     qproperty-glowColor:   rgb(148,0,0);
}

CollectionTable,QueryTableWidget,NTableWidget {
     qproperty-ctrlImages: ":/images/media-play-5.png;:/images/player-stop.png";
}




DropLabelShadow {
   qproperty-glowColor: #00FF80;
   qproperty-glowEnabled: 1;
   color: @defaultTextColor
   background-color: @lightBkgndColor
}



QLabel,QCheckBox,QRadioButton,QGroupBox {
   color: @defaultTextColor;
}


QCheckBox:disabled {
     color: grey;
}



QMenu,QTableWidget::QMenu, QueryTableWidget::QMenu
{
     background-color: @darkBkgndColor
     border-radius: 5px;
     color: @defaultTextColor;
     border: 2px solid  rgb(250,0,0);
 }

QMenu::item:selected  {
     color: rgb(255, 0, 0);
 }

QMenu::item:disabled  {
     color: rgb(100, 100, 100);
 }




QScrollBar:horizontal{
     border: none;
     background: rgb(70, 70, 70);
     height: 18px;
     margin: 0px 20px 0px 20px;
}

QScrollBar::sub-line:horizontal {
    
    width: 20px;
    subcontrol-position: left;
    subcontrol-origin: margin;
}

QScrollBar::handle:horizontal {
     background: #606060;
     border: 1px solid rgb(148,0,0);
     width: 18px;
}

QScrollBar::add-line:horizontal {
    
    width: 20px;
    subcontrol-position: right;
    subcontrol-origin: margin;
}


QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {    margin: 20px;
    background: none;
}


QScrollBar:vertical {
    border: none;
    background: rgb(70, 70, 70);
    width: 18px;
    margin: 20px 0px 20px 0px;
}

QScrollBar::add-line:vertical {
    
    height: 20px;
    subcontrol-position: bottom;
    subcontrol-origin: margin;
}

QScrollBar::handle:vertical {
     background:  #606060;
     border: 1px solid rgb(148,0,0);
     min-height: 10px;
}

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

QScrollBar::sub-line:vertical {
    height: 20px;
    subcontrol-position: top;
    subcontrol-origin: margin;
}

QProgressBar,ActiveProgressBar {
    border: 1px solid black;
    background-color: rgb(120,0,0);
}


QProgressBar::chunk, ActiveProgressBar::chunk {
    background-color: qlineargradient(spread:reflect, x1:0.477, y1:0.482954, x2:0.482636, y2:1, stop:0.25 rgba(250, 131, 129, 255), stop:1 rgba(184, 0, 0, 255));
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;   
    border: 1px solid black;
}

QDialog#ID3MultEditDlg QCheckBox{
   color: @defaultTextColor
}



QSlider::groove:horizontal {
    background: @darkBkgndColor;
    border: 1px solid @borderColor;
    height: 4px;
}

QSlider#hsBalance::sub-page:horizontal {
    background:   qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0.3 rgba(90, 0, 0, 255), stop:1 rgba(255, 0, 0, 255));
    border: 1px solid black;
    height: 3px;
}

QSlider#hsBalance::add-page:horizontal {
   background:   qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0  rgba(255, 0, 0, 255), stop:0.7 rgba(90, 0, 0, 255));
    border: 1px solid black;
    height: 3px;
}

QSlider::sub-page:horizontal {
    background:   qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0.7 rgba(90, 0, 0, 255), stop:1 rgba(255, 0, 0, 255));
    border: 1px solid black;
    height: 3px;
}

QSlider::add-page:horizontal {
    background: red;
    border: 1px solid black;
    height: 3px;
}




QSlider::handle:horizontal {
    background:rgb(150,0,0);
    border: 1px solid @borderColor;
    width: 6px;
    margin-top: -10px;
    margin-bottom: -5px;
}

QSlider::handle:horizontal:hover {
    background: #FF8000;
    border: 1px solid white;
}


QSlider#volumeSlider2::groove:horizontal {
border: 1px solid #bbb;
background: white;
height: 10px;
border-radius: 4px;
}

QSlider#volumeSlider2::sub-page:horizontal {
background: qlineargradient(spread:pad, x1:0, y1:0.546, x2:1, y2:0.511, stop:0 rgba(50, 0, 0, 255), stop:1 rgba(255, 0, 0, 255));
border: 1px solid #777;
height: 10px;
border-radius: 4px;
}

QSlider#volumeSlider2::add-page:horizontal {
background: #FF0000;
border: 1px solid #777;
height: 10px;
border-radius: 4px;
}

QSlider#volumeSlider2::handle:horizontal {
background: rgb(150,0,0);
border: 1px solid #777;
width: 13px;
margin-top: -2px;
margin-bottom: -2px;
border-radius: 4px;
}

QSlider#volumeSlider2::handle:horizontal:hover {
background:  #FF8000;
border: 1px solid #444;
border-radius: 4px;
}



VisWidget{
   qproperty-hotSpotTexture:  'qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5, stop:0.0625 rgba(255, 255, 255, 255), stop:0.181818 rgba(255, 255, 255, 125), stop:1 rgba(255, 255, 255, 0))';
   qproperty-fanColor: rgb(148,0,0);;
   qproperty-volGlowColor: rgb(148,0,0);
   qproperty-wbLineColor:  red;
   qproperty-wbbkgnd: 'qlineargradient(spread:pad, x1:0.4, y1:0.0, x2:0.5, y2:1, stop:0 rgba(148, 0, 0, 255), stop:0.5 rgba(0, 0, 0, 255), stop:1 rgba(148, 0, 0, 255))';
   qproperty-peekMeterBkgnd: 'qlineargradient(spread:pad, x1:0.489, y1:0.994318, x2:0.483, y2:0.0344091, stop:0.4375 rgba(203, 0, 3, 255), stop:0.784091 rgba(255, 255, 255, 255), stop:1 rgba(255, 255, 0, 255))';
   qproperty-backcolor: @lightBkgndColor;
}
