ColorUtils Class

Utilities for processing items to obtain colors and information useful for UIs that need to adjust to variable elements. More...

Header: #include <ColorUtils>
CMake: find_package(KF6 REQUIRED COMPONENTS KirigamiPlatform)
target_link_libraries(mytarget PRIVATE KF6::KirigamiPlatform)
Inherits: QObject

Public Types

enum Brightness { Dark, Light }

Detailed Description

\qmlsingletontypeColorUtils

Member Type Documentation

enum ColorUtils::Brightness

Describes the contrast of an item.

ConstantValueDescription
ColorUtils::Dark0The item is dark and requires a light foreground color to achieve readable contrast
ColorUtils::Light1The item is light and requires a dark foreground color to achieve readable contrast