Changeset View
Changeset View
Standalone View
Standalone View
src/kexiutils/utils.h
Show First 20 Lines • Show All 585 Lines • ▼ Show 20 Line(s) | |||||
586 | 586 | | |||
587 | //! @return the active titlebar text (foreground) color | 587 | //! @return the active titlebar text (foreground) color | ||
588 | //! @note A copy of KGlobalSettings::activeTextColor() needed for porting from kdelibs4. | 588 | //! @note A copy of KGlobalSettings::activeTextColor() needed for porting from kdelibs4. | ||
589 | KEXIUTILS_EXPORT QColor activeTextColor(); | 589 | KEXIUTILS_EXPORT QColor activeTextColor(); | ||
590 | 590 | | |||
591 | //! @return Paper White color, see https://techbase.kde.org/Projects/Usability/HIG/Color | 591 | //! @return Paper White color, see https://techbase.kde.org/Projects/Usability/HIG/Color | ||
592 | inline QColor paperWhite() { return QColor(0xfcfcfc); } | 592 | inline QColor paperWhite() { return QColor(0xfcfcfc); } | ||
593 | 593 | | |||
594 | //! @return Cardboard Grey color, see https://techbase.kde.org/Projects/Usability/HIG/Color | ||||
595 | inline QColor cardboardGrey() { return QColor(0xeff0f1); } | ||||
596 | | ||||
597 | //! @return Alternative to Normal background (Cardboard Grey), | ||||
598 | //! see https://techbase.kde.org/Projects/Usability/HIG/Color | ||||
599 | inline QColor cardboardGreyAlternative() { return QColor(0xbdc3c7); } | ||||
600 | | ||||
601 | //! @return Icon Grey color, see https://techbase.kde.org/Projects/Usability/HIG/Color | ||||
602 | inline QColor iconGrey() { return QColor(0x4d4d4d); } | ||||
603 | | ||||
594 | //! @return Charcoal Grey color, see https://techbase.kde.org/Projects/Usability/HIG/Color | 604 | //! @return Charcoal Grey color, see https://techbase.kde.org/Projects/Usability/HIG/Color | ||
595 | inline QColor charcoalGrey() { return QColor(0x31363b); } | 605 | inline QColor charcoalGrey() { return QColor(0x31363b); } | ||
596 | 606 | | |||
607 | //! @return Charcoal Grey color made a bit darker, suitable for disabled dark base, | ||||
608 | //! see https://techbase.kde.org/Projects/Usability/HIG/Color | ||||
609 | //inline QColor charcoalGreyDarker() { return charcoalGrey().darker(125); } | ||||
610 | | ||||
597 | //! @return Shade Black color, see https://techbase.kde.org/Projects/Usability/HIG/Color | 611 | //! @return Shade Black color, see https://techbase.kde.org/Projects/Usability/HIG/Color | ||
598 | inline QColor shadeBlack() { return QColor(0x232629); } | 612 | inline QColor shadeBlack() { return QColor(0x232629); } | ||
599 | 613 | | |||
614 | //! @return Shade Black color made a bit lighter, suitable for alternate base, | ||||
615 | //! see https://techbase.kde.org/Projects/Usability/HIG/Color | ||||
616 | inline QColor shadeBlackLighter() { return shadeBlack().lighter(125); } | ||||
617 | | ||||
618 | //! @return Shade Black color, see https://techbase.kde.org/Projects/Usability/HIG/Color | ||||
619 | inline QColor plasmaBlue() { return QColor(0x3daee9); } | ||||
620 | | ||||
600 | /*! @return @c true if whether the app runs in a single click mode (the default). | 621 | /*! @return @c true if whether the app runs in a single click mode (the default). | ||
601 | @c false if returned if the app runs in double click mode. | 622 | @c false if returned if the app runs in double click mode. | ||
602 | The flag is checked in two stages. | 623 | The flag is checked in two stages. | ||
603 | 624 | | |||
604 | Stage 1. Application config file's "SingleClickOpensItem" value in "MainWindow" group is checked. | 625 | Stage 1. Application config file's "SingleClickOpensItem" value in "MainWindow" group is checked. | ||
605 | If it exists, the value is returned. | 626 | If it exists, the value is returned. | ||
606 | On Windows if it does not exist, @c true is returned, on other systems Stage 2 checking is performed. | 627 | On Windows if it does not exist, @c true is returned, on other systems Stage 2 checking is performed. | ||
607 | 628 | | |||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |