// This code is auto-generated by Qul's qmltocpp tool from the file 'DefaultStyle.qml'
// WARNING! All changes made in this file will be lost!
#include "DefaultStyle.h"
#include <qul/private/graphicsdevice.h>
#include <qul/private/filecache.h>

#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
#endif

static const Qul::Private::String qulCurrentFileDir(".", 1);
namespace QtQuick {
namespace Controls {
namespace StyleDefault {
extern Qul::Private::Items::ItemBase *loaderItemAllocator(const Qul::Private::String &uri, const Qul::Private::String &currentFileDir);

} // namespace QtQuick
} // namespace Controls
} // namespace StyleDefault
namespace Qul { namespace Private {
Qul::Property<int> &translationIndexProperty_main();
extern uint32_t qul_translation_base_offset_553890478bc8975d62561d184f4269f42a8d3946();
extern const char *qul_translation_string(int lang, uint32_t base, int entry);
}}

namespace QtQuick {
namespace Controls {
namespace StyleDefault {

namespace {
#if defined(QUL_CC_IAR)
#pragma diag_suppress=Pe177 // declared but never referenced
#elif defined(QUL_CC_GNU)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
static Qul::Property<int> &translationIndexProperty() { return Qul::Private::translationIndexProperty_main(); }
static int translationIndex() { return translationIndexProperty().value(); }
static const char *qul_translation(int entry) {
    const uint32_t base_offset = Qul::Private::qul_translation_base_offset_553890478bc8975d62561d184f4269f42a8d3946();
    return Qul::Private::qul_translation_string(translationIndex(), base_offset, entry);
}
#if defined(QUL_CC_IAR)
#pragma diag_default=Pe177 // declared but never referenced
#elif defined(QUL_CC_GNU)
#pragma GCC diagnostic pop
#endif
}



DefaultStyle::DefaultStyle()

{
#if __cplusplus < 201103L || defined(QUL_CC_IAR) || (defined(QUL_CC_GHS) && (__GHS_VERSION_NUMBER == 201714 || __GHS_VERSION_NUMBER == 201954))
    // readonly property color disabledTextColor: "#c4c9cb"
    // line 9  "DefaultStyle.qml"
    disabledTextColor.setValue(0xffc4c9cb);
    // readonly property color textColor: "#3d464d"
    // line 8  "DefaultStyle.qml"
    textColor.setValue(0xff3d464d);
#else
    using OffsetType4423538195039467471 = Qul::Private::Choose<uint16_t, uint32_t, (UINT16_MAX >
        Qul::Private::Max<offsetof(DefaultStyle, disabledTextColor) / 4,
        Qul::Private::Max<offsetof(DefaultStyle, textColor) / 4,
        0
        >::V>::V
        )>::Type;
    OffsetType4423538195039467471 propertyOffsets4423538195039467471[] = {
        std::is_same<decltype(disabledTextColor), Qul::Property<Qul::PlatformInterface::Rgba32>>::value ? (offsetof(DefaultStyle, disabledTextColor) / 4) : std::numeric_limits<OffsetType4423538195039467471>::max(),
        std::is_same<decltype(textColor), Qul::Property<Qul::PlatformInterface::Rgba32>>::value ? (offsetof(DefaultStyle, textColor) / 4) : std::numeric_limits<OffsetType4423538195039467471>::max(),
    };
    static constexpr uint32_t propertyValues4423538195039467471[] = {
        // readonly property color disabledTextColor: "#c4c9cb"
        // line 9  "DefaultStyle.qml"
        0xffc4c9cb,
        // readonly property color textColor: "#3d464d"
        // line 8  "DefaultStyle.qml"
        0xff3d464d,
    };
    Qul::Private::initializeProperties<Qul::PlatformInterface::Rgba32>(this, propertyOffsets4423538195039467471, propertyValues4423538195039467471,
        sizeof(propertyOffsets4423538195039467471) / sizeof(propertyOffsets4423538195039467471[0]));
    // readonly property color disabledTextColor: "#c4c9cb"
    // line 9  "DefaultStyle.qml"
    if (!std::is_same<decltype(disabledTextColor), Qul::Property<Qul::PlatformInterface::Rgba32>>::value)
        disabledTextColor.setValue(0xffc4c9cb);
    // readonly property color textColor: "#3d464d"
    // line 8  "DefaultStyle.qml"
    if (!std::is_same<decltype(textColor), Qul::Property<Qul::PlatformInterface::Rgba32>>::value)
        textColor.setValue(0xff3d464d);
#endif
#if __cplusplus < 201103L || defined(QUL_CC_IAR) || (defined(QUL_CC_GHS) && (__GHS_VERSION_NUMBER == 201714 || __GHS_VERSION_NUMBER == 201954))
    // readonly property int padding: 5
    // line 7  "DefaultStyle.qml"
    padding.setValue(5);
    // readonly property int inset: 5
    // line 6  "DefaultStyle.qml"
    inset.setValue(5);
#else
    using OffsetType14508472848368190223 = Qul::Private::Choose<uint16_t, uint32_t, (UINT16_MAX >
        Qul::Private::Max<offsetof(DefaultStyle, padding) / 4,
        Qul::Private::Max<offsetof(DefaultStyle, inset) / 4,
        0
        >::V>::V
        )>::Type;
    OffsetType14508472848368190223 propertyOffsets14508472848368190223[] = {
        std::is_same<decltype(padding), Qul::Property<int>>::value ? (offsetof(DefaultStyle, padding) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
        std::is_same<decltype(inset), Qul::Property<int>>::value ? (offsetof(DefaultStyle, inset) / 4) : std::numeric_limits<OffsetType14508472848368190223>::max(),
    };
    static constexpr int8_t propertyValues14508472848368190223[] = {
        // readonly property int padding: 5
        // line 7  "DefaultStyle.qml"
        5,
        // readonly property int inset: 5
        // line 6  "DefaultStyle.qml"
        5,
    };
    Qul::Private::initializeProperties<int>(this, propertyOffsets14508472848368190223, propertyValues14508472848368190223,
        sizeof(propertyOffsets14508472848368190223) / sizeof(propertyOffsets14508472848368190223[0]));
    // readonly property int padding: 5
    // line 7  "DefaultStyle.qml"
    if (!std::is_same<decltype(padding), Qul::Property<int>>::value)
        padding.setValue(5);
    // readonly property int inset: 5
    // line 6  "DefaultStyle.qml"
    if (!std::is_same<decltype(inset), Qul::Property<int>>::value)
        inset.setValue(5);
#endif
}
DefaultStyle &DefaultStyle::instance()
{
    static DefaultStyle instance;
    return instance;
}

} // namespace QtQuick
} // namespace Controls
} // namespace StyleDefault
