spin_box.qss 1.3 KB

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