Advertisement
Guest User

Untitled

a guest
Sep 15th, 2021
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. QScrollBar:vertical {
  2. background: darkgrey;
  3. width: 10px;
  4. }
  5. QScrollBar::handle:vertical {
  6. background: black;
  7. min-height: 0px;
  8. }
  9.  
  10. QScrollBar:horizontal{
  11. background: darkgrey;
  12. width: 10px;
  13. }
  14. QScrollBar::handle:horizontal{
  15. background: black;
  16. min-height: 0px;
  17. }
  18.  
  19.  
  20. QMenu {
  21. background-color: black; /* sets background of the menu */
  22. border: 1px solid black;
  23. color:lightgrey
  24. }
  25.  
  26. QMenu::item {
  27. /* sets background of menu item. set this to something non-transparent
  28. if you want menu color and menu item color to be different */
  29. background-color: transparent;
  30. }
  31.  
  32. QMenu::item:selected {
  33. /* when user selects item using mouse or keyboard */
  34. background-color: darkgrey;
  35. }
  36.  
  37. QMenuBar {
  38. /*background-color: qlineargradient(
  39. x1: 0,
  40. y1: 0,
  41. x2: 0,
  42. y2: 1,
  43. stop: 0 lightgray,
  44. stop: 1 red
  45. );*/
  46. background-color: black;
  47. color: lightgrey;
  48. spacing: 3px; /* spacing between menu bar items */
  49. }
  50.  
  51. QMenuBar::item {
  52. padding: 1px 4px;
  53. background: transparent;
  54. border-radius: 4px;
  55. }
  56.  
  57. QMenuBar::item:selected {
  58. /* when selected using mouse or keyboard */
  59. background: darkgrey;
  60. }
  61.  
  62. QMenuBar::item:pressed {
  63. background: lightgrey;
  64. }
  65.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement