Lector de precio desarrollado en Qt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

308 lines
9.5 KiB

2 weeks ago
  1. QPushButton {
  2. font: bold 25px;
  3. margin: 0;
  4. padding: 0 5px;
  5. line-height: 30px;
  6. font-weight: bold;
  7. text-decoration: none;
  8. text-align: center;
  9. white-space: nowrap;
  10. color: #fff;
  11. outline: none;
  12. background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(134, 198, 135, 255), stop:0.5 rgba(76, 174, 78, 255), stop:0.505 rgba(58, 166, 62, 255), stop:1 rgba(61, 164, 62, 255));
  13. /*background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(1, 171, 154, 1), stop:0.5 rgba(24, 154, 97, 1), stop:0.505 rgba(24, 154, 97, 1), stop:1 rgba(24, 154, 97, 1));*/
  14. border-radius: 2px;
  15. border: 0px solid #555;
  16. border-style: inset;
  17. }
  18. QMainWindow
  19. {
  20. /*background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0.989, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(129, 129, 129, 255)); ROB HOY*/
  21. /*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(153, 153, 153, 153), stop:1 rgba(204, 204, 204, 204) );*/
  22. /*background-color: qconicalgradient(cx:1, cy:0.687, angle:84.4, stop:0 rgba(255, 255, 255, 255), stop:0.502222 rgba(138, 138, 138, 255), stop:1 rgba(0, 0, 0, 255));*/
  23. background-color: rgb(255, 255, 255);
  24. /*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(212, 225, 245, 255) );*/
  25. /*background-color: rgb(255, 255, 255);*/
  26. }
  27. QFrame#frame_salida
  28. {
  29. background-color: rgba(255, 255, 255, 255);
  30. /*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 255, 255, 255), stop:1 rgba(212, 225, 245, 255) );*/
  31. border-radius:5px;
  32. }
  33. QFrame#frame_barra
  34. {
  35. background-color: rgb(130, 224, 170, 255);
  36. border-radius:5px;
  37. border-top-color: rgb(255, 255, 255);
  38. border-left-color: rgb(255, 255, 255);
  39. }
  40. QFrame#frame_titulo
  41. {
  42. background-color: rgb(36, 113, 163, 255);
  43. border-radius:5px;
  44. border-top-color: rgb(255, 255, 255);
  45. border-left-color: rgb(255, 255, 255);
  46. }
  47. QLabel#label_desc
  48. {
  49. color: rgba(0, 0, 0, 255);
  50. font: 33pt "Ubuntu";
  51. font-weight: bold;
  52. }
  53. QLabel#label_desc2
  54. {
  55. color: rgba(0, 0, 0, 255);
  56. font: 32pt "Ubuntu";
  57. font-weight: bold;
  58. }
  59. QLabel#label_precio
  60. {
  61. color: rgba(12, 88, 144, 255);
  62. font: 38pt "Ubuntu";
  63. font-weight: bold;
  64. }
  65. QLabel#label_ofe
  66. {
  67. color: rgba(52, 140, 12, 255);
  68. font: 40pt "Ubuntu";
  69. font-weight: bold;
  70. }
  71. QLabel#label_despofe
  72. {
  73. color: rgba(52, 140, 12, 255);
  74. font: 12pt "Ubuntu";
  75. font-weight: bold;
  76. }
  77. QLabel#label_despnorm
  78. {
  79. color: rgba(12, 88, 144, 255);
  80. font: 12pt "Ubuntu";
  81. font-weight: bold;
  82. }
  83. QLabel#label_titulo
  84. {
  85. color: rgba(255, 255, 255, 255);
  86. font: 28pt "Ubuntu";
  87. font-weight: bold;
  88. }
  89. QLabel#label_promo
  90. {
  91. color: rgba(144, 12, 63, 255);
  92. font: 16pt "Ubuntu";
  93. font-weight: bold;
  94. }
  95. QLabel#label_prom_valida
  96. {
  97. color: rgba(144, 12, 63, 255);
  98. font: 10pt "Ubuntu";
  99. font-weight: bold;
  100. }
  101. QLabel#label_codbar
  102. {
  103. font: 12pt "Ubuntu";
  104. font-weight: bold;
  105. }
  106. QLabel#label_codart
  107. {
  108. font: 12pt "Ubuntu";
  109. font-weight: bold;
  110. }
  111. QLabel#label_status
  112. {
  113. font: 18pt "Ubuntu";
  114. font-weight: bold;
  115. color: rgba(224, 4, 4, 255);
  116. }
  117. QLabel#label_principal
  118. {
  119. font: 28pt "Ubuntu";
  120. font-weight: bold;
  121. /*color: rgba(224, 4, 4, 255);*/
  122. }
  123. QPushButton:pressed {
  124. font: 16pt "MS Shell Dlg 2";
  125. /*background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(142, 164, 193, 255), stop:0.5 rgba(88, 120, 162, 255), stop:0.505 rgba(71, 105, 153, 255), stop:1 rgba(74, 109, 155, 255));*/ /*azul*/
  126. background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(197, 103, 110, 255), stop:0.5 rgba(166, 58, 66, 255), stop:0.505 rgba(162, 42, 48, 255), stop:1 rgba(159, 45, 52, 255)); /*rojo*/
  127. margin: 0;
  128. padding: 0 5px;
  129. font-weight: bold;
  130. text-decoration: none;
  131. text-align: center;
  132. white-space: nowrap;
  133. color: #fff;
  134. outline: none;
  135. }
  136. QMessageBox, QDialog {
  137. /*background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0.989, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(129, 129, 129, 255));*/
  138. /*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(153, 153, 153, 153), stop:1 rgba(204, 204, 204, 204) );*/
  139. /*background-color: qlineargradient(spread:pad, x1:1, y1:1, x2:1, y2:0, stop:0 rgba(255, 255, 255, 153), stop:1 rgba(212, 225, 245, 204) );*/
  140. background-color: white;
  141. /*background-color: rgb(186, 186, 186);*/
  142. border: 2px solid gray;
  143. border-style: solid;
  144. border-radius: 10px;
  145. }
  146. QTabWidget::pane { /* The tab widget frame */
  147. border-top: 2px solid #C2C7CB;
  148. /*background-color: qlineargradient(spread:pad, x1:1, y1:0, x2:1, y2:0.989, stop:0 rgba(0, 0, 0, 255), stop:1 rgba(129, 129, 129, 255));*/
  149. background-color: white;
  150. }
  151. QTabWidget::tab-bar {
  152. left: 5px; /* move to the right by 5px */
  153. }
  154. QTabBar::tab {
  155. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
  156. stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
  157. stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
  158. border: 2px solid #C4C4C3;
  159. border-bottom-color: #C2C7CB; /* same as the pane color */
  160. border-top-left-radius: 4px;
  161. border-top-right-radius: 4px;
  162. min-width: 8ex;
  163. padding: 2px;
  164. }
  165. QTabBar::tab:selected, QTabBar::tab:hover {
  166. background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
  167. stop: 0 #fafafa, stop: 0.4 #f4f4f4,
  168. stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);
  169. }
  170. QTabBar::tab:selected {
  171. border-color: #9B9B9B;
  172. border-bottom-color: #C2C7CB; /* same as pane color */
  173. color: rgb(255, 255, 0);
  174. }
  175. QTabBar::tab:!selected {
  176. margin-top: 2px; /* make non-selected tabs look smaller */
  177. }
  178. QDoubleSpinBox, QSpinBox, QLineEdit {
  179. border: 2px solid gray;
  180. border-radius: 10px;
  181. padding: 0 8px;
  182. selection-background-color: darkgray;
  183. }
  184. QCheckBox{
  185. checkbox: 18pt;
  186. color: rgb(255, 255, 0);
  187. }
  188. QCheckBox::indicator:checked {
  189. image: url(:/mcaposrec/chek_ena.png);
  190. }
  191. QCheckBox::indicator:unchecked {
  192. image: url(:/mcaposrec/chek_dis.png);
  193. }
  194. QComboBox {
  195. border-style: outset;
  196. border-width: 2px;
  197. border-color: beige;
  198. border-radius: 10px;
  199. padding: 1px 8px 1px 3px;
  200. min-width: 6em;
  201. background-color: gray;
  202. }
  203. QComboBox::drop-down {
  204. subcontrol-origin: padding;
  205. subcontrol-position: top right;
  206. width: 24px;
  207. background-color: gray;
  208. border-left-width: 0px;
  209. /*border-left-color: darkgray;
  210. border-left-style: solid; just a single line */
  211. border-top-right-radius: 10px; /* same radius as the QComboBox */
  212. border-bottom-right-radius: 10px;
  213. }
  214. QComboBox::down-arrow{
  215. image: url(:/mcaposrec/combo_arrow22x22.png);
  216. }
  217. QComboBox::down-arrow:on { /* shift the arrow when popup is open */
  218. top: 1px;
  219. left: 1px;
  220. }
  221. QProgressBar{
  222. font: 22 pt "MS Shell Dlg 2";
  223. border-radius: 5px;
  224. border: 2px solid grey;
  225. background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(113, 113, 113, 255), stop:0.181818 rgba(36, 36, 36, 255), stop:0.257576 rgba(38, 38, 38, 255), stop:0.343434 rgba(43, 43, 43, 255), stop:1 rgba(137, 137, 137, 255));
  226. }
  227. QProgressBar::chunk {
  228. background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(255, 255, 127, 255), stop:0.181818 rgba(255, 206, 8, 255), stop:0.257576 rgba(255, 206, 8, 255), stop:0.343434 rgba(255, 206, 8, 255), stop:1 rgba(255, 255, 127, 255));
  229. width: 20px;
  230. }
  231. QListWidget, QTableWidget {
  232. border-radius: 10px;
  233. /*background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(113, 113, 113, 255), stop:0.181818 rgba(36, 36, 36, 255), stop:0.257576 rgba(38, 38, 38, 255), stop:0.343434 rgba(43, 43, 43, 255), stop:1 rgba(137, 137, 137, 255));*/
  234. background-color: white;
  235. border-right-width: 1px;
  236. border-right-color: darkgray;
  237. }
  238. QTableWidget::item{
  239. border-radius: 10px;
  240. }
  241. QPushButton:disabled
  242. {
  243. background-color: gray;
  244. }
  245. QTableWidget::item:selected {
  246. border-radius: 10px;
  247. background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(255, 255, 127, 255), stop:0.181818 rgba(255, 206, 8, 255), stop:0.257576 rgba(255, 206, 8, 255), stop:0.343434 rgba(255, 206, 8, 255), stop:1 rgba(255, 255, 127, 255));
  248. }
  249. QListView::item{
  250. border-radius: 10px;
  251. }
  252. QListView::item:selected {
  253. border-radius: 10px;
  254. background-color: qlineargradient(spread:reflect, x1:0, y1:1, x2:0, y2:0, stop:0 rgba(255, 255, 127, 255), stop:0.181818 rgba(255, 206, 8, 255), stop:0.257576 rgba(255, 206, 8, 255), stop:0.343434 rgba(255, 206, 8, 255), stop:1 rgba(255, 255, 127, 255));
  255. }
  256. QMessageBox{
  257. align: center;
  258. }
  259. /* FOCO */
  260. QPushButton:pressed{ background-color: orange; }
  261. QPushButton:focus{ background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(197, 103, 110, 255), stop:0.5 rgba(166, 58, 66, 255), stop:0.505 rgba(162, 42, 48, 255), stop:1 rgba(159, 45, 52, 255))}
  262. QPushButton:hover{ background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 rgba(185, 145, 209, 255), stop:0.5 rgba(158, 93, 198, 255), stop:0.505 rgba(141, 47, 199, 255), stop:1 rgba(122, 0, 196, 255))}