Hello,

I am trying to create a dark background style for an application. When using the style below the the system buttons(minimize / maximize / close of the mdi window are not styled. Has anyone an idea how to style those buttons?

Regards,

Marcel

Qt Code:
  1. background-color: lightgray;
  2. }
  3.  
  4. background-color: lightgray;
  5. }
  6.  
  7. background-color: lightgray;
  8. }
  9.  
  10. color: black;
  11. background-color: lightgray;
  12. }
  13.  
  14. background-color: lightgray;
  15. }
  16.  
  17. background-color: lightgray;
  18. }
  19.  
  20. color: rgb(220,221,226);
  21. background-color: rgb(86,96,123);
  22. }
  23.  
  24. color: rgb(220,221,226);
  25. background-color: rgb(86,96,123);
  26. }
  27.  
  28. color: rgb(220,221,226);
  29. background-color: rgb(86,96,123);
  30. }
  31.  
  32. color: rgb(220,221,226);
  33. background-color: rgb(86,96,123);
  34. }
  35.  
  36. color: rgb(220,221,226);
  37. background-color: rgb(86,96,123);
  38. }
  39.  
  40. background-color: lightgray;
  41. }
  42.  
  43. color: rgb(220,221,226);
  44. background-color: rgb(86,96,123);
  45. }
  46.  
  47. color: rgb(220,221,226);
  48. background-color: rgb(86,96,123);
  49. }
  50.  
  51. color: rgb(220,221,226);
  52. background-color: rgb(86,96,123);
  53. }
  54.  
  55. color: rgb(220,221,226);
  56. background-color: rgb(86,96,123);
  57. }
  58.  
  59. color: rgb(220,221,226);
  60. background-color: rgb(86,96,123);
  61. }
  62.  
  63. color: rgb(220,221,226);
  64. background-color: rgb(86,96,123);
  65. }
  66.  
  67. color: rgb(220,221,226);
  68. background-color: rgb(86,96,123);
  69. }
  70.  
  71. color: rgb(220,221,226);
  72. background-color: rgb(86,96,123);
  73. }
  74.  
  75. color: rgb(220,221,226);
  76. background-color: rgb(86,96,123);
  77. border: 2px solid grey;
  78. border-radius: 4px;
  79. text-align: center;
  80. }
  81.  
  82. QProgressBar::chunk {
  83. background-color: silver;
  84. }
  85.  
  86. color: rgb(220,221,226);
  87. background-color: rgb(86,96,123);
  88. border-color: navy; /* make the default button prominent */
  89. }
  90.  
  91. color: rgb(220,221,226);
  92. background-color: rgb(86,96,123);
  93. }
  94.  
  95. color: rgb(220,221,226);
  96. background-color: rgb(86,96,123);
  97. }
  98.  
  99. color: rgb(220,221,226);
  100. background-color: rgb(86,96,123);
  101. }
  102.  
  103. color: rgb(220,221,226);
  104. background-color: rgb(86,96,123);
  105. }
  106.  
  107. color: lightgray;
  108. background-color: lightgray;
  109. }
  110.  
  111. color: rgb(220,221,226);
  112. background-color: rgb(86,96,123);
  113. }
  114.  
  115. color: rgb(220,221,226);
  116. background-color: rgb(86,96,123);
  117. }
  118.  
  119. color: rgb(220,221,226);
  120. background-color: rgb(86,96,123);
  121. }
  122.  
  123. background-color: rgb(86,96,123);
  124. }
  125.  
  126. QTabBar::tab {
  127. color: rgb(220,221,226);
  128. background: rgb(86,96,123);
  129. border: 1px solid #C4C4C3;
  130. border-bottom-color: #C2C7CB; /* same as the pane color */
  131. border-top-left-radius: 3px;
  132. border-top-right-radius: 3px;
  133. min-width: 8ex;
  134. padding: 2px;
  135. }
  136.  
  137. QTabBar::tab:selected, QTabBar::tab:hover {
  138. background: rgb(12,96,123);
  139. }
  140.  
  141. QTabBar::tab:selected {
  142. border-color: #9B9B9B;
  143. border-bottom-color: #C2C7CB; /* same as pane color */
  144. }
  145.  
  146. QTabBar::tab:!selected {
  147. margin-top: 2px; /* make non-selected tabs look smaller */
  148. }
  149.  
  150. color: rgb(220,221,226);
  151. background-color: rgb(86,96,123);
  152. }
  153.  
  154. color: rgb(220,221,226);
  155. background-color: rgb(86,96,123);
  156. }
  157.  
  158. background-color: lightgray;
  159. }
  160.  
  161. color: rgb(220,221,226);
  162. background-color: rgb(86,96,123);
  163. }
  164.  
  165. color: rgb(220,221,226);
  166. background-color: rgb(86,96,123);
  167. }
  168.  
  169. color: rgb(220,221,226);
  170. background-color: rgb(86,96,123);
  171. }
To copy to clipboard, switch view to plain text mode