savetotemplate.qss 2.3 KB

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