NeonButtons.qss 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. Neon Style Sheet for QT Applications (QpushButton)
  3. Author: Jaime A. Quiroga P.
  4. Company: GTRONICK
  5. Last updated: 24/10/2020, 15:42.
  6. Available at: https://github.com/GTRONICK/QSS/blob/master/NeonButtons.qss
  7. */
  8. QPushButton{
  9. border-style: solid;
  10. border-color: #050a0e;
  11. border-width: 1px;
  12. border-radius: 5px;
  13. color: #d3dae3;
  14. padding: 2px;
  15. background-color: #100E19;
  16. }
  17. QPushButton::default{
  18. border-style: solid;
  19. border-color: #050a0e;
  20. border-width: 1px;
  21. border-radius: 5px;
  22. color: #FFFFFF;
  23. padding: 2px;
  24. background-color: #151a1e;
  25. }
  26. QPushButton:hover{
  27. border-style: solid;
  28. border-top-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #C0DB50, stop:0.4 #C0DB50, stop:0.5 #100E19, stop:1 #100E19);
  29. border-bottom-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #100E19, stop:0.5 #100E19, stop:0.6 #C0DB50, stop:1 #C0DB50);
  30. border-left-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #C0DB50, stop:0.3 #C0DB50, stop:0.7 #100E19, stop:1 #100E19);
  31. border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #C0DB50, stop:0.3 #C0DB50, stop:0.7 #100E19, stop:1 #100E19);
  32. border-width: 2px;
  33. border-radius: 1px;
  34. color: #d3dae3;
  35. padding: 2px;
  36. }
  37. QPushButton:pressed{
  38. border-style: solid;
  39. border-top-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #d33af1, stop:0.4 #d33af1, stop:0.5 #100E19, stop:1 #100E19);
  40. border-bottom-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:1, stop:0 #100E19, stop:0.5 #100E19, stop:0.6 #d33af1, stop:1 #d33af1);
  41. border-left-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #d33af1, stop:0.3 #d33af1, stop:0.7 #100E19, stop:1 #100E19);
  42. border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:0, y2:0, stop:0 #d33af1, stop:0.3 #d33af1, stop:0.7 #100E19, stop:1 #100E19);
  43. border-width: 2px;
  44. border-radius: 1px;
  45. color: #d3dae3;
  46. padding: 2px;
  47. }