OneSettingItem.qss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. QWidget
  2. {
  3. font-family: 思源黑体M;
  4. text-align: left;
  5. font-style: normal;
  6. background: transparent;
  7. }
  8. QLabel
  9. {
  10. font-weight: 400;
  11. font-size: 14px;
  12. color: #D2D2D2;
  13. line-height: 21px;
  14. text-align: left;
  15. font-style: normal;
  16. }
  17. /***************** QComboBox下拉框 ****************/
  18. QComboBox
  19. {
  20. background: transparent;
  21. border-radius: 4px;
  22. border: 1px solid rgba(255,255,255,0.15);
  23. font-weight: 400;
  24. font-size: 14px;
  25. color: #D2D2D2;
  26. padding-left: 12px;
  27. }
  28. QComboBox:hover, QComboBox:on
  29. {
  30. border: 1px solid #438EFF;
  31. }
  32. QComboBox[Warn=true]
  33. {
  34. border: 1px solid #D21F21;
  35. }
  36. /*下拉箭头样式*/
  37. QComboBox::down-arrow
  38. {
  39. height: 16px;
  40. width: 16px;
  41. image: url(:/image/Resource/image/DownArrow.png);
  42. }
  43. QComboBox::drop-down
  44. {
  45. background-color:transparent;
  46. padding-right:12px;
  47. }
  48. /* 下拉后,整个下拉窗体样式 */
  49. QComboBox QAbstractItemView
  50. {
  51. margin: 8px;
  52. font-size: 14px;
  53. background-color: #5C5E61;
  54. outline:0px;
  55. border-radius: 4px;
  56. }
  57. /* 下拉后,整个下拉窗体每项的样式 */
  58. QComboBox QAbstractItemView::item
  59. {
  60. border-radius: 4px;
  61. color: #D2D2D2;
  62. height: 32px;
  63. background-color: #5C5E61;
  64. font-weight: 400;
  65. font-size: 14px;
  66. padding-left: 12px;
  67. }
  68. QComboBox QAbstractItemView::item[NoDevice=true]
  69. {
  70. border-radius: 4px;
  71. color: #D21F21;
  72. height: 32px;
  73. background-color: #5C5E61;
  74. font-weight: 400;
  75. font-size: 14px;
  76. padding-left: 12px;
  77. }
  78. QComboBox QAbstractItemView::item:hover
  79. {
  80. font-weight: 400;
  81. color: #FFFFFF;
  82. background-color: #438EFF;
  83. }
  84. QComboBox QAbstractItemView::item:selected
  85. {
  86. font-weight: 400;
  87. color: #FFFFFF;
  88. background-color: #438EFF;
  89. }
  90. /**************** LineEdit *********************/
  91. QLineEdit
  92. {
  93. background: #3A3940;
  94. border-radius: 4px;
  95. border: 1px solid #595959;
  96. padding-left: 12px;
  97. font-weight: 400;
  98. font-size: 14px;
  99. color: #D2D2D2;
  100. line-height: 21px;
  101. text-align: left;
  102. font-style: normal;
  103. }
  104. QLineEdit:hover
  105. {
  106. border: 1px solid #438EFF;
  107. }
  108. QLineEdit[Warn=true]
  109. {
  110. border: 1px solid #D21F21;
  111. }
  112. /***************** 背景色块 ****************/
  113. QWidget#widget_bg
  114. {
  115. background: #3A3940;
  116. border-radius: 4px;
  117. border: 1px solid #595959;
  118. }
  119. QPushButton#pBtn_background
  120. {
  121. /* background: #2D2D31; */
  122. background: #CECECE;
  123. border-radius: 2px;
  124. }