/*!
 *
 * Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved.
 * \copyright
 * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN
 * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER.
 *
 * \file    Fader.qml
 * \author  (last)      Behrouz NematiPour
 * \date    (last)      01-Jul-2021
 * \author  (original)  Behrouz NematiPour
 * \date    (original)  11-May-2021
 *
 */

// Qt
import QtQuick 2.12

// Project
// Qml imports

/*!
 * \brief   Denali project Fader Component can provide a consistent fading colors of the specified property.
 */
SequentialAnimation {
    property var    fadingProperyTarget : target
    property bool   fadingProperyRunning: false
    property string fadingProperyName   : ""
    property var    fadingProperyValue  : undefined

    // loops           : Animation.Infinite
    // alwaysRunToEnd  : true
    // running         : // TODO : it has some bugs if while is runnig background changes, but since it has been used for fault mode we may not get any other message level.
    //                             fadingProperyTarget.visible
    //                   &&        fadingProperyRunning
    // ColorAnimation  {
    //     target      :           fadingProperyTarget
    //     property    :           fadingProperyName
    //     to          : Qt.darker(fadingProperyValue)
    //     duration    :           1000
    // }
    //
    // ColorAnimation  {
    //     target      :           fadingProperyTarget
    //     property    :           fadingProperyName
    //     to          :           fadingProperyValue
    //     duration    :           1000
    // }
}
