Advertisement
robertvari

QCalendarWidget stylesheet

Jan 9th, 2020
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.61 KB | None | 0 0
  1. /* navigation bar */
  2. QCalendarWidget QWidget#qt_calendar_navigationbar { background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop: 0 #cccccc, stop: 1 #333333); }
  3. QCalendarWidget QToolButton {
  4.     height: 60px;
  5.     width: 150px;
  6.     color: white;
  7.     font-size: 24px;
  8.     icon-size: 56px, 56px;
  9.     background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop: 0 #cccccc, stop: 1 #333333);
  10. }
  11. QCalendarWidget QMenu {
  12.     width: 150px;
  13.     left: 20px;
  14.     color: white;
  15.     font-size: 18px;
  16.     background-color: rgb(100, 100, 100);
  17. }
  18. QCalendarWidget QSpinBox {
  19.     width: 150px;
  20.     font-size:24px;
  21.     color: white;
  22.     background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop: 0 #cccccc, stop: 1 #333333);
  23.     selection-background-color: rgb(136, 136, 136);
  24.     selection-color: rgb(255, 255, 255);
  25. }
  26. QCalendarWidget QSpinBox::up-button { subcontrol-origin: border;  subcontrol-position: top right;  width:65px; }
  27. QCalendarWidget QSpinBox::down-button {subcontrol-origin: border; subcontrol-position: bottom right;  width:65px;}
  28. QCalendarWidget QSpinBox::up-arrow { width:56px;  height:56px; }
  29. QCalendarWidget QSpinBox::down-arrow { width:56px;  height:56px; }
  30.  
  31. /* header row */
  32. QCalendarWidget QWidget { alternate-background-color: rgb(128, 128, 128); }
  33.  
  34. /* normal days */
  35. QCalendarWidget QAbstractItemView:enabled
  36. {
  37.     font-size:24px;  
  38.     color: rgb(180, 180, 180);  
  39.     background-color: black;  
  40.     selection-background-color: rgb(64, 64, 64);
  41.     selection-color: rgb(0, 255, 0);
  42. }
  43.  
  44. /* days in other months */
  45. QCalendarWidget QAbstractItemView:disabled { color: rgb(64, 64, 64); }
  46. To copy to clipboard, switch view to plain text mode
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement