/*<--
name		= "Retro Beatles"
name_zh_CN	= 沉稳灰
name_zh_TW	= 沉穩灰
name_de = Silbergrau
name_ja = グレー
name_fr = Rétro Beatles

systitlebar = false
titlebar_text_alignment	=  justify
skin_color_rgb			= 66,77,93
sizing_border_width = 6,12
sizing_border_offset = 2,2
buddies_spacing = 3,3,0,1,20
font_size_level			= 4
font_size_level1		= 24px, 22px, 20px, 18px, 16px
font_size_level2		= 20px, 18px, 16px, 14px, 12px
font_size_level3		= 16px, 14px, 12px, 10px, 8px
font_size_level4		= 13px, 11px, 10px, 8px, 6px
font_size_level5		= 12px, 10px, 8px, 6px, 4px

-->*/

ImTitleBar {   
    max-height:35px;
    min-height:35px;
	margin:-6px 15px 0px 15px;
}
QLabel#sysIconLabel{
	max-height:16px;
    min-height:16px;
	max-width:16px;
    max-width:16px;
	margin:8px 0px 0px 0px;
}
/*** ImWidgetFrame ***/
ImWidgetFrame#imWidgetFrame  {
    border-image: url($SKIN_DIR/maxbg_i.png) 75 30 35 30;
	border-width: 75px 30px 35px 30px;
	padding:-70px -22px -35px -22px;	
	qproperty-skinMaskImage:url($SKIN_DIR/maxbg_bw.png);
	qproperty-skinMaskMargin:url(75,30,35,30);		
}
ImWidgetFrame#imWidgetFrame:active  {
    border-image: url($SKIN_DIR/maxbg.png) 75 30 35 30;
	border-width: 75px 30px 35px 30px;
}
ImMainWindow{
qproperty-contentMargin:url(0,0,0,0);
}
/*** ImBackgroundFrame ***/
ImBackgroundFrame {
	border-image: url($SKIN_DIR/dialog_inactiv_bg.png) 45 30 40 30;
	border-width: 45px 30px 40px 30px;
}
ImBackgroundFrame:active {
	border-image: url($SKIN_DIR/dialog_bg.png) 45 30 40 30;
}
ImDialog{
	qproperty-skinMaskImage:url($SKIN_DIR/dialog_bg_bw.png);
	qproperty-skinMaskMargin:url(45,30,40,30);		
	qproperty-contentMargin:url(1,10,8,10);
}
ImWidget[imwidget_is_window="true"],ImWidgetFrame#imfc_updatewindow_frame{
	border-image: url($SKIN_DIR/dialog_inactiv_bg.png) 45 30 40 30;
	border-width: 45px 30px 40px 30px;
	padding:-43px -21px -34px -21px;	
	qproperty-contentMargin:url(0,0,0,0);
	qproperty-skinMaskImage:url($SKIN_DIR/dialog_bg_bw.png);
	qproperty-skinMaskMargin:url(55,30,40,30);		
}
ImWidget[imwidget_is_window="true"]:active,ImWidgetFrame#imfc_updatewindow_frame:active  {
	border-image: url($SKIN_DIR/dialog_bg.png) 45 30 40 30;
}

ImWidget#imlogwindow{
    qproperty-contentMargin:url(0,0,0,0);
    padding:-44px -21px -34px -21px;
}

QLabel#TitleBarTextLabel {
	color: rgb(255,255,255);
	font-weight: bold;
	padding-left: 0px;
}

/*** ImTitleBar titleText ***/
ImTitleBar > QLabel#titleText {
	/*color: rgb(20,70,60);*/
	color: white;
	font-weight: bold;
	font-size: $FONT_SIZE_SUB_LEVEL1;
	padding: 11px 0px 0px 0px;
}

ImTitleBar > QLabel#titleText:active {
	color: white;
}

ImTitleBar QLabel#sysIconLabel {	
	min-width: 16px;
	min-height: 16px;
	max-width: 16px;
	max-height: 16px;
	padding-top:3px;
}
/*** minButton maxButton closeButton ***/
ImTitleBar QToolButton#minButton {
	border-image: url($SKIN_DIR/sysbtn_min.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
	min-width: 23px;
	min-height: 22px;
	max-width: 23px;
	max-height: 22px;
	padding:-12px 0px 0px 0px;
}

