OneSettingItem.qss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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: 11px;
  67. }
  68. QComboBox QAbstractItemView::item:hover
  69. {
  70. font-weight: 400;
  71. color: #FFFFFF;
  72. background-color: #438EFF;
  73. }
  74. QComboBox QAbstractItemView::item:selected
  75. {
  76. font-weight: 400;
  77. color: #FFFFFF;
  78. background-color: #438EFF;
  79. }
  80. /**************** LineEdit *********************/
  81. QLineEdit
  82. {
  83. background: #3A3940;
  84. border-radius: 4px;
  85. border: 1px solid #595959;
  86. padding-left: 12px;
  87. font-weight: 400;
  88. font-size: 14px;
  89. color: #D2D2D2;
  90. line-height: 21px;
  91. text-align: left;
  92. font-style: normal;
  93. }
  94. QLineEdit:hover
  95. {
  96. border: 1px solid #438EFF;
  97. }
  98. QLineEdit[Warn=true]
  99. {
  100. border: 1px solid #D21F21;
  101. }
  102. /***************** 背景色块 ****************/
  103. QWidget#widget_bg
  104. {
  105. background: #3A3940;
  106. border-radius: 4px;
  107. border: 1px solid #595959;
  108. }
  109. QPushButton#pBtn_background
  110. {
  111. /* background: #2D2D31; */
  112. background: #CECECE;
  113. border-radius: 2px;
  114. }