QWidget { font-family: 思源黑体M; text-align: left; font-style: normal; background: transparent; } QLabel { font-weight: 400; font-size: 14px; color: #D2D2D2; line-height: 21px; text-align: left; font-style: normal; } /***************** QComboBox下拉框 ****************/ QComboBox { background: transparent; border-radius: 4px; border: 1px solid rgba(255,255,255,0.15); font-weight: 400; font-size: 14px; color: #D2D2D2; padding-left: 12px; } QComboBox:hover, QComboBox:on { border: 1px solid #438EFF; } /*下拉箭头样式*/ QComboBox::down-arrow { height: 16px; width: 16px; image: url(:/image/Resource/image/DownArrow.png); } QComboBox::drop-down { background-color:transparent; padding-right:12px; } /* 下拉后,整个下拉窗体样式 */ QComboBox QAbstractItemView { margin: 8px; font-size: 14px; background-color: #5C5E61; outline:0px; border-radius: 4px; } /* 下拉后,整个下拉窗体每项的样式 */ QComboBox QAbstractItemView::item { border-radius: 4px; color: #D2D2D2; height: 32px; background-color: #5C5E61; font-weight: 400; font-size: 14px; padding-left: 11px; } QComboBox QAbstractItemView::item:hover { font-weight: 400; color: #FFFFFF; background-color: #438EFF; } QComboBox QAbstractItemView::item:selected { font-weight: 400; color: #FFFFFF; background-color: #438EFF; } /**************** LineEdit *********************/ QLineEdit { background: #3A3940; border-radius: 4px; border: 1px solid #595959; padding-left: 12px; font-weight: 400; font-size: 14px; color: #D2D2D2; line-height: 21px; text-align: left; font-style: normal; } /***************** 背景色块 ****************/ QWidget#widget_bg { background: #3A3940; border-radius: 4px; border: 1px solid #595959; } QPushButton#pBtn_background { /* background: #2D2D31; */ background: #CECECE; border-radius: 2px; }