ConsoleStyle.qss 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /*
  2. Dark Console Style Sheet for QT Applications
  3. Author: Jaime A. Quiroga P.
  4. Company: GTRONICK
  5. Last updated: 24/05/2018, 17:12.
  6. Available at: https://github.com/GTRONICK/QSS/blob/master/ConsoleStyle.qss
  7. */
  8. QWidget {
  9. background-color:rgb(0, 0, 0);
  10. color: rgb(240, 240, 240);
  11. border-color: rgb(58, 58, 58);
  12. }
  13. QPlainTextEdit {
  14. background-color:rgb(0, 0, 0);
  15. color: rgb(200, 200, 200);
  16. selection-background-color: rgb(255, 153, 0);
  17. selection-color: rgb(0, 0, 0);
  18. }
  19. QTabWidget::pane {
  20. border-top: 1px solid #000000;
  21. }
  22. QTabBar::tab {
  23. background-color:rgb(0, 0, 0);
  24. border-style: outset;
  25. border-width: 1px;
  26. border-right-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  27. border-left-color: qlineargradient(spread:pad, x1:0.6, y1:0.5, x2:0.4, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  28. border-bottom-color: rgb(58, 58, 58);
  29. border-bottom-width: 1px;
  30. border-top-width: 0px;
  31. border-style: solid;
  32. color: rgb(255, 153, 0);
  33. padding: 4px;
  34. }
  35. QTabBar::tab:selected, QTabBar::tab:hover {
  36. color: rgb(255, 255, 255);
  37. background-color:rgb(0, 0, 0);
  38. border-color:rgb(42, 42, 42);
  39. margin-left: 0px;
  40. margin-right: 0px;
  41. border-bottom-right-radius:4px;
  42. border-bottom-left-radius:4px;
  43. }
  44. QTabBar::tab:last:selected {
  45. background-color:rgb(0, 0, 0);
  46. border-color:rgb(42, 42, 42);
  47. margin-left: 0px;
  48. margin-right: 0px;
  49. border-bottom-right-radius:4px;
  50. border-bottom-left-radius:4px;
  51. }
  52. QTabBar::tab:!selected {
  53. margin-bottom: 4px;
  54. border-bottom-right-radius:4px;
  55. border-bottom-left-radius:4px;
  56. }
  57. QPushButton{
  58. border-style: outset;
  59. border-width: 2px;
  60. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:0.6, x2:0.5, y2:0.4, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  61. border-right-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  62. border-left-color: qlineargradient(spread:pad, x1:0.6, y1:0.5, x2:0.4, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  63. border-bottom-color: rgb(58, 58, 58);
  64. border-bottom-width: 1px;
  65. border-style: solid;
  66. color: rgb(255, 255, 255);
  67. padding: 6px;
  68. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(77, 77, 77, 255), stop:1 rgba(97, 97, 97, 255));
  69. }
  70. QPushButton:hover{
  71. border-style: outset;
  72. border-width: 2px;
  73. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:0.6, x2:0.5, y2:0.4, stop:0 rgba(180, 180, 180, 255), stop:1 rgba(110, 110, 110, 255));
  74. border-right-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(180, 180, 180, 255), stop:1 rgba(110, 110, 110, 255));
  75. border-left-color: qlineargradient(spread:pad, x1:0.6, y1:0.5, x2:0.4, y2:0.5, stop:0 rgba(180, 180, 180, 255), stop:1 rgba(110, 110, 110, 255));
  76. border-bottom-color: rgb(115, 115, 115);
  77. border-bottom-width: 1px;
  78. border-style: solid;
  79. color: rgb(255, 255, 255);
  80. padding: 6px;
  81. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(107, 107, 107, 255), stop:1 rgba(157, 157, 157, 255));
  82. }
  83. QPushButton:pressed{
  84. border-style: outset;
  85. border-width: 2px;
  86. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:0.6, x2:0.5, y2:0.4, stop:0 rgba(62, 62, 62, 255), stop:1 rgba(22, 22, 22, 255));
  87. border-right-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  88. border-left-color: qlineargradient(spread:pad, x1:0.6, y1:0.5, x2:0.4, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  89. border-bottom-color: rgb(58, 58, 58);
  90. border-bottom-width: 1px;
  91. border-style: solid;
  92. color: rgb(255, 255, 255);
  93. padding: 6px;
  94. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(77, 77, 77, 255), stop:1 rgba(97, 97, 97, 255));
  95. }
  96. QPushButton:disabled{
  97. border-style: outset;
  98. border-width: 2px;
  99. border-top-color: qlineargradient(spread:pad, x1:0.5, y1:0.6, x2:0.5, y2:0.4, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  100. border-right-color: qlineargradient(spread:pad, x1:0.4, y1:0.5, x2:0.6, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  101. border-left-color: qlineargradient(spread:pad, x1:0.6, y1:0.5, x2:0.4, y2:0.5, stop:0 rgba(115, 115, 115, 255), stop:1 rgba(62, 62, 62, 255));
  102. border-bottom-color: rgb(58, 58, 58);
  103. border-bottom-width: 1px;
  104. border-style: solid;
  105. color: rgb(0, 0, 0);
  106. padding: 6px;
  107. background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(57, 57, 57, 255), stop:1 rgba(77, 77, 77, 255));
  108. }
  109. QLineEdit {
  110. border-width: 1px; border-radius: 4px;
  111. border-color: rgb(58, 58, 58);
  112. border-style: inset;
  113. padding: 0 8px;
  114. color: rgb(255, 255, 255);
  115. background:rgb(101, 101, 101);
  116. selection-background-color: rgb(187, 187, 187);
  117. selection-color: rgb(60, 63, 65);
  118. }
  119. QProgressBar {
  120. text-align: center;
  121. color: rgb(255, 255, 255);
  122. border-width: 1px;
  123. border-radius: 10px;
  124. border-color: rgb(58, 58, 58);
  125. border-style: inset;
  126. }
  127. QProgressBar::chunk {
  128. background-color: qlineargradient(spread:pad, x1:0.5, y1:0.7, x2:0.5, y2:0.3, stop:0 rgba(0, 200, 0, 255), stop:1 rgba(30, 230, 30, 255));
  129. border-radius: 10px;
  130. }
  131. QMenuBar {
  132. background:rgb(0, 0, 0);
  133. color: rgb(255, 153, 0);
  134. }
  135. QMenuBar::item {
  136. spacing: 3px;
  137. padding: 1px 4px;
  138. background: transparent;
  139. }
  140. QMenuBar::item:selected {
  141. background:rgb(115, 115, 115);
  142. }
  143. QMenu {
  144. border-width: 2px;
  145. border-radius: 10px;
  146. border-color: rgb(255, 153, 0);
  147. border-style: outset;
  148. }
  149. QMenu::item {
  150. spacing: 3px;
  151. padding: 3px 15px;
  152. }
  153. QMenu::item:selected {
  154. spacing: 3px;
  155. padding: 3px 15px;
  156. background:rgb(115, 115, 115);
  157. color:rgb(255, 255, 255);
  158. border-width: 1px;
  159. border-radius: 10px;
  160. border-color: rgb(58, 58, 58);
  161. border-style: inset;
  162. }