ImTitleBar QToolButton#minButton:hover {
	border-image: url($SKIN_DIR/sysbtn_min_h.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#minButton:pressed {
	border-image: url($SKIN_DIR/sysbtn_min_p.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#minButton:disabled {
	border-image: url($SKIN_DIR/sysbtn_min_d.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#maxButton {
	border-image: url($SKIN_DIR/sysbtn_max.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
	min-width: 23px;
	min-height: 22px;
	max-width: 23px;
	max-height: 22px;
	padding:-12px 0px 0px 0px;
}

ImTitleBar QToolButton#maxButton:hover {
	border-image: url($SKIN_DIR/sysbtn_max_h.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#maxButton:pressed {
	border-image: url($SKIN_DIR/sysbtn_max_p.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#maxButton:disabled {
	border-image: url($SKIN_DIR/sysbtn_max_d.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#restoreButton {
	border-image: url($SKIN_DIR/sysbtn_reduce.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
	min-width: 23px;
	min-height: 22px;
	max-width: 23px;
	max-height: 22px;
	padding:-12px 0px 0px 0px;
}

ImTitleBar QToolButton#restoreButton:hover {
	border-image: url($SKIN_DIR/sysbtn_reduce_h.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#restoreButton:pressed {
	border-image: url($SKIN_DIR/sysbtn_reduce_p.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#restoreButton:disabled {
	border-image: url($SKIN_DIR/sysbtn_reduce_d.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#closeButton {
	border-image: url($SKIN_DIR/sysbtn_close.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
	min-width: 23px;
	min-height: 22px;
	max-width: 23px;
	max-height: 22px;
	padding:-12px 0px 0px 0px;
}

ImTitleBar QToolButton#closeButton:hover {
	border-image: url($SKIN_DIR/sysbtn_close_h.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#closeButton:pressed {
	border-image: url($SKIN_DIR/sysbtn_close_p.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#closeButton:disabled {
	border-image: url($SKIN_DIR/sysbtn_close_d.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#menuButton {
	border-image: url($SKIN_DIR/sysbtn_menu.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
	min-width: 23px;
	min-height: 22px;
	max-width: 23px;
	max-height: 22px;
	padding:-12px 0px 0px 0px;
}

ImTitleBar QToolButton#menuButton:hover {
	border-image: url($SKIN_DIR/sysbtn_menu_h.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#menuButton:pressed {
	border-image: url($SKIN_DIR/sysbtn_menu_p.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}

ImTitleBar QToolButton#menuButton:disabled {
	border-image: url($SKIN_DIR/sysbtn_menu_d.png) 0 0 22 0;
	border-width: 0px 0px 22px 0px;
}
ImTitleBar QFrame#titleseperator{
    min-width:0px;
    max-width:0px;
    
}

/*** QMenuBar ***/
QMenuBar {
    border-image: url($SKIN_DIR/menubar.png) 0 0 0 0;
	border-width: 0px 0px 0px 0px;
	color: rgb(206,215,230);
	padding:0px 0px 0px 0px;
	margin: 0px 5px 5px 5px;
 }


QMenuBar::item {
     max-width:50px;
     min-width:50px;
     padding: 2px 20px 2px 20px;
     background: transparent;
     border-radius: 0px;
	 margin: 0px 1px 0px 0px;
}
QMenuBar::separator{
    border-image: url($SKIN_DIR/sliderblock_bg.png) 0 0 0 0;
    border-width: 0px 0px 0px 0px;
}

QMenuBar::item:selected {
	background: rgba(0,0,0, 30%);
}

QMenuBar::item:pressed {
	background: rgba(0,0,0, 30%);
} 

/***/
/*** Menu ***/
QMenu {
	background-color: rgba(255,255,255, 100%); 
	margin: 0px;
	border: 1px solid rgba($SKIN_COLOR_RGB, 60%);
}

QMenu::item {
	padding: 2px 10px 2px 20px;
	border: 1px solid transparent;
	margin:2px;
	min-width:90px;
	color:rgb($SKIN_COLOR_RGB);
}

QMenu::item:selected {
	border-color: rgba($SKIN_COLOR_RGB, 35%);
	background: rgba($SKIN_COLOR_RGB, 30%);
}
QMenu::item:disabled {
	color: #a7a6aa;
}

QMenu::separator {
	height: 1px;
	background: rgba($SKIN_COLOR_RGB, 80%);
	margin-top: 2px;
	margin-bottom: 2px;
	margin-left: 5px;
	margin-right: 5px;
}

QMenu::icon:checked {
	background: gray;
	border: 1px inset white;
	position: absolute;
	top: 1px;
	right: 1px;
	bottom: 1px;
	left: 1px;
}

QMenu::indicator {
	width: 16px;
	height: 16px;
}

QMenu::indicator:non-exclusive:unchecked {
	image: url($SKIN_DIR/checkbox_unchecked.png);
}


QMenu::indicator:non-exclusive:unchecked:selected {
	image: url($SKIN_DIR/checkbox_unchecked_h.png);
}

QMenu::indicator:non-exclusive:checked {
	image: url($SKIN_DIR/checkbox_checked.png);
}

QMenu::indicator:non-exclusive:checked:selected {
	image: url($SKIN_DIR/checkbox_checked_h.png);
}

QMenu::indicator:non-exclusive:checked:disabled {
	image: url($SKIN_DIR/checkbox_checked_d.png);
}

QMenu::indicator:exclusive:unchecked {
	/*image: url($SKIN_DIR/checkbox_unchecked.png);*/
}

QMenu::indicator:exclusive:unchecked:selected {
	/*image: url($SKIN_DIR/checkbox_unchecked_h.png);*/
}

QMenu::indicator:exclusive:unchecked:disabled {
	/*image: url($SKIN_DIR/checkbox_unchecked_d.png);*/
}

QMenu::indicator:exclusive:checked {
	image: url($SKIN_DIR/menuitem_check.png);
}

QMenu::indicator:exclusive:checked:selected {
	/*image: url($SKIN_DIR/menuitem_check.png);*/
} 

QMenu::indicator:disabled:checked {
	image: url($SKIN_DIR/menuitem_check_d.png);
}

QMenu::indicator:disabled:checked:selected {
	/*image: url($SKIN_DIR/menuitem_check_d.png);*/
}

/*** QToolButton ***/
 QToolButton {
	color: #ffffff;
	border-image: url($SKIN_DIR/pushbutton.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
	min-width: 56px;
	padding:-5px -2px -5px -2px;
} 
.QToolButton {
    min-height: 16px;
    max-height: 16px;
}
QToolButton:focus {
	color: white;
	border-image: url($SKIN_DIR/pushbutton_f.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
} 

QToolButton:hover {
	color: white;
	border-image: url($SKIN_DIR/pushbutton_h.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
} 

QToolButton:pressed {
	color: white;
	border-image: url($SKIN_DIR/pushbutton_p.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
} 

QToolButton:disabled {
	color: rgb(213,215,218);
	border-image: url($SKIN_DIR/pushbutton_d.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
} 

/*--------------------------QToolButton with menu----------------------------*/
 QToolButton[popupMode="1"] {
     border-image:url($SKIN_DIR/menubutton.png)7 30 7 7;
     border-width:7px 30px 7px 7px;
     padding:-7px;
     min-height:22px;
     max-height:22px;
 }
  QToolButton[popupMode="1"]:focus {
     border-image:url($SKIN_DIR/menubutton_f.png)7 30 7 7;
     border-width:7px 30px 7px 7px;
 }

 QToolButton[popupMode="1"]:hover {
     border-image:url($SKIN_DIR/menubutton_h.png)7 30 7 7;
     border-width:7px 30px 7px 7px;
 }
 
 QToolButton[popupMode="1"]:pressed {
     border-image:url($SKIN_DIR/menubutton_p.png)7 30 7 7;
     border-width:7px 30px 7px 7px;
 }
 QToolButton[popupMode="1"]:disabled {
     border-image:url($SKIN_DIR/menubutton_d.png)7 30 7 7;
     border-width:7px 30px 7px 7px;
 }

 QToolButton::menu-button {
     border-image:url($SKIN_DIR/menubutton_right.png)7;
     border-width:7px;
     padding:-7px;
     width:22px;
 }
 QToolButton::menu-button:focus {
     border-image:url($SKIN_DIR/menubutton_right_f.png)7;
     border-width:7px;
 }
 QToolButton::menu-button:hover {
     border-image:url($SKIN_DIR/menubutton_right_h.png)7;
     border-width:7px;
 }
 QToolButton::menu-button:pressed {
     border-image:url($SKIN_DIR/menubutton_right_p.png)7;
     border-width:7px;
 }
 QToolButton::menu-button:disabled {
     border-image:url($SKIN_DIR/menubutton_right_d.png)7;
     border-width:7px;
 }

 QToolButton::menu-arrow {
     padding-top:1px;
     padding-right:2px;
     image: url($SKIN_DIR/combobox_arrow_c.png);
 }
 QToolButton::menu-arrow:hover {
     padding-top:1px;
     image: url($SKIN_DIR/combobox_arrow_h.png);
 }
 QToolButton::menu-arrow:pressed {
     padding-top:1px;
     image: url($SKIN_DIR/combobox_arrow_p.png);
 }
 QToolButton::menu-arrow:disabled {
     padding-top:1px;
     image: url($SKIN_DIR/combobox_arrow_d.png);
 }

/***********************************************    1    *******************************************************************************/

QPushButton {
	color: white;
	border-image: url($SKIN_DIR/pushbutton.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
	min-width: 56px;
	padding:-5px -4px -5px -4px;
}
.QPushButton {
    min-height: 16px;
    max-height: 16px;
}
QPushButton:focus{
	border-image: url($SKIN_DIR/pushbutton_f.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
	padding:-6px -4px -5px -4px;
} 

QPushButton:default {
	border-image: url($SKIN_DIR/pushbutton_f.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
} 

QPushButton:hover {
	color: white;
	border-image: url($SKIN_DIR/pushbutton_h.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
}

QPushButton:pressed {
	color: white;
	border-image: url($SKIN_DIR/pushbutton_p.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
} 

QPushButton:disabled {
	color: rgb(213,215,218);
	border-image: url($SKIN_DIR/pushbutton_d.png) 8 7 8 7;
	border-top: 8px transparent;
	border-bottom: 8px transparent;
	border-right: 7px transparent;
	border-left: 7px transparent;
} 

QPushButton::menu-indicator {
    subcontrol-origin: border;
     subcontrol-position: center right;
     image:url($SKIN_DIR/menu-indicator.png);
}
 Dialog {
	background: white;
 }

/*** QComboBox ***/

QComboBox {
    color:rgb($SKIN_COLOR_RGB);
	border-width: 5px 30px 5px 5px;
	border-image: url($SKIN_DIR/combo_c.png) 5 30 5 5;		
    padding: -5px -25px -5px -4px;
	/* min-height:12px; */
	min-height:22px;
	max-height:22px;
	min-width:40px;
}
 QComboBox:on {
	border-image: url($SKIN_DIR/combo_hover_c.png) 5 30 5 5;
	border-width: 5px 30px 5px 5px;
 }

 QComboBox:hover {
	border-image: url($SKIN_DIR/combo_hover_c.png) 5 30 5 5;
	border-width: 5px 30px 5px 5px;
 }
 QComboBox:pressed {
	border-image: url($SKIN_DIR/combo_pressed_c.png) 5 30 5 5;
	border-width: 5px 30px 5px 5px;
 }
 QComboBox:disabled {
	border-image: url($SKIN_DIR/combo_disabled_c.png) 5 30 5 5;
	border-width: 5px 30px 5px 5px;
	color: rgb(119,119,119);
 }

 QComboBox:!editable {
	border-width: 5px 30px 5px 5px;
	border-image: url($SKIN_DIR/combobox.png) 5 30 5 5;		
    padding:-5px -25px -5px -1px;
	/* min-height:12px; */
 }

 QComboBox:!editable:on {
	border-width: 5px 30px 5px 5px;
	border-image: url($SKIN_DIR/combobox.png) 5 30 5 5;		

	/* min-height:12px; */
 }

 QComboBox:!editable:hover {
	border-image: url($SKIN_DIR/combobox_h.png) 5 30 5 5;
	border-width: 5px 30px 5px 5px;
 }

 QComboBox:!editable:pressed {
	border-image: url($SKIN_DIR/combobox_p.png) 5 30 5 5;
	border-width: 5px 30px 5px 5px;
 }
 QComboBox:!editable:disabled {
	border-image: url($SKIN_DIR/combobox_d.png) 5 30 5 5;
	border-width: 5px 30px 5px 5px;
	color: rgb(119,119,119);
 }

 QComboBox::drop-down {
     subcontrol-origin: border;
     subcontrol-position: right;
     width: 22px;
     border-left-style: solid; 
 }
 QComboBox::down-arrow {
     image: url($SKIN_DIR/combobox_arrow_c.png);
     margin-left:-4px;
 }
 QComboBox::down-arrow:hover {
     image: url($SKIN_DIR/combobox_arrow_h.png);
 }
 QComboBox::down-arrow:pressed {
     image: url($SKIN_DIR/combobox_arrow_p.png);
 }
 QComboBox::down-arrow:disabled {
     image: url($SKIN_DIR/combobox_arrow_d.png);
 }
 QComboBox::down-arrow:!editable {
     image: url($SKIN_DIR/combobox_arrow.png);
     margin-left:-4px;
 }
 QComboBox::down-arrow:!editable:hover {
     image: url($SKIN_DIR/combobox_arrow_h.png);
 }
 QComboBox::down-arrow:!editable:pressed {
     image: url($SKIN_DIR/combobox_arrow_p.png);
 }
 QComboBox::down-arrow:!editable:disabled {
     image: url($SKIN_DIR/combobox_arrow_d.png);
     margin-left:-4px;
 }


/*** QCheckBox ***/
 QCheckBox {
     spacing: 5px;
     color: rgb($SKIN_COLOR_RGB);
 }
 QCheckBox:disabled {
    color: rgb(119,119,119);
 }

 QCheckBox::indicator {
     width: 13px;
     height: 13px;
 }
 
 QCheckBox::indicator:indeterminate {
 	image: url($SKIN_DIR/checkbox_indeterminate.png);
}

 QCheckBox::indicator:indeterminate:disabled {
 	image: url($SKIN_DIR/checkbox_indeterminate_d.png);
}

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

 QCheckBox::indicator:unchecked:hover {
     image: url($SKIN_DIR/checkbox_unchecked_h.png);
 }

 QCheckBox::indicator:unchecked:pressed {
     image: url($SKIN_DIR/checkbox_unchecked_p.png);
 }
 
 QCheckBox::indicator:unchecked::disabled {
     image: url($SKIN_DIR/checkbox_unchecked_d.png);
 }

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

 QCheckBox::indicator:checked:hover {
     image: url($SKIN_DIR/checkbox_checked_h.png);
 }


 QCheckBox::indicator:checked:pressed {
     image: url($SKIN_DIR/checkbox_checked_p.png);
 }
 
 QCheckBox::indicator:checked::disabled {
     image: url($SKIN_DIR/checkbox_checked_d.png);
 }
/*
 QCheckBox::indicator:indeterminate:hover {
     image: url($SKIN_DIR/checkbox_indeterminate_hover.png);
 }

 QCheckBox::indicator:indeterminate:pressed {
     image: url($SKIN_DIR/checkbox_indeterminate_pressed.png);
 }
*/
 
/*** QRadioButton ***/
 QRadioButton {
    color: rgb($SKIN_COLOR_RGB);
 }
 QRadioButton:disabled {
    color: rgb(119,119,119);
 }
 QRadioButton::indicator {
     width: 13px;
     height: 13px;
 }

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

 QRadioButton::indicator:unchecked:hover {
     image: url($SKIN_DIR/radiobutton_unchecked_h.png);
 }

 QRadioButton::indicator:unchecked:pressed {
     image: url($SKIN_DIR/radiobutton_unchecked_p.png);
 }
 
 QRadioButton::indicator:unchecked::disabled {
     image: url($SKIN_DIR/radiobutton_unchecked_d.png);
 }

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

 QRadioButton::indicator:checked:hover {
     image: url($SKIN_DIR/radiobutton_checked_h.png);
 }

 QRadioButton::indicator:checked:pressed {
     image: url($SKIN_DIR/radiobutton_checked_p.png);
 }
 
 QRadioButton::indicator::checked::disabled {
     image: url($SKIN_DIR/radiobutton_checked_d.png);
 }

/***********************************************    2    *******************************************************************************/

 
 
/***********************************************    2.3    *******************************************************************************/

 QGroupBox {
     /*border: 2px solid rgb(116,119,134);*/
     border-image:url($SKIN_DIR/groupbox_bg.png)3 3 3 3;
     border-width:3px 3px 3px 3px;
     margin-top: 8px;
 }

 QGroupBox::title {
     subcontrol-origin: padding;
     position: absolute;
     top: -8px;
     left: 19px;
     padding-left:4px;
     padding-right:4px;
     color:rgb($SKIN_COLOR_RGB);
 }
 

 QLabel{
     border: 0px;
     border-radius: 0px;
     color:rgb($SKIN_COLOR_RGB);
 }

/***********************************************    3    *******************************************************************************/
 
 QLineEdit {
     border-image: url($SKIN_DIR/edit_combobox.png)5;
     border-width:5px;
     color:rgb($SKIN_COLOR_RGB);
     padding: -5px -4px;
     min-height:22px;
     max-height:22px;
 }
 QLineEdit:disabled{
     border-image: url($SKIN_DIR/edit_combobox_d.png)5;
     border-width:5px;
     color:rgb(119,119,119);
 }
 QTextBrowser
 {
     color:rgb($SKIN_COLOR_RGB);
 }

/*** QSlider horizontal***/

 QSlider::groove:horizontal {
     border-image: url($SKIN_DIR/sliderblock_t_bg.png) 5 6 5 6;
     border-width: 5px 6px 5px 6px;
     height:3px;
 }

 QSlider::handle:horizontal {
    border-image: url($SKIN_DIR/sliderblock_t.png) 4 5 4 5;
    border-width:4px 5px 4px 5px;
    width:11px;  
    margin:-4px -4px -4px -4px;
 }
 QSlider::handle:horizontal:pressed {
    border-image: url($SKIN_DIR/sliderblock_t_p.png) 4 5 4 5;
    border-width:4px 5px 4px 5px;
 }
 QSlider::sub-page:horizontal {
	border-image: url($SKIN_DIR/sliderblock_h_bg_gone.png) 1;
	border-width:1px;
	margin:4px 0px 5px 2px;
}

/*** QSlider vertical***/
  QSlider::groove:vertical {
     border-image: url($SKIN_DIR/sliderblock_bg.png) 10 5 10 5;
     border-width:10px 5px 10px 5px;
     width:3px;
 }

 QSlider::handle:vertical {
    border-image: url($SKIN_DIR/sliderblock.png) 6 4 6 4;
    border-width:6px 4px 6px 4px;
    height:9px; 
    margin:-8px -4px -8px -4px;
 }
 
  QSlider::handle:vertical:pressed {
    border-image: url($SKIN_DIR/sliderblock_p.png) 6 4 6 4;
    border-width:6px 4px 6px 4px;
 }
 QSlider::sub-page:vertical {
	border-image: url($SKIN_DIR/sliderblock_bg_gone.png) 1;
	border-width:1px;
	margin:2px 5px 0px 4px;
}
 
/*** QScrollBar horizontal***/
 QScrollBar:horizontal {
     border-image: url($SKIN_DIR/scrollbar_t_bg.png) 1 1 1 1;
     border-width:1px 1px 1px 1px;
     min-height: 17px;
     max-height: 17px;
     margin: -1px 16px;
 }
 

 QScrollBar::handle:horizontal {
    border-image: url($SKIN_DIR/combo_scrollbar.png) 3;
    border-width: 3px;
    padding:-3px;
    image: url($SKIN_DIR/combo_scrollbar_horizontal.png);
    min-width:17px;
 }
 QScrollBar::handle:horizontal:hover {
     border-image: url($SKIN_DIR/combo_scrollbar_h.png) 3;
     border-width: 3px;
 }
 QScrollBar::handle:horizontal:pressed {
     border-image: url($SKIN_DIR/combo_scrollbar_p.png) 3 ;
     border-width: 3px;
 }
 QScrollBar::add-line:horizontal {
     background: url($SKIN_DIR/scrollbar_head_bg.png);
     width: 17px;
     height: 17px;
     subcontrol-position: right;
     subcontrol-origin: margin;
 }
QScrollBar::add-line:horizontal:hover {
     background: url($SKIN_DIR/scrollbar_head_bg_h.png);

 }
 QScrollBar::add-line:horizontal:pressed {
     background: url($SKIN_DIR/scrollbar_head_bg_p.png);
 }
 QScrollBar::sub-line:horizontal {
     background: url($SKIN_DIR/scrollbar_head_bg.png);
     width: 17px;
     height: 17px;
     subcontrol-position: left;
     subcontrol-origin: margin;
 }
 QScrollBar::sub-line:horizontal:hover {
     background: url($SKIN_DIR/scrollbar_head_bg_h.png);

 }
 QScrollBar::sub-line:horizontal:pressed {
     background: url($SKIN_DIR/scrollbar_head_bg_p.png);
 }
 
 QScrollBar:left-arrow:horizontal{
     width: 10px;
     height: 13px;
     background: url($SKIN_DIR/dropleft.png);
 }
 QScrollBar:left-arrow:horizontal:hover{
     background: url($SKIN_DIR/dropleft_h.png);
 }
 QScrollBar:left-arrow:horizontal:pressed{
     background: url($SKIN_DIR/dropleft_p.png);
 }
 QScrollBar:left-arrow:horizontal:disabled{
     background: url($SKIN_DIR/dropleft_d.png);
 }
 QScrollBar::right-arrow:horizontal{
     width: 10px;
     height: 13px;
     background: url($SKIN_DIR/dropright.png);
 }
 QScrollBar::right-arrow:horizontal:hover{
     background: url($SKIN_DIR/dropright_h.png);
 }
 QScrollBar::right-arrow:horizontal:pressed{
     background: url($SKIN_DIR/dropright_p.png);
 }
 QScrollBar::right-arrow:horizontal:disabled{
     background: url($SKIN_DIR/dropright_d.png);
 }
 QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
     background: none;
 }

/*** QScrollBar vertical***/
 QScrollBar:vertical {
      border-image: url($SKIN_DIR/scrollbar_bg.png) 1 1 1 1;
      border-width:1px 1px 1px 1px;
      margin: 16px -1px 16px -1px;
      min-width: 17px;
      max-width: 17px;
  }
  QScrollBar::handle:vertical {
    border-image: url($SKIN_DIR/combo_scrollbar.png) 3;
    border-width: 3px;
    padding:-3px;
    image: url($SKIN_DIR/combo_scrollbar_verticall.png);
    min-height:17px;
  }

  QScrollBar::handle:vertical:hover {
      border-image: url($SKIN_DIR/combo_scrollbar_h.png) 3;
      border-width: 3px;
  }
  QScrollBar::handle:vertical:pressed {
      border-image: url($SKIN_DIR/combo_scrollbar_p.png)3;
      border-width: 3px;

  }
  QScrollBar::add-line:vertical {
      background: url($SKIN_DIR/scrollbar_head_bg.png);
      width: 17px;
      height: 17px;
      subcontrol-position: bottom;
      subcontrol-origin: margin;
  }
  QScrollBar::add-line:vertical:hover {
      background: url($SKIN_DIR/scrollbar_head_bg_h.png);

  }
  QScrollBar::add-line:vertical:pressed {
      background: url($SKIN_DIR/scrollbar_head_bg_p.png);
  }

  QScrollBar::sub-line:vertical {
      background: url($SKIN_DIR/scrollbar_head_bg.png);
      width: 17px;
      height: 17px;
      subcontrol-position: top;
      subcontrol-origin: margin;
  }
  QScrollBar::sub-line:vertical:hover {
      background: url($SKIN_DIR/scrollbar_head_bg_h.png);
  }
  QScrollBar::sub-line:vertical:pressed {
      background: url($SKIN_DIR/scrollbar_head_bg_p.png);
  }
  QScrollBar::up-arrow:vertical{
      width: 13px;
      height: 10px;
      background: url($SKIN_DIR/dropup.png);
  }
  QScrollBar::up-arrow:vertical:hover{
      background: url($SKIN_DIR/dropup_h.png);
  }
  QScrollBar::up-arrow:vertical:pressed{
      background: url($SKIN_DIR/dropup_p.png);
  }
  QScrollBar::up-arrow:vertical:disabled{
      background: url($SKIN_DIR/dropup_d.png);
  }
  QScrollBar::down-arrow:vertical {
      width: 13px;
      height: 10px;
      background: url($SKIN_DIR/dropdown.png);
  }
  QScrollBar::down-arrow:vertical:hover {
      background: url($SKIN_DIR/dropdown_h.png);
  }
  QScrollBar::down-arrow:vertical:pressed {
      background: url($SKIN_DIR/dropdown_p.png);
  }
  QScrollBar::down-arrow:vertical:disabled {
      background: url($SKIN_DIR/dropdown_d.png);
  }
  QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
      background: none;
  }
  
  
/***********************************************    4    *******************************************************************************/

 QListView {
     color:rgb(70,113,156);
     /*qproperty-alternatingRowColors:1;*/
     background-color:rgb(245,250,255);
     color:rgb(70,113,156);
 } 

 QListView::item:alternate {
     background: rgb(220,233,242);
 }

 QListView::item:selected:active {
     background: rgb(161,179,199);
     color:rgb(26,62,94);
 }
 QListView::item:selected:!active {
     background: rgb(184,211,232);
     color:rgb(26,62,94);
 }

/*** QTreeView ***/
 QTreeView {
     qproperty-alternatingRowColors:1;
     alternate-background-color: rgb(220,233,242);
     background-color:rgb(245,250,255);
     show-decoration-selected: 1;
     color:rgb(70,113,156);
 }

 QTreeView::branch:has-children:!has-siblings:closed,
 QTreeView::branch:closed:has-children:has-siblings {
         border-image: none;
         background-image: url($SKIN_DIR/branch_closed.png);
         background-repeat:no-repeat;
         background-position:center;
 }

 QTreeView::branch:open:has-children:!has-siblings,
 QTreeView::branch:open:has-children:has-siblings  {
         border-image: none;
         background-image: url($SKIN_DIR/branch_open.png);
         background-repeat:no-repeat;
         background-position:center;
 }
 QTreeView::branch:has-children:!has-siblings:closed:selected,
 QTreeView::branch:closed:has-children:has-siblings:selected,
 QTreeView::branch:open:has-children:!has-siblings:selected,
 QTreeView::branch:open:has-children:has-siblings:selected 
 {
      background-color:rgb(161,179,199);
 }

 QTreeView::item:selected:active{
    background-color:rgb(161,179,199);
    color:rgb(26,62,94);
}
 QTreeView::item:selected:!active{
    background-color:rgb(161,179,199);
    color:rgb(26,62,94);
}
 QTreeView::item:disabled{
 		color: rgb(119,119,119);
}
 QHeaderView{
     background-color:rgb(245,250,255);
 }
 QHeaderView::section:horizontal {
     color:rgb(70,113,156);
     border-image: url($SKIN_DIR/headerview_bg.png) 1 2 3 1;
     border-width: 1px 2px 3px 1px;
     padding-left: 4px;
     padding-right: 4px;
 }
 QHeaderView::section:vertical {
     color:rgb(70,113,156);
     border-image: url($SKIN_DIR/headerview_h_bg.png) 0 2 2 0;
     border-width:0px 2px 2px 0px;
     padding-left:5px;
 }
/*** QTableView ***/
 QTableView {
     color:rgb(70,113,156);
     background-color:rgb(245,250,255);
     selection-background-color: rgb(161,179,199);
     selection-color:rgb(26,62,94);
 }
 QTableView QTableCornerButton::section {
     border-image: url($SKIN_DIR/headerview_bg.png) 1 2 3 1;
     border-width: 1px 2px 3px 1px;
 } 
 /*
 QTableView QTableCornerButton::section{
     background: url($SKIN_DIR/3.png);
     border: 2px outset red;
 }
 QTableView QTableCornerButton::section:pressed{
     background: url($SKIN_DIR/2.png);
     border: 2px outset red;
 }
 */

/*** QColumnView ***/

 QColumnView{
   color:rgb(70,113,156);
 }


/*** QProgressBar ***/
 QProgressBar {
     border-image: url($SKIN_DIR/progressbar_bg.png) 3;
     border-width: 3px;
     padding:-2px -2px -2px -2px;
     min-height:18px;
     max-height:18px;
 }

 QProgressBar::chunk {
     border-image: url($SKIN_DIR/progressbar.png) 0;
     border-width: 0px;
 }
 
/*** QDockWidget ***/
 QDockWidget {
     border: 1px solid lightgray;
     color: white;
 }

 QDockWidget::title {
     text-align: left; /* align the text to the left */
     border-image: url($SKIN_DIR/titlebar_inactive.png)15 20 1 20;
     border-width:15px 20px 1px 20px;
     margin:0px -2px 0px -2px;
     padding:-8px 0px 0px 0px;
 }
 QDockWidget::title:active {
     text-align: left; /* align the text to the left */
     border-image: url($SKIN_DIR/titlebar.png)15 20 1 20;
     border-width:15px 20px 1px 20px;

 }

QDockWidget::close-button{
    border-image:url($SKIN_DIR/dock_close.png)0 0 16 0;
    border-width:0px 0px 16px 0px;
    subcontrol-position: top right;
    top: 8px; right: 12px;
}
 QDockWidget::close-button:hover{
    border-image:url($SKIN_DIR/dock_close_h.png)0 0 16 0;
    border-width:0px 0px 16px 0px;
}
 QDockWidget::close-button:pressed{
    border-image:url($SKIN_DIR/dock_close_p.png)0 0 16 0;
    border-width:0px 0px 16px 0px;
}

QDockWidget::float-button{
    border-image:url($SKIN_DIR/dock_suspend.png)0 0 16 0;
    border-width:0px 0px 16px 0px;
    subcontrol-position: top right;
    top: 8px; right: 32px;
}
 QDockWidget::float-button:hover{
    border-image:url($SKIN_DIR/dock_suspend_h.png)0 0 16 0;
    border-width:0px 0px 16px 0px;
}
 QDockWidget::float-button:pressed{
    border-image:url($SKIN_DIR/dock_suspend_p.png)0 0 16 0;
    border-width:0px 0px 16px 0px;
}


/*** QToolBox ***/
QToolBox::tab {
    border-image: url($SKIN_DIR/pushbutton.png) 8 7 8 7;
    border-width: 8px 7px 8px 7px;
    padding:-8px -7px -8px -7px;
    color: white;
}

QToolBox::tab:selected { /* italicize selected tabs */
    border-image: url($SKIN_DIR/pushbutton_h.png) 8 7 8 7;
    border-width: 8px 7px 8px 7px;
    color: white;
}

QToolBox::tab:!selected:hover { /* italicize selected tabs */
    border-image: url($SKIN_DIR/pushbutton_f.png) 8 7 8 7;
    border-width: 8px 7px 8px 7px;
}

QWidget#MainToolBar
{

}
QWidget#ToolBarLeft{
    background-image: url($SKIN_DIR/toolbar_bg_l.png);
    background-repeat:no-repeat;

}
QWidget#ToolBarMid{
    background-image: url($SKIN_DIR/toolbar_bg_m.png); 
    background-repeat:repeat-x;

}
QWidget#ToolBarRight
{

    background-image: url($SKIN_DIR/toolbar_bg_r.png);  
	background-position: top right;
	background-repeat:no-repeat;
}

QWebView{
    border-image:url($SKIN_DIR/bg.png)1;
    border-width:1px;
}

QSizeGrip {
     image: url($SKIN_DIR/sizegrip.png);
     width: 14px;
     height: 14px;
     margin:0px 0px 11px 0px;
 } 
 
ImPopWidget{
	border-image: url($SKIN_DIR/miniwin.png) 5;
    border-width: 5px;	
}

ImPopWidget QToolButton#closeButton {
	border-image: url();
	padding: 0px;
	border-width: 0px;
	border-radius: 0px;
	background-image: url($SKIN_DIR/miniwin_clo.png);
	min-width: 15px;
	min-height: 15px;
	max-width: 15px;
	max-height: 15px;
	margin-left:3px;
	margin-right:3px;
}

ImPopWidget QToolButton#closeButton:hover {
	background-image: url($SKIN_DIR/miniwin_clo_h.png);
}

ImPopWidget QToolButton#closeButton:pressed {
	background-image: url($SKIN_DIR/miniwin_clo_d.png);
}

ImPopWidget QToolButton#closeButton:disabled {
	background-image: url($SKIN_DIR/miniwin_clo.png);
}
QSplitter::handle:horizontal{
	image: url("$SKIN_DIR/splitter_handle_h.png");
	border-image: url("$SKIN_DIR/bg_splitter_h.png") 1px 1px 1px 1px;
	border-width: 1px 1px 1px 1px;
}

QSplitter::handle:vertical{
	image: url("$SKIN_DIR/splitter_handle_v.png");
	border-image: url("$SKIN_DIR/bg_splitter_v.png") 1px 1px 1px 1px;
	border-width: 1px 1px 1px 1px;
}
QMenuBar QToolButton {
	
	min-height: 5px;
    max-height: 5px;
	min-width: 5px;
    max-width: 5px;
} 