line_edit.qss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. LineEdit, TextEdit, PlainTextEdit {
  2. background-color: rgb(55, 55, 55);
  3. border: 1px solid rgba(255, 255, 255, 0.08);
  4. border-bottom: 1px solid rgba(255, 255, 255, 0.5442);
  5. border-radius: 5px;
  6. font: 14px "Segoe UI", "Microsoft YaHei";
  7. padding: 0px 10px;
  8. color: white;
  9. selection-background-color: --ThemeColorPrimary;
  10. selection-color: black;
  11. }
  12. TextEdit, PlainTextEdit {
  13. padding: 0px 0px 0px 10px;
  14. }
  15. LineEdit:hover, TextEdit:hover, PlainTextEdit:hover {
  16. background-color: rgb(60, 60, 60);
  17. }
  18. LineEdit:!focus, TextEdit:!focus, PlainTextEdit:!focus {
  19. background-color: rgb(55, 55, 55);
  20. border-bottom: 1px solid rgb(159, 159, 159);
  21. }
  22. LineEdit:focus {
  23. border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  24. }
  25. TextEdit:focus, PlainTextEdit:focus {
  26. border-bottom: 1px solid --ThemeColorPrimary;
  27. background-color: rgb(34, 34, 34);
  28. }
  29. LineEdit:disabled, TextEdit:disabled, PlainTextEdit:disabled {
  30. color: rgba(255, 255, 255, 150);
  31. background-color: rgb(59, 59, 59);
  32. border: 1px solid rgb(73, 73, 73);
  33. }
  34. #lineEditButton {
  35. background-color: transparent;
  36. border-radius: 4px;
  37. margin: 0;
  38. }
  39. #lineEditButton:hover {
  40. background-color: rgba(255, 255, 255, 9);
  41. }
  42. #lineEditButton:pressed {
  43. background-color: rgba(255, 255, 255, 6);
  44. }
  45. QScrollBar {
  46. background: transparent;
  47. width: 4px;
  48. margin-top: 12px;
  49. margin-bottom: 0;
  50. padding-right: 2px;
  51. }
  52. QScrollBar:horizontal {
  53. background: transparent;
  54. height: 4px;
  55. margin-left: 12px;
  56. margin-right: 12px;
  57. padding-bottom: 2px;
  58. }
  59. QScrollBar::sub-line {
  60. background: transparent;
  61. }
  62. QScrollBar::add-line {
  63. background: transparent;
  64. }
  65. QScrollBar::handle {
  66. background: rgb(122, 122, 122);
  67. border: 2px solid rgb(128, 128, 128);
  68. border-radius: 1px;
  69. }
  70. QScrollBar::handle:vertical {
  71. min-height: 32px;
  72. }
  73. QScrollBar::handle:horizontal {
  74. min-width: 32px;
  75. }
  76. QScrollBar::add-page:vertical,
  77. QScrollBar::sub-page:vertical,
  78. QScrollBar::add-page:horizontal,
  79. QScrollBar::sub-page:horizontal {
  80. background: none;
  81. }