warning.qss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. QWidget
  2. {
  3. background: transparent;
  4. border-radius: 8px;
  5. /* font-family: 思源黑体R; */
  6. /* font-weight: 400; */
  7. font-size: 18px;
  8. color: #D2D2D2;
  9. line-height: 21px;
  10. text-align: left;
  11. font-style: normal;
  12. }
  13. QWidget#widget
  14. {
  15. background-color: #313539;
  16. }
  17. QWidget#widget_Top
  18. {
  19. background: rgba(108,105,124,0.2);
  20. border-top-left-radius: 8px;
  21. border-top-right-radius: 8px;
  22. border-bottom-left-radius: 0px;
  23. border-bottom-right-radius: 0px;
  24. }
  25. QLabel#label_title
  26. {
  27. /* font-family: 思源黑体M; */
  28. /* font-weight: normal; */
  29. font-size: 18px;
  30. color: #D2D2D2;
  31. line-height: 27px;
  32. text-transform: uppercase;
  33. }
  34. QLabel#label_line
  35. {
  36. background: #E6E9F4;
  37. }
  38. /* 设置图标 */
  39. QLabel#label_warnIcon
  40. {
  41. border-image: url(:/ICON/Tip/Tips2x.png);
  42. }
  43. QLabel#label_Warn
  44. {
  45. /* font-family: 思源黑体R; */
  46. /* font-weight: 400; */
  47. font-size: 18px;
  48. color: #D2D2D2;
  49. line-height: 27px;
  50. }
  51. /*设置图片居中 */
  52. QPushButton#pBtn_close
  53. {
  54. background: transparent;
  55. /* border-image: url(:/ICON/ICON/Dialog_close.png); */
  56. background: transparent;
  57. border-radius: 4px;
  58. qproperty-icon: url(:/ICON/ICON/Close_Dark.png);
  59. qproperty-iconSize: 20px 20px;
  60. padding-left: 0px;
  61. }
  62. QPushButton#pBtn_close[Hover = true]
  63. {
  64. background: transparent;
  65. /* border-image: url(:/ICON/ICON/Dialog_close2.png); */
  66. background: transparent;
  67. border-radius: 4px;
  68. qproperty-icon: url(:/ICON/ICON/Close_pass.png);
  69. qproperty-iconSize: 20px 20px;
  70. padding-left: 0px;
  71. border: 1px solid #438EFF;
  72. }
  73. QPushButton
  74. {
  75. background: #FFFFFF;
  76. /* border: 1px solid #E6E9F4; */
  77. text-align: center;
  78. }
  79. /********* 普通方框按钮三种状态效果 *********/
  80. QPushButton#pBtn_cancel:enabled
  81. {
  82. color: #EBEBEB;
  83. border: 1px solid rgba(255,255,255,0.25);
  84. border-radius: 16px;
  85. background: transparent;
  86. }
  87. QPushButton#pBtn_cancel:hover
  88. {
  89. color: #EBEBEB;
  90. border: 1px solid rgba(255,255,255,0.25);
  91. border-radius: 16px;
  92. background: rgba(0,0,0,0.15);
  93. }
  94. /********* 带有底色按钮三种状态效果 *********/
  95. QPushButton#pBtn_ok
  96. {
  97. color:white;
  98. background: #438EFF;
  99. border-radius: 16px;
  100. }
  101. QPushButton#pBtn_ok:hover
  102. {
  103. color:white;
  104. background: #5F9EFF;
  105. border-radius: 16px;
  106. }