| 1 | /* |
| 2 | This file is part of the KDE libraries |
| 3 | SPDX-FileCopyrightText: 2025 g10 Code GmbH |
| 4 | SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de> |
| 5 | |
| 6 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | #ifndef HIGHCONTRASTHELPER_P_H |
| 10 | #define HIGHCONTRASTHELPER_P_H |
| 11 | |
| 12 | // Standalone (pure Qt) functionality needed internally in more than |
| 13 | // one source file. |
| 14 | |
| 15 | /*! |
| 16 | * \internal |
| 17 | * |
| 18 | * Returns whether a high-contrast color scheme is currently in use. |
| 19 | * |
| 20 | * This can be used to avoid painting UI elements with colors that would |
| 21 | * cause bad contrast. This function returns true if high-contrast is |
| 22 | * active in the platform and if the default color scheme is in use. |
| 23 | * |
| 24 | * \note For Qt 6.9 and earlier high-contrast is only detected on Windows. |
| 25 | */ |
| 26 | |
| 27 | bool isHighContrastColorSchemeInUse(); |
| 28 | |
| 29 | #endif |
| 30 | |