UIObject.h 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  1. #ifndef UIOBJECT_H
  2. #define UIOBJECT_H
  3. #include <QString>
  4. namespace UIObject {
  5. /// Color
  6. const QString MQSSColor01 = "#404040";
  7. /// Color
  8. const QString MQSSColorStyle01 = " \
  9. color:#FFFFFF;";
  10. const QString MQSSColorStyle02 = " \
  11. color:#E67300;";
  12. const QString MQSSColorStyle03 = " \
  13. color:#888888;";
  14. const QString MQSSColorStyle04 = " \
  15. color:#AAAAAA;";
  16. const QString MQSSColorStyle05 = " \
  17. color:#FF0000;";
  18. const QString MQSSColorStyle06 = " \
  19. color:#F4F4F4;";
  20. const QString MQSSColorStyle07 = " \
  21. color:#A0630B;";
  22. const QString MQSSColorStyle08 = " \
  23. color:#158FE1;";
  24. const QString MQSSColorStyle09 = " \
  25. color:#666666;";
  26. const QString MQSSColorStyle10 = " \
  27. color:#444444;";
  28. const QString MQSSColorStyle11 = " \
  29. color:#169AF3;";
  30. const QString MQSSColorStyle12 = " \
  31. color:#323232;";
  32. const QString MQSSColorStyle13 = " \
  33. color:#000000;";
  34. const QString MQSSColorStyle14 = " \
  35. color:#CCCCCC;";
  36. const QString MQSSColorStyle15 = " \
  37. color:#404040;";
  38. /// Background
  39. const QString MQSSBackgroundStyle01 = " \
  40. background-color:transparent; "
  41. #ifdef Q_OS_UNIX
  42. + QString("border-style:falt;")
  43. #endif
  44. ;
  45. const QString MQSSBackgroundStyle02 = " \
  46. background-color:black;";
  47. const QString MQSSBackgroundStyle03 = " \
  48. background-color:rgb(240, 240, 240);";
  49. const QString MQSSBackgroundStyle04 = " \
  50. background-color:rgba(0, 0, 0, 50);";
  51. const QString MQSSBackgroundStyle05 = " \
  52. background:rgb(250, 231, 191);";
  53. const QString MQSSBackgroundStyle06 = " \
  54. background:rgba(41, 41, 41);";
  55. const QString MQSSBackgroundStyle07 = " \
  56. background:rgba(0, 0, 0, 35);";
  57. const QString MQSSBackgroundStyle08 = " \
  58. background:rgba(0, 0, 0, 100);";
  59. const QString MQSSBackgroundStyle09 = " \
  60. background:rgba(255, 255, 255, 25);";
  61. const QString MQSSBackgroundStyle10 = " \
  62. background:rgba(255 ,255, 255, 50);";
  63. const QString MQSSBackgroundStyle11 = " \
  64. background:rgba(255, 255, 255, 125);";
  65. const QString MQSSBackgroundStyle12 = " \
  66. background:rgba(255, 255, 255, 180);";
  67. const QString MQSSBackgroundStyle13 = " \
  68. background:rgba(255, 255, 255, 200);";
  69. const QString MQSSBackgroundStyle14 = " \
  70. background:#158FE1;";
  71. const QString MQSSBackgroundStyle15 = " \
  72. background:#BFBFBF;";
  73. const QString MQSSBackgroundStyle16 = " \
  74. background:#F9D982;";
  75. const QString MQSSBackgroundStyle17 = " \
  76. background:#FFFFFF;";
  77. const QString MQSSBackgroundStyle18 = " \
  78. background:rgb(254, 249, 229);";
  79. const QString MQSSBackgroundStyle19 = " \
  80. background:rgba(0, 0, 0, 175);";
  81. const QString MQSSBackgroundStyle20 = " \
  82. background:#EDF8FE;";
  83. /// border
  84. const QString MQSSBorderStyle01 = " \
  85. border:none;";
  86. const QString MQSSBorderStyle02 = " \
  87. border:1px solid #666666;";
  88. const QString MQSSBorderStyle03 = " \
  89. border:1px solid #555555;";
  90. const QString MQSSBorderStyle04 = " \
  91. border:1px solid gray;";
  92. const QString MQSSBorderStyle05 = " \
  93. border:1px solid #0095CD;";
  94. const QString MQSSBorderStyle06 = " \
  95. border-top:1px dashed gray;";
  96. const QString MQSSBorderStyle07 = " \
  97. border-radius:3px;";
  98. /// Font
  99. const QString MQSSFontStyle01 = " \
  100. font-weight:bold;";
  101. const QString MQSSFontStyle02 = " \
  102. font-size:12px;";
  103. const QString MQSSFontStyle03 = " \
  104. font-size:15px;";
  105. const QString MQSSFontStyle04 = " \
  106. font-size:18px;";
  107. const QString MQSSFontStyle05 = " \
  108. font-size:20px;";
  109. const QString MQSSFontStyle06 = " \
  110. font-size:25px;";
  111. /// Custom
  112. const QString MQSSCustomStyle01 = " \
  113. text-align:left;";
  114. const QString MQSSCustomStyle02 = " \
  115. text-align:center;";
  116. /// ToolButton
  117. const QString MQSSToolButtonStyle01 = " \
  118. QToolButton{ background-color:transparent; "
  119. +
  120. #ifdef Q_OS_UNIX
  121. QString("border-style:falt;") +
  122. #endif
  123. QString("}");
  124. const QString MQSSToolButtonStyle02 = " \
  125. QToolButton::hover{ border:1px solid #000000; }";
  126. const QString MQSSToolButtonStyle03 = " \
  127. QToolButton{ border:none; }";
  128. const QString MQSSToolButtonStyle04 = MQSSToolButtonStyle01 + MQSSToolButtonStyle03 + " \
  129. QToolButton::hover{ background-color:rgba(255, 255, 255, 20); }";
  130. const QString MQSSToolButtonStyle05 = MQSSToolButtonStyle01 + " \
  131. QToolButton::menu-indicator{ image:None; }";
  132. const QString MQSSToolButtonStyle06 = " \
  133. QToolButton{ border:1px solid #777777; background:#FFFFFF; color:#555555; } \
  134. QToolButton::hover{ border:1px solid #444444; color:#222222; } \
  135. QToolButton::disabled{ color:#999999; border:1px solid #BBBBBB; }";
  136. /// PushButton
  137. const QString MQSSPushButtonStyle01 = " \
  138. QPushButton{ background-color:transparent; "
  139. +
  140. #ifdef Q_OS_UNIX
  141. QString("border-style:falt;") +
  142. #endif
  143. QString("}");
  144. const QString MQSSPushButtonStyle02 = MQSSPushButtonStyle01 + " \
  145. QPushButton{ border-none; }";
  146. const QString MQSSPushButtonStyle03 = " \
  147. QPushButton{ border-radius:3px; background-color:#158FE1; color:white; } \
  148. QPushButton::disabled{ background-color:#BBBBBB; }";
  149. const QString MQSSPushButtonStyle04 = " \
  150. QPushButton{ border:1px solid #AAAAAA; background:#FFFFFF; color:#777777; } \
  151. QPushButton::hover{ border:1px solid #555555; color:#444444; } \
  152. QPushButton::disabled{ color:#BBBBBB; border:1px solid #DDDDDD; }";
  153. const QString MQSSPushButtonStyle05 = " \
  154. QPushButton{ border:none; color:#3333FF; } \
  155. QPushButton::hover{ color:#7777FF; }";
  156. const QString MQSSPushButtonStyle06 = MQSSPushButtonStyle03 + " \
  157. QPushButton{ font-size:17px; font-weight:bold; }";
  158. const QString MQSSPushButtonStyle07 = MQSSPushButtonStyle02 + " \
  159. QPushButton{ font-size:12px; color:#FFFFFF; }";
  160. const QString MQSSPushButtonStyle08 = " \
  161. QPushButton{ color:#CCCCCC; } \
  162. QPushButton:hover{ color:#FFFFFF; }";
  163. const QString MQSSPushButtonStyle09 = MQSSPushButtonStyle08 + " \
  164. QPushButton{ text-align:right; }";
  165. const QString MQSSPushButtonStyle10 = MQSSPushButtonStyle01 + " \
  166. QPushButton::hover{ border:1px solid #000000; }";
  167. const QString MQSSPushButtonStyle11 = " \
  168. QPushButton{ border-radius:5px; font-size:20px; \
  169. background:rgba(0, 0, 0, 50); } \
  170. QPushButton::hover{ background:rgba(0, 0, 0, 100); }";
  171. const QString MQSSPushButtonStyle12 = " \
  172. QPushButton{ border-radius:2px; background:rgba(0, 0, 0, 50); }";
  173. const QString MQSSPushButtonStyle13 = " \
  174. QPushButton::menu-indicator{ image:none; }";
  175. const QString MQSSPushButtonStyle14 = " \
  176. QPushButton{ color:#E6C117; } \
  177. QPushButton:hover{ color:#E6E317; } \
  178. QPushButton{ text-align:right; }";
  179. const QString MQSSPushButtonStyle15 = " \
  180. QPushButton{ background-color:#DDDDDD; color:#222222; }";
  181. /// RadioButton
  182. const QString MQSSRadioButtonStyle01 = " \
  183. QRadioButton{ background-color:transparent; } \
  184. QRadioButton::indicator::unchecked{ image:url(:/control/btn_radioButton_unchecked); } \
  185. QRadioButton::checked { color:#E67300; } \
  186. QRadioButton::indicator:checked { image:url(:/control/btn_radiobutton_checked); } \
  187. QRadioButton::disabled{ color:#BBBBBB; }";
  188. /// CheckBox
  189. const QString MQSSCheckBoxStyle01 = " \
  190. QCheckBox{ background-color:transparent; } \
  191. QCheckBox::indicator::unchecked{ image:url(:/control/btn_checkBox_unchecked); } \
  192. QCheckBox::checked{ color:#E67300; } \
  193. QCheckBox::indicator:checked { image:url(:/control/btn_checkBox_checked); } \
  194. QCheckBox::disabled{ color:#BBBBBB; }";
  195. const QString MQSSCheckBoxStyle02 = " \
  196. QCheckBox{ background-color:transparent; } \
  197. QCheckBox::indicator::unchecked{ image:url(:/control/btn_radioButton2_unchecked); } \
  198. QCheckBox::checked { color:#E67300; } \
  199. QCheckBox::indicator:checked { image:url(:/control/btn_radiobutton2_checked); } \
  200. QCheckBox::disabled{ color:#BBBBBB; }";
  201. const QString MQSSCheckBoxStyle03 = MQSSCheckBoxStyle01 + " \
  202. QCheckBox::checked{ color:rgb(0, 169, 236); }";
  203. const QString MQSSCheckBoxStyle04 = MQSSCheckBoxStyle01 + " \
  204. QCheckBox{ color:#888888; }";
  205. const QString MQSSCheckBoxStyle05 = " \
  206. QCheckBox{ background-color:transparent; color:rgb(222, 222, 222); } \
  207. QCheckBox::indicator::unchecked{ image:url(:/control/btn_checkBox2_unchecked); } \
  208. QCheckBox::checked { color:rgb(255, 255, 255); } \
  209. QCheckBox::indicator:checked { image:url(:/control/btn_checkBox2_checked); } \
  210. QCheckBox::disabled{ color:#BBBBBB; }";
  211. /// GroupBox
  212. const QString MQSSGroupBoxStyle01 = " \
  213. QGroupBox::indicator::unchecked{ image:url(:/control/btn_checkBox_unchecked); } \
  214. QGroupBox::indicator:checked { image:url(:/control/btn_checkBox_checked); }";
  215. /// ScrollBar
  216. const QString MQSSScrollBarStyle01 = " \
  217. QScrollBar{ background:#FFFFFF; width:8px; padding-top:0px; padding-bottom:0px; } \
  218. QScrollBar::handle:vertical{ border-radius:4px; background:#CFCFCF; min-height: 30px; } \
  219. QScrollBar::handle:vertical::disabled{ background:#DBDBDB; } \
  220. QScrollBar::handle:vertical:hover{ background:#BBBBBB; } \
  221. QScrollBar::add-line, QScrollBar::sub-line{ background:none; border:none; } \
  222. QScrollBar::add-page, QScrollBar::sub-page{ background:none; }";
  223. const QString MQSSScrollBarStyle02 = " \
  224. QScrollBar{ background:#FFFFFF; height:8px; padding-left:0px; padding-right:0px; } \
  225. QScrollBar::handle:horizontal{ border-radius:4px; background:#CFCFCF; min-width: 30px; } \
  226. QScrollBar::handle:horizontal::disabled{ background:#DBDBDB; } \
  227. QScrollBar::handle:horizontal:hover{ background:#BBBBBB; } \
  228. QScrollBar::add-line, QScrollBar::sub-line{ background:none; border:none; } \
  229. QScrollBar::add-page, QScrollBar::sub-page{ background:none; }";
  230. const QString MQSSScrollBarStyle03 = MQSSScrollBarStyle01 + " \
  231. QScrollBar{ background:transparent; }";
  232. const QString MQSSScrollBarStyle04 = MQSSScrollBarStyle02 + " \
  233. QScrollBar{ background:transparent; }";
  234. const QString MQSSScrollBarStyle05 = " \
  235. QScrollBar{ background:rgba(255, 255, 255, %1); }";
  236. /// Label
  237. const QString MQSSLabelStyle01 = " \
  238. QLabel{ color:#888888; background-color:#FFE6E6; border:1px solid gray; }";
  239. const QString MQSSLabelStyle02 = " \
  240. QLabel{ color:#777777; font-size:15px; } \
  241. QLabel::hover{ color:rgb(22, 154, 243); }";
  242. const QString MQSSLabelStyle03 = " \
  243. QLabel{ color:rgb(22, 154, 243); }";
  244. /// LineEdit
  245. const QString MQSSLineEditStyle01 = " \
  246. QLineEdit{ font-size:12px; color:#666666; font-weight:normal; border:1px solid gray; } \
  247. QLineEdit::hover{ border:1px solid rgb(22, 154, 243); } \
  248. QLineEdit::disabled{ color:#BBBBBB; border:1px solid #BBBBBB; }";
  249. const QString MQSSLineEditStyle02 = " \
  250. QLineEdit{ border-image:url(:/tiny/lb_transparent); }";
  251. const QString MQSSLineEditStyle03 = MQSSLineEditStyle02 + " \
  252. QLineEdit{ font-size:13px; color:#333333; }";
  253. const QString MQSSLineEditStyle04 = MQSSLineEditStyle02 + " \
  254. QLineEdit{ color:#6495ED; }";
  255. const QString MQSSLineEditStyle05 = " \
  256. QLineEdit{ color:#6495ED; border:1px solid #555555; }";
  257. const QString MQSSLineEditStyle06 = MQSSLineEditStyle01 + " \
  258. QLineEdit{ color:white; border:1px solid #545454; } \
  259. QLineEdit::disabled{ color:#323232; border:1px solid #323232; }";
  260. /// Menu
  261. const QString MQSSMenuStyle01 = " \
  262. QMenu{ padding:5px; } \
  263. QMenu::icon{ margin-left:10px; } \
  264. QMenu::right-arrow{ background: url(:/tiny/lb_arrow_up_normal); } \
  265. QMenu::item{ color:#666666; padding:6px 30px 6px 30px; border:1px solid transparent; } \
  266. QMenu::item:disabled{ color:#AAAAAA; } \
  267. QMenu::item:selected{ color:white; background: rgb(22, 154, 243); } \
  268. QMenu::separator{ height:1px; background:#DDDDDD; margin-top:5px; margin-bottom:5px; }"
  269. + QString();
  270. const QString MQSSMenuStyle02 = MQSSMenuStyle01 + " \
  271. QMenu{ background:rgba(255, 255, 255, 235); }";
  272. const QString MQSSMenuStyle03 = MQSSMenuStyle01 + " \
  273. QMenu{ border:none; background:rgba(0, 0, 0, 210); border-radius:4px; } \
  274. QMenu::item{ color:#BBBBBB; } \
  275. QMenu::item:disabled{ color:#555555; } \
  276. QMenu::item:selected{ background:rgba(0, 0, 0, 200); } \
  277. QMenu::separator{ background:#BBBBBB; }";
  278. const QString MQSSMenuStyle04 = MQSSMenuStyle03 + " \
  279. QMenu{ background:rgba(0, 0, 0, 150); }";
  280. const QString MQSSMenuStyle05 = " \
  281. QMenu{ border:none; background:transparent; }";
  282. /// Slider
  283. const QString MQSSSliderStyle01 = " \
  284. QSlider::groove:horizontal{ \
  285. background:#FFFEA1; height:3px; border-radius:1px; } \
  286. QSlider::sub-page:horizontal{ background:#FFFEA1; } \
  287. QSlider::add-page:horizontal{ background:#4E4F4F; } \
  288. QSlider::handle:horizontal{ background:#FFFEA1; \
  289. width:9px; margin-top:-3px; margin-bottom:-3px; border-radius:4px; }";
  290. const QString MQSSSliderStyle02 = " \
  291. QSlider::groove:vertical{ \
  292. background: #FFFEA1; width:3px; border-radius:1px; } \
  293. QSlider::sub-page:vertical{ background:#4E4F4F; } \
  294. QSlider::add-page:vertical{ background:#FFFEA1; } \
  295. QSlider::handle:vertical{ background:#FFFEA1; \
  296. height:9px; margin-left:-3px; margin-right:-3px; border-radius:4px; }";
  297. const QString MQSSSliderStyle03 = " \
  298. QSlider::groove:vertical{ background: qlineargradient(x1:0, y1:0, x2:0, y2:1, \
  299. stop:0 #B5B4B4, stop:1 #FCFCFC); width:3px; } \
  300. QSlider::handle:vertical{ border-image:url(:/control/lb_slider_handle_normal); \
  301. height:21px; margin-left:-8px; margin-right:-8px; } \
  302. QSlider::handle:vertical:disabled{ border-image:url(:/control/lb_slider_disable); } \
  303. QSlider::handle:vertical:hover{ border-image:url(:/control/lb_slider_handle_hover); border:none; }";
  304. const QString MQSSSliderStyle04 = MQSSSliderStyle03 + " \
  305. QSlider::groove:vertical{ background:white; } \
  306. QSlider::sub-page:vertical{ background:#AFC7F8; } \
  307. QSlider::add-page:vertical{ background:white; border:1px solid #ACF; }";
  308. const QString MQSSSliderStyle05 = " \
  309. QSlider::groove:horizontal{ background: qlineargradient(x1:0, y1:0, x2:0, y2:1, \
  310. stop:0 #B5B4B4, stop:1 #FCFCFC); height:4px; } \
  311. QSlider::handle:horizontal{ border-image:url(:/control/lb_slider_handle_normal); \
  312. width:21px; margin-top:-8px; margin-bottom:-8px; } \
  313. QSlider::handle:horizontal:disabled{ border-image:url(:/control/lb_slider_disable); } \
  314. QSlider::handle:horizontal:hover{ border-image:url(:/control/lb_slider_handle_hover); border:none; }";
  315. const QString MQSSSliderStyle06 = MQSSSliderStyle05 + " \
  316. QSlider::groove:horizontal{ background:white; } \
  317. QSlider::sub-page:horizontal{ background:#AFC7F8; } \
  318. QSlider::add-page:horizontal{ background:white; border:1px solid #ACF; }";
  319. const QString MQSSSliderStyle07 = " \
  320. QSlider::add-page:Horizontal{ background-color:rgba(120, 120, 120, 100); height:4px; } \
  321. QSlider::sub-page:Horizontal{ background-color:qlineargradient(spread:pad, x1:0, y1:0, x2:1, \
  322. y2:0, stop:0 rgba(231, 80, 229, 255), stop:1 rgba(7, 208, 255, 255)); height:4px; } \
  323. QSlider::groove:Horizontal{ background:transparent; height:4px; } \
  324. QSlider::handle:Horizontal{ border-image:url(':/image/lb_slider'); \
  325. width:8px; height:6px; margin:-2px 0px -2px 0px; }";
  326. const QString MQSSSliderStyle08 = " \
  327. QSlider::groove:horizontal{ background-image:url(:/control/lb_volume_back); } \
  328. QSlider::sub-page:horizontal{ border-image:url(:/control/lb_volume_fore); } \
  329. QSlider::add-page:horizontal{ background-image:url(:/control/lb_volume_back); } \
  330. QSlider::handle:horizontal{ margin:0px -2px 0px -2px; \
  331. background-image:url(:/control/lb_volume_handle_normal); width:13px; } \
  332. QSlider::handle:horizontal:hover{ background-image:url(:/control/lb_volume_handle_hover); }";
  333. const QString MQSSSliderStyle09 = " \
  334. QSlider::groove:horizontal{ background-image:url(:/control/lb_volume_back); } \
  335. QSlider::sub-page:horizontal{ border-image:url(:/control/lb_make_fore); } \
  336. QSlider::add-page:horizontal{ border-image:url(:/control/lb_make_back); } \
  337. QSlider::handle:horizontal{ margin:0px -1px 0px -1x; \
  338. border-image:url(:/control/lb_make_slider_handle_normal); width:18px; } \
  339. QSlider::handle:horizontal:hover{ border-image:url(:/control/lb_make_slider_handle_hover); } \
  340. QSlider::handle:horizontal:disabled{ border-image:url(:/control/lb_make_slider_disable); }";
  341. const QString MQSSSliderStyle10 = " \
  342. QSlider::groove:horizontal{ \
  343. background:transparent; height:3px; border-radius:1px; } \
  344. QSlider::sub-page:horizontal{ background:rgba(255, 255, 255, 190); } \
  345. QSlider::add-page:horizontal{ background:rgba(255, 255, 255, 50); } \
  346. QSlider::handle:horizontal{ background:rgba(255, 255, 255, 255); \
  347. width:9px; margin-top:-3px; margin-bottom:-3px; border-radius:4px; }";
  348. /// ComboBox
  349. const QString MQSSComboBoxStyle01 = " \
  350. QComboBox{ border: 1px solid gray; } \
  351. QComboBox::hover{ border: 1px solid rgb(22, 154, 243); } \
  352. QComboBox::drop-down{ subcontrol-origin:padding; \
  353. subcontrol-position:top right; width:20px; border-left:none; } \
  354. QComboBox::down-arrow{ image:url(:/usermanager/btn_down_arrow); } \
  355. QComboBox::disabled{ border: 1px solid #BBBBBB; }";
  356. const QString MQSSComboBoxStyle02 = MQSSComboBoxStyle01 + " \
  357. QComboBox{ border:none; } \
  358. QComboBox::hover{ border:none; }";
  359. /// TableWidget
  360. const QString MQSSTableWidgetStyle01 = " \
  361. QTableWidget{ selection-background-color:rgba(20, 20, 20, 20); }";
  362. const QString MQSSTableWidgetStyle02 = " \
  363. QTableWidget{ selection-background-color:rgb(220, 220, 220); }";
  364. const QString MQSSTableWidgetStyle03 = " \
  365. QTableWidget{ selection-background-color:rgb(50, 50, 50); }";
  366. const QString MQSSTableWidgetStyle04 = " \
  367. QTableWidget{ background:rgba(0, 0, 0, 255); }";
  368. /// TabWidget
  369. const QString MQSSTabWidgetStyle01 = " \
  370. QTabWidget{ border:none; } \
  371. QTabWidget::pane{ border:none; } \
  372. QTabBar::tab{ height:30px; width:100px; background-color:#BFBFBF; color:white; margin-left:0; margin-right:0; } \
  373. QTabBar::tab:selected{ background-color:#158FE1; color:white}";
  374. /// TextEdit
  375. const QString MQSSTextEditStyle01 = " \
  376. QTextEdit{ border:1px solid gray; color:#666666; } \
  377. QTextEdit::hover{ border:1px solid rgb(22, 154, 243); } \
  378. QTextEdit::disabled{ color:#BBBBBB; border: 1px solid #BBBBBB; }";
  379. /// HeadView
  380. const QString MQSSHeaderView01 = " \
  381. QHeaderView{ background-color:white; color:black; }";
  382. /// Widget
  383. const QString MQSSWidgetStyle01 = " \
  384. QWidget{ background:rgba(255, 255, 255, 50); color:white; font-weight:bold; }";
  385. /// DateEdit
  386. const QString MQSSDateEditStyle01 = " \
  387. QDateEdit{ font-size:12px; color:#666666; font-weight:normal; border: 1px solid gray; } \
  388. QDateEdit::hover{ border:1px solid rgb(22, 154, 243); } \
  389. QDateEdit::up-button{ image:url(:/usermanager/btn_up_arrow); } \
  390. QDateEdit::down-button{ image:url(:/usermanager/btn_down_arrow); } \
  391. QDateEdit::disabled{ color:#BBBBBB; border: 1px solid #BBBBBB; }";
  392. /// SpinBox
  393. const QString MQSSSpinBoxStyle01 = " \
  394. QSpinBox{ font-size:12px; color:#666666; font-weight:normal; border: 1px solid gray; } \
  395. QSpinBoxt::hover{ border:1px solid rgb(22, 154, 243); } \
  396. QSpinBox::up-button{ image:url(:/usermanager/btn_up_arrow); } \
  397. QSpinBox::down-button{ image:url(:/usermanager/btn_down_arrow); } \
  398. QSpinBox::disabled{ color:#BBBBBB; border: 1px solid #BBBBBB; }";
  399. /// ProgressBar
  400. const QString MQSSProgressBar01 = " \
  401. QProgressBar{ border:none; background:rgb(210, 225, 240); text-align:center; } \
  402. QProgressBar::chunk{ background:rgb(60, 140, 220); }";
  403. /// ItemView
  404. const QString MQSSItemView01 = " \
  405. QAbstractItemView::item { height:20px; }";
  406. } // namespace UIObject
  407. #endif // UIOBJECT_H