savetotemplate.qss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. QWidget
  2. {
  3. background: #FFFFFF;
  4. border-radius: 8px;
  5. font-family: 思源黑体R;
  6. font-weight: 400;
  7. font-size: 14px;
  8. color: #3A3F63;
  9. line-height: 21px;
  10. text-align: left;
  11. font-style: normal;
  12. }
  13. QWidget#widget_Top
  14. {
  15. background: #FFFFFF;
  16. border-top-left-radius: 10px;
  17. border-top-right-radius: 10px;
  18. border-bottom-left-radius: 0px;
  19. border-bottom-right-radius: 0px;
  20. border-bottom: 1px solid #E6E9F4;
  21. }
  22. QLabel#label_title
  23. {
  24. font-family: 思源黑体M;
  25. font-weight: bold;
  26. font-size: 18px;
  27. color: #3A3F63;
  28. line-height: 27px;
  29. text-transform: uppercase;
  30. }
  31. QLabel#label_warn
  32. {
  33. color:red;
  34. }
  35. QPushButton#pBtn_close
  36. {
  37. /* border-image: url(:/ICON/ICON/Dialog_close.png); */
  38. background: transparent;
  39. border-radius: 4px;
  40. qproperty-icon: url(:/ICON/ICON/Close_Light.png);
  41. qproperty-iconSize: 20px 20px;
  42. text-align: center;
  43. }
  44. QPushButton#pBtn_close[Hover = true]
  45. {
  46. /* border-image: url(:/ICON/ICON/Dialog_close2.png); */
  47. background: transparent;
  48. border-radius: 4px;
  49. qproperty-icon: url(:/ICON/ICON/Close_pass.png);
  50. qproperty-iconSize: 20px 20px;
  51. text-align: center;
  52. border: 1px solid #438EFF;
  53. }
  54. /********* 普通方框按钮三种状态效果 *********/
  55. QPushButton#pBtn_cancel
  56. {
  57. border-radius: 16px;
  58. text-align: center;
  59. background: #FFFFFF;
  60. border-radius: 16px;
  61. border: 1px solid #E6E9F4;
  62. color: #3A3F63;
  63. }
  64. QPushButton#pBtn_cancel:hover
  65. {
  66. border-radius: 16px;
  67. text-align: center;
  68. background: #FFFFFF;
  69. border-radius: 16px;
  70. border: 1px solid #4458FE;
  71. color: #4458FE;
  72. }
  73. /********* 带有底色按钮三种状态效果 *********/
  74. QPushButton#pBtn_ok
  75. {
  76. border-radius: 16px;
  77. text-align: center;
  78. color:white;
  79. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:1 #4F8AFF,stop:0 #4B5EFF);
  80. border-radius: 16px;
  81. }
  82. QPushButton#pBtn_ok:hover
  83. {
  84. border-radius: 16px;
  85. text-align: center;
  86. color:white;
  87. background: qlineargradient( x0:1,x1:1,y1:0,y2:0,stop:0 #5D73FF,stop:1 #6092FF);
  88. border-radius: 16px;
  89. }
  90. /**************** 报警红框 ****************/
  91. QLineEdit
  92. {
  93. background: #FFFFFF;
  94. border-radius: 4px;
  95. padding-left:12px;
  96. border: 1px solid #E6E9F4;
  97. }
  98. QLineEdit:hover
  99. {
  100. border: 1px solid #4458FE;
  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. }