QtMvvm  1.1.0
A mvvm oriented library for Qt, to create Projects for Widgets and Quick in parallel
ContrastToolBar.qml
1 import QtQuick 2.10
2 import QtQuick.Controls 2.3
3 import QtQuick.Controls.Material 2.3
4 import de.skycoder42.QtMvvm.Quick 1.1
5 
15 ToolBar {
16  id: _contrastToolBar
17 
18  height: 56
19 
21  function accentTextColor(accentColor, baseColor) {
22  return QuickPresenter.accentTextColor(accentColor, baseColor);
23  }
24 
25  Material.foreground: QuickPresenter.accentTextColor(Material.primary, Material.foreground)
26 }
QTMVVM_REVISION_1 static Q_INVOKABLE QColor accentTextColor(const QColor &accentColor, const QColor &baseColor) const
Calculates the optimal text color based on the background color.
The QML import for the QtMvvmQuick QML module.
Definition: ActionButton.qml:4
A QML singleton to access common presenter methods globally.