public.qss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. /***********************************************此文件为公共文件,选择器只能是:通用选择器、类型选择器和类选择器*****************************************************/
  2. /**********************************************************************通用选择器***********************************************************************************/
  3. *{
  4. font-family:Microsoft YaHei;
  5. font-size: 14px;
  6. color:#666666;
  7. }
  8. /*Widget 类选择器*/
  9. .QWidget
  10. {
  11. border:none;
  12. }
  13. QWidget[objectName="titleWidget"]
  14. {
  15. min-height:48px;
  16. max-height:48px;
  17. border-bottom:1px solid #dcdfe3;
  18. }
  19. QWidget[objectName="titleWidget"] QLabel
  20. {
  21. color:#333333;
  22. }
  23. QWidget[whatsThis="shuoMingWidget"]
  24. {
  25. width: 372px;
  26. min-height: 40px;
  27. background-color: #f7f7f7;
  28. border-radius: 4px;
  29. }
  30. /*********************************************************************QComboBox******************************************************************************************/
  31. QComboBox
  32. {
  33. min-height:32px;
  34. color:#333333;
  35. padding-left:8px;
  36. background-color: #ffffff;
  37. border-radius: 4px;
  38. border: 1px solid #dcdfe3;
  39. }
  40. QComboBox:disabled
  41. {
  42. color: #999999;
  43. }
  44. QComboBox:hover
  45. {
  46. border:1px solid #ff2d2d;
  47. }
  48. QComboBox:on
  49. {
  50. border-bottom-right-radius:0px;
  51. border-bottom-left-radius:0px;
  52. border-top-right-radius:4px;
  53. border-top-left-radius:4px;
  54. border-top:1px solid #ff2d2d;
  55. border-right:1px solid #ff2d2d;
  56. border-bottom:0px;
  57. border-left:1px solid #ff2d2d;
  58. }
  59. QComboBox:off:focus
  60. {
  61. border-bottom-right-radius:4px;
  62. border-bottom-left-radius:4px;
  63. border-top-right-radius:4px;
  64. border-top-left-radius:4px;
  65. border-top:1px solid #ff2d2d;
  66. border-right:1px solid #ff2d2d;
  67. border-bottom:1px solid #ff2d2d;
  68. border-left:1px solid #ff2d2d;
  69. }
  70. QComboBox:off:!focus
  71. {
  72. border-bottom-right-radius:4px;
  73. border-bottom-left-radius:4px;
  74. border-top-right-radius:4px;
  75. border-top-left-radius:4px;
  76. border-top:1px solid #dcdfe3;
  77. border-right:1px solid #dcdfe3;
  78. border-bottom:1px solid #dcdfe3;
  79. border-left:1px solid #dcdfe3;
  80. }
  81. QComboBox::drop-down
  82. {
  83. subcontrol-origin: padding;
  84. subcontrol-position: top right;
  85. width: 18px;
  86. border: 0;
  87. left:-6px;
  88. }
  89. QComboBox::down-arrow
  90. {
  91. image: url(Skins/MechHand/resource/tool_icon_pullDown_n.png);
  92. }
  93. QComboBox::down-arrow:pressed{
  94. image: url(Skins/MechHand/resource/tool_icon_pullDown_p.png);
  95. }
  96. QComboBox::down-arrow:hover{
  97. image: url(Skins/MechHand/resource/tool_icon_pullDown_h.png);
  98. }
  99. QComboBox::down-arrow:disabled{
  100. image: url(Skins/MechHand/resource/tool_icon_pullDown_d.png);
  101. }
  102. QComboBox QAbstractItemView
  103. {
  104. border-top:0px;
  105. border-right:1px solid #ff2d2d;
  106. border-bottom:1px solid #ff2d2d;
  107. border-left:1px solid #ff2d2d;
  108. background-color:#ffffff;
  109. outline: 0px;
  110. color:#333333;
  111. }
  112. QComboBox QListView::item
  113. {
  114. color:#333333;
  115. height:28px;
  116. padding-left:8px;
  117. background-color:rgba(255,255,255);
  118. }
  119. QComboBox QListView::item:hover
  120. {
  121. color:#333333;
  122. background-color:rgba(255,45,45,127);
  123. }
  124. /*********************************************************************QRadioButton******************************************************************************************/
  125. QRadioButton{
  126. spacing:8px;
  127. }
  128. QRadioButton::indicator:unchecked{
  129. image:url(Skins/MechHand/resource/unradio_n-1.png);
  130. }
  131. QRadioButton::indicator:unchecked:disabled{
  132. image:url(Skins/MechHand/resource/radio_n.png);
  133. }
  134. QRadioButton::indicator:unchecked:hover{
  135. image:url(Skins/MechHand/resource/unradio_n.png);
  136. }
  137. QRadioButton::indicator:checked{
  138. image:url(Skins/MechHand/resource/radio_d-1.png);
  139. }
  140. QRadioButton::indicator:checked:disabled{
  141. image:url(Skins/MechHand/resource/radio_d.png);
  142. }
  143. QRadioButton::indicator:checked:hover{
  144. image:url(Skins/MechHand/resource/radio_d-3.png);
  145. }
  146. /*********************************************************************QCheckBox**************************************************************************************/
  147. QCheckBox
  148. {
  149. color:#333333;
  150. }
  151. QCheckBox::indicator:unchecked
  152. {
  153. image:url(Skins/MechHand/resource/uncheckbox_n.png);
  154. }
  155. QCheckBox::indicator:checked
  156. {
  157. image:url(Skins/MechHand/resource/checkbox_p.png);
  158. }
  159. QCheckBox::indicator:unchecked:disabled
  160. {
  161. image:url(Skins/MechHand/resource/checkbox_d.png);
  162. }
  163. QCheckBox::indicator:unchecked:hover
  164. {
  165. image:url(Skins/MechHand/resource/uncheckbox_h.png);
  166. }
  167. QCheckBox::indicator:checked:disabled
  168. {
  169. image:url(Skins/MechHand/resource/uncheckbox_d.png);
  170. }
  171. QCheckBox::indicator:checked:hover
  172. {
  173. image:url(Skins/MechHand/resource/checkbox_p.png);
  174. }
  175. /*********************************************************************QPushButton**************************************************************************************/
  176. .QPushButton{
  177. outline: none;
  178. width:80;
  179. height:32;
  180. color: #333333;
  181. }
  182. .QPushButton:hover{
  183. outline: none;
  184. width:80;
  185. height:32;
  186. color: #333333;
  187. }
  188. .QPushButton:disabled{
  189. outline: none;
  190. width:80;
  191. height:32;
  192. color: #cbcbcb;
  193. }
  194. .QPushButton:pressed{
  195. outline: none;
  196. width:80;
  197. height:32;
  198. color: #333333;
  199. }
  200. QPushButton
  201. {
  202. outline: none;
  203. }
  204. QPushButton:focus
  205. {
  206. outline: 2px;
  207. }
  208. QPushButton[whatsThis="close"]
  209. {
  210. outline: none;
  211. max-width: 16px;
  212. max-height: 16px;
  213. border-image:url(Skins/MechHand/resource/header_close_n.png);
  214. }
  215. QPushButton[whatsThis="close"]:pressed
  216. {
  217. outline: none;
  218. max-width: 16px;
  219. max-height: 16px;
  220. border-image:url(Skins/MechHand/resource/header_close_p.png);
  221. }
  222. QPushButton[whatsThis="close"]:hover
  223. {
  224. outline: none;
  225. max-width: 16px;
  226. max-height: 16px;
  227. border-image: url(Skins/MechHand/resource/header_close_h.png);
  228. }
  229. QPushButton[whatsThis="close"]:disabled
  230. {
  231. outline: none;
  232. max-width: 16px;
  233. max-height: 16px;
  234. border-image: url(Skins/MechHand/resource/header_close_d.png);
  235. }
  236. QPushButton[whatsThis="redBtnType"]
  237. {
  238. qproperty-focusPolicy:NoFocus;
  239. qproperty-default:false;
  240. outline: none;
  241. border-radius: 4px;
  242. color: rgba(255, 255, 255);
  243. background-color: #ff2d2d;
  244. }
  245. QPushButton[whatsThis="redBtnType"]:hover
  246. {
  247. outline: none;
  248. color: #ffe4e4;
  249. background-color: #ff4c4c;
  250. }
  251. QPushButton[whatsThis="redBtnType"]:pressed
  252. {
  253. outline: none;
  254. color: #ffffff;
  255. background-color: #ff2d2d;
  256. }
  257. QPushButton[whatsThis="redBtnType"]:disabled
  258. {
  259. outline: none;
  260. color: #ffcaca;
  261. background-color: #ff9595;
  262. }
  263. QPushButton[whatsThis="red2BtnType"]
  264. {
  265. outline: none;
  266. background-color: #ffffff;
  267. border-radius: 4px;
  268. border: 1px solid #ff2d2d;
  269. font-size: 16px;
  270. color: #ff2d2d;
  271. }
  272. QPushButton[whatsThis="red2BtnType"]:hover
  273. {
  274. outline: none;
  275. background-color: #ff4c4c;
  276. border-radius: 4px;
  277. border:1px solid #ff4c4c;
  278. color: #ffffff;
  279. }
  280. QPushButton[whatsThis="red2BtnType"]:pressed
  281. {
  282. outline: none;
  283. background-color: #ff2d2d;
  284. border-radius: 4px;
  285. color: #ffffff;
  286. }
  287. QPushButton[whatsThis="red2BtnType"]:disabled
  288. {
  289. outline: none;
  290. background-color: #ffffff;
  291. border-radius: 3px;
  292. border:1px solid #ff9595;
  293. color: #ffcaca;
  294. }
  295. QPushButton[whatsThis="grayBtnType"]
  296. {
  297. outline: none;
  298. background-color: #ffffff;
  299. border-radius: 3px;
  300. border: 1px solid #b9bfc8;
  301. color: #333333;
  302. }
  303. QPushButton[whatsThis="grayBtnType"]:hover
  304. {
  305. outline: none;
  306. color: #333333;
  307. background-color: #f0f2f3;
  308. }
  309. QPushButton[whatsThis="grayBtnType"]:pressed
  310. {
  311. outline: none;
  312. color: #333333;
  313. background-color: #f0f2f3;
  314. }
  315. QPushButton[whatsThis="grayBtnType"]:disabled
  316. {
  317. outline: none;
  318. color: #cbcbcb;
  319. background-color: #ffffff;
  320. }
  321. QPushButton[whatsThis="rename"],QPushButton[whatsThis="deleteBtn"],QPushButton[whatsThis="edit"],QPushButton[whatsThis="ver"]
  322. {
  323. outline: none;
  324. width: 60px;
  325. height: 32px;
  326. background-color: #ffffff;
  327. border-radius: 4px;
  328. text-align : right;
  329. background-repeat: repeat-no-repeat;
  330. background-position: left;
  331. background-origin:content;
  332. padding-left:18px;
  333. padding-right:18px;
  334. }
  335. QPushButton[whatsThis="rename"]
  336. {
  337. outline: none;
  338. width: 76px;
  339. background-image:url(Skins/MechHand/resource/btn_icon_rename_n.png);
  340. }
  341. QPushButton[whatsThis="deleteBtn"]
  342. {
  343. outline: none;
  344. background-image:url(Skins/MechHand/resource/btn_icon_del_n.png);
  345. }
  346. QPushButton[whatsThis="edit"]
  347. {
  348. outline: none;
  349. background-image:url(Skins/MechHand/resource/btn_icon_edit_n.png);
  350. }
  351. QPushButton[whatsThis="ver"]
  352. {
  353. outline: none;
  354. background-image:url(Skins/MechHand/resource/btn_icon_prove_n.png);
  355. }
  356. QPushButton[whatsThis="rename"]:hover,QPushButton[whatsThis="deleteBtn"]:hover,QPushButton[whatsThis="edit"]:hover,QPushButton[whatsThis="ver"]:hover
  357. {
  358. outline: none;
  359. width: 60px;
  360. height: 32px;
  361. background-color: #f0f2f3;
  362. border-radius: 4px;
  363. }
  364. QPushButton[whatsThis="clear"]
  365. {
  366. outline: none;
  367. max-width: 60px;
  368. min-height: 40px;
  369. background-color: #ffffff;
  370. border-radius: 4px;
  371. border: 1px solid #ff2d2d;
  372. font-size: 16px;
  373. color: #ff2d2d;
  374. text-align : right;
  375. background-repeat: repeat-no-repeat;
  376. background-position: left;
  377. background-origin:content;
  378. padding-left:30px;
  379. padding-right:30px;
  380. background-image:url(Skins/MechHand/resource/btn_icon_clear_n.png);
  381. }
  382. QPushButton[whatsThis="clear"]:disabled
  383. {
  384. outline: none;
  385. background-color: #ffffff;
  386. border-radius: 3px;
  387. border:1px solid #ff9595;
  388. color: #ffcaca;
  389. background-image:url(Skins/MechHand/resource/btn_icon_clear_d.png);
  390. }
  391. QPushButton[whatsThis="clear"]:hover
  392. {
  393. outline: none;
  394. background-color: #ff4c4c;
  395. border-radius: 4px;
  396. border:1px solid #ff4c4c;
  397. color: #ffffff;
  398. background-image:url(Skins/MechHand/resource/btn_icon_clear_h.png);
  399. }
  400. QPushButton[whatsThis="clear"]:pressed
  401. {
  402. outline: none;
  403. background-color: #ff2d2d;
  404. border-radius: 4px;
  405. color: #ffffff;
  406. background-image:url(Skins/MechHand/resource/btn_icon_clear_p.png);
  407. }
  408. QPushButton[whatsThis="RegisterBtn"]
  409. {
  410. outline: none;
  411. max-width: 60px;
  412. min-height: 40px;
  413. background-color: #ffffff;
  414. border-radius: 4px;
  415. border: 1px solid #ff2d2d;
  416. font-size: 16px;
  417. color: #ff2d2d;
  418. text-align : right;
  419. background-repeat: repeat-no-repeat;
  420. background-position: left;
  421. background-origin:content;
  422. padding-left:30px;
  423. padding-right:30px;
  424. background-image:url(Skins/MechHand/resource/btn_icon_logon_n.png);
  425. }
  426. QPushButton[whatsThis="RegisterBtn"]:disabled
  427. {
  428. outline: none;
  429. background-color: #ffffff;
  430. border-radius: 3px;
  431. border:1px solid #ff9595;
  432. color: #ffcaca;
  433. background-image:url(Skins/MechHand/resource/btn_icon_logon_d.png);
  434. }
  435. QPushButton[whatsThis="RegisterBtn"]:hover
  436. {
  437. outline: none;
  438. background-color: #ff4c4c;
  439. border-radius: 4px;
  440. border:1px solid #ff4c4c;
  441. color: #ffffff;
  442. background-image:url(Skins/MechHand/resource/btn_icon_logon_h.png);
  443. }
  444. QPushButton[whatsThis="RegisterBtn"]:pressed
  445. {
  446. outline: none;
  447. background-color: #ff2d2d;
  448. border-radius: 4px;
  449. color: #ffffff;
  450. background-image:url(Skins/MechHand/resource/btn_icon_logon_p.png);
  451. }
  452. /*********************************************************************QLabel**************************************************************************************/
  453. QLabel[whatsThis="picIconLabel"]
  454. {
  455. min-width: 210px;
  456. min-height: 113px;
  457. image:url(Skins/MechHand/resource/pic_空值页.png);
  458. }
  459. QLabel[whatsThis="overLabel"]
  460. {
  461. min-width: 210px;
  462. min-height: 113px;
  463. image:url(Skins/MechHand/resource/over.png);
  464. }
  465. QLabel[whatsThis="Label_333"]
  466. {
  467. color:#333333;
  468. }
  469. QLabel[whatsThis="shuoMingIconLabel"]
  470. {
  471. min-width:16px;
  472. min-height:16px;
  473. max-width:16px;
  474. max-height:16px;
  475. border-image:url(Skins/MechHand/resource/prompt_提示.png);
  476. }
  477. QLabel[whatsThis="shuoMingLabel"]
  478. {
  479. color: #333333;
  480. }
  481. /*********************************************************************QSlider**************************************************************************************/
  482. QSlider::groove:horizontal
  483. {
  484. background: rgb(255, 0, 0,0);
  485. height: 4px;
  486. border-radius: 2px;
  487. }
  488. QSlider::sub-page:horizontal
  489. {
  490. background: rgb(255, 0, 0);
  491. height: 4px;
  492. border-radius: 2px;
  493. }
  494. QSlider::add-page:horizontal
  495. {
  496. background-color: #dcdfe3;
  497. height: 4px;
  498. border-radius: 2px;
  499. }
  500. QSlider::handle:horizontal
  501. {
  502. /*background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  503. stop:0.0 rgba(255, 45, 45, 255), stop:0.4 rgba(255, 45, 45, 255),stop:0.6 rgba(255, 255, 255, 255),stop:0.9 rgba(255, 45, 45,150));*/
  504. width:14px;
  505. margin-top: -5px;
  506. margin-bottom: -5px;
  507. border-radius: 7px;
  508. border-image:url(Skins/MechHand/resource/Slider_n.png);
  509. }
  510. QSlider::handle:horizontal:hover
  511. {
  512. background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  513. stop:0.0 rgba(255, 45, 45, 255), stop:0.7 rgba(255, 45, 45, 255), stop:0.9 rgba(34, 35, 36, 40));
  514. width:14px;
  515. min-height:14px;
  516. margin-top: -5px;
  517. margin-bottom: -5px;
  518. border-radius: 7px;
  519. border-image:url("");
  520. }
  521. QSlider::handle:horizontal:pressed
  522. {
  523. background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:0.5, fx:0.5, fy:0.5,
  524. stop:0.0 rgba(255, 45, 45, 255), stop:0.7 rgba(255, 45, 45, 255), stop:0.9 rgba(34, 35, 36, 40));
  525. width:14px;
  526. min-height:14px;
  527. margin-top: -5px;
  528. margin-bottom: -5px;
  529. border-radius: 7px;
  530. border-image:url("");
  531. }
  532. QSlider::handle:horizontal:disabled
  533. {
  534. border-image:url(Skins/MechHand/resource/Slider_d.png);
  535. }
  536. QSlider::sub-page:horizontal:disabled
  537. {
  538. background: rgb(60,61,62);
  539. border-color: rgb(60,61,62);
  540. border: 0px solid rgb(226, 226, 226);
  541. border-radius: 3px;
  542. }
  543. QSlider::add-page:horizontal:disabled
  544. {
  545. background: rgb(60,61,62);
  546. border-color: rgb(60,61,62);
  547. border: 0px solid rgb(60,61,62);
  548. border-radius: 3px;
  549. }
  550. /*********************************************************************QTableView**************************************************************************************/
  551. QTableView{
  552. font-size:14px;
  553. background:#F8F8F8;
  554. border: 0px;
  555. gridline-color:#FFFFFF;
  556. text-align: center;
  557. selection-color:#333333;
  558. selection-background-color:rgba(200,200,200,0.8);
  559. }
  560. QTableView::item{
  561. height: 40px;
  562. text-align:center;
  563. color:#666666;
  564. }
  565. QHeaderView::section:vertical
  566. {
  567. width:0px;
  568. }
  569. QHeaderView::section:horizontal
  570. {
  571. width: 372px;
  572. height: 40px;
  573. background-color: #f2f3f4;
  574. color:#333333;
  575. border-radius: 4px 4px 0px 0px;
  576. }
  577. QTableView::section{
  578. border:0px;
  579. height:40px;
  580. background-color: #dbdee2;
  581. color: #333333;
  582. }
  583. /*********************************************************************QListWidget**************************************************************************************/
  584. .QListWidget
  585. {
  586. border:0px;
  587. padding:0px;
  588. background-color: rgba(240, 240, 240,0);
  589. outline: none;
  590. }
  591. .QListWidget::Item
  592. {
  593. border-bottom:1px solid #EEEEEE;
  594. background-color: rgba(240, 240, 240,0);
  595. }
  596. .QListWidget::Item:focus
  597. {
  598. border:0px;
  599. }
  600. /*********************************************************************QSpinBox**************************************************************************************/
  601. QSpinBox, QDoubleSpinBox
  602. {
  603. background-color: #ffffff;
  604. border-radius: 4px;
  605. border:1px solid #dbdee3;
  606. padding-left:8px;
  607. qproperty-contextMenuPolicy:NoContextMenu;
  608. color: #333333;
  609. }
  610. QSpinBox:hover,QDoubleSpinBox:hover
  611. {
  612. border:1px solid #ff2d2d;
  613. }
  614. QSpinBox:focus,QDoubleSpinBox:focus
  615. {
  616. border:1px solid #ff2d2d;
  617. }
  618. QSpinBox:disabled,QDoubleSpinBox:disabled
  619. {
  620. border:1px solid #eceef0;
  621. color: #999999;
  622. }
  623. QSpinBox::up-button, QDoubleSpinBox::up-button{
  624. subcontrol-origin: border;
  625. subcontrol-position: top right;
  626. width:16px;
  627. image:url(Skins/MechHand/resource/tool_icon_up_n.png);
  628. margin: 0;
  629. margin-bottom: 1px;
  630. padding-right:5px;
  631. left:-4px;
  632. }
  633. QSpinBox::down-button, QDoubleSpinBox::down-button{
  634. subcontrol-origin: border;
  635. subcontrol-position: bottom right;
  636. width: 16px;
  637. image:url(Skins/MechHand/resource/tool_icon_pullDown_n.png);
  638. margin: 0;
  639. margin-top: 1px;
  640. padding-right:5px;
  641. left:-4px;
  642. }
  643. QSpinBox::down-button:hover, QDoubleSpinBox::down-button:hover{
  644. image:url(Skins/MechHand/resource/tool_icon_pullDown_h.png);
  645. }
  646. QSpinBox::down-button:pressed, QDoubleSpinBox::down-button:pressed{
  647. image:url(Skins/MechHand/resource/tool_icon_pullDown_p.png);
  648. }
  649. QSpinBox::down-button:disabled, QDoubleSpinBox::down-button:disabled{
  650. image:url(Skins/MechHand/resource/tool_icon_pullDown_d.png);
  651. }
  652. QSpinBox::up-button:hover, QDoubleSpinBox::up-button:hover{
  653. image:url(Skins/MechHand/resource/tool_icon_up_h.png);
  654. }
  655. QSpinBox::up-button:pressed, QDoubleSpinBox::up-button:pressed{
  656. image:url(Skins/MechHand/resource/tool_icon_up_p.png);
  657. }
  658. QSpinBox::up-button:disabled, QDoubleSpinBox::up-button:disabled{
  659. image:url(Skins/MechHand/resource/tool_icon_up_d.png);
  660. }
  661. /*********************************************************************QMenu**************************************************************************************/
  662. QMenu
  663. {
  664. color: #333333;
  665. background-color:#ffffff;
  666. border-radius: 4px;
  667. }
  668. QMenu::item
  669. {
  670. color: #333333;
  671. height:32px;
  672. width: 60px;
  673. padding-left:8px;
  674. background-color:#ffffff;
  675. }
  676. QMenu::item::disabled
  677. {
  678. color: #6e6e6e;
  679. background-color:#1c1c1c;
  680. }
  681. QMenu::item::selected
  682. {
  683. background-color:rgba(255,45,45,100);
  684. }
  685. QMenu::item::pressed
  686. {
  687. background-color:rgba(255,45,45,100);
  688. }
  689. QMenu::indicator
  690. {
  691. qproperty-visible:false;
  692. }
  693. QMenu::separator
  694. {
  695. min-height:8px;
  696. }
  697. /*************************************************************************QLineEdit***********************************************************************************************/
  698. QLineEdit
  699. {
  700. height:32px;
  701. padding-left:8px;
  702. background-color: #ffffff;
  703. border-radius: 4px;
  704. border:1px solid #dbdee3;
  705. qproperty-contextMenuPolicy:NoContextMenu;
  706. color: #333333;
  707. }
  708. QLineEdit:read-only
  709. {
  710. color: #666666;
  711. padding-left:8px;
  712. background-color: #ffffff;
  713. qproperty-contextMenuPolicy:NoContextMenu;
  714. }
  715. QLineEdit:!read-only:hover
  716. {
  717. background-color: #ffffff;
  718. border-radius: 4px;
  719. border:1px solid #ff2d2d;
  720. }
  721. QLineEdit:!read-only:focus
  722. {
  723. background-color: #ffffff;
  724. border-radius: 4px;
  725. border:1px solid #ff2d2d;
  726. }
  727. QLineEdit:disabled
  728. {
  729. color: #999999;
  730. background-color: #ffffff;
  731. border-radius: 3px;
  732. border: 1px solid #eceef0;
  733. }
  734. QTextEdit
  735. {
  736. padding-left:8px;
  737. background-color: #ffffff;
  738. border-radius: 4px;
  739. border:1px solid #dbdee3;
  740. qproperty-contextMenuPolicy:NoContextMenu;
  741. }
  742. /*************************************************************************QScrollArea***********************************************************************************************/
  743. QScrollArea{
  744. border:0px;
  745. background:#ffffff;
  746. }
  747. QScrollBar:vertical{
  748. border:0px;
  749. background:#ffffff;
  750. width:6px;
  751. }
  752. QScrollBar::handle:vertical{
  753. min-height:30px;
  754. background:#dcdfe3;
  755. border-radius: 3px;
  756. }
  757. QScrollBar::handle:vertical:hover{
  758. background:#888888;
  759. border-radius: 3px;
  760. }
  761. QScrollBar::handle:vertical:pressed{
  762. background:#888888;
  763. border-radius: 3px;
  764. }
  765. QScrollBar::sub-line:vertical, QScrollBar::add-line:vertical{
  766. height:0px;
  767. }
  768. QScrollBar:horizontal{
  769. border:0px;
  770. background:#ffffff;
  771. height:6px;
  772. }
  773. QScrollBar::handle:horizontal{
  774. background:#dcdfe3;
  775. border-radius: 3px;
  776. }
  777. QScrollBar::handle:horizontal:hover{
  778. background:#888888;
  779. border-radius: 3px;
  780. }
  781. QScrollBar::handle:horizontal:pressed{
  782. background:#888888;
  783. border-radius: 3px;
  784. }
  785. QScrollBar::sub-line:horizontal, QScrollBar::add-line:horizontal{
  786. width:0px;
  787. }
  788. /*************************************************************************QTreeView***********************************************************************************************/
  789. QTreeView
  790. {
  791. width: 648px;
  792. height: 370px;
  793. background-color: #ffffff;
  794. border-radius: 4px;
  795. border:1px solid #dcdfe3;
  796. }