1QMainWindow 2{ 3 background: qlineargradient( 4 x1: 0, y1: 0, x2: 0, y2: 1, 5 stop: 0 #aaaaaa, stop: 1.0 #111111); 6 7 color: #e0e0e0; 8} 9 10QDialog, QStackedWidget 11{ 12/* background: qlineargradient( 13 x1: 0, y1: 0, x2: 0, y2: 1, 14 stop: 0.0 #4b97c4, stop: 0.1 #aad6e9); 15*/ 16 background-color: #aad6e9; 17 18 border: 1px solid #00ddff; 19} 20 21QLabel 22{ 23 color: #030055; 24 font-size: 16px; 25} 26 27QListWidget 28{ 29 font-size: 16px; 30} 31 32 33 34 35 36QStatusBar, QWidget[kind="toolbar"] 37{ 38 background: qlineargradient( 39 x1: 0, y1: 0, x2: 0, y2: 1, 40 stop: 0 #aaaaaa, stop: 0.5 #666666, 41 stop: 0.51 #222222, stop: 1.0 #333333); 42 43 border-color: #787878; 44 45 color: #e0e0e0; 46} 47 48 49QStatusBar QLabel 50{ 51 color: #e0e0e0; 52} 53 54 55 56QProgressBar 57{ 58 border: 1px solid #787878; 59 border-radius: 3px; 60 text-align: center; 61} 62 63QProgressBar::chunk 64{ 65 background: qlineargradient( 66 x1: 0, y1: 0, x2: 0, y2: 1, 67 stop: 0 #aaaaaa, stop: 0.5 #666666, 68 stop: 0.51 #222222, stop: 1.0 #336666); 69 70 width: 20px; 71} 72 73 74 75 76QPushButton, QFrame QPushButton 77{ 78 background: qlineargradient( 79 x1: 0, y1: 0, x2: 0, y2: 1, 80 stop: 0 #aad6e9, stop: 0.5 #4b97c4, 81 stop: 0.51 #2076b1, stop: 1.0 #009cdf); 82 83 color: #ffffff; 84 85 border: 1px solid #ffffff; 86 87 border-bottom-right-radius : 15px; 88 border-top-left-radius: 15px; 89 90 min-width: 40px; 91 padding: 4px; 92 93 font-size: 16px; 94 95 text-align: justify; 96} 97 98QPushButton:default, QToolButton:default, 99QFrame QPushButton:default 100{ 101 border-color: #030055; 102} 103 104QToolButton 105{ 106 background: qlineargradient( 107 x1: 0, y1: 0, x2: 0, y2: 1, 108 stop: 0 #aad6e9, stop: 0.5 #4b97c4, 109 stop: 0.51 #2076b1, stop: 1.0 #009cdf); 110 111 color: #ffffff; 112 113 border: 1px solid #787878; 114 border-radius: 3px; 115 116 padding: 2px; 117} 118 119/* 120QToolButton:hover:enabled:closed, QToolButton:default:hover:enabled:closed, 121QPushButton:hover:enabled:closed, QPushButton:default:hover:enabled:closed, 122QPushButton::menu-button:hover:enabled:closed, 123QToolButton::menu-button:hover:enabled:closed, 124 125QFrame QPushButton:hover:enabled:closed, QFrame QPushButton:default:hover:enabled:closed 126{ 127 background: qlineargradient( 128 x1: 0, y1: 0, x2: 0, y2: 1, 129 stop: 0 #aaaaaa, stop: 0.5 #666666, 130 stop: 0.51 #222222, stop: 1.0 #339999); 131 132 border-color: #333333; 133 134 color: #e0e0e0; 135} 136 137*/ 138 139QToolButton:pressed, QPushButton:pressed, 140QFrame QPushButton:pressed 141{ 142 background: qlineargradient( 143 x1: 0, y1: 0, x2: 0, y2: 1, 144 stop: 0 #aad6e9, stop: 0.5 #4b97c4, 145 stop: 0.51 #2076b1, stop: 1.0 #1e7398); 146 147 padding-top: 5px; 148} 149 150QToolButton:open, QPushButton:open, 151QFrame QPushButton:open 152{ 153 padding-top: 5px; 154 155 background: qlineargradient( 156 x1: 0, y1: 0, x2: 0, y2: 1, 157 stop: 0 #aad6e9, stop: 0.5 #4b97c4, 158 stop: 0.51 #2076b1, stop: 1.0 #1e7398); 159 160 border-color: #ffffff; 161} 162 163 164QToolButton[popupMode="1"], QPushButton[popupMode="1"], 165QFrame QPushButton[popupMode="1"] 166{ /* only for MenuButtonPopup */ 167 padding-right: 12px; /* make way for the popup button */ 168} 169 170QPushButton::menu-button, 171QFrame QPushButton::menu-button, 172QToolButton::menu-button 173{ 174 background: qlineargradient( 175 x1: 0, y1: 0, x2: 0, y2: 1, 176 stop: 0 #aaaaaa, stop: 0.5 #666666, 177 stop: 0.51 #222222, stop: 1.0 #333333); 178 179 border: 1px solid #787878; 180 border-top-right-radius: 3px; 181 border-bottom-right-radius: 3px; 182 183 width: 10px; 184} 185 186 QPushButton::menu-indicator:pressed, QPushButton::menu-indicator:open, 187 QFrame QPushButton::menu-indicator:pressed, QFrame QPushButton::menu-indicator:open, 188 QToolButton::menu-indicator:pressed, QToolButton::menu-indicator:open 189 { 190 position: relative; 191 top: 1px; left: -1px; 192 } 193 194 195 196 197QComboBox 198{ 199 border: 1px solid #787878; 200 border-radius: 3px; 201} 202 203QComboBox::drop-down 204{ 205 subcontrol-origin: padding; 206 subcontrol-position: top right; 207 width: 18px; 208 209 background: qlineargradient( 210 x1: 0, y1: 0, x2: 0, y2: 1, 211 stop: 0 #aaaaaa, stop: 0.5 #666666, 212 stop: 0.51 #222222, stop: 1.0 #333333); 213 214 border: none; 215 border-left: 1px solid #787878; 216} 217 218QDialog QComboBox::drop-down 219{ 220 background: qlineargradient( 221 x1: 0, y1: 0, x2: 0, y2: 1, 222 stop: 0 #ffffff, stop: 0.5 #f0f0f0, 223 stop: 0.51 #e0e0e0, stop: 1.0 #eeeeee); 224} 225 226QComboBox::drop-down:hover:enabled 227{ 228 background: qlineargradient( 229 x1: 0, y1: 0, x2: 0, y2: 1, 230 stop: 0 #aaaaaa, stop: 0.5 #666666, 231 stop: 0.51 #222222, stop: 1.0 #339999); 232 233 border-color: #787878; 234} 235 236QDialog QComboBox::drop-down:hover:enabled 237{ 238 background: qlineargradient( 239 x1: 0, y1: 0, x2: 0, y2: 1, 240 stop: 0 #EAF6FD, stop: 0.5 #D9F0FC, 241 stop: 0.51 #BEE6FD, stop: 1.0 #A7D9F5); 242 243 border-color: #3C7FB1; 244} 245 246 247QComboBox::down-arrow { 248 image: url(:/style/down-arrow.png); 249 } 250 251QComboBox::up-arrow { 252 image: url(:/style/up-arrow.png); 253 } 254 255QComboBox QAbstractItemView 256{ 257 background-color: qlineargradient( 258 x1: 0, y1: 0, x2: 0, y2: 1, 259 stop: 1.0 #E0F0F0, 260 stop: 0 #FFFFFF); 261 262 border: 1px solid #787878; 263 264 selection-background-color: #787878; 265 selection-color: #ffffff; 266 267 margin: -2px; 268} 269 270QComboBox QAbstractItemView::item 271{ 272 min-height: 22px; 273} 274 275/* 276QAbstractItemView::item:selected 277{ 278 background: #007f7f; 279 color: #ffffff; 280} 281*/ 282 283QAbstractItemView::item 284{ 285 min-height: 18px; 286 font-size: 16px; 287} 288 289 290 291QGroupBox 292{ 293 background-color: transparent; 294 border: 1px solid #ffffff; 295 border-radius: 3px; 296 margin-top: 14px; 297 font-size: 14px; 298} 299 300QGroupBox::title 301{ 302 subcontrol-origin: margin; 303 subcontrol-position: top center; 304 padding: 3px 3px; 305 color: #030055; 306} 307 308QGroupBox QRadioButton, QGroupBox QCheckBox 309{ 310 color: #030055; 311} 312 313 314 315 316 317 QFrame[kind="framed"] 318 { 319 border: 1px solid #aaaaaa; 320 border-radius: 3px; 321 322 background-color: #ffffff; 323 } 324 325 326 327 328 329 330QTabWidget::pane 331{ 332 border: 1px solid #B0B0B0; 333} 334 335QTabBar::tab 336{ 337 background: qlineargradient( 338 x1: 0, y1: 0, x2: 0, y2: 1, 339 stop: 0 #aaaaaa, stop: 0.5 #666666, 340 stop: 0.51 #222222, stop: 1.0 #333333); 341 342 border: 1px solid #333333; 343 344 padding: 4px 4px 4px 4px; 345 346 color: #e0e0e0; 347} 348 349QTabBar::tab:last 350{ 351 border-top-right-radius: 3px; 352} 353 354QTabBar::tab:first 355{ 356 border-top-left-radius: 3px; 357} 358 359QTabBar::tab:last:selected 360{ 361 border-right-color: #333333; 362} 363 364QTabBar::tab:first:selected 365{ 366 border-left-color: #333333; 367} 368 369QTabBar::tab:hover 370{ 371 background: qlineargradient( 372 x1: 0, y1: 0, x2: 0, y2: 1, 373 stop: 0 #aaaaaa, stop: 0.5 #666666, 374 stop: 0.51 #222222, stop: 1.0 #339999); 375 376 border-color: #333333; 377} 378 379QTabBar::tab:selected 380{ 381 background: qlineargradient( 382 x1: 0, y1: 0, x2: 0, y2: 1, 383 stop: 0 #444444, stop: 0.5 #444444, 384 stop: 0.51 #222222, stop: 1.0 #333333); 385} 386 387 388 389 390 391QToolTip 392{ 393 background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 394 stop: 0 #F0FFF0, stop: 1 #FFFFFF); 395 396 border-radius: 3px; 397 border: 1px solid #4b8598; 398} 399 400 401 402 403QHeaderView 404{ 405 background: qlineargradient( 406 x1: 0, y1: 0, x2: 0, y2: 1, 407 stop: 0 #aaaaaa, stop: 0.5 #666666, 408 stop: 0.51 #222222, stop: 1.0 #333333); 409 410 min-height: 23px; 411 max-height: 23px; 412} 413 414QHeaderView::section 415{ 416 background: qlineargradient( 417 x1: 0, y1: 0, x2: 0, y2: 1, 418 stop: 0 #aaaaaa, stop: 0.5 #666666, 419 stop: 0.51 #222222, stop: 1.0 #333333); 420 421 border: 1px solid #333333; 422 423 padding: 4px 4px 4px 4px; 424 425 color: #e0e0e0; 426} 427 428QHeaderView::section:hover 429{ 430 background: qlineargradient( 431 x1: 0, y1: 0, x2: 0, y2: 1, 432 stop: 0 #aaaaaa, stop: 0.5 #666666, 433 stop: 0.51 #222222, stop: 1.0 #339999); 434 435 border-color: #333333; 436} 437 438 439 440QDialog QHeaderView 441{ 442 background: qlineargradient( 443 x1: 0, y1: 0, x2: 0, y2: 1, 444 stop: 0 #ffffff, stop: 0.4 #ffffff, 445 stop: 0.41 #F7F8FA, stop: 1.0 #F1F2F4); 446} 447 448QDialog QHeaderView::section 449{ 450 background: qlineargradient( 451 x1: 0, y1: 0, x2: 0, y2: 1, 452 stop: 0 #ffffff, stop: 0.4 #ffffff, 453 stop: 0.41 #F7F8FA, stop: 1.0 #F1F2F4); 454 455 border: 1px solid #D5D5D5; 456 457 padding: 4px 4px 4px 4px; 458 459 color: #000000; 460} 461 462QDialog QHeaderView::section:hover 463{ 464 background: qlineargradient( 465 x1: 0, y1: 0, x2: 0, y2: 1, 466 stop: 0 #F2F9FC, stop: 0.4 #F2F9FC, 467 stop: 0.41 #E1F1F9, stop: 1.0 #D8ECF6); 468 469 border-color: #96D9F9; 470} 471 472 473 474 475 476 477 478 479QScrollBar 480{ 481 border: 1px solid #ffffff; 482 background: #e0e0e0; 483} 484 485QScrollBar:vertical 486{ 487 width: 18px; 488 margin: 17px 0 17px 0; 489} 490 491QScrollBar:horizontal 492{ 493 height: 18px; 494 margin: 0 17px 0 17px; 495} 496 497QScrollBar::handle 498{ 499 background: qlineargradient( 500 x1: 0, y1: 0, x2: 0, y2: 1, 501 stop: 0 #aad6e9, stop: 0.5 #4b97c4, 502 stop: 0.51 #2076b1, stop: 1.0 #009cdf); 503} 504 505QScrollBar::handle:vertical 506{ 507 border-top: 1px solid #ffffff; 508 border-bottom: 1px solid #ffffff; 509 border-left: 0px; 510 border-right: 0px; 511 min-height: 40px; 512} 513 514QScrollBar::handle:horizontal 515{ 516 border-left: 1px solid #ffffff; 517 border-right: 1px solid #ffffff; 518 border-top: 0px; 519 border-bottom: 0px; 520 min-width: 40px; 521} 522 523QScrollBar::add-line, QScrollBar::sub-line 524{ 525 background: qlineargradient( 526 x1: 0, y1: 0, x2: 0, y2: 1, 527 stop: 0 #aad6e9, stop: 0.5 #4b97c4, 528 stop: 0.51 #2076b1, stop: 1.0 #009cdf); 529 530 border: 1px solid #ffffff; 531} 532 533QScrollBar::add-line:vertical 534{ 535 height: 16px; 536 subcontrol-position: bottom; 537 subcontrol-origin: margin; 538} 539 540QScrollBar::sub-line:vertical 541{ 542 height: 16px; 543 subcontrol-position: top; 544 subcontrol-origin: margin; 545} 546 547QScrollBar::add-line:horizontal 548{ 549 width: 16px; 550 subcontrol-position: right; 551 subcontrol-origin: margin; 552} 553 554QScrollBar::sub-line:horizontal 555{ 556 width: 16px; 557 subcontrol-position: left; 558 subcontrol-origin: margin; 559} 560 561 562QScrollBar::down-arrow:pressed, QScrollBar::up-arrow:pressed, 563QScrollBar::left-arrow:pressed, QScrollBar::right-arrow:pressed 564{ 565 margin-top: 1px; 566} 567 568QScrollBar::down-arrow 569{ 570 image: url(:/style/down-arrow.png); 571} 572 573QScrollBar::up-arrow 574{ 575 image: url(:/style/up-arrow.png); 576} 577 578QScrollBar::left-arrow 579{ 580 image: url(:/style/left-arrow.png); 581} 582 583QScrollBar::right-arrow 584{ 585 image: url(:/style/right-arrow.png); 586} 587 588QScrollBar::add-page, QScrollBar::sub-page 589{ 590 background: none; 591} 592 593 594 595 596QMenuBar { 597 background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, 598 stop:0 #fcfdfe, stop:0.5 #cfd7eb stop:1 #e9ecfa); 599 font-family: Verdana; 600} 601 602QMenuBar::item { 603 background: transparent; 604 605 width: 120%; 606} 607 608 QMenuBar::item:selected { /* when selected using mouse or keyboard */ 609 border: 1px solid #f5f6fa; 610 border-radius: 3px; 611 612 background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, 613 stop:0 #f0f0f0 stop:0.5 #ffffff stop:1 #e9ecfa); 614 } 615 616 QMenuBar::item:pressed { 617 border: 1px solid grey; 618 border-radius: 3px; 619} 620 621 622 623 624 625QMenu { 626 background-color: #f1f1f1; /* sets background of the menu */ 627 border: 1px solid #979797; 628 } 629 630 QMenu::item { 631 632 margin-left: 2px; 633 margin-right: 2px; 634 635 padding-top: 4px; 636 padding-bottom: 4px; 637 padding-left: 24px; 638 padding-right: 12px; 639} 640 641 QMenu::item:selected { /* when selected using mouse or keyboard */ 642 border: 1px solid #a7dbff; 643 border-radius: 3px; 644 645 background: qlineargradient(x1:0, y1:0, x2:0, y2:1, 646 stop:0 #f1f1f1 stop:1 #e4f0f5); 647 648 649 margin-left: 1px; 650 margin-right: 1px; 651 padding-left: 24px; 652 padding-right: 12px; 653} 654 655QMenu::icon { 656 padding: 2px; 657} 658 659 QMenu::icon:checked { /* appearance of a 'checked' icon */ 660 background: qlineargradient(x1:0, y1:0, x2:0, y2:1, 661 stop:0 #f1f1f1 stop:1 #e4f0f5); 662 663 border: 1px solid #a7dbff; 664 } 665 666 667QMenu::indicator 668{ 669 width: 22px; 670 height: 22px; 671} 672 673QMenu::indicator:unchecked { /* when selected using mouse or keyboard */ 674 border-radius: 3px; 675} 676 677QMenu::indicator:checked:enabled { /* when selected using mouse or keyboard */ 678 background-color: #e6eff4; 679 680 image: url(:/style/menu_indicator.png) 681} 682 683 684QMenu::indicator:checked:!enabled { /* when selected using mouse or keyboard */ 685 image: url(:/style/menu_indicator_disabled.png) 686} 687 688 689 690QMenu::separator { 691 height: 1px; 692 margin-left: 28px; 693 margin-top: 4px; 694 margin-bottom: 4px; 695 696 background-color: #a0a0a0; 697} 698 699 700 701 702 703 704 705 QCheckBox { 706 spacing: 5px; 707 margin: 5px; 708 } 709 710 QCheckBox::indicator { 711 width: 13px; 712 height: 13px; 713 } 714 715 QCheckBox::indicator:unchecked { 716 image: url(:/style/checkbox_off_enabled.png); 717 } 718 719 QCheckBox::indicator:unchecked:!enabled { 720 image: url(:/style/checkbox_off_disabled.png); 721 } 722 723 QCheckBox::indicator:unchecked:hover { 724 image: url(:/style/checkbox_off_enabled_hover.png); 725 } 726 727 QCheckBox::indicator:unchecked:pressed { 728 image: url(:/style/checkbox_off_enabled_pressed.png); 729 } 730 731 QCheckBox::indicator:checked { 732 image: url(:/style/checkbox_on_enabled.png); 733 } 734 735 QCheckBox::indicator:checked:!enabled { 736 image: url(:/style/checkbox_on_disabled.png); 737 } 738 739 740 QCheckBox::indicator:checked:hover { 741 image: url(:/style/checkbox_on_enabled_hover.png); 742 } 743 744 QCheckBox::indicator:checked:pressed { 745 image: url(:/style/checkbox_on_enabled_pressed.png); 746 } 747 748 QCheckBox::indicator:indeterminate:hover { 749 image: url(:/style/checkbox_inter_enabled_hover.png); 750 } 751 752 QCheckBox::indicator:indeterminate { 753 image: url(:/style/checkbox_inter_enabled.png); 754 } 755 756 QCheckBox::indicator:indeterminate:!enabled { 757 image: url(:/style/checkbox_inter_disabled.png); 758 } 759 760 761 762 763 764 QRadioButton { 765 spacing: 5px; 766 margin: 5px; 767 } 768 769 QRadioButton::indicator { 770 width: 12px; 771 height: 12px; 772 } 773 774 QRadioButton::indicator:unchecked { 775 image: url(:/style/radiobutton_off_enabled.png); 776 } 777 778 QRadioButton::indicator:checked { 779 image: url(:/style/radiobutton_on_enabled.png); 780 } 781 782 QRadioButton::indicator:checked:hover { 783 image: url(:/style/radiobutton_on_enabled_hover.png); 784 } 785 786 QRadioButton::indicator:checked:pressed { 787 image: url(:/style/radiobutton_on_enabled_pressed.png); 788} 789 790 QRadioButton::indicator:unchecked:!enabled { 791 image: url(:/style/radiobutton_off_disabled.png); 792 } 793 794 QRadioButton::indicator:checked:!enabled { 795 image: url(:/style/radiobutton_on_disabled.png); 796 } 797 798 QRadioButton::indicator:unchecked:hover { 799 image: url(:/style/radiobutton_off_enabled_hover.png); 800} 801 802 QRadioButton::indicator:unchecked:pressed { 803 image: url(:/style/radiobutton_off_enabled_pressed.png); 804} 805 806 807 808 809 810 811QLineEdit, QTextEdit, QSpinBox, QDoubleSpinBox, QAbstractItemView, QComboBox { 812 border-top: 1px solid #abadb3; 813 border-right: 1px solid #abadb3; 814 border-left: 1px solid #e3e9ef; 815 border-bottom: 1px solid #e3e9ef; 816 border-radius: 2px; 817 818 background: white; 819 selection-background-color: #3399ff; 820 821 min-height: 23 px; 822} 823 824QLineEdit:focus, QSpinBox:focus, QDoubleSpinBox:focus, QComboBox:focus 825{ 826 background: #e0e0ff; 827} 828 829QLineEdit:!enabled, QTextEdit:!enabled, QSpinBox:!enabled, QDoubleSpinBox:!enabled, QComboBox:!enabled { 830 border: 1px solid #afafaf; 831 border-radius: 2px; 832 833 background: white; 834 color: #afafaf; 835 selection-background-color: #3399ff; 836} 837 838 839QLineEdit:hover:enabled, QTextEdit:hover:enabled, QSpinBox:hover:enabled, QComboBox:hover:enabled, 840QDoubleSpinBox:hover:enabled, QAbstractItemView:hover:enabled 841{ 842 border-top: 1px solid #3d7bad; 843 border-right: 1px solid #3d7bad; 844 border-left: 1px solid #b7d9ed; 845 border-bottom: 1px solid #b7d9ed; 846} 847 848