WindowInsetsController QML Type (Singleton)
Access to window insets colors. More...
| Import Statement: | import org.kde.guiaddons |
| Since: | 6.7 |
| In C++: | KWindowInsetsController |
Note: This type is a QML singleton. There is only one instance of this type in the QML engine.
Properties
- navigationBarBackgroundColor : color
- statusBarBackgroundColor : color
Detailed Description
On most platforms this does nothing, on Android it allows to customize the (top) status bar and (botton) navigation bar background colors, e.g. to match the current window or application colors.
Note that the foreground colors on Android are automatically chosen based on the background color.
Component.onComplete: { WindowInsetsController.statusBarBackgroundColor = Kirigami.Theme.backgroundColor; WindowInsetsController.navigationBarBackgroundColor = Kirigami.Theme.backgroundColor; }
Property Documentation
navigationBarBackgroundColor : color
Background color of the navigation bar.
statusBarBackgroundColor : color
Background color of the status bar.