line_edit.qss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. LineEdit, TextEdit, PlainTextEdit {
  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 10px;
  9. selection-background-color: --ThemeColorLight1;
  10. }
  11. TextEdit,
  12. PlainTextEdit {
  13. padding: 0px 0px 0px 10px;
  14. }
  15. LineEdit:hover, TextEdit:hover, PlainTextEdit: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. LineEdit:!focus, TextEdit:!focus, PlainTextEdit:!focus {
  21. background-color: white;
  22. border-bottom: 1px solid rgba(0, 0, 0, 100);
  23. }
  24. LineEdit:focus {
  25. border-bottom: 1px solid rgba(0, 0, 0, 13);
  26. }
  27. TextEdit:focus,
  28. PlainTextEdit:focus {
  29. border-bottom: 1px solid --ThemeColorPrimary;
  30. background-color: white;
  31. }
  32. LineEdit:disabled, TextEdit:disabled,
  33. PlainTextEdit:disabled {
  34. color: rgba(0, 0, 0, 150);
  35. background-color: rgb(252, 252, 252);
  36. border: 1px solid rgb(237, 237, 237);
  37. }
  38. #lineEditButton {
  39. background-color: transparent;
  40. border-radius: 4px;
  41. margin: 0;
  42. }
  43. #lineEditButton:hover {
  44. background-color: rgba(0, 0, 0, 9);
  45. }
  46. #lineEditButton:pressed {
  47. background-color: rgba(0, 0, 0, 6);
  48. }
  49. QScrollBar:vertical {
  50. background: transparent;
  51. width: 4px;
  52. margin-top: 12px;
  53. margin-bottom: 12px;
  54. padding-right: 2px;
  55. }
  56. QScrollBar:horizontal {
  57. background: transparent;
  58. height: 4px;
  59. margin-left: 12px;
  60. margin-right: 12px;
  61. padding-bottom: 2px;
  62. }
  63. QScrollBar::sub-line {
  64. background: transparent;
  65. }
  66. QScrollBar::add-line {
  67. background: transparent;
  68. }
  69. QScrollBar::handle {
  70. background: rgb(122, 122, 122);
  71. border: 2px solid rgb(128, 128, 128);
  72. border-radius: 1px;
  73. }
  74. QScrollBar::handle:vertical {
  75. min-height: 32px;
  76. }
  77. QScrollBar::handle:horizontal {
  78. min-width: 32px;
  79. }
  80. QScrollBar::add-page:vertical,
  81. QScrollBar::sub-page:vertical,
  82. QScrollBar::add-page:horizontal,
  83. QScrollBar::sub-page:horizontal {
  84. background: none;
  85. }