Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/csshelperbase.cpp
Show First 20 Lines • Show All 533 Lines • ▼ Show 20 Line(s) | 530 | .arg(cPgpErrF.name(), | |||
---|---|---|---|---|---|
534 | cPgpErrB.name()) | 534 | cPgpErrB.name()) | ||
535 | + | 535 | + | ||
536 | QStringLiteral("div.htmlWarn {\n" | 536 | QStringLiteral("div.htmlWarn {\n" | ||
537 | " border: 2px solid %1 ! important;\n" | 537 | " border: 2px solid %1 ! important;\n" | ||
538 | " line-height: normal;\n" | 538 | " line-height: normal;\n" | ||
539 | "}\n\n") | 539 | "}\n\n") | ||
540 | .arg(cHtmlWarning.name()) | 540 | .arg(cHtmlWarning.name()) | ||
541 | + | 541 | + | ||
542 | QStringLiteral("div.info {\n" | ||||
543 | " border: 2px solid %1;\n" | ||||
544 | " border-radius: 5px;\n" | ||||
545 | " color: %2;\n" | ||||
546 | " background-color: %1;\n" | ||||
547 | "}\n\n") | ||||
548 | .arg(pal.color(QPalette::Highlight).name(), | ||||
549 | pal.color(QPalette::HighlightedText).name()) | ||||
550 | + | ||||
551 | QStringLiteral("div.switch {\n" | ||||
552 | " color: black;\n" | ||||
553 | " background-color: #e0e0e0;\n" | ||||
554 | "}\n\n") | ||||
555 | + | ||||
542 | QStringLiteral("div.header {\n" | 556 | QStringLiteral("div.header {\n" | ||
543 | "%1" | 557 | "%1" | ||
544 | "}\n\n" | 558 | "}\n\n" | ||
545 | 559 | | |||
546 | "div.fancy.header > div {\n" | 560 | "div.fancy.header > div {\n" | ||
547 | " background-color: %2 ! important;\n" | 561 | " background-color: %2 ! important;\n" | ||
548 | " color: %3 ! important;\n" | 562 | " color: %3 ! important;\n" | ||
549 | " border: solid %4 1px ! important;\n" | 563 | " border: solid %4 1px ! important;\n" | ||
▲ Show 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
598 | { | 612 | { | ||
599 | const QPalette &pal = QApplication::palette(); | 613 | const QPalette &pal = QApplication::palette(); | ||
600 | const QString headerFont = QStringLiteral("font-family: \"%1\" ! important;\n" | 614 | const QString headerFont = QStringLiteral("font-family: \"%1\" ! important;\n" | ||
601 | " font-size: %2px ! important;\n") | 615 | " font-size: %2px ! important;\n") | ||
602 | .arg(mBodyFont.family()) | 616 | .arg(mBodyFont.family()) | ||
603 | .arg(pointsToPixel(this->mPaintDevice, mBodyFont.pointSize())); | 617 | .arg(pointsToPixel(this->mPaintDevice, mBodyFont.pointSize())); | ||
604 | 618 | | |||
605 | return | 619 | return | ||
606 | QStringLiteral("div.header {\n" | 620 | QStringLiteral("a.button {\n" | ||
621 | " border: solid 2px black ! important;\n" | ||||
622 | " border-radius: 5px;\n" | ||||
623 | " padding: .5em;\n;" | ||||
624 | " color: black ! important;\n" | ||||
knauss: @colomar: I use here hard color defintions, because i have no glue, what palett color is best… | |||||
Why not use QPalette::Button for background and QPalette::ButtonText for test? dvratil: Why not use QPalette::Button for background and QPalette::ButtonText for test? | |||||
625 | " background-color: #ccc ! important;\n" | ||||
626 | "}\n\n" | ||||
627 | | ||||
628 | "div.header {\n" | ||||
607 | " margin-bottom: 10pt ! important;\n" | 629 | " margin-bottom: 10pt ! important;\n" | ||
608 | "}\n\n" | 630 | "}\n\n" | ||
609 | 631 | | |||
610 | "table.textAtm {\n" | 632 | "table.textAtm {\n" | ||
611 | " margin-top: 10pt ! important;\n" | 633 | " margin-top: 10pt ! important;\n" | ||
612 | " margin-bottom: 10pt ! important;\n" | 634 | " margin-bottom: 10pt ! important;\n" | ||
613 | "}\n\n" | 635 | "}\n\n" | ||
614 | 636 | | |||
Show All 40 Lines | |||||
655 | 677 | | |||
656 | "div.htmlWarn {\n" | 678 | "div.htmlWarn {\n" | ||
657 | " margin: 0px 5% ! important;\n" | 679 | " margin: 0px 5% ! important;\n" | ||
658 | " padding: 10px ! important;\n" | 680 | " padding: 10px ! important;\n" | ||
659 | " text-align: left ! important;\n" | 681 | " text-align: left ! important;\n" | ||
660 | " line-height: normal;\n" | 682 | " line-height: normal;\n" | ||
661 | "}\n\n" | 683 | "}\n\n" | ||
662 | 684 | | |||
685 | "div.switch {\n" | ||||
686 | " margin: 1em;\n" | ||||
687 | " padding: 1em;\n" | ||||
688 | "}\n\n" | ||||
689 | | ||||
690 | "div.switch div.info {\n" | ||||
691 | " margin: 1em;\n" | ||||
692 | " text-align: center;\n" | ||||
693 | " line-height: normal;\n" | ||||
694 | "}\n\n" | ||||
695 | | ||||
663 | "div.fancy.header > div {\n" | 696 | "div.fancy.header > div {\n" | ||
664 | " font-weight: bold ! important;\n" | 697 | " font-weight: bold ! important;\n" | ||
665 | " padding: 4px ! important;\n" | 698 | " padding: 4px ! important;\n" | ||
666 | " line-height: normal;\n" | 699 | " line-height: normal;\n" | ||
667 | "}\n\n" | 700 | "}\n\n" | ||
668 | 701 | | |||
669 | "div.fancy.header table {\n" | 702 | "div.fancy.header table {\n" | ||
670 | " padding: 2px ! important;\n" // ### khtml bug: this is ignored | 703 | " padding: 2px ! important;\n" // ### khtml bug: this is ignored | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |
@colomar: I use here hard color defintions, because i have no glue, what palett color is best here.