spin_box.qss 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. SpinBox,
  2. DoubleSpinBox,
  3. DateEdit,
  4. DateTimeEdit,
  5. TimeEdit {
  6. background-color: rgb(55, 55, 55);
  7. border: 1px solid rgba(255, 255, 255, 0.08);
  8. border-bottom: 1px solid rgba(255, 255, 255, 0.5442);
  9. border-radius: 5px;
  10. font: 14px "Segoe UI", "Microsoft YaHei";
  11. padding: 0px 80px 0 10px;
  12. color: white;
  13. selection-background-color: --ThemeColorPrimary;
  14. selection-color: black;
  15. }
  16. SpinBox:hover,
  17. DoubleSpinBox:hover,
  18. DateEdit:hover,
  19. DateTimeEdit:hover,
  20. TimeEdit:hover {
  21. background-color: rgb(60, 60, 60);
  22. }
  23. SpinBox:!focus,
  24. DoubleSpinBox:!focus,
  25. DateEdit:!focus,
  26. DateTimeEdit:!focus,
  27. TimeEdit:!focus {
  28. background-color: rgb(55, 55, 55);
  29. border-bottom: 1px solid rgb(159, 159, 159);
  30. }
  31. SpinBox:focus,
  32. DoubleSpinBox:focus,
  33. DateEdit:focus,
  34. DateTimeEdit:focus,
  35. TimeEdit:focus{
  36. border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  37. background-color: rgb(34, 34, 34);
  38. }
  39. SpinBox:disabled,
  40. DoubleSpinBox:disabled,
  41. DateEdit:disabled,
  42. DateTimeEdit:disabled,
  43. TimeEdit:disabled{
  44. color: rgba(255, 255, 255, 150);
  45. background-color: rgb(59, 59, 59);
  46. border: 1px solid rgb(73, 73, 73);
  47. }
  48. SpinButton {
  49. background-color: transparent;
  50. border-radius: 4px;
  51. margin: 0;
  52. }
  53. SpinButton:hover {
  54. background-color: rgba(255, 255, 255, 9);
  55. }
  56. SpinButton:pressed {
  57. background-color: rgba(255, 255, 255, 6);
  58. }