style_common.qss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711
  1. *{
  2. color:#9d9d9d;
  3. font-size: 12px;
  4. font-family: "Arial";
  5. }
  6. /* 按钮 */
  7. QPushButton, QToolButton {
  8. border:0px solid #808080;
  9. background: #4c4d4e;
  10. border-radius: 1px;
  11. min-width: 50px;
  12. min-height: 25px;
  13. color: #e2e2e2;
  14. }
  15. QPushButton:hover, QToolButton:hover {
  16. background: #545557;
  17. color: #ffffff;
  18. }
  19. QPushButton:pressed, QToolButton:pressed {
  20. background: #48494a;
  21. color: #ffffff;
  22. }
  23. QPushButton:checked, QToolButton:checked {
  24. background: #354040;
  25. color: #e2e2e2;
  26. }
  27. QPushButton:disabled, QToolButton:disabled {
  28. background: #48494a;
  29. color: #7a7d7f;
  30. }
  31. QPushButton:default, QToolButton:default {
  32. background: #4c4d4e;
  33. color: #e2e2e2;
  34. }
  35. QPushButton:default:hover, QToolButton:default:hover {
  36. background: #545557;
  37. color: #ffffff;
  38. }
  39. QPushButton:default:pressed, QToolButton:default:pressed {
  40. background: #48494a;
  41. color: #ffffff;
  42. }
  43. QPushButton:default:disabled, QToolButton:default:disabled {
  44. background: #48494a;
  45. color: #7a7d7f;
  46. }
  47. /* 下拉框 */
  48. QComboBox {
  49. border: 1 solid #373839;
  50. selection-background-color: #797c81;
  51. selection-color: black;
  52. max-height: 24px;
  53. min-height: 24px;
  54. background: #373839;
  55. padding: 0px 5px 0px 5px;
  56. border-radius: 1px;
  57. color: #e5e5e5;
  58. padding-left: 11px;
  59. }
  60. QComboBox:focus {
  61. border: 1 solid #ff2d2d;
  62. color: #e5e5e5;
  63. }
  64. QComboBox:disabled {
  65. background: #373839;
  66. color: #9d9d9d;
  67. }
  68. QComboBox QAbstractItemView::item {
  69. height:38;
  70. }
  71. QComboBox:on, QComboBox:hover,
  72. QComboBox QAbstractItemView::item:selected {
  73. color: #e5e5e5;
  74. background-color: #373839;
  75. }
  76. QComboBox QAbstractItemView::item:hover{
  77. background-color: #373839;
  78. color: #ffffff;
  79. }
  80. QComboBox QAbstractItemView {
  81. outline: 0px;
  82. border-top: 1px solid black;
  83. border-bottom: 1px solid black;
  84. selection-background-color: #797c81;
  85. selection-color: #ffffff;
  86. background-color: #2a2b2c;
  87. padding-left:0px;
  88. }
  89. QComboBox::drop-down {
  90. subcontrol-origin: padding;
  91. subcontrol-position: top right;
  92. margin-top: 5px;
  93. margin-right: 5px;
  94. border: 0;
  95. background-color:transparent;
  96. padding-right: -4px;
  97. }
  98. QComboBox::down-arrow {
  99. image: url(Skins/Default/MVSDKGuiQt/Icon_ComboBox_ArrowDown_Normal.png)
  100. }
  101. QComboBox::down-arrow:hover {
  102. image: url(Skins/Default/MVSDKGuiQt/Icon_ComboBox_ArrowDown_Hover.png)
  103. }
  104. QComboBox::down-arrow:pressed {
  105. image: url(Skins/Default/MVSDKGuiQt/Icon_ComboBox_ArrowDown_Pressed.png)
  106. }
  107. QComboBox::down-arrow:disabled {
  108. image: url(Skins/Default/MVSDKGuiQt/Icon_ComboBox_ArrowDown_Disable.png)
  109. }
  110. /* SpinBox */
  111. QDoubleSpinBox, QSpinBox {
  112. min-height: 24px;
  113. padding-right: 0px;
  114. border: 1 solid #242424;
  115. background: #373839;
  116. color: #e5e5e5;
  117. }
  118. QDoubleSpinBox:focus, QSpinBox:focus{
  119. border: 1 solid #ff2d2d;
  120. }
  121. QDoubleSpinBox:disabled, QSpinBox:disabled{
  122. background: #373839;
  123. color: #9d9d9d;
  124. }
  125. QDoubleSpinBox::up-button, QSpinBox::up-button {
  126. subcontrol-origin: border;
  127. subcontrol-position: top right;
  128. width: 18px;
  129. border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Up_Normal.png);
  130. margin: 1;
  131. margin-bottom: 2px;
  132. padding:0px;
  133. }
  134. QDoubleSpinBox::up-button:hover, QSpinBox::up-button:hover {
  135. border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Up_Hover.png);
  136. }
  137. QDoubleSpinBox::up-button:pressed, QSpinBox::up-button:pressed {
  138. border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Up_Pressed.png);
  139. }
  140. QDoubleSpinBox::up-button:disabled, QSpinBox::up-button:disabled {
  141. border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Up_Disable.png);
  142. }
  143. QDoubleSpinBox::down-button, QSpinBox::down-button {
  144. subcontrol-origin: border;
  145. subcontrol-position: bottom right;
  146. width: 18px;
  147. border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Down_Normal.png);
  148. margin: 1;
  149. margin-top: 2px;
  150. padding:0px;
  151. }
  152. QDoubleSpinBox::down-button:hover, QSpinBox::down-button:hover {
  153. border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Down_Hover.png);
  154. }
  155. QDoubleSpinBox::down-button:pressed, QSpinBox::down-button:pressed {
  156. border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Down_Pressed.png);
  157. }
  158. QDoubleSpinBox::down-button:disabled, QSpinBox::down-button:disabled {
  159. border-image: url(Skins/Default/MVSDKGuiQt/SpinBox_Common_Down_Disable.png);
  160. }
  161. /* 复选框 */
  162. QCheckBox{
  163. spacing: 8px;
  164. color: #e2e2e2;
  165. }
  166. QCheckBox:hover {
  167. color: rgb(255,255,255);
  168. }
  169. QCheckBox::indicator:unchecked {
  170. image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Unchecked_Normal.png);
  171. }
  172. QCheckBox::indicator:unchecked:hover {
  173. image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Unchecked_Hover.png);
  174. }
  175. QCheckBox::indicator:unchecked:disabled{
  176. image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Unchecked_Disable.png);
  177. }
  178. QCheckBox::indicator:unchecked:pressed {
  179. image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Unchecked_Hover.png);
  180. }
  181. QCheckBox::indicator:checked{
  182. image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Checked_Pressed.png);
  183. }
  184. QCheckBox::indicator:checked:hover {
  185. image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Checked_Pressed.png);
  186. }
  187. QCheckBox::indicator:checked:disabled {
  188. image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Checked_Pressed.png);
  189. }
  190. QCheckBox::indicator:checked:pressed {
  191. image: url(Skins/Default/MVSDKGuiQt/CheckBox_Common_Checked_Pressed.png);
  192. }
  193. /* 单选框 */
  194. QRadioButton::indicator::unchecked {
  195. image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Unchecked_Normal.png);
  196. }
  197. QRadioButton::indicator::unchecked:hover {
  198. image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Unchecked_Hover.png);
  199. }
  200. QRadioButton::indicator::unchecked:pressed {
  201. image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Unchecked_Hover.png);
  202. }
  203. QRadioButton::indicator::unchecked:disabled {
  204. image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Unchecked_Disable.png);
  205. }
  206. QRadioButton::indicator::checked {
  207. image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Checked_Normal.png);
  208. }
  209. QRadioButton::indicator::checked:hover {
  210. image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Checked_Hover.png);
  211. }
  212. QRadioButton::indicator::checked:pressed {
  213. image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Checked_Pressed.png);
  214. }
  215. QRadioButton::indicator::checked:disabled {
  216. image: url(Skins/Default/MVSDKGuiQt/RadioBtn_Common_Checked_Disable.png);
  217. }
  218. QRadioButton {
  219. color:#9d9d9d;
  220. }
  221. QRadioButton:hover {
  222. color:#ffffff;
  223. }
  224. QRadioButton:disabled {
  225. color:#7a7d7f;
  226. }
  227. /* 单行文本框 */
  228. QLineEdit {
  229. min-height: 26px;
  230. background-color: #373839;
  231. selection-background-color: #797c81;
  232. selection-color: #FFFFFF;
  233. border-radius: 1px;
  234. color: #e5e5e5;
  235. padding-left: 11px;
  236. }
  237. QLineEdit:focus {
  238. background-color: #373839;
  239. border-radius: 1px;
  240. border: 1px solid #ff2d2d;
  241. color: #e5e5e5;
  242. }
  243. QLineEdit:disabled {
  244. background-color: #373839;
  245. border-radius: 1px;
  246. border: 1px solid #242424;
  247. color: #9d9d9d;
  248. }
  249. /* 菜单 */
  250. QMenu{
  251. background-color: #2D2E30;
  252. margin: 0px;
  253. border: 1px solid #171717;
  254. border-radius: 2px;
  255. }
  256. QMenu::item {
  257. background-color: #2D2E30;
  258. color: #9D9D9D;
  259. min-height: 32px;
  260. padding: 2px 30px 2px 25px;
  261. border: 0px solid transparent; /* reserve space for selection border */
  262. }
  263. QMenu::item:selected {
  264. background: #373839;
  265. color: #FFFFFF;
  266. }
  267. QMenu::item:hover {
  268. background: #373839;
  269. color: #FFFFFF;
  270. }
  271. QMenu::item:disabled {
  272. color: #737373;
  273. }
  274. QMenu::separator {
  275. height: 1px;
  276. background: #1C1C1C;
  277. }
  278. QMenu::indicator {
  279. left: 5px;
  280. }
  281. QMenu::right-arrow {
  282. image: url(Skins/Default/MVSDKGuiQt/Icon_MenuItem_ArrowRight_Normal.png);
  283. margin-right: 9px;
  284. }
  285. /* 滑动条 */
  286. QSlider::groove:horizontal
  287. {
  288. border: 0px solid #4A708B;
  289. background: rgb(40, 41, 43);
  290. height: 6px;
  291. border-radius: 3px;
  292. padding-left:0px;
  293. padding-right:0px;
  294. }
  295. QSlider::sub-page:horizontal
  296. {
  297. background: rgb(104, 104, 106);
  298. border: 0px solid #4A708B;
  299. height: 6px;
  300. border-radius: 3px;
  301. }
  302. QSlider::add-page:horizontal
  303. {
  304. background: rgb(60, 61, 62);
  305. border: 0px solid rgb(226, 226, 226);
  306. height: 6px;
  307. border-radius: 3px;
  308. }
  309. QSlider::handle:horizontal
  310. {
  311. background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  312. stop:0.0 rgba(135, 135, 135, 255), stop:0.7 rgba(135, 135, 135, 255), stop:0.9 rgba(34, 35, 36, 40));
  313. width: 16px;
  314. margin-top: -5px;
  315. margin-bottom: -5px;
  316. border-radius: 8px;
  317. }
  318. QSlider::handle:horizontal:hover
  319. {
  320. background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  321. stop:0.0 rgba(255, 45, 45, 255), stop:0.7 rgba(255, 45, 45, 255), stop:0.9 rgba(34, 35, 36, 40));
  322. width: 16px;
  323. margin-top: -5px;
  324. margin-bottom: -5px;
  325. border-radius: 8px;
  326. }
  327. QSlider::handle:horizontal:pressed
  328. {
  329. background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  330. stop:0.0 rgba(255, 45, 45, 255), stop:0.7 rgba(255, 45, 45, 255), stop:0.9 rgba(34, 35, 36, 40));
  331. width: 16px;
  332. margin-top: -5px;
  333. margin-bottom: -5px;
  334. border-radius: 8px;
  335. }
  336. QSlider::sub-page:horizontal:disabled
  337. {
  338. background: rgb(60,61,62);
  339. border-color: rgb(60,61,62);
  340. border: 0px solid rgb(226, 226, 226);
  341. border-radius: 3px;
  342. }
  343. QSlider::add-page:horizontal:disabled
  344. {
  345. background: rgb(60,61,62);
  346. border-color: rgb(60,61,62);
  347. border: 0px solid rgb(60,61,62);
  348. border-radius: 3px;
  349. }
  350. QSlider::handle:horizontal:disabled
  351. {
  352. background: rgb(82, 82, 83);
  353. width: 12px;
  354. margin-top: -3px;
  355. margin-bottom: -3px;
  356. border-radius: 6px;
  357. }
  358. /* 水平滚动条 */
  359. QScrollBar:horizontal {
  360. border: 0px solid white;
  361. background: transparent;
  362. height: 6px;
  363. margin: 0 0 0 0;
  364. }
  365. QScrollBar::handle:horizontal {
  366. background: #555555;
  367. min-width: 6px;
  368. border-radius: 3px;
  369. }
  370. QScrollBar::add-line:horizontal {
  371. border: 0px solid white;
  372. background: transparent;
  373. width: 0px;
  374. subcontrol-position: right;
  375. subcontrol-origin: margin;
  376. }
  377. QScrollBar::sub-line:horizontal {
  378. border: 0px solid white;
  379. background: transparent;
  380. width: 0px;
  381. subcontrol-position: left;
  382. subcontrol-origin: margin;
  383. }
  384. QScrollBar::sub-page:horizontal {
  385. background: transparent;
  386. }
  387. QScrollBar::add-page:horizontal {
  388. background: transparent;
  389. }
  390. /* 垂直滚动条 */
  391. QScrollBar:vertical {
  392. border: 0px solid white;
  393. background: transparent;
  394. width: 6px;
  395. margin: 0 0 0 0;
  396. }
  397. QScrollBar::handle:vertical {
  398. background: #555555;
  399. min-height: 6px;
  400. border-radius: 3px;
  401. }
  402. QScrollBar::add-line:vertical {
  403. border: 0px solid white;
  404. background: transparent;
  405. height: 0px;
  406. subcontrol-position: bottom;
  407. subcontrol-origin: margin;
  408. }
  409. QScrollBar::sub-line:vertical {
  410. border: 0px solid white;
  411. background: transparent;
  412. height: 0px;
  413. subcontrol-position: top;
  414. subcontrol-origin: margin;
  415. }
  416. QScrollBar::sub-page:vertical {
  417. background: transparent;
  418. }
  419. QScrollBar::add-page:vertical {
  420. background: transparent;
  421. }
  422. /* 树 */
  423. QTreeView {
  424. outline: 0;
  425. }
  426. QTreeView::item:hover {
  427. background-color: rgba(66,66,67,44%);
  428. }
  429. QTreeView::item:selected {
  430. background-color: rgba(66,66,67,76%);
  431. }
  432. QTreeView::branch:has-siblings:!adjoins-item {
  433. }
  434. QTreeView::branch {
  435. image: none;
  436. }
  437. QTreeView::branch:has-children:!has-siblings:closed,
  438. QTreeView::branch:closed:has-children:has-siblings {
  439. border-image: none;
  440. image: url(Skins/Default/MVSDKGuiQt/Btn_Common_TreeUnfold_Normal.png);
  441. }
  442. QTreeView::branch:closed:has-children:hover {
  443. border-image: none;
  444. image: url(Skins/Default/MVSDKGuiQt/Btn_Common_TreeUnfold_Hover.png);
  445. }
  446. QTreeView::branch:open:has-children:!has-siblings,
  447. QTreeView::branch:open:has-children:has-siblings {
  448. border-image: none;
  449. image: url(Skins/Default/MVSDKGuiQt/Btn_Common_TreeFold_Normal.png);
  450. }
  451. QTreeView::branch:open:has-children:hover {
  452. border-image: none;
  453. image: url(Skins/Default/MVSDKGuiQt/Btn_Common_TreeFold_Hover.png);
  454. }
  455. /* ToolTip */
  456. QToolTip {
  457. padding-left: 5px;
  458. padding-right: 5px;
  459. border-radius: 1px;
  460. opacity: 255;
  461. background: #646668;
  462. color: #ffffff;
  463. }
  464. /* 等待对话框 */
  465. CWaitDialog
  466. {
  467. background: #ffffff;
  468. border: 1px solid #b9bfc8;
  469. }
  470. CWaitDialog QFrame#frameTitle
  471. {
  472. min-height: 36px;
  473. background: #ffffff;
  474. border-bottom: 1px solid #b9bfc8;
  475. margin-left: 1px;
  476. margin-top: 1px;
  477. margin-right: 1px;
  478. }
  479. CWaitDialog QLabel#waitLabel
  480. {
  481. min-width: 100px;
  482. min-height: 60px;
  483. }
  484. CWaitDialog QLabel#lbTitle
  485. {
  486. color: 3333333;
  487. min-width: 32px;
  488. }
  489. CWaitDialog QLabel#labTitleBar
  490. {
  491. padding: 0 6;
  492. min-width: 32px;
  493. }
  494. CWaitDialog QLabel#textLabel
  495. {
  496. font-size: 14px;
  497. margin-left:30;
  498. margin-right: 30;
  499. color:#333333;
  500. }
  501. CWaitGifForm QFrame#frame
  502. {
  503. background: #ffffff;
  504. min-height:0;
  505. max-height:100000;
  506. }
  507. CWaitGifForm QLabel{
  508. background: transparent;
  509. color: #d3d3d3;
  510. }
  511. /* 标题栏 */
  512. CCommonTitleBar QWidget
  513. {
  514. background-color: #ffffff;
  515. }
  516. QWidget#widGlobol
  517. {
  518. font-size: 16px;
  519. color:#333333;
  520. }
  521. CCommonTitleBar QToolButton {
  522. max-height: 24;
  523. max-width: 24;
  524. min-height: 24;
  525. min-width: 24;
  526. border-image: url("Skins/Default/MVSDKGuiQt/Btn_Common_WinClose_Normal.png");
  527. }
  528. CCommonTitleBar QToolButton:hover {
  529. border-image: url("Skins/Default/MVSDKGuiQt/Btn_Common_WinClose_Hover.png");
  530. }
  531. CCommonTitleBar QToolButton:pressed {
  532. border-image: url("Skins/Default/MVSDKGuiQt/Btn_Common_WinClose_Pressed.png");
  533. }
  534. /*CCommonTitleBar QLabel#lbTitle {
  535. font-size: 16px;
  536. color: #ffffff;
  537. background-color: #2f2f30;
  538. min-width: 0px;
  539. max-width: 10000px;
  540. }*/
  541. /* 弹框提示框 */
  542. CCommonMessageBox {
  543. border: 1 solid #b9bfc8;
  544. min-width: 492;
  545. min-height: 382;
  546. }
  547. CCommonMessageBox QFrame#mainFrame
  548. {
  549. min-width: 492;
  550. background: #ffffff;
  551. margin: 1px;
  552. }
  553. CCommonMessageBox QLabel#lbIcon {
  554. margin-top: 20px;
  555. margin-bottom: 16px;
  556. min-width: 280;
  557. min-height: 200;
  558. max-width: 280;
  559. max-height: 200;
  560. }
  561. CCommonMessageBox QLabel#lbMsg {
  562. margin-top: 0px;
  563. margin-bottom: 0px;
  564. margin-left: 46px;
  565. margin-right: 46px;
  566. min-height: 0px;
  567. min-width: 0px;
  568. max-height:10000px;
  569. max-width:10000px;
  570. }
  571. CCommonMessageBox QTextEdit#textEdit {
  572. margin-top: 0px;
  573. margin-bottom: 0px;
  574. margin-left: 46px;
  575. margin-right: 46px;
  576. background: transparent;
  577. border: 0px;
  578. min-height:45;
  579. selection-background-color: #797c81;
  580. selection-color: #FFFFFF;
  581. min-height: 0px;
  582. min-width: 0px;
  583. max-height:40;
  584. max-width:10000px;
  585. }
  586. CCommonMessageBox QTextEdit#textEdit:focus {
  587. border: 0px;
  588. }
  589. CCommonMessageBox QLabel#lbIcon[icon="0"] {
  590. image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsInfo.png);
  591. }
  592. CCommonMessageBox QLabel#lbIcon[icon="1"] {
  593. image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsInfo.png);
  594. }
  595. CCommonMessageBox QLabel#lbIcon[icon="2"] {
  596. image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsWarning.png);
  597. }
  598. CCommonMessageBox QLabel#lbIcon[icon="3"] {
  599. image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsError.png);
  600. }
  601. CCommonMessageBox QLabel#lbIcon[icon="4"] {
  602. image: url(Skins/Default/MVSDKGuiQt/Icon_Dialog_TipsConfirm.png);
  603. }
  604. CCommonMessageBox QFrame#line {
  605. background-color: #b9bfc8;
  606. max-height: 1;
  607. min-height: 1;
  608. min-width: 492px;
  609. border: 0px;
  610. margin-bottom: 9px;
  611. margin-top: 32px;
  612. }
  613. CCommonMessageBox QFrame#line_2 {
  614. background-color: #b9bfc8;
  615. max-height: 1;
  616. min-height: 1;
  617. border: 0px;
  618. }
  619. CCommonMessageBox QPushButton{
  620. min-height: 30px;
  621. max-height: 30px;
  622. height: 30px;
  623. min-width: 80px;
  624. outline: none;
  625. background-color: #ffffff;
  626. border-radius: 3px;
  627. border: 1px solid #b9bfc8;
  628. color: #333333;
  629. }
  630. CCommonMessageBox QPushButton:hover
  631. {
  632. outline: none;
  633. color: #333333;
  634. background-color: #f0f2f3;
  635. }
  636. CCommonMessageBox QPushButton:pressed
  637. {
  638. outline: none;
  639. color: #333333;
  640. background-color: #f0f2f3;
  641. }
  642. CCommonMessageBox QPushButton:disabled
  643. {
  644. outline: none;
  645. color: #cbcbcb;
  646. background-color: #ffffff;
  647. }
  648. CCommonMessageBox QPushButton:default
  649. {
  650. background: #ffffff;
  651. color: #333333;
  652. }
  653. CCommonMessageBox QPushButton:default:hover
  654. {
  655. outline: none;
  656. color: #333333;
  657. background-color: #f0f2f3;
  658. }
  659. CCommonMessageBox QPushButton:default:pressed
  660. {
  661. outline: none;
  662. color: #333333;
  663. background-color: #f0f2f3;
  664. }
  665. CCommonMessageBox QPushButton:default:disabled
  666. {
  667. outline: none;
  668. color: #cbcbcb;
  669. background-color: #ffffff;
  670. }
  671. /* */
  672. QSplitter:handle:vertical {
  673. background:qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(69, 70, 70, 255), stop:1 rgba(0, 0, 0, 255));
  674. }
  675. QSplitter:handle:horizontal {
  676. background:qlineargradient(spread:pad, x1:0, y1:0, x2:1, y2:0, stop:0 rgba(69, 70, 70, 255), stop:1 rgba(0, 0, 0, 255));
  677. }
  678. /* QFrame默认边框为0,规避不同操作系统显示不一致问题 */
  679. QFrame
  680. {
  681. border:0px solid #000000;
  682. }