/******************************************************************
class QCheckBox
******************************************************************/
QCheckBox {
    font-size: 12px;
}
QCheckBox::indicator:!disabled:unchecked {
     image: url(:/Resources/blue_checkbox_1.png);
}

QCheckBox::indicator:!disabled:checked {
     image: url(:/Resources/blue_checkbox_2.png);
}

QCheckBox::indicator:disabled {
     image: url(:/Resources/blue_checkbox_0.png);
}

QWidget{
	color: #3c3c3c;
}
/******************************************************************
class QToolBox
******************************************************************/
QToolBox {
     border-radius: 5px;
     color: darkgray;
     border-width: 1;
     border-color: white;
}

QToolBox::tab {
     background: qlineargradient(x1: 5, y1: 0, x2: 0, y2: 1,
                                 stop: 0 #21E121, stop: 0.4 #111111,
                                 stop: 0.5 #D8D8D8, stop: 1.0 #111111);
     border-radius: 2px;
     color: darkgray;
     border-width: 1;
}

QToolBox::tab:selected {
     font: italic;
     color: #eeeeee;
}

/******************************************************************
class QTableView
******************************************************************/
QTableView {
		alternate-background-color: #e1e3e5;
}
QTableView {
		selection-background-color: #5b658a;
		qproperty-alternatingRowColors: 1;
		color: black;
		padding: 0px; 
}
QTableView::item{
	height: 10px;
	line-height: 10px;
	max-height: 10px;
	min-height: 10px;
	font-size:5px;
    padding-bottom: 0px;
    padding-top: 0px;
    padding-left: 0px;
    padding-right: 1px;
    margin: 0px;
}
QTableView::item:selected {
	background: #5b658a;
	color: white;
}

QTableView::item:selected:active{
	background: #5b658a;
	color: white;
}

QTableView::item:selected:!active {
	background: #5b658a;
	color: white;
}
/******************************************************************
class QLabel
******************************************************************/
QLabel {
    border: none;
    border-image: none;
    padding: 0;
    background: none;
}

/******************************************************************
class QRadioButton
******************************************************************/
/*
QRadioButton {
    spacing: 5px;
}

QRadioButton::indicator {
    width: 13px;
    height: 13px;
}

QRadioButton::indicator::unchecked {
    image: url(Resources/radiobutton_unchecked.png);
}

QRadioButton::indicator:unchecked:hover {
    image: url(Resources/radiobutton_unchecked_hover.png);
}

QRadioButton::indicator:unchecked:pressed {
    image: url(Resources/radiobutton_unchecked_pressed.png);
}

QRadioButton::indicator::checked {
    image: url(Resources/radiobutton_checked.png);
}

QRadioButton::indicator:checked:hover {
    image: url(Resources/radiobutton_checked_hover.png);
}

QRadioButton::indicator:checked:pressed {
    image: url(Resources/radiobutton_checked_pressed.png);
}

QRadioButton:hover {
	background-color: #05B8CC;
}
*/
/******************************************************************
class QCheckBox
******************************************************************/
/*
QCheckBox {
    spacing: 5px;
}

QCheckBox::indicator {
    width: 13px;
    height: 13px;
}

QCheckBox::indicator:unchecked {
    image: url(Resources/checkbox_unchecked.png);
}

QCheckBox::indicator:unchecked:hover {
    image: url(Resources/checkbox_unchecked_hover.png);
}

QCheckBox::indicator:unchecked:pressed {
    image: url(Resources/checkbox_unchecked_pressed.png);
}

QCheckBox::indicator:checked {
    image: url(Resources/checkbox_checked.png);
}

QCheckBox::indicator:checked:hover {
    image: url(Resources/checkbox_checked_hover.png);
}

QCheckBox::indicator:checked:pressed {
    image: url(Resources/checkbox_checked_pressed.png);
}
*/

/******************************************************************
class QSpinBox
******************************************************************/

QSpinBox { 
    padding-right: 15px;
    border: 1px solid gray;
}

QSpinBox::up-button {
    subcontrol-origin: border;
    subcontrol-position: top right;

    width: 16px; /* 16 + 2*1px border-width = 15px padding + 3px parent border */
    border-image: url(Resources/spinup.png) 1;
    border-width: 1px;
}

QSpinBox::up-button:hover {
    border-image: url(Resources/spinup_hover.png) 1;
}

QSpinBox::up-button:pressed {
    border-image: url(Resources/spinup_pressed.png) 1;
}

QSpinBox::down-button {
    subcontrol-origin: border;
    subcontrol-position: bottom right;

    width: 16px;
    border-image: url(Resources/spindown.png) 1;
    border-width: 1px;
    border-top-width: 0;
}

QSpinBox::down-button:hover {
    border-image: url(Resources/spindown_hover.png) 1;
}

QSpinBox::down-button:pressed {
    border-image: url(Resources/spindown_pressed.png) 1;
}

/******************************************************************
class QGroupBox
******************************************************************/

QGroupBox {
	border: 1px solid #383c42;
	border-radius: 5px;
	margin-top: 2ex;
	padding-top: 5px;
	padding-bottom: 3px;
}

QGroupBox::title {
	subcontrol-origin: margin;
	subcontrol-position: top left;
	left:15px;
	font-family: "MS Shell Dlg";
 }


/******************************************************************
class QListView
******************************************************************/
/*
  QListView {
     show-decoration-selected: 1;
     border: 1px solid #6a6ea9;
 }

 QListView::item:alternate {
     background: #EEEEEE;
 }

 QListView::item:selected {
     border: 1px solid #2b0b21;
 }

 QListView::item:selected:!active {
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                 stop: 0 #ABA1E5, stop: 1 #8588B2);
 }

 QListView::item:selected:active {
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                 stop: 0 #1a62a9, stop: 1 #888dd9);
 }

 QListView::item:hover {
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                 stop: 0 #FAFBFE, stop: 1 #DCDEF1);
 }
 
 QListView::item{
  height:32px;
 }
*/

/******************************************************************
class QProgressBar
******************************************************************/
QProgressBar:horizontal {
	border: 2px solid #bbbcc3;
	border-radius: 3px;
	background: white;
	padding: 2px;
}
QProgressBar::chunk:horizontal {
	border-radius: 2px;
	width: 10px;
	margin: 0.5px;
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #a7a7e1, stop: 1 #7574a5);
}

 /******************************************************************
class QToolButton
******************************************************************/
 QToolButton{
     background-image: url(Resources/woodbackground.png);
     background-attachment: scroll;
     border: 1px solid #6a6ea9;			/*为什么加入border之后才会出现背景.*/
 }
  QToolButton:hover {
     border: 1px solid #6a1e19;
     background-image: url(Resources/timelinePillGreen.png);
 }

/******************************************************************
class QTabWidget
******************************************************************/

 QTabWidget::pane {
	top: 10px;
	position: absolute;
 }

 QTabWidget::tab-bar {
    alignment: center;
 }

 /* Style the tab using the tab sub-control. Note that
     it reads QTabBar _not_ QTabWidget */
 QTabBar::tab {
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
							 stop: 0 #d1d4cd, stop: 0.4 #c7cac7,
							 stop: 0.5 #c5c8c5, stop: 1.0 #b5b8bb);
	border: 1px solid #9c9f99;

	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	min-width:		150px;
	min-height:	18px;
	color:#686c71;
}
 
QTabBar::tab:hover , QTabBar::tab:selected {
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                 stop: 0 #898e96, stop: 0.4 #6b7077,
                                 stop: 0.5 #666b72, stop: 1.0 #3e4248);
	border: 1px solid #9c9f99;
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	min-width: 150px;
	color:white;
}

 QTabBar::tab:!selected {
     margin-top: 2px; /* make non-selected tabs look smaller */
 }
 
 
 /******************************************************************
class QToolBox
******************************************************************/
  QToolBox::tab {
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                 stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
                                 stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
     border-radius: 5px;
     color: darkgray;
 }

 QToolBox::tab:selected { /* italicize selected tabs */
     font: italic;
     color: white;
 }
 
/******************************************************************
class QTreeView
******************************************************************/
QTreeView::item:selected {
	background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #008fff, stop: 0.3 #3fa7fa, stop: 1 #eae9f0);
}

QTreeView::item:selected:active{
	background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #008fff, stop: 0.3 #3fa7fa, stop: 1 #eae9f0);
}

QTreeView::item:selected:!active {
	background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #008fff, stop: 0.3 #3fa7fa, stop: 1 #eae9f0);
}

/*
QTreeView {
     alternate-background-color: yellow;
     show-decoration-selected: 1;
 }


 QTreeView::item:hover {
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);
     border: 1px solid #bfcde4;
 }

 QTreeView::item:selected {
     border: 1px solid #567dbc;
 }

 QTreeView::item:selected:active{
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);
 }

 QTreeView::item:selected:!active {
     background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6b9be8, stop: 1 #577fbf);
 }

 QTreeView::branch {
         background: palette(base);
 }

 QTreeView::branch:has-siblings:!adjoins-item {
         background: cyan;
 }

 QTreeView::branch:has-siblings:adjoins-item {
         background: red;
 }

 QTreeView::branch:!has-children:!has-siblings:adjoins-item {
         background: blue;
 }

 QTreeView::branch:closed:has-children:has-siblings {
         background: pink;
 }

 QTreeView::branch:has-children:!has-siblings:closed {
         background: gray;
 }

 QTreeView::branch:open:has-children:has-siblings {
         background: magenta;
 }

 QTreeView::branch:open:has-children:!has-siblings {
         background: green;
 }

    
 QTreeView::branch:has-siblings:!adjoins-item {
     border-image: url(Resources/vline.png) 0;
 }

 QTreeView::branch:has-siblings:adjoins-item {
     border-image: url(Resources/branch-more.png) 0;
 }

 QTreeView::branch:!has-children:!has-siblings:adjoins-item {
     border-image: url(Resources/branch-end.png) 0;
 }

 QTreeView::branch:has-children:!has-siblings:closed,
 QTreeView::branch:closed:has-children:has-siblings {
         border-image: none;
         image: url(Resources/branch-closed.png);
 }

 QTreeView::branch:open:has-children:!has-siblings,
 QTreeView::branch:open:has-children:has-siblings  {
         border-image: none;
         image: url(Resources/branch-open.png);
 }
 */
 
/****************************************************************************************/

QTableWidget QScrollBar:vertical {
	border-top: 1px solid #8b949c;
	border-bottom: 1px solid #8b949c;
	width:14px;
	margin-top:2px;
	margin-bottom:3px;
	background-image:url(:res/VerticleScrollBarSpan.bmp);
}

QTableWidget QScrollBar::handle:vertical {
	border: 0px solid #535599;
	width:10px;
	margin-top:9px;
	margin-bottom:9px;
	margin-left:1px;
	margin-right:1px;
}

QTableWidget QScrollBar::add-line:vertical {
    height: 10px;
    background-image:url(:res/VerticleScrollBarSpan.bmp);
    subcontrol-position: bottom;
	width:14px;
}

QTableWidget QScrollBar::sub-line:vertical {
    height: 10px;
	background-image:url(:res/VerticleScrollBarSpan.bmp);
    subcontrol-position: top;
	width:14px;
}

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


/****************************************************************************************/


QTableWidget QScrollBar:horizontal {
    height:14px;
	margin-left:5px;
    border-left: 1px solid #8b949c;
	border-right: 1px solid #8b949c;
	background-image:url(:res/HorizontalScrollBarSpan.bmp);
}
QTableWidget QScrollBar::handle:horizontal {
	height:10px;
	margin-top:1px;
	margin-left:9px;
	margin-bottom:1px;
	margin-right:11px;
	border: 0px solid #535599;
}

QTableWidget QScrollBar::add-line:horizontal {
    width:10px;
	height:14px;
    background-image:url(:res/HorizontalScrollBarSpan.bmp);
    subcontrol-position:right;
}

QTableWidget QScrollBar::sub-line:horizontal {
    width:10px;
	height:14px;
    background-image:url(:res/HorizontalScrollBarSpan.bmp);
    subcontrol-position:left;
}

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

/****************************************************************************************/

QTableWidget QScrollBar::left-arrow:horizontal {
	background-image:url(:res/HorizontalScrollBarLeftArrow.bmp);
	background-repeat:no-repeat;
	min-width:15px;
}

QTableWidget QScrollBar::right-arrow:horizontal {
	background-image:url(:res/HorizontalScrollBarRightArrow.bmp);
	background-repeat:no-repeat;
	min-width:15px;
	margin-left:-2px;
}

QTableWidget QScrollBar::up-arrow:vertical {
	background-image:url(:res/VerticleScrollBarUpArrow.bmp);
	min-height:15px;
	background-repeat:no-repeat;
	/*border-top: 1px solid #8b949c;*/
}

QTableWidget QScrollBar::down-arrow:vertical {
	background-image:url(:res/VerticleScrollBarDownArrow.bmp);
	min-height:15px;
	background-repeat:no-repeat;
	/*border-bottom: 1px solid #8b949c;*/
}


/******************************************************************
class QComboBox
******************************************************************/

QComboBox::drop-down {
	left:1px;
	margin-top:-1px;
	background-image: url(:res/combothumb0.bmp);
	background-repeat: no-repeat;
	width:18px;
}
QComboBox::drop-down:hover{
	background-image: url(:res/combothumb1.bmp);
	background-repeat: no-repeat;
	width:18px;
}
QComboBox::drop-down:pressed{
	background-image: url(:res/combothumb2.bmp);
	background-repeat: no-repeat;
	width:18px;
}

QComboBox{
	border: 1px solid #7a8187;
	border-top-right-radius:3px;
	border-bottom-right-radius:3px;
	padding:2px;
	background-color:#ffffff;
	font-size:12px;
}


QCombobox QAbstractItemView::item{
	font-size:20px;
}

QHeaderView::section {
	margin-bottom:8px;
	font-size:12px;
	font-weight:normal;
	font-family: "MS Shell Dlg";
	text-align: left;
	padding-left: 4px;
 	border-left: 1px solid #808080;
	border-top: 1px solid #808080;
	border-bottom: 1px solid #8b949c;
	min-height: 14px;
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ffffff, stop: 0.0625 #ffffff, stop: 0.125 #eeeff3, stop: 1 #cfd0d6);
}

/*********************************/
/***QTableWidget******************/
QTableWidget{
	border:0px;
}

/*********************************/
/***for mac******************/

QTextEdit{
	min-height: 21px;
}

QCheckBox {
	min-height: 24px;
}

