progress-scale.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. /*****************
  2. * Progress bars *
  3. *****************/
  4. GtkProgressBar {
  5. padding: 0;
  6. border-width: 0px;
  7. border-radius: 0px;
  8. border-style: solid;
  9. font-size: smaller;
  10. color: @text_color;
  11. }
  12. GtkProgressBar:backdrop {
  13. color: @text_color;
  14. }
  15. GtkProgressBar.osd {
  16. -GtkProgressBar-xspacing: 0;
  17. -GtkProgressBar-yspacing: 0;
  18. -GtkProgressBar-min-horizontal-bar-height: 3;
  19. }
  20. GtkProgressBar.trough {
  21. border-width: 0px;
  22. border-radius: 3px;
  23. background-color: shade(@bg_color,0.9);
  24. box-shadow: inset 0px -1px 0px 0px rgba(255,255,255,0.2),inset 0px 1px 0px 0px rgba(0,0,0,0.2);
  25. }
  26. GtkProgressBar.trough:backdrop {
  27. background-color: shade(@bg_color,0.9);
  28. }
  29. GtkProgressBar.trough.osd {
  30. border-style: none;
  31. background-color: transparent;
  32. box-shadow: none;
  33. }
  34. .progressbar,
  35. .progressbar row,
  36. .progressbar row:hover,
  37. .progressbar row:selected,
  38. .progressbar row:selected:focus {
  39. border-width: 0px;
  40. border-radius: 1.5px;
  41. background-color: @selected_bg_color;
  42. background-image: none;
  43. box-shadow: none;
  44. }
  45. .progressbar.left {
  46. border-top-left-radius: 3px;
  47. border-bottom-left-radius: 3px;
  48. }
  49. .progressbar.right {
  50. border-top-right-radius: 3px;
  51. border-bottom-right-radius: 3px;
  52. }
  53. .progressbar.vertical {
  54. background-color: @selected_bg_color;
  55. background-image: none;
  56. }
  57. .progressbar.vertical.bottom {
  58. border-bottom-left-radius: 3px;
  59. border-bottom-right-radius: 3px;
  60. }
  61. .progressbar.vertical.top {
  62. border-top-left-radius: 3px;
  63. border-top-right-radius: 3px;
  64. }
  65. .progressbar:backdrop,
  66. .progressbar:backdrop:hover {
  67. border-width: 0px;
  68. background-image: none;
  69. background-color: @selected_bg_color;
  70. box-shadow: none;
  71. }
  72. .progressbar.osd {
  73. background-image: none;
  74. background-color: @selected_bg_color;
  75. border-style: none;
  76. border-radius: 0;
  77. }
  78. .trough row,
  79. .trough row:hover {
  80. border: none;
  81. border-radius: 3px;
  82. background-image: none;
  83. background-color: shade(@bg_color,0.9);
  84. box-shadow: inset 0px -1px 0px 0px rgba(255,255,255,0.2),inset 0px 1px 0px 0px rgba(0,0,0,0.2);
  85. }
  86. .trough row:selected,
  87. .trough row:selected:hover,
  88. .trough row:selected:focus {
  89. border: none;
  90. border-radius: 3px;
  91. background-color: @base_color;
  92. background-image: none;
  93. color: @text_color;
  94. }
  95. /*************
  96. * Level Bar *
  97. *************/
  98. .level-bar {
  99. -GtkLevelBar-min-block-width: 34;
  100. -GtkLevelBar-min-block-height: 3;
  101. }
  102. .level-bar.vertical {
  103. -GtkLevelBar-min-block-width: 3;
  104. -GtkLevelBar-min-block-height: 34;
  105. }
  106. .level-bar.trough,
  107. .level-bar.trough:backdrop {
  108. border-width: 0px;
  109. padding: 2px;
  110. border-radius: 3px;
  111. background-color: shade(@bg_color,0.9);
  112. color: black;
  113. box-shadow: inset 0px -1px 0px 0px rgba(255,255,255,0.2),inset 0px 1px 0px 0px rgba(0,0,0,0.2);
  114. }
  115. .level-bar.fill-block,
  116. .level-bar.fill-block:backdrop {
  117. border-width: 0px;
  118. background-color: @selected_bg_color;
  119. box-shadow: inset 0px -1px 0px 0px rgba(0,0,0,0.2),inset 0px 1px 0px 0px rgba(255,255,255,0.2);
  120. border-radius: 2px;
  121. }
  122. .level-bar.fill-block.indicator-discrete.horizontal {
  123. margin: 0 1px;
  124. }
  125. .level-bar.fill-block.indicator-discrete.vertical {
  126. margin: 1px 0;
  127. }
  128. .level-bar.fill-block.level-high,
  129. .level-bar.fill-block.level-high:backdrop {
  130. background-color: @cyan;
  131. }
  132. .level-bar.fill-block.level-low,
  133. .level-bar.fill-block.level-low:backdrop {
  134. background-color: @warning_bg_color;
  135. }
  136. .level-bar.fill-block.empty-fill-block {
  137. background-color: transparent;
  138. box-shadow: none;
  139. }
  140. /************
  141. * GtkScale *
  142. ************/
  143. .scale {
  144. padding: 0;
  145. border-width: 0px;
  146. border-radius: 0px;
  147. border-style: solid;
  148. -GtkRange-slider-width: 12;
  149. -GtkRange-trough-border: 1;
  150. -GtkScale-slider-length: 12;
  151. }
  152. .scale.vertical {
  153. -GtkScale-slider-length: 12;
  154. }
  155. .scale.slider,
  156. .scale.scale-has-marks-above.scale-has-marks-below.slider,
  157. .scale.vertical.scale-has-marks-above.scale-has-marks-below.slider,
  158. .scale.slider:hover,
  159. .scale.scale-has-marks-above.scale-has-marks-below.slider:hover,
  160. .scale.vertical.scale-has-marks-above.scale-has-marks-below.slider:hover,
  161. .scale.slider:insensitive,
  162. .scale.scale-has-marks-above.scale-has-marks-below.slider:insensitive,
  163. .scale.vertical.scale-has-marks-above.scale-has-marks-below.slider:insensitive,
  164. .scale.slider:backdrop,
  165. .scale.scale-has-marks-above.scale-has-marks-below.slider:backdrop,
  166. .scale.vertical.scale-has-marks-above.scale-has-marks-below.slider:backdrop {
  167. background-color: $red;
  168. background-position: center;
  169. background-repeat: no-repeat;
  170. }
  171. .scale.mark {
  172. border-color: shade(@bg_color, 0.8);
  173. }
  174. .scale.trough {
  175. margin: 5px 0;
  176. }
  177. .scale.trough.vertical {
  178. margin: 0 5px;
  179. }
  180. .scale.trough.highlight,
  181. .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight,
  182. .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight,
  183. .scale.trough.highlight.vertical,
  184. .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight.vertical,
  185. .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight.vertical {
  186. border-width: 0px;
  187. background-color: @red;
  188. background-image: linear-gradient(to bottom,
  189. @red,
  190. @red
  191. );
  192. box-shadow:none;
  193. }
  194. .scale.trough.highlight:insensitive,
  195. .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive,
  196. .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight:insensitive,
  197. .scale.trough.highlight.vertical:insensitive,
  198. .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight.vertical:insensitive,
  199. .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight.vertical:insensitive {
  200. background-color: shade(@bg_color, 0.8);
  201. background-image: none;
  202. box-shadow:none;
  203. }
  204. .scale.trough,
  205. .scale.scale-has-marks-above.scale-has-marks-below.trough,
  206. .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough,
  207. .scale.trough:insensitive,
  208. .scale.scale-has-marks-above.scale-has-marks-below.trough:insensitive,
  209. .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:insensitive {
  210. border-width: 0px;
  211. border-radius: 3px;
  212. background-color: shade(@bg_color, 0.5);
  213. background-image: linear-gradient(to bottom,
  214. shade(@bg_color, 0.5),
  215. shade(@bg_color, 0.5)
  216. );
  217. box-shadow: inset 0px -1px 0px 0px rgba(255,255,255,0.2),inset 0px 1px 0px 0px rgba(0,0,0,0.2);
  218. }