managerplan.qss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  1. /* ==========================================================
  2. * 通用样式
  3. * ========================================================== */
  4. QWidget
  5. {
  6. font-size: 14px;
  7. color: #3A3F63;
  8. line-height: 21px;
  9. text-align: left;
  10. font-style: normal;
  11. border-radius: 8px;
  12. background: transparent;
  13. }
  14. QWidget#widget
  15. {
  16. background: rgba(255, 255, 255, 0.01);
  17. }
  18. QWidget#widget_background
  19. {
  20. background-color: #FFFFFF;
  21. }
  22. QWidget#widget_top
  23. {
  24. /* background: rgba(108,105,124,0.2); */
  25. border-top-left-radius: 8px;
  26. border-top-right-radius: 8px;
  27. border-bottom-left-radius: 0px;
  28. border-bottom-right-radius: 0px;
  29. border-bottom: 1px solid #E6E9F4;
  30. }
  31. QLabel#label_title
  32. {
  33. background: transparent;
  34. font-size: 18px;
  35. color: #3A3F63;
  36. line-height: 27px;
  37. text-align: left;
  38. font-style: normal;
  39. text-transform: uppercase;
  40. }
  41. QLabel#label_selectChn
  42. {
  43. font-weight: 500;
  44. font-size: 16px;
  45. color: #3A3F63;
  46. line-height: 22px;
  47. text-align: left;
  48. font-style: normal;
  49. text-transform: none;
  50. }
  51. QLabel#label_x1, #label_x2, #label_x3, #label_x4, #label_x5, #label_x6
  52. {
  53. background: transparent;
  54. font-size: 14px;
  55. color: #F53F3F;
  56. text-align: left;
  57. font-style: normal;
  58. }
  59. QPushButton
  60. {
  61. text-align: center;
  62. }
  63. QPushButton#pBtn_close
  64. {
  65. background: transparent;
  66. border-radius: 4px;
  67. qproperty-icon: url(:/ICON/ICON/Close_Light.png);
  68. qproperty-iconSize: 20px 20px;
  69. }
  70. QPushButton#pBtn_close[Hover = true]
  71. {
  72. background: transparent;
  73. border-radius: 4px;
  74. qproperty-icon: url(:/ICON/ICON/Close_pass.png);
  75. qproperty-iconSize: 20px 20px;
  76. border: 1px solid #4458FE;
  77. }
  78. /********* 普通椭圆按钮三种状态效果 *********/
  79. QPushButton#pBtn_cancel, #pBtn_saveTotemplate
  80. {
  81. background: transparent;
  82. color: #3A3F63;
  83. border: 1px solid #E6E9F4;
  84. border-radius: 16px;
  85. }
  86. QPushButton#pBtn_cancel:hover, #pBtn_saveTotemplate:hover
  87. {
  88. background: transparent;
  89. color: #4458FE;
  90. border: 1px solid #4458FE;
  91. border-radius: 16px;
  92. }
  93. /********* 带有底色椭圆按钮三种状态效果 *********/
  94. QPushButton#pBtn_ok
  95. {
  96. color:white;
  97. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  98. border-radius: 16px;
  99. }
  100. QPushButton#pBtn_ok:hover
  101. {
  102. color:white;
  103. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  104. border-radius: 16px;
  105. }
  106. /********* 普通方框按钮三种状态效果 *********/
  107. QPushButton#pBtn_deletePlan, #pBtn_editPlan
  108. {
  109. background: transparent;
  110. color: #3A3F63;
  111. border: 1px solid #E6E9F4;
  112. border-radius: 4px;
  113. }
  114. QPushButton#pBtn_deletePlan:hover, #pBtn_editPlan:hover
  115. {
  116. background: transparent;
  117. color: #4458FE;
  118. border: 1px solid #4458FE;
  119. border-radius: 4px;
  120. }
  121. /********* 带有底色方框按钮三种状态效果 *********/
  122. QPushButton#pBtn_addPlan
  123. {
  124. color:white;
  125. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  126. border-radius: 4px;
  127. }
  128. QPushButton#pBtn_addPlan:hover
  129. {
  130. color:white;
  131. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  132. border-radius: 4px;
  133. }
  134. QLabel#label_devWarn,QLabel#label_timeWarn,QLabel#label_actionWarn
  135. {
  136. /* font-weight: 400; */
  137. font-size: 14px;
  138. color: #D21F21;
  139. line-height: 21px;
  140. text-align: left;
  141. font-style: normal;
  142. }
  143. /* ==========================================================
  144. * QComboBox(这个是在用的)
  145. * ========================================================== */
  146. QComboBox:enabled
  147. {
  148. background-color:#FFFFFF;
  149. border: 1px solid #E6E9F4;
  150. border-radius: 4px;
  151. font-size:14px;
  152. font-weight: 400;
  153. color:#3A3F63;
  154. padding-left: 12px;
  155. }
  156. /* 不能编辑的时候的样式,setEnable(false) */
  157. QComboBox:!enabled
  158. {
  159. background:rgba(0,0,0,0.04);
  160. border: 1px solid #E6E9F4;
  161. border-radius: 4px;
  162. font-size:14px;
  163. font-weight: 400;
  164. color:rgba(58,63,99,0.65);
  165. padding-left: 12px;
  166. }
  167. QComboBox:hover
  168. {
  169. border: 1px solid #4458FE;
  170. border-radius: 4px;
  171. background:transparent;
  172. }
  173. /* 下拉箭头所在的位置方框 */
  174. QComboBox::drop-down
  175. {
  176. width: 24px;
  177. border: none;
  178. }
  179. /* 下拉箭头图标 */
  180. QComboBox::down-arrow
  181. {
  182. image: url(:/ICON/ICON/DownArrow_Light.png);
  183. height:16px;
  184. width:16px;
  185. }
  186. /* 下拉条样式,就是view,整个下拉窗体的样式 */
  187. QComboBox QAbstractItemView
  188. {
  189. background-color: #FFFFFF;
  190. margin: 12px;
  191. outline:0px;
  192. font-size:14px;
  193. color: #3A3F63;
  194. border-radius: 4px;
  195. }
  196. /* 使下面两句生效,需要加上如下语句 */
  197. /* m_comBoxDev->setView(new QListView()); */
  198. QComboBox QAbstractItemView::item
  199. {
  200. background-color: #FFFFFF;
  201. border-radius:4px;
  202. color: #3A3F63;
  203. padding-left: 12px;
  204. height: 32px;
  205. }
  206. QComboBox QAbstractItemView::item:hover
  207. {
  208. border-radius:4px;
  209. background-color: #EEF2FF;
  210. }
  211. /******** combobox 滚动条 *********/
  212. /*主体部分*/
  213. QComboBox QScrollBar::vertical
  214. {
  215. width:8px;
  216. background:transparent;
  217. border:none;
  218. border-radius:5px;
  219. }
  220. /*滑块主体*/
  221. QComboBox QScrollBar::handle::vertical
  222. {
  223. width: 8px;
  224. background: #E2E2E2;
  225. border-radius: 3px;
  226. min-width: 8px;
  227. }
  228. QComboBox QScrollBar::handle::vertical::hover
  229. {
  230. background:transparent;
  231. }
  232. /*上箭头*/
  233. QComboBox QScrollBar::add-line::vertical
  234. {
  235. border:none;
  236. }
  237. /*下箭头*/
  238. QComboBox QScrollBar::sub-line::vertical
  239. {
  240. border:none;
  241. }
  242. /* ==========================================================
  243. * 时间报警红框
  244. * ========================================================== */
  245. TimeWidget
  246. {
  247. background: #FFFFFF;
  248. /* background: #373639; */
  249. border-radius: 4px;
  250. padding-left:12px;
  251. border: 1px solid #E6E9F4;
  252. }
  253. TimeWidget:hover
  254. {
  255. background: #FFFFFF;
  256. /* background: #373639; */
  257. border-radius: 4px;
  258. padding-left:12px;
  259. border: 1px solid #4458FE;
  260. }
  261. /* ==========================================================
  262. * 日期选择器
  263. * ========================================================== */
  264. CalendarDTEdit
  265. {
  266. background: transparent;
  267. border-radius: 4px;
  268. padding-left:12px;
  269. border: 1px solid #E6E9F4;
  270. }
  271. CalendarDTEdit:hover
  272. {
  273. border-radius: 4px;
  274. padding-left:12px;
  275. border: 1px solid #4458FE;
  276. }
  277. CalendarDTEdit[Warn=true]
  278. {
  279. border-radius: 4px;
  280. padding-left:12px;
  281. border: 1px solid #D21F21;
  282. }
  283. CalendarDTEdit:!enabled/* 或者disable */
  284. {
  285. background: rgba(0,0,0,0.04);
  286. border: 1px solid #E6E9F4;
  287. }
  288. CalendarDTEdit::drop-down
  289. {
  290. padding-right: 8px;
  291. width: 16px;
  292. image: url(:/ICON/ICON/date_light.png);
  293. }
  294. /* ==========================================================
  295. * QTabWidget
  296. * ========================================================== */
  297. /* 设置 TabBar 的整体背景颜色 */
  298. QTabBar
  299. {
  300. background: transparent; /* 整体背景颜色 */
  301. border-radius: 2px; /* 圆角 */
  302. border: 1px solid #E6E9F4; /* 边框颜色 */
  303. }
  304. /* 设置标签的默认样式 */
  305. QTabBar::tab
  306. {
  307. min-width: 66px; /* 标签最小宽度 */
  308. min-height: 28px; /* 标签最小高度 */
  309. border-radius: 2px; /* 圆角 */
  310. margin: 6px;
  311. font-weight: 400;
  312. font-size: 14px;
  313. line-height: 20px;
  314. text-align: left;
  315. font-style: normal;
  316. text-transform: none;
  317. /* border: 1px solid #E6E9F4; */
  318. }
  319. /* 设置选中标签的样式 */
  320. QTabBar::tab:selected
  321. {
  322. background: #4458FE; /* 选中标签的背景颜色 */
  323. border-radius: 2px; /* 圆角 */
  324. margin: 6px; /* 内缩 6px */
  325. color: #FFFFFF;
  326. font-weight: 500;
  327. font-size: 14px;
  328. line-height: 20px;
  329. text-align: left;
  330. font-style: normal;
  331. text-transform: none;
  332. }
  333. QTabWidget::pane
  334. {
  335. border: none; /* 去掉边框 */
  336. }
  337. QWidget#tab_week, #tab_special
  338. {
  339. background: transparent; /* 背景颜色 */
  340. border-radius: 0px;
  341. border: 0px solid rgba(255,255,255,0.15);
  342. }