moment/src/qml/Base/HImage.qml
miruka 1ab79347e9 Refactor HInterfaceBox and SignIn page
- Cleaned up code
- Sizes are standardized
- New HCheckBox component
- Replace RememberAccount page by a checkbox on the SignIn page
- The page can now be flicked if it's not tall enough to display
  everything

- HNumberAnimation now has an overshoot property that will set the right
  easing type, overshoot and adapt the animation factor/duration.
- HImage can now be colorized
2019-08-17 13:04:43 -04:00

21 lines
382 B
QML

import QtQuick 2.12
import QtGraphicalEffects 1.12
Image {
id: image
asynchronous: true
cache: true
fillMode: Image.PreserveAspectFit
property color colorize: "transparent"
layer {
enabled: ! Qt.colorEqual(colorize, "transparent")
effect: ColorOverlay {
color: image.colorize
cached: image.cache
}
}
}