/*深色*/ $main1 = #5DA5FB; $main2 = #4B6D97; $main3 = #001220; $main4 = #033d67; $main5 = #0E1D41; $main6 = #b3d7f9; $hoverColor = #00d3ff; $background = transparent; $border = #6088BA; $grad1a = #39495C; $grad1b = #0d3756; $text1 = #FFFFFF; $Disable_text = #ABABAB; $Tip_text = #ACB3BF; $diabled = #ABABAB; $menu_background = #4E709A; QWidget { font: 20px "Microsoft YaHei"; color: $text1; background:transparent; outline:none; } QWidget:disabled { color:$Disable_text; border-color: $diabled; } QFrame{ color: $text1; background-color: $background;/*不能设置为transparent*/ } QDialog { background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(42, 66, 99, 1), stop:1 rgba(68, 105, 155, 1)); border-radius: 0px; box-shadow: none !important; } QMainWindow::separator{ border: 0px solid $border; border-style: outset; width: 5px; height: 5px; } QMainWindow::separator:hover{ background: $main1; } QSplitter::handle{ border: 0px solid $border; width: 5px; height: 5px; } QSplitter::handle:hover{ /*splitter->handle(1)->setAttribute(Qt::WA_Hover, true);才生效*/ border-color: $main1; background-color: $main1; } QSplitter::handle:pressed{ border-color: $main1; background-color: $main4; } QSizeGrip{ background-color: none; } /* =============================================== */ /* Label */ /* =============================================== */ QLabel { background: transparent; border: 0px solid transparent; padding: 1px; } /* A QLabel is a QFrame ... */ /* A QToolTip is a QLabel ... */ QToolTip { border: 2px solid $border; border-radius: 3px; opacity:210; } /* =============================================== */ /* QComboBox */ /* =============================================== */ QComboBox{ background: $background; selection-background-color:$main1; selection-color:$text1; border: 2px solid $border; border-radius: 0px; padding: -2 10 -2 10px; height:40px; } QComboBox:hover { border-color: $main1; } QComboBox:focus { border-color: $main1; } QComboBox QAbstractItemView { min-width: 200px; background:$menu_background; selection-background-color: $main1; selection-color:$text1; /*alternate-background-color: $main5;*/ border: 2px solid $border; padding: 10px 0px 10px 0px; } QComboBox QAbstractItemView::item:selected:active { background: transparent; color: $text1; } QComboBox::drop-down { border-image:url(../../resource/zh/public/dark/icon/box-down-normal.png); margin-right: 10px; height:9px; width:14px; subcontrol-origin: margin; subcontrol-position: center right; } QComboBox::drop-down:hover{ border-image:url(../../resource/zh/public/dark/icon/box-down-select.png); } QComboBox::drop-down:open:!hover { border-image:url(../../resource/zh/public/dark/icon/box-down-normal.png); } QComboBox::drop-down:open:hover { border-image:url(../../resource/zh/public/dark/icon/box-down-select.png); } QComboBox::drop-down:disabled { border-image:url(../../resource/zh/public/dark/icon/box-down-disable.png); } /* =============================================== */ /* QMenu */ /* =============================================== */ QMenu { min-width: 200px; background:$menu_background; padding: 10px 0px 10px 0px; } QAction { min-width: 240px; height:40px; color:$text1; background:$menu_background; padding: 0px 20px 0px 20px; } QAction:hover { font-weight: bold; color:$text1; background-color: $main1; } QMenu::item{ min-width: 200px; height:40px; color:$text1; background:$background; border: 2px solid transparent; padding: 0px 20px 0px 20px; } QMenu::item:hover{ font-weight: bold; color:$text1; background:$main1; } QMenu::item:disabled,QMenu::item:disabled:selected,QMenu::item:disabled:pressed{ color: $Disable_text; background: $background; } QMenu::item#editBatch{ min-width: 150px; } QMenu::item:selected{ color:$text1; background:$main1; } QMenu::item:pressed { font-weight: bold; color:$text1; background:$main1; } QMenu#contextMenu{ min-width:240px; } /* =============================================== */ /* TextBox */ /* =============================================== */ QLineEdit { background: $background;/*不建议设为透明,否则table编辑时会字显示*/ selection-background-color: $main1; selection-color:$text1; border: 2px solid $border; border-radius: 0px; padding: 3px 10px 4px 10px; max-height:40px; } QLineEdit:hover{ border-color: $main1; } QLineEdit:focus{ border-color: $main1; } /*QLineEdit[readOnly="true"] { color: gray }*/ QLineEdit[echoMode="2"]{ lineedit-password-character: 9679;/*字符的ascii码35 88等 */ } QLineEdit:read-only { color: $text1; } QLineEdit:disabled{ color:$Disable_text; } QLineEdit[placeholderText] { color: $Tip_text; font-size: 20px; } QTextEdit{ selection-background-color:$main1; selection-color:$text1; border: 2px solid $border; } QTextEdit:hover{ border-color: $main1; } QTextEdit:focus{ border-color: $main1; } /* =============================================== */ /* Button */ /* =============================================== */ QPushButton { border: 2px solid $border; background-color:$background; radius:0px; padding: -2px 10px -2px 10px; min-height: 40px; } QPushButton:hover{ background-color: $main1; border-color: $main1; } QPushButton:pressed { font-weight: bold; background-color: $main1; } QPushButton:focus,QPushButton:default { border-color: $main1; /* make the default button prominent */ } QToolBar{ border: 1px solid $border; spacing: 0px; } QToolBar::separator:horizontal { background:$border; width: 1px; } QToolBar::separator:vertical { background:$border; height: 1px; } QToolButton,QToolButton:unchecked { /* ToolBar里的按钮和带下拉菜单的按钮 */ border: 2px solid $border; background-color:$background; radius:0px; padding: 3px 2px 3px 3px; } QToolButton:checked{ font-weight: bold; background-color: $main1; } QToolButton:hover{ background-color: $main1; border-color: $main1; } QToolButton:pressed,QToolButton:checked:hover{ font-weight: bold; background-color: $main1; } QToolButton:checked:pressed{ font-weight: bold; background-color: $main1; } /* only for MenuButtonPopup */ QToolButton[popupMode="1"]{ padding-left: 1px; padding-right: 15px; /* make way for the popup button */ border: 2px solid $border; min-height: 15px; /*background: qlineargradient(x1:0, y1:0 ,x2:0, y2:1 stop: 0 $grad1a, stop: 0.05 $grad1b, stop: 0.5 $grad1b stop: 0.95 $grad1a stop: 1$grad1a)*/ } QToolButton[popupMode="1"]:hover{ border-width: 1px; background-color: $main1; border-color: $main1; } QToolButton::menu-button { border: 2px solid $border; border-top-right-radius: 2px; border-bottom-right-radius: 2px; width: 16px; } QToolButton::menu-button:hover { border: 2px solid $main1; } QToolButton::menu-button:pressed { border: 2px solid $border; } QToolButton QMenu { selection-background-color: $main1; selection-color:$main3; background: $background; border: 2px solid $border; padding: 10px 0px 10px 0px; } QToolButton QMenu::item { height:30px; background: $background; border: 2px solid transparent; padding: 0px 20px 0px 20px; } /* =============================================== */ /* QRadioButton */ /* =============================================== */ QRadioButton { height: 28px; } QRadioButton:hover{ color:$main1; } QRadioButton::indicator{ width: 14px; height: 14px; } QRadioButton::indicator::unchecked{ border-image:url(../../resource/zh/public/dark/icon/rkb-normal.png); } QRadioButton::indicator:unchecked:hover { border-image:url(../../resource/zh/public/dark/icon/rkb-hover.png); } QRadioButton::indicator:unchecked:pressed { border-image:url(../../resource/zh/public/dark/icon/rkb-hover.png); } QRadioButton::indicator:unchecked:disabled { border-image:url(../../resource/zh/public/dark/icon/rkb-disable.png); } QRadioButton::indicator::checked{ border-image:url(../../resource/zh/public/dark/icon/rkb-select-normal.png); } QRadioButton::indicator:checked:hover { border-image:url(../../resource/zh/public/dark/icon/rkb-select-normal.png); } QRadioButton::indicator:checked:pressed { border-image:url(../../resource/zh/public/dark/icon/rkb-select-normal.png); } QRadioButton::indicator:checked:disabled { border-image:url(../../resource/zh/public/dark/icon/rkb-select-disable.png); } /* =============================================== */ /* QCheckBox */ /* =============================================== */ QCheckBox{ color:$text1; } QCheckBox::hover { color:$main1; } QCheckBox::indicator{ width: 14px; height: 14px; } QCheckBox::indicator::unchecked{ border-image:url(../../resource/zh/public/dark/icon/ckb-normal.png); } QCheckBox::indicator:unchecked:hover { border-image:url(../../resource/zh/public/dark/icon/ckb-uncheck-hover.png); } QCheckBox::indicator:unchecked:pressed { border-image:url(../../resource/zh/public/dark/icon/ckb-uncheck-hover.png); } QCheckBox::indicator:unchecked:disabled { border-image:url(../../resource/zh/public/dark/icon/ckb-disable.png); } QCheckBox::indicator::checked{ border-image:url(../../resource/zh/public/dark/icon/ckb-select-hover.png); } QCheckBox::indicator:checked:hover { border-image:url(../../resource/zh/public/dark/icon/ckb-select-hover.png); } QCheckBox::indicator:checked:pressed { border-image:url(../../resource/zh/public/dark/icon/ckb-select-hover.png); } QCheckBox::indicator:checked:disabled { border-image:url(../../resource/zh/public/dark/icon/ckb-select-disable.png); } QCheckBox::indicator:indeterminate { border-image:url(../../resource/zh/public/dark/icon/ckb-ptck.png); } QCheckBox::indicator:indeterminate:hover { border-image:url(../../resource/zh/public/dark/icon/ckb-ptck-hover.png); } QCheckBox::indicator:indeterminate:pressed { border-image:url(../../resource/zh/public/dark/icon/ckb-ptck-hover.png); } QCheckBox::indicator:indeterminate:disabled { border-image:url(../../resource/zh/public/dark/icon/ckb-ptck-disable.png); } /* =============================================== */ /* Slider ProgressBar */ /* =============================================== */ QProgressBar { border: 2px solid $border; border-radius: 4px; text-align: center; } QProgressBar::chunk { background-color: $main6; width: 4px; margin: 1px; } QSlider{ border: 2px solid transparent; } QSlider::disabled{ border: 2px solid transparent; } QSlider::groove{ border: 1px solid $border; /*background: $background;*/ } QSlider::handle {/*设置中间的那个滑动的键*/ border: 1px solid $border; background: $main1; } QSlider::groove:horizontal { height: 3px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */ left:5px; right: 5px; } QSlider::groove:vertical{ width: 3px; top: 5px; bottom: 5px; } QSlider::handle:horizontal{ width: 6px; margin: -7px; /* height */ } QSlider::handle:vertical{ height: 6px; margin: -7px; /* height */ } QSlider::add-page{/*还没有滑上去的地方*/ border: 2px solid $border; background:$main2; } QSlider::sub-page{/*已经划过的从地方*/ background: $main1; } /* =============================================== */ /* ScrollBar */ /* =============================================== */ QScrollBar{ background-color: $background; border: 1px solid $border; border-radius: 0px; padding: 1px; margin:0px; height: 15px; width: 15px; } QScrollBar::handle{ border-color:$border; radius: 0px; background: $border; min-width: 10px; min-height: 10px; } QScrollBar::handle:hover { background: $main1; } QScrollBar::add-line, QScrollBar::sub-line, QScrollBar::add-page, QScrollBar::sub-page { width: 0px; background: transparent; } QScrollArea{ border: none; } /*QScrollArea QAbstractSlider{ border-radius: 0px; }*/ /* =============================================== */ /* GroupBox */ /* left: 6px; top:-30px; background-color: $background; /* =============================================== */ QGroupBox { background-color: $background; border: 1px solid $border; padding:0px 0px 0px 0px; margin-top: 30px; } QGroupBox:disabled{ border: 2px solid $Disable_text; } QGroupBox::title { subcontrol-origin: margin; subcontrol-position: top left; left:20px; background-color: transparent; } QGroupBox::indicator::unchecked{ border-image:url(../../resource/zh/public/dark/icon/ckb-normal.png); } QGroupBox::indicator::checked{ border-image:url(../../resource/zh/public/dark/icon/ckb-select-hover.png); } QGroupBox::indicator:indeterminate { border-image:url(../../resource/zh/public/dark/icon/ckb-ptck.png); } /* =============================================== */ /* ToolBox */ /* =============================================== */ QToolBox{ border: 2px solid $border; } QToolBox::tab { background: transparent; border: 1px solid $border; } QToolBox::tab:hover { background-color: $main2; border-color: $main1; } QToolBox::tab:pressed { font-weight: bold; color:$text1; background-color: $main2; border: 2px solid $main1; } QToolBox::tab:selected { font-weight: bold; color:$text1; background-color: $main2; border: 2px solid $main1; } /* =============================================== */ /* QTabBar */ /* =============================================== */ QTabWidget{ /*margin-top:10px;*/ } QTabWidget::pane{ border: 2px solid $border; } QTabWidget::tab-bar { left: 0px; } QTabBar::tab { color:$text1; background: $background; border: 0px solid $border; padding: 0px 10px 0px 10px; min-height:38px; } QTabBar::tab:hover { background: $main1; border-color: transparent; } QTabBar::tab:selected { background: $main1; color:$text1; } QTabBar::tab:pressed { font-weight: bold; background: $main1; border-color: $main1; color:$text1; } QTabBar::tab:disabled { color:$Disable_text; } QTabBar::tab:focus { border-color: $main1; } QTabBar::tab:top{ border-top:0px; border-left:0px; border-right:0px; border-bottom:0px solid transparent; } QTabBar::tab:top:selected{ border-top:0px; border-left:0px; border-right:0px; border-bottom:2px solid $main1; } QTabBar::tab:bottom{ width:80px; height:30px; border-top:2px solid transparent; border-left:0px; border-right:0px; border-bottom:0px; } QTabBar::tab:bottom:selected{ border-top:2px solid $main1; border-left:0px; border-right:0px; border-bottom:0px; } QTabBar::tab:right{ height:80px; border-top:0px; border-bottom:0px; border-right:0px; border-left:2px solid transparent; } QTabBar::tab:right:selected{ height:80px; border-top:0px; border-bottom:0px; border-right:0px; border-left:2px solid $main1; } QTabBar::tab:left{ height:80px; border-top:0px; border-bottom:0px; border-left:0px; border-right:2px solid transparent; } QTabBar::tab:left:selected{ height:80px; border-top:0px; border-bottom:0px; border-left:0px; border-right:2px solid $main1; } QTabWidget::pane { border:1px solid $border; padding:6px; } /* =============================================== */ /* QHeaderView for list table */ /* =============================================== */ QHeaderView { background-color: $main2; border: none; margin: -2px; padding: 0px; height:40px; } QHeaderView::section, QTableCornerButton::section {/*设置表头属性*//*左上角*/ background-color: $main2; padding: 0px 10px 0px 10px; min-height: 40px; border-top: 0px solid $border; border-left: 0px solid $border; border-right: 2px solid $border; border-bottom: 2px solid $border; border-radius: 0px; } QHeaderView::section:hover, QTableCornerButton::section:hover{ /*background-color: $main4;*/ } QHeaderView::section:pressed{ background-color: $main1; color:$text1; } QHeaderView::section:checked { background-color: $main2; color:$text1; } QHeaderView::down-arrow { subcontrol-position:center right; padding-right:10px; image:url(../../resource/zh/public/dark/icon/box-down-normal.png); } QHeaderView::up-arrow { subcontrol-position:center right; padding-right:10px; image:url(../../resource/zh/public/dark/icon/box-up-normal.png); } /* =============================================== */ /* QAbstractItemView */ /* =============================================== */ QAbstractItemView { show-decoration-selected:1; selection-background-color:$main1; /*鼠标选中时背景色*/ selection-color:$text1; /*鼠标选中时前景色:文字颜色*/ /*设置交替颜色,需要在函数属性中设置:tableWidget->setAlternatingRowColors(true)*/ alternate-background-color: $background; background: $background; color:$text1; border: 2px solid $border; } QAbstractItemView::item { background: $background; radius:0px; min-height:30px; border: 0px; padding: 0px; } QAbstractItemView::item:hover{ color: $hoverColor; } QAbstractItemView::item:pressed{ color: $text1; background:$main1; } QAbstractItemView::item:selected:focus { background: $main1; color: $text1; } QAbstractItemView::item:selected:!focus { background: $main1; color: $text1; } QAbstractItemView::item:selected:active { background: $main1; color: $text1; } QAbstractItemView QCheckBox::hover{ background: $main1; } QAbstractItemView QCheckBox::pressed{ color: $text1; background:$main1; } QAbstractItemView QCheckBox::focus{ color:$text1; background: $main1; } QAbstractItemView QCheckBox::selected:focus { background: $main1; color: $text1; } QAbstractItemView QCheckBox::selected:!focus { background: $main1; color: $text1; } QAbstractItemView QCheckBox::selected:active { background: $main1; color: $text1; } QAbstractItemView::indicator::unchecked{ border-image:url(../../resource/zh/public/dark/icon/ckb-normal.png); } QAbstractItemView::indicator::checked{ border-image:url(../../resource/zh/public/dark/icon/ckb-select-hover.png); } QAbstractItemView::indicator:indeterminate { border-image:url(../../resource/zh/public/dark/icon/ckb-ptck.png); } QAbstractItemView::branch{ background-color: $background; } QAbstractItemView::branch:alternate { alternate-background-color: $main1; } QAbstractItemView::branch:hover{ background: $main1; } QAbstractItemView::branch:pressed{ color: $text1; background:$main1; } QAbstractItemView::branch:focus{ color:$text1; background: $main1; } QAbstractItemView::branch:selected:focus { background: $main1; color: $text1; } QAbstractItemView::branch:selected:!focus{ background: $main1; color: $text1; } QAbstractItemView::branch:selected:active { background: $main1; color: $text1; } /* =============================================== */ /* QListView QListWidget */ /* =============================================== */ QListWidget, QListView { gridline-color: $border; /*表格中的网格线条颜色*/ border:2px solid $border; /*边框线的宽度、颜色*/ /*border:none;*/ /*去除边界线*/ /*border-radius:5px;*/ /*padding:10px 10px;*/ /*表格与边框的间距*/ } QListView::item, QListWidget::item{ background: transparent; outline-style: none; border: none; padding: 0px 10px 0px 10px; } /* =============================================== */ /* QTableWidget */ /* =============================================== */ QTableWidget, QTableView { gridline-color: $grad1a; /*表格中的网格线条颜色*/ border:2px solid $border; /*边框线的宽度、颜色*/ /*border:none;*/ /*去除边界线*/ /*border-radius:5px;*/ /*padding:10px 10px;*/ /*表格与边框的间距*/ } QTableView::item, QTabWidget::item{ background: transparent; outline-style: none; border: none; } QTableView QLineEdit, QTableWidget QLineEdit, QTreeWidget QLineEdit, QTreeView QLineEdit { background: $main2; border-radius: 0px; padding: 0px; } QTableWidget QComboBox , QTableView QComboBox, QTreeWidget QComboBox, QTreeView QComboBox { background: $main2; border: 0px; border-radius: 0px; margin: 0px; height:30px; } QTableWidget QPushButton , QTableView QPushButton, QTreeWidget QPushButton, QTreeView QPushButton { min-height: 30px; } /* =============================================== */ /* QTreeWidget QTreeView */ /* =============================================== */ QTreeWidget, QTreeView { background:$background; } QTreeWidget::item, QTreeView::item{ background: $background; outline-style: none; border: none; } QTreeWidget::branch,QTreeView::branch { background: $background; } QTreeWidget::branch:hover,QTreeView::branch:hover{ background: $background; } QTreeWidget::branch:pressed,QTreeView::branch:pressed{ color: $text1; background:$main1; } QTreeWidget::branch:focus,QTreeView::branch:focus{ color:$text1; border-color: $main1; } QTreeWidget::branch:selected:focus,QTreeView::branch:selected:focus { background: $main1; color: $text1; } QTreeWidget::branch:selected:!focus,QTreeView::branch:selected:!focus{ background: $main1; color: $text1; } QTreeWidget::branch:selected:active,QTreeView::branch:selected:active { background: $main1; color: $text1; } QTreeView::branch { width:9px; height:9px; background-repeat: no-repeat; background-position: center; } QTreeView::branch:closed:has-children { image:url(../../resource/zh/public/dark/icon/arrowRight.png); } QTreeView::branch:closed:has-children:hover { image:url(../../resource/zh/public/dark/icon/arrowRight.png); } QTreeView::branch:open:has-children { image:url(../../resource/zh/public/dark/icon/arrowBottom.png); } QTreeView::branch:open:has-children:hover { image:url(../../resource/zh/public/dark/icon/arrowBottom.png); } /* =============================================== */ /* QAbstractSpinBox spinbox QDateTimeEdit */ /* =============================================== */ QAbstractSpinBox { background: $background;/*不建议设为透明,否则table编辑时会字显示*/ selection-background-color:$main1; selection-color:$text1; border: 2px solid $border; border-radius: 0px; padding: 0 0 0 0px; height:40px; } QAbstractSpinBox:hover { border-color: $main1; } QAbstractSpinBox:focus { border-color: $main1; } /*SpinBox向上按钮样式*/ QAbstractSpinBox::up-button { margin: 5px 5px 5px 5px; height:9px; width:14px; image:url(../../resource/zh/public/dark/icon/box-up-normal.png); } QAbstractSpinBox::up-button:hover { image:url(../../resource/zh/public/dark/icon/box-up-select.png); } QAbstractSpinBox::up-button:pressed { image:url(../../resource/zh/public/dark/icon/box-up-select.png); } QAbstractSpinBox::up-button:disabled{ image:url(../../resource/zh/public/dark/icon/box-up-disable.png); } /*SpinBox向下按钮样式*/ QAbstractSpinBox::down-button { margin: 5px 5px 5px 5px; height:9px; width:14px; image:url(../../resource/zh/public/dark/icon/box-down-normal.png); } QAbstractSpinBox::down-button:hover{ image:url(../../resource/zh/public/dark/icon/box-down-select.png); } QAbstractSpinBox::down-button:pressed{ image:url(../../resource/zh/public/dark/icon/box-down-select.png); } QAbstractSpinBox::down-button:disabled{ image:url(../../resource/zh/public/dark/icon/box-down-disable.png); } QDateTimeEdit::drop-down { subcontrol-origin: padding; subcontrol-position: right center; width: 30px; background-color: transparent; image:url(../../resource/zh/public/dark/icon/calendar.png); } /* =============================================== */ /* QCalendarWidget */ /* =============================================== */ QCalendarWidget QWidget{ border: none; background-color: $menu_background; color:$text1; } QCalendarWidget QWidget#qt_calendar_calendarview{ border-left: 1px solid $border; border-right: 1px solid $border; border-bottom: 1px solid $border; background-color: $menu_background; } QCalendarWidget QWidget#qt_calendar_navigationbar { background-color: $main2; border: 2px solid $border; } QCalendarWidget QMenu{ width: 80px; background-color: $menu_background; border: 0px; color:$main1; } QCalendarWidget QWidget#qt_calendar_yearbutton{ background-color: transparent; } QCalendarWidget QWidget#qt_calendar_yearbutton{ background-color: transparent; } QCalendarWidget QAbstractSpinBox { background: $background; selection-background-color: $main1; border: 2px solid $border; border-radius: 0px; padding: 0 10 0 10px; height:30px; } QCalendarWidget QAbstractSpinBox:hover { background-color: $main1; } QCalendarWidget QAbstractSpinBox:focus { background-color: $main1; } QCalendarWidget QToolButton:pressed,QCalendarWidget QToolButton:checked:hover{ color:$main1; } QCalendarWidget QToolButton#qt_calendar_prevmonth{ width: 40px; qproperty-icon: url(../../resource/zh/public/dark/icon/arrowLeft.png); background-color: transparent; } QCalendarWidget QToolButton#qt_calendar_nextmonth { width: 40px; qproperty-icon: url(../../resource/zh/public/dark/icon/arrowRight.png); background-color: transparent; } QCalendarWidget QToolButton#qt_calendar_monthbutton { background-color: transparent; } QCalendarWidget QAbstractItemView { selection-background-color:$main1; /*鼠标选中时背景色*/ selection-color:$text1; /*鼠标选中时前景色:文字颜色*/ /*设置交替颜色,需要在函数属性中设置:tableWidget->setAlternatingRowColors(true)*/ alternate-background-color: $main2; background: $background; border: 2px solid $border; } /* =============================================== */ /* searchButton搜索框 */ /* =============================================== */ QPushButton#searchButton{ background:transparent; min-height:22px; max-width:22px; border:none; margin-left:0px; padding: 0 5 0 5px; image:url(../../resource/zh/public/dark/icon/search.png); } QLineEdit#searchTextEdit { border:none; background:transparent; } QWidget#searchWidget { border:2px solid $main1; background:$main2; max-height: 40px; }