[
  {
    "path": ".github/FUNDING.yml",
    "content": "# These are supported funding model platforms\n\npatreon: swordfish90\ncustom: ['https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=flscogna%40gmail.com&item_name=Support+CRT&currency_code=EUR&source=url']\n"
  },
  {
    "path": ".github/workflows/release.yml",
    "content": "name: Release\n\non:\n  workflow_dispatch:\n  push:\n    branches:\n      - main\n      - master\n    tags:\n      - '*'\n\npermissions:\n  contents: write\n\njobs:\n  build-appimage:\n    name: Build (Linux, AppImage)\n    runs-on: ubuntu-22.04\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          submodules: recursive\n\n      - name: Install build deps\n        run: |\n          sudo apt update\n          sudo apt install -y build-essential rsync wget\n\n      - name: Install Qt\n        uses: jurplel/install-qt-action@v4\n        with:\n          version: 6.10.0\n          dir: ..\n          modules: qt5compat qtshadertools\n          setup-python: false\n          cache: true\n\n      - name: Build AppImage\n        run: |\n          ./scripts/build-appimage.sh\n\n      - name: Collect artifact\n        run: |\n          mkdir -p release\n          mv ./*.AppImage release/\n\n      - name: Upload artifact\n        uses: actions/upload-artifact@v4\n        with:\n          name: cool-retro-term-appimage\n          path: ./release/*\n\n  build-dmg:\n    name: Build (macOS, DMG)\n    runs-on: macos-14\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          submodules: recursive\n\n      - name: Install Qt\n        uses: jurplel/install-qt-action@v4\n        with:\n          version: 6.10.*\n          modules: qt5compat qtshadertools\n          setup-python: true\n          python-version: '3.11'\n          cache: true\n\n      - name: Build DMG\n        run: |\n          JOBS=\"$(sysctl -n hw.ncpu)\"\n          ./scripts/build-dmg.sh\n\n      - name: Collect artifact\n        run: |\n          mkdir -p release\n          mv ./*.dmg release/\n\n      - name: Upload artifact\n        uses: actions/upload-artifact@v4\n        with:\n          name: cool-retro-term-dmg\n          path: ./release/*\n\n  release:\n    name: Create Release\n    runs-on: ubuntu-22.04\n    needs:\n      - build-appimage\n      - build-dmg\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          fetch-depth: 0\n\n      - name: Download AppImage\n        uses: actions/download-artifact@v4\n        with:\n          name: cool-retro-term-appimage\n          path: ./release\n\n      - name: Download DMG\n        uses: actions/download-artifact@v4\n        with:\n          name: cool-retro-term-dmg\n          path: ./release\n\n      - name: Update rolling tag\n        if: startsWith(github.ref, 'refs/heads/')\n        run: |\n          git tag -f rolling\n          git push -f origin rolling\n\n      - name: Publish rolling release\n        if: startsWith(github.ref, 'refs/heads/')\n        uses: softprops/action-gh-release@v2\n        with:\n          tag_name: rolling\n          name: Rolling Release\n          prerelease: true\n          files: ./release/*\n\n      - name: Publish tagged release\n        if: startsWith(github.ref, 'refs/tags/')\n        uses: softprops/action-gh-release@v2\n        with:\n          tag_name: ${{ github.ref_name }}\n          files: ./release/*\n"
  },
  {
    "path": ".gitignore",
    "content": "# C++ objects and libs\n\n*.slo\n*.lo\n*.o\n*.a\n*.la\n*.lai\n*.so\n*.dll\n*.dylib\n\n# Qt-es\n\n/.qmake.cache\n/.qmake.stash\n*.pro.user\n*.pro.user.*\n*.moc\nmoc_*.cpp\nmoc_*.h\nqrc_*.cpp\nui_*.h\nMakefile*\n*-build-*\n\n# QtCreator\n\n*.autosave\n\n# QtCtreator Qml\n*.qmlproject.user\n*.qmlproject.user.*\n\n# Others\n\n*.xcf\n\n# Ubuntu SDk\n*.excludes\n*.json\n\n# Excludes compiled files\n\nimports\ncool-retro-term\nbuild\n\n# Linux\n\n*.AppImage\n\n# Mac OSX\n\n.DS_Store\n*.app\n*.dmg\n"
  },
  {
    "path": ".gitmodules",
    "content": "[submodule \"qmltermwidget\"]\n\tpath = qmltermwidget\n\turl = https://github.com/Swordfish90/qmltermwidget\n\tbranch = unstable\n[submodule \"KDSingleApplication\"]\n\tpath = KDSingleApplication\n\turl = https://github.com/KDAB/KDSingleApplication.git\n"
  },
  {
    "path": "README.md",
    "content": "# cool-retro-term\n\n|> Default Amber|C:\\ IBM DOS|$ Default Green|\n|---|---|---|\n|![Default Amber Cool Retro Term](https://user-images.githubusercontent.com/121322/32070717-16708784-ba42-11e7-8572-a8fcc10d7f7d.gif)|![IBM DOS](https://user-images.githubusercontent.com/121322/32070716-16567e5c-ba42-11e7-9e64-ba96dfe9b64d.gif)|![Default Green Cool Retro Term](https://user-images.githubusercontent.com/121322/32070715-163a1c94-ba42-11e7-80bb-41fbf10fc634.gif)|\n\n## Description\ncool-retro-term is a terminal emulator which mimics the look and feel of the old cathode tube screens.\nIt has been designed to be eye-candy, customizable, and reasonably lightweight.\n\nIt uses the QML port of qtermwidget (Konsole): https://github.com/Swordfish90/qmltermwidget.\n\nThis terminal emulator works under Linux and macOS and requires Qt6.\n\nSettings such as colors, fonts, and effects can be accessed via context menu.\n\n## Screenshots\n![Image](<https://i.imgur.com/TNumkDn.png>)\n![Image](<https://i.imgur.com/hfjWOM4.png>)\n![Image](<https://i.imgur.com/GYRDPzJ.jpg>)\n\n## Install\n\nIf you want to get a hold of the latest version, just go to the Releases page and grab the latest AppImage (Linux) or dmg (macOS).\n\nAlternatively, most distributions such as Ubuntu, Fedora or Arch already package cool-retro-term in their official repositories.\n\n## Building\n\nCheck out the wiki and follow the instructions on how to build it on [Linux](https://github.com/Swordfish90/cool-retro-term/wiki/Build-Instructions-(Linux)) and [macOS](https://github.com/Swordfish90/cool-retro-term/wiki/Build-Instructions-(macOS)).\n"
  },
  {
    "path": "app/app.pro",
    "content": "QT += qml quick widgets sql quickcontrols2\nTARGET = cool-retro-term\nAPP_VERSION = $$system(git -C $$PWD/.. describe --tags --always --dirty=-dirty)\nisEmpty(APP_VERSION): APP_VERSION = \"unknown\"\nDEFINES += APP_VERSION=\\\\\\\"$$APP_VERSION\\\\\\\"\n\n# TODO: When migrating to CMake, use KDSingleApplication's CMakeLists.txt instead of these manual sources.\nINCLUDEPATH += $$PWD/../KDSingleApplication/src\nHEADERS += \\\n    $$PWD/../KDSingleApplication/src/kdsingleapplication.h \\\n    $$PWD/../KDSingleApplication/src/kdsingleapplication_lib.h \\\n    $$PWD/../KDSingleApplication/src/kdsingleapplication_localsocket_p.h\nSOURCES += \\\n    $$PWD/../KDSingleApplication/src/kdsingleapplication.cpp \\\n    $$PWD/../KDSingleApplication/src/kdsingleapplication_localsocket.cpp\nDEFINES += KDSINGLEAPPLICATION_STATIC_BUILD\n\nDESTDIR = $$OUT_PWD/../\n\nHEADERS += \\\n    fileio.h \\\n    fontmanager.h \\\n    fontlistmodel.h\n\nSOURCES += main.cpp \\\n    fileio.cpp \\\n    fontmanager.cpp \\\n    fontlistmodel.cpp\n\nmacx:ICON = icons/crt.icns\n\nRESOURCES += qml/resources.qrc\n\n# Shader compilation (Qt Shader Baker)\nQSB_BIN = $$[QT_HOST_BINS]/qsb\nisEmpty(QSB_BIN): QSB_BIN = $$[QT_INSTALL_BINS]/qsb\n\nSHADERS_DIR = $${_PRO_FILE_PWD_}/shaders\nSHADERS += $$files($$SHADERS_DIR/*.frag) $$files($$SHADERS_DIR/*.vert)\nSHADERS -= $$SHADERS_DIR/terminal_dynamic.frag\nSHADERS -= $$SHADERS_DIR/terminal_static.frag\nSHADERS -= $$SHADERS_DIR/passthrough.vert\n\nqsb.input = SHADERS\nqsb.output = ../../app/shaders/${QMAKE_FILE_NAME}.qsb\nqsb.commands = $$QSB_BIN --glsl \\\"100 es,120,150\\\" --hlsl 50 --msl 12 --qt6 -o ${QMAKE_FILE_OUT} ${QMAKE_FILE_IN}\nqsb.clean = $$qsb.output\nqsb.name = qsb ${QMAKE_FILE_IN}\nqsb.variable_out = QSB_FILES\nQMAKE_EXTRA_COMPILERS += qsb\nPRE_TARGETDEPS += $$QSB_FILES\nOTHER_FILES += $$SHADERS $$QSB_FILES\n\nDYNAMIC_SHADER = $$SHADERS_DIR/terminal_dynamic.frag\nSTATIC_SHADER = $$SHADERS_DIR/terminal_static.frag\n\nRASTER_MODES = 0 1 2 3 4\nBINARY_FLAGS = 0 1\nVARIANT_SHADER_DIR = $$relative_path($$PWD/shaders, $$OUT_PWD)\nVARIANT_OUTPUTS =\n\nfor(raster_mode, RASTER_MODES) {\n    for(burn_in, BINARY_FLAGS) {\n        for(display_frame, BINARY_FLAGS) {\n            for(chroma_on, BINARY_FLAGS) {\n                dynamic_variant = terminal_dynamic_raster$${raster_mode}_burn$${burn_in}_frame$${display_frame}_chroma$${chroma_on}\n                dynamic_output = $${VARIANT_SHADER_DIR}/$${dynamic_variant}.frag.qsb\n                dynamic_target = shader_variant_$${dynamic_variant}\n                $${dynamic_target}.target = $${dynamic_output}\n                $${dynamic_target}.depends = $$DYNAMIC_SHADER\n                $${dynamic_target}.commands = $$QSB_BIN --glsl \\\"100 es,120,150\\\" --hlsl 50 --msl 12 --qt6 -DCRT_RASTER_MODE=$${raster_mode} -DCRT_BURN_IN=$${burn_in} -DCRT_DISPLAY_FRAME=$${display_frame} -DCRT_CHROMA=$${chroma_on} -o $${dynamic_output} $$DYNAMIC_SHADER\n                QMAKE_EXTRA_TARGETS += $${dynamic_target}\n                VARIANT_OUTPUTS += $${dynamic_output}\n            }\n        }\n    }\n}\n\nfor(rgb_shift, BINARY_FLAGS) {\n    for(bloom_on, BINARY_FLAGS) {\n        for(curve_on, BINARY_FLAGS) {\n            for(shine_on, BINARY_FLAGS) {\n                static_variant = terminal_static_rgb$${rgb_shift}_bloom$${bloom_on}_curve$${curve_on}_shine$${shine_on}\n                static_output = $${VARIANT_SHADER_DIR}/$${static_variant}.frag.qsb\n                static_target = shader_variant_$${static_variant}\n                $${static_target}.target = $${static_output}\n                $${static_target}.depends = $$STATIC_SHADER\n                $${static_target}.commands = $$QSB_BIN --glsl \\\"100 es,120,150\\\" --hlsl 50 --msl 12 --qt6 -DCRT_RGB_SHIFT=$${rgb_shift} -DCRT_BLOOM=$${bloom_on} -DCRT_CURVATURE=$${curve_on} -DCRT_FRAME_SHININESS=$${shine_on} -o $${static_output} $$STATIC_SHADER\n                QMAKE_EXTRA_TARGETS += $${static_target}\n                VARIANT_OUTPUTS += $${static_output}\n            }\n        }\n    }\n}\nPRE_TARGETDEPS += $${VARIANT_OUTPUTS}\n\n#########################################\n##              INTALLS\n#########################################\n\ntarget.path += /usr/bin/\n\nINSTALLS += target\n\n# Install icons\nunix {\n    icon32.files = icons/32x32/cool-retro-term.png\n    icon32.path = /usr/share/icons/hicolor/32x32/apps\n    icon64.files = icons/64x64/cool-retro-term.png\n    icon64.path = /usr/share/icons/hicolor/64x64/apps\n    icon128.files = icons/128x128/cool-retro-term.png\n    icon128.path = /usr/share/icons/hicolor/128x128/apps\n    icon256.files = icons/256x256/cool-retro-term.png\n    icon256.path = /usr/share/icons/hicolor/256x256/apps\n\n    INSTALLS += icon32 icon64 icon128 icon256\n}\n"
  },
  {
    "path": "app/fileio.cpp",
    "content": "#include \"fileio.h\"\n\nFileIO::FileIO()\n{\n}\n\nbool FileIO::write(const QString& sourceUrl, const QString& data) {\n    if (sourceUrl.isEmpty())\n        return false;\n\n    QUrl url(sourceUrl);\n    QFile file(url.toLocalFile());\n    if (!file.open(QFile::WriteOnly | QFile::Truncate))\n        return false;\n\n    QTextStream out(&file);\n    out << data;\n    file.close();\n    return true;\n}\n\nQString FileIO::read(const QString& sourceUrl) {\n    if (sourceUrl.isEmpty())\n        return \"\";\n\n    QUrl url(sourceUrl);\n    QFile file(url.toLocalFile());\n    if (!file.open(QFile::ReadOnly))\n        return \"\";\n\n    QTextStream in(&file);\n    QString result = in.readAll();\n\n    file.close();\n\n    return result;\n}\n"
  },
  {
    "path": "app/fileio.h",
    "content": "#ifndef FILEIO_H\n#define FILEIO_H\n\n#include <QObject>\n#include <QFile>\n#include <QTextStream>\n#include <QUrl>\n\nclass FileIO : public QObject\n{\n    Q_OBJECT\n\npublic:\n    FileIO();\n\npublic slots:\n    bool write(const QString& sourceUrl, const QString& data);\n    QString read(const QString& sourceUrl);\n};\n\n#endif // FILEIO_H\n"
  },
  {
    "path": "app/fontlistmodel.cpp",
    "content": "#include \"fontlistmodel.h\"\n\nFontListModel::FontListModel(QObject *parent)\n    : QAbstractListModel(parent)\n{\n}\n\nint FontListModel::rowCount(const QModelIndex &parent) const\n{\n    if (parent.isValid()) {\n        return 0;\n    }\n    return m_fonts.size();\n}\n\nQVariant FontListModel::data(const QModelIndex &index, int role) const\n{\n    if (!index.isValid() || index.row() < 0 || index.row() >= m_fonts.size()) {\n        return QVariant();\n    }\n\n    const FontEntry &font = m_fonts.at(index.row());\n\n    switch (role) {\n    case NameRole:\n        return font.name;\n    case TextRole:\n        return font.text;\n    case SourceRole:\n        return font.source;\n    case BaseWidthRole:\n        return font.baseWidth;\n    case PixelSizeRole:\n        return font.pixelSize;\n    case LowResolutionRole:\n        return font.lowResolutionFont;\n    case IsSystemRole:\n        return font.isSystemFont;\n    case FamilyRole:\n        return font.family;\n    case FallbackNameRole:\n        return font.fallbackName;\n    default:\n        return QVariant();\n    }\n}\n\nQHash<int, QByteArray> FontListModel::roleNames() const\n{\n    QHash<int, QByteArray> roles;\n    roles[NameRole] = \"name\";\n    roles[TextRole] = \"text\";\n    roles[SourceRole] = \"source\";\n    roles[BaseWidthRole] = \"baseWidth\";\n    roles[PixelSizeRole] = \"pixelSize\";\n    roles[LowResolutionRole] = \"lowResolutionFont\";\n    roles[IsSystemRole] = \"isSystemFont\";\n    roles[FamilyRole] = \"family\";\n    roles[FallbackNameRole] = \"fallbackName\";\n    return roles;\n}\n\nvoid FontListModel::setFonts(const QVector<FontEntry> &fonts)\n{\n    beginResetModel();\n    m_fonts = fonts;\n    endResetModel();\n    emit countChanged();\n}\n\nconst QVector<FontEntry> &FontListModel::fonts() const\n{\n    return m_fonts;\n}\n\nQVariantMap FontListModel::get(int index) const\n{\n    QVariantMap map;\n    if (index < 0 || index >= m_fonts.size()) {\n        return map;\n    }\n\n    const FontEntry &font = m_fonts.at(index);\n    map.insert(\"name\", font.name);\n    map.insert(\"text\", font.text);\n    map.insert(\"source\", font.source);\n    map.insert(\"baseWidth\", font.baseWidth);\n    map.insert(\"pixelSize\", font.pixelSize);\n    map.insert(\"lowResolutionFont\", font.lowResolutionFont);\n    map.insert(\"isSystemFont\", font.isSystemFont);\n    map.insert(\"family\", font.family);\n    map.insert(\"fallbackName\", font.fallbackName);\n    return map;\n}\n"
  },
  {
    "path": "app/fontlistmodel.h",
    "content": "#ifndef FONTLISTMODEL_H\n#define FONTLISTMODEL_H\n\n#include <QAbstractListModel>\n#include <QVector>\n#include <QVariant>\n#include <QVariantMap>\n#include <QString>\n\nstruct FontEntry\n{\n    QString name;\n    QString text;\n    QString source;\n    qreal baseWidth = 1.0;\n    int pixelSize = 0;\n    bool lowResolutionFont = false;\n    bool isSystemFont = false;\n    QString family;\n    QString fallbackName;\n};\n\nclass FontListModel : public QAbstractListModel\n{\n    Q_OBJECT\n    Q_PROPERTY(int count READ rowCount NOTIFY countChanged)\n\npublic:\n    explicit FontListModel(QObject *parent = nullptr);\n\n    enum Roles {\n        NameRole = Qt::UserRole + 1,\n        TextRole,\n        SourceRole,\n        BaseWidthRole,\n        PixelSizeRole,\n        LowResolutionRole,\n        IsSystemRole,\n        FamilyRole,\n        FallbackNameRole\n    };\n\n    int rowCount(const QModelIndex &parent = QModelIndex()) const override;\n    QVariant data(const QModelIndex &index, int role) const override;\n    QHash<int, QByteArray> roleNames() const override;\n\n    void setFonts(const QVector<FontEntry> &fonts);\n    const QVector<FontEntry> &fonts() const;\n\n    Q_INVOKABLE QVariantMap get(int index) const;\n\nsignals:\n    void countChanged();\n\nprivate:\n    QVector<FontEntry> m_fonts;\n};\n\n#endif // FONTLISTMODEL_H\n"
  },
  {
    "path": "app/fontmanager.cpp",
    "content": "#include \"fontmanager.h\"\n\n#include <QFont>\n#include <QFontDatabase>\n#include <QFontMetricsF>\n#include <QtGlobal>\n#include <QtMath>\n\nnamespace {\nconstexpr int kModernRasterization = 4;\nconstexpr int kBaseFontPixelHeight = 32;\nconstexpr int kSystemFontPixelSize = 32;\n}\n\nFontManager::FontManager(QObject *parent)\n    : QObject(parent)\n    , m_fontListModel(this)\n    , m_filteredFontListModel(this)\n{\n    populateBundledFonts();\n    populateSystemFonts();\n    m_fontListModel.setFonts(m_allFonts);\n    updateFilteredFonts();\n    updateComputedFont();\n}\n\nQStringList FontManager::retrieveMonospaceFonts()\n{\n    QStringList result;\n\n    QFontDatabase fontDatabase;\n    const QStringList fontFamilies = fontDatabase.families();\n\n    for (const QString &fontFamily : fontFamilies) {\n        QFont font(fontFamily);\n        if (fontDatabase.isFixedPitch(font.family())) {\n            result.append(fontFamily);\n        }\n    }\n\n    return result;\n}\n\nvoid FontManager::refresh()\n{\n    updateFilteredFonts();\n    updateComputedFont();\n}\n\nFontListModel *FontManager::fontList()\n{\n    return &m_fontListModel;\n}\n\nFontListModel *FontManager::filteredFontList()\n{\n    return &m_filteredFontListModel;\n}\n\nint FontManager::fontSource() const\n{\n    return m_fontSource;\n}\n\nvoid FontManager::setFontSource(int fontSource)\n{\n    if (m_fontSource == fontSource) {\n        return;\n    }\n    m_fontSource = fontSource;\n    emit fontSourceChanged();\n    updateFilteredFonts();\n    updateComputedFont();\n}\n\nint FontManager::rasterization() const\n{\n    return m_rasterization;\n}\n\nvoid FontManager::setRasterization(int rasterization)\n{\n    if (m_rasterization == rasterization) {\n        return;\n    }\n    m_rasterization = rasterization;\n    emit rasterizationChanged();\n    updateFilteredFonts();\n    updateComputedFont();\n}\n\nQString FontManager::fontName() const\n{\n    return m_fontName;\n}\n\nvoid FontManager::setFontName(const QString &fontName)\n{\n    if (m_fontName == fontName) {\n        return;\n    }\n    m_fontName = fontName;\n    emit fontNameChanged();\n    updateFilteredFonts();\n    updateComputedFont();\n}\n\nqreal FontManager::fontScaling() const\n{\n    return m_fontScaling;\n}\n\nvoid FontManager::setFontScaling(qreal fontScaling)\n{\n    if (qFuzzyCompare(m_fontScaling, fontScaling)) {\n        return;\n    }\n    m_fontScaling = fontScaling;\n    emit fontScalingChanged();\n    updateComputedFont();\n}\n\nqreal FontManager::fontWidth() const\n{\n    return m_fontWidth;\n}\n\nvoid FontManager::setFontWidth(qreal fontWidth)\n{\n    if (qFuzzyCompare(m_fontWidth, fontWidth)) {\n        return;\n    }\n    m_fontWidth = fontWidth;\n    emit fontWidthChanged();\n    updateComputedFont();\n}\n\nqreal FontManager::lineSpacing() const\n{\n    return m_lineSpacing;\n}\n\nvoid FontManager::setLineSpacing(qreal lineSpacing)\n{\n    if (qFuzzyCompare(m_lineSpacing, lineSpacing)) {\n        return;\n    }\n    m_lineSpacing = lineSpacing;\n    emit lineSpacingChanged();\n    updateComputedFont();\n}\n\nqreal FontManager::baseFontScaling() const\n{\n    return m_baseFontScaling;\n}\n\nvoid FontManager::setBaseFontScaling(qreal baseFontScaling)\n{\n    if (qFuzzyCompare(m_baseFontScaling, baseFontScaling)) {\n        return;\n    }\n    m_baseFontScaling = baseFontScaling;\n    emit baseFontScalingChanged();\n    updateComputedFont();\n}\n\nbool FontManager::lowResolutionFont() const\n{\n    return m_lowResolutionFont;\n}\n\nvoid FontManager::setFontSubstitutions(const QString &family, const QStringList &substitutes)\n{\n    if (family.isEmpty()) {\n        return;\n    }\n\n    QFont::removeSubstitutions(family);\n\n    if (substitutes.isEmpty()) {\n        return;\n    }\n\n    QFont::insertSubstitutions(family, substitutes);\n}\n\nvoid FontManager::removeFontSubstitution(const QString &family)\n{\n    if (family.isEmpty()) {\n        return;\n    }\n\n    QFont::removeSubstitutions(family);\n}\n\nvoid FontManager::populateBundledFonts()\n{\n    m_allFonts.clear();\n\n    addBundledFont(\n        \"TERMINESS_SCALED\",\n        \"Terminess\",\n        \":/fonts/terminus/TerminessNerdFontMono-Regular.ttf\",\n        1.0,\n        12,\n        true);\n    addBundledFont(\n        \"BIGBLUE_TERMINAL_SCALED\",\n        \"BigBlue Terminal\",\n        \":/fonts/bigblue-terminal/BigBlueTerm437NerdFontMono-Regular.ttf\",\n        1.0,\n        12,\n        true);\n    addBundledFont(\n        \"EXCELSIOR_SCALED\",\n        \"Fixedsys Excelsior\",\n        \":/fonts/fixedsys-excelsior/FSEX301-L2.ttf\",\n        1.0,\n        16,\n        true,\n        \"UNSCII_16_SCALED\");\n    addBundledFont(\n        \"GREYBEARD_SCALED\",\n        \"Greybeard\",\n        \":/fonts/greybeard/Greybeard-16px.ttf\",\n        1.0,\n        16,\n        true,\n        \"UNSCII_16_SCALED\");\n    addBundledFont(\n        \"COMMODORE_PET_SCALED\",\n        \"Commodore PET\",\n        \":/fonts/pet-me/PetMe.ttf\",\n        0.5,\n        8,\n        true,\n        \"UNSCII_8_SCALED\");\n    addBundledFont(\n        \"GOHU_11_SCALED\",\n        \"Gohu 11\",\n        \":/fonts/gohu/GohuFont11NerdFontMono-Regular.ttf\",\n        1.0,\n        11,\n        true);\n    addBundledFont(\n        \"COZETTE_SCALED\",\n        \"Cozette\",\n        \":/fonts/cozette/CozetteVector.ttf\",\n        1.0,\n        13,\n        true);\n    addBundledFont(\n        \"UNSCII_8_SCALED\",\n        \"Unscii 8\",\n        \":/fonts/unscii/unscii-8.ttf\",\n        0.5,\n        8,\n        true,\n        \"UNSCII_8_SCALED\");\n    addBundledFont(\n        \"UNSCII_8_THIN_SCALED\",\n        \"Unscii 8 Thin\",\n        \":/fonts/unscii/unscii-8-thin.ttf\",\n        0.5,\n        8,\n        true,\n        \"UNSCII_8_SCALED\");\n    addBundledFont(\n        \"UNSCII_16_SCALED\",\n        \"Unscii 16\",\n        \":/fonts/unscii/unscii-16-full.ttf\",\n        1.0,\n        16,\n        true,\n        \"UNSCII_16_SCALED\");\n    addBundledFont(\n        \"APPLE_II_SCALED\",\n        \"Apple ][\",\n        \":/fonts/apple2/PrintChar21.ttf\",\n        0.5,\n        8,\n        true,\n        \"UNSCII_8_SCALED\");\n    addBundledFont(\n        \"ATARI_400_SCALED\",\n        \"Atari 400-800\",\n        \":/fonts/atari-400-800/AtariClassic-Regular.ttf\",\n        0.5,\n        8,\n        true,\n        \"UNSCII_8_SCALED\");\n    addBundledFont(\n        \"COMMODORE_64_SCALED\",\n        \"Commodore 64\",\n        \":/fonts/pet-me/PetMe64.ttf\",\n        0.5,\n        8,\n        true,\n        \"UNSCII_8_SCALED\");\n    addBundledFont(\n        \"IBM_EGA_8x8\",\n        \"IBM EGA 8x8\",\n        \":/fonts/oldschool-pc-fonts/PxPlus_IBM_EGA_8x8.ttf\",\n        0.5,\n        8,\n        true,\n        \"UNSCII_8_SCALED\");\n    addBundledFont(\n        \"IBM_VGA_8x16\",\n        \"IBM VGA 8x16\",\n        \":/fonts/oldschool-pc-fonts/PxPlus_IBM_VGA_8x16.ttf\",\n        1.0,\n        16,\n        true,\n        \"UNSCII_16_SCALED\");\n\n    addBundledFont(\n        \"TERMINESS\",\n        \"Terminess\",\n        \":/fonts/terminus/TerminessNerdFontMono-Regular.ttf\",\n        1.0,\n        32,\n        false);\n    addBundledFont(\n        \"HACK\",\n        \"Hack\",\n        \":/fonts/hack/HackNerdFontMono-Regular.ttf\",\n        1.0,\n        32,\n        false);\n    addBundledFont(\n        \"FIRA_CODE\",\n        \"Fira Code\",\n        \":/fonts/fira-code/FiraCodeNerdFontMono-Regular.ttf\",\n        1.0,\n        32,\n        false);\n    addBundledFont(\n        \"IOSEVKA\",\n        \"Iosevka\",\n        \":/fonts/iosevka/IosevkaTermNerdFontMono-Regular.ttf\",\n        1.0,\n        32,\n        false);\n    addBundledFont(\n        \"JETBRAINS_MONO\",\n        \"JetBrains Mono\",\n        \":/fonts/jetbrains-mono/JetBrainsMonoNerdFontMono-Regular.ttf\",\n        1.0,\n        32,\n        false);\n    addBundledFont(\n        \"IBM_3278\",\n        \"IBM 3278\",\n        \":/fonts/ibm-3278/3270NerdFontMono-Regular.ttf\",\n        1.0,\n        32,\n        false);\n    addBundledFont(\n        \"SOURCE_CODE_PRO\",\n        \"Source Code Pro\",\n        \":/fonts/source-code-pro/SauceCodeProNerdFontMono-Regular.ttf\",\n        1.0,\n        32,\n        false);\n    addBundledFont(\n        \"DEPARTURE_MONO_SCALED\",\n        \"Departure Mono\",\n        \":/fonts/departure-mono/DepartureMonoNerdFontMono-Regular.otf\",\n        1.0,\n        11,\n        true);\n    addBundledFont(\n        \"OPENDYSLEXIC\",\n        \"OpenDyslexic\",\n        \":/fonts/opendyslexic/OpenDyslexicMNerdFontMono-Regular.otf\",\n        1.0,\n        32,\n        false);\n}\n\nvoid FontManager::addBundledFont(const QString &name,\n                                 const QString &text,\n                                 const QString &source,\n                                 qreal baseWidth,\n                                 int pixelSize,\n                                 bool lowResolutionFont,\n                                 const QString &fallbackName)\n{\n    FontEntry entry;\n    entry.name = name;\n    entry.text = text;\n    entry.source = source;\n    entry.pixelSize = pixelSize;\n    entry.lowResolutionFont = lowResolutionFont;\n    entry.isSystemFont = false;\n    entry.fallbackName = fallbackName;\n    entry.family = resolveFontFamily(source);\n    entry.baseWidth = lowResolutionFont\n        ? computeBaseWidth(entry.family, pixelSize, baseWidth)\n        : baseWidth;\n    m_allFonts.append(entry);\n}\n\nvoid FontManager::populateSystemFonts()\n{\n    const QStringList families = retrieveMonospaceFonts();\n    for (const QString &family : families) {\n        if (m_bundledFamilies.contains(family)) {\n            continue;\n        }\n        FontEntry entry;\n        entry.name = family;\n        entry.text = family;\n        entry.source = QString();\n        entry.baseWidth = 1.0;\n        entry.pixelSize = kSystemFontPixelSize;\n        entry.lowResolutionFont = false;\n        entry.isSystemFont = true;\n        entry.family = family;\n        m_allFonts.append(entry);\n    }\n}\n\nvoid FontManager::updateFilteredFonts()\n{\n    QVector<FontEntry> filtered;\n    bool fontNameFound = false;\n    const bool modernMode = (m_rasterization == kModernRasterization);\n\n    for (const FontEntry &font : m_allFonts) {\n        const bool isBundled = !font.isSystemFont;\n        const bool matchesSource = (m_fontSource == 0 && isBundled)\n            || (m_fontSource == 1 && font.isSystemFont);\n\n        if (!matchesSource) {\n            continue;\n        }\n\n        const bool matchesRasterization = font.isSystemFont\n            || (modernMode == !font.lowResolutionFont);\n\n        if (!matchesRasterization) {\n            continue;\n        }\n\n        filtered.append(font);\n        if (font.name == m_fontName) {\n            fontNameFound = true;\n        }\n    }\n\n    if (!fontNameFound && !filtered.isEmpty()) {\n        if (m_fontName != filtered.first().name) {\n            m_fontName = filtered.first().name;\n            emit fontNameChanged();\n        }\n    }\n\n    m_filteredFontListModel.setFonts(filtered);\n    emit filteredFontListChanged();\n}\n\nvoid FontManager::updateComputedFont()\n{\n    const FontEntry *font = findFontByName(m_fontName);\n    if (!font) {\n        const QVector<FontEntry> &filteredFonts = m_filteredFontListModel.fonts();\n        if (!filteredFonts.isEmpty()) {\n            font = &filteredFonts.first();\n        }\n    }\n\n    if (!font) {\n        return;\n    }\n\n    const qreal totalFontScaling = m_baseFontScaling * m_fontScaling;\n    const qreal targetPixelHeight = kBaseFontPixelHeight * totalFontScaling;\n    const qreal lineSpacingFactor = m_lineSpacing;\n\n    const int lineSpacing = qRound(targetPixelHeight * lineSpacingFactor);\n    const int pixelSize = font->lowResolutionFont\n        ? font->pixelSize\n        : static_cast<int>(targetPixelHeight);\n\n    const qreal nativeLineHeight = font->pixelSize + qRound(font->pixelSize * lineSpacingFactor);\n    const qreal targetLineHeight = targetPixelHeight + lineSpacing;\n    const qreal screenScaling = font->lowResolutionFont\n        ? (nativeLineHeight > 0 ? targetLineHeight / nativeLineHeight : 1.0)\n        : 1.0;\n\n    const qreal fontWidth = font->baseWidth * m_fontWidth;\n\n    QString fontFamily = font->family.isEmpty() ? font->name : font->family;\n    QString fallbackFontFamily;\n\n    if (!font->fallbackName.isEmpty() && font->fallbackName != font->name) {\n        const FontEntry *fallback = findFontByName(font->fallbackName);\n        if (fallback) {\n            fallbackFontFamily = fallback->family.isEmpty() ? fallback->name : fallback->family;\n        }\n    }\n\n    QStringList fallbackChain;\n    if (!fallbackFontFamily.isEmpty()) {\n        fallbackChain.append(fallbackFontFamily);\n    }\n#if defined(Q_OS_MAC)\n    fallbackChain.append(QStringLiteral(\"Menlo\"));\n#else\n    fallbackChain.append(QStringLiteral(\"Monospace\"));\n#endif\n    setFontSubstitutions(fontFamily, fallbackChain);\n\n    if (m_lowResolutionFont != font->lowResolutionFont) {\n        m_lowResolutionFont = font->lowResolutionFont;\n        emit lowResolutionFontChanged();\n    }\n\n    emit terminalFontChanged(fontFamily,\n                             pixelSize,\n                             lineSpacing,\n                             screenScaling,\n                             fontWidth,\n                             fallbackFontFamily,\n                             font->lowResolutionFont);\n}\n\nconst FontEntry *FontManager::findFontByName(const QString &name) const\n{\n    for (const FontEntry &font : m_allFonts) {\n        if (font.name == name) {\n            return &font;\n        }\n    }\n    return nullptr;\n}\n\nQString FontManager::resolveFontFamily(const QString &sourcePath)\n{\n    const auto cached = m_loadedFamilies.constFind(sourcePath);\n    if (cached != m_loadedFamilies.constEnd()) {\n        return cached.value();\n    }\n\n    const int fontId = QFontDatabase::addApplicationFont(sourcePath);\n    QString family;\n    if (fontId != -1) {\n        const QStringList families = QFontDatabase::applicationFontFamilies(fontId);\n        if (!families.isEmpty()) {\n            family = families.first();\n        }\n    }\n\n    if (!family.isEmpty()) {\n        m_bundledFamilies.insert(family);\n    }\n\n    m_loadedFamilies.insert(sourcePath, family);\n    return family;\n}\n\nqreal FontManager::computeBaseWidth(const QString &family, int pixelSize, qreal fallbackWidth) const\n{\n    if (family.isEmpty()) {\n        return fallbackWidth;\n    }\n\n    QFont font(family);\n    font.setPixelSize(pixelSize);\n    QFontMetricsF metrics(font);\n\n    const qreal glyphWidth = metrics.horizontalAdvance(QLatin1String(\"M\"));\n    const qreal glyphHeight = metrics.height();\n    if (glyphWidth <= 0.0 || glyphHeight <= 0.0) {\n        return fallbackWidth;\n    }\n\n    const qreal targetRatio = 0.5;\n    qreal computedWidth = (targetRatio * glyphHeight) / glyphWidth;\n    return qBound(0.25, computedWidth, 2.0);\n}\n"
  },
  {
    "path": "app/fontmanager.h",
    "content": "#ifndef FONTMANAGER_H\n#define FONTMANAGER_H\n\n#include <QObject>\n#include <QStringList>\n#include <QHash>\n#include <QSet>\n\n#include \"fontlistmodel.h\"\n\nclass FontManager : public QObject\n{\n    Q_OBJECT\n    Q_PROPERTY(FontListModel *fontList READ fontList CONSTANT)\n    Q_PROPERTY(FontListModel *filteredFontList READ filteredFontList NOTIFY filteredFontListChanged)\n    Q_PROPERTY(int fontSource READ fontSource WRITE setFontSource NOTIFY fontSourceChanged)\n    Q_PROPERTY(int rasterization READ rasterization WRITE setRasterization NOTIFY rasterizationChanged)\n    Q_PROPERTY(QString fontName READ fontName WRITE setFontName NOTIFY fontNameChanged)\n    Q_PROPERTY(qreal fontScaling READ fontScaling WRITE setFontScaling NOTIFY fontScalingChanged)\n    Q_PROPERTY(qreal fontWidth READ fontWidth WRITE setFontWidth NOTIFY fontWidthChanged)\n    Q_PROPERTY(qreal lineSpacing READ lineSpacing WRITE setLineSpacing NOTIFY lineSpacingChanged)\n    Q_PROPERTY(qreal baseFontScaling READ baseFontScaling WRITE setBaseFontScaling NOTIFY baseFontScalingChanged)\n    Q_PROPERTY(bool lowResolutionFont READ lowResolutionFont NOTIFY lowResolutionFontChanged)\n\npublic:\n    explicit FontManager(QObject *parent = nullptr);\n\n    Q_INVOKABLE void refresh();\n\n    FontListModel *fontList();\n    FontListModel *filteredFontList();\n\n    int fontSource() const;\n    void setFontSource(int fontSource);\n\n    int rasterization() const;\n    void setRasterization(int rasterization);\n\n    QString fontName() const;\n    void setFontName(const QString &fontName);\n\n    qreal fontScaling() const;\n    void setFontScaling(qreal fontScaling);\n\n    qreal fontWidth() const;\n    void setFontWidth(qreal fontWidth);\n\n    qreal lineSpacing() const;\n    void setLineSpacing(qreal lineSpacing);\n\n    qreal baseFontScaling() const;\n    void setBaseFontScaling(qreal baseFontScaling);\n\n    bool lowResolutionFont() const;\n\nsignals:\n    void fontSourceChanged();\n    void rasterizationChanged();\n    void fontNameChanged();\n    void fontScalingChanged();\n    void fontWidthChanged();\n    void lineSpacingChanged();\n    void baseFontScalingChanged();\n    void lowResolutionFontChanged();\n    void filteredFontListChanged();\n\n    void terminalFontChanged(QString fontFamily,\n                             int pixelSize,\n                             int lineSpacing,\n                             qreal screenScaling,\n                             qreal fontWidth,\n                             QString fallbackFontFamily,\n                             bool lowResolutionFont);\n\nprivate:\n    QStringList retrieveMonospaceFonts();\n    void populateBundledFonts();\n    void populateSystemFonts();\n    void addBundledFont(const QString &name,\n                        const QString &text,\n                        const QString &source,\n                        qreal baseWidth,\n                        int pixelSize,\n                        bool lowResolutionFont,\n                        const QString &fallbackName = QString());\n    void setFontSubstitutions(const QString &family, const QStringList &substitutes);\n    void removeFontSubstitution(const QString &family);\n    void updateFilteredFonts();\n    void updateComputedFont();\n    const FontEntry *findFontByName(const QString &name) const;\n    QString resolveFontFamily(const QString &sourcePath);\n    qreal computeBaseWidth(const QString &family, int pixelSize, qreal fallbackWidth) const;\n\n    FontListModel m_fontListModel;\n    FontListModel m_filteredFontListModel;\n    QVector<FontEntry> m_allFonts;\n\n    int m_fontSource = 0;\n    int m_rasterization = 0;\n    QString m_fontName = QStringLiteral(\"TERMINESS_SCALED\");\n    qreal m_fontScaling = 1.0;\n    qreal m_fontWidth = 1.0;\n    qreal m_lineSpacing = 0.1;\n    qreal m_baseFontScaling = 0.75;\n    bool m_lowResolutionFont = false;\n\n    QHash<QString, QString> m_loadedFamilies;\n    QSet<QString> m_bundledFamilies;\n};\n\n#endif // FONTMANAGER_H\n"
  },
  {
    "path": "app/main.cpp",
    "content": "#include <QtQml/QQmlApplicationEngine>\n#include <QtGui/QGuiApplication>\n\n#include <QQmlContext>\n#include <QStringList>\n\n#include <QDir>\n\n#include <QtWidgets/QApplication>\n#include <QIcon>\n#include <QQuickStyle>\n#include <QtQml/qqml.h>\n\n#include <kdsingleapplication.h>\n\n#include <QDebug>\n#include <stdlib.h>\n\n#include <QLoggingCategory>\n\n#include <fileio.h>\n#include <fontlistmodel.h>\n#include <fontmanager.h>\n\n#if defined(Q_OS_MAC)\n#include <CoreFoundation/CoreFoundation.h>\n#include <QStyleFactory>\n#include <QMenu>\n#endif\n\nQString getNamedArgument(QStringList args, QString name, QString defaultName)\n{\n    int index = args.indexOf(name);\n    return (index != -1) ? args[index + 1] : QString(defaultName);\n}\n\nQString getNamedArgument(QStringList args, QString name)\n{\n    return getNamedArgument(args, name, \"\");\n}\n\nint main(int argc, char *argv[])\n{\n    // Some environmental variable are necessary on certain platforms.\n    // Disable Connections slot warnings\n    QLoggingCategory::setFilterRules(\"qt.qml.connections.warning=false\");\n    QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Round);\n\n// #if defined (Q_OS_LINUX)\n//     setenv(\"QSG_RENDER_LOOP\", \"threaded\", 0);\n// #endif\n\n#if defined(Q_OS_MAC)\n    // This allows UTF-8 characters usage in OSX.\n    setenv(\"LC_CTYPE\", \"UTF-8\", 1);\n\n    // Ensure key repeat works for letter keys (disable macOS press-and-hold for this app).\n    CFPreferencesSetAppValue(CFSTR(\"ApplePressAndHoldEnabled\"), kCFBooleanFalse, kCFPreferencesCurrentApplication);\n    CFPreferencesAppSynchronize(kCFPreferencesCurrentApplication);\n\n    // Qt6 macOS default look is still lacking, so let's force Fusion for now\n    QQuickStyle::setStyle(QStringLiteral(\"Fusion\"));\n#endif\n\n    if (argc>1 && (!strcmp(argv[1],\"-h\") || !strcmp(argv[1],\"--help\"))) {\n        QTextStream cout(stdout, QIODevice::WriteOnly);\n        cout << \"Usage: \" << argv[0] << \" [--default-settings] [--workdir <dir>] [--program <prog>] [-p|--profile <prof>] [--fullscreen] [-h|--help]\" << Qt::endl;\n        cout << \"  --default-settings  Run cool-retro-term with the default settings\" << Qt::endl;\n        cout << \"  --workdir <dir>     Change working directory to 'dir'\" << Qt::endl;\n        cout << \"  -e <cmd>            Command to execute. This option will catch all following arguments, so use it as the last option.\" << Qt::endl;\n        cout << \"  --fullscreen        Run cool-retro-term in fullscreen.\" << Qt::endl;\n        cout << \"  -p|--profile <prof> Run cool-retro-term with the given profile.\" << Qt::endl;\n        cout << \"  -h|--help           Print this help.\" << Qt::endl;\n        cout << \"  --verbose           Print additional information such as profiles and settings.\" << Qt::endl;\n        return 0;\n    }\n\n    QString appVersion(QStringLiteral(APP_VERSION));\n\n    if (argc>1 && (!strcmp(argv[1],\"-v\") || !strcmp(argv[1],\"--version\"))) {\n        QTextStream cout(stdout, QIODevice::WriteOnly);\n        cout << \"cool-retro-term \" << appVersion << Qt::endl;\n        return 0;\n    }\n\n    QApplication app(argc, argv);\n    app.setAttribute(Qt::AA_MacDontSwapCtrlAndMeta, true);\n    app.setApplicationName(QStringLiteral(\"cool-retro-term\"));\n    app.setOrganizationName(QStringLiteral(\"cool-retro-term\"));\n    app.setOrganizationDomain(QStringLiteral(\"cool-retro-term\"));\n    app.setApplicationVersion(appVersion);\n\n    KDSingleApplication singleApp(QStringLiteral(\"cool-retro-term\"));\n\n    if (!singleApp.isPrimaryInstance()) {\n        if (singleApp.sendMessage(\"new-window\"))\n            return 0;\n        qWarning() << \"KDSingleApplication: primary not reachable, continuing as independent instance.\";\n    }\n\n    QQmlApplicationEngine engine;\n    FileIO fileIO;\n\n    qmlRegisterType<FontManager>(\"CoolRetroTerm\", 1, 0, \"FontManager\");\n    qmlRegisterUncreatableType<FontListModel>(\"CoolRetroTerm\", 1, 0, \"FontListModel\", \"FontListModel is created by FontManager\");\n\n#if !defined(Q_OS_MAC)\n    app.setWindowIcon(QIcon::fromTheme(\"cool-retro-term\", QIcon(\":../icons/32x32/cool-retro-term.png\")));\n#if defined(Q_OS_LINUX)\n    QGuiApplication::setDesktopFileName(QStringLiteral(\"cool-retro-term\"));\n#endif\n#else\n    app.setWindowIcon(QIcon(\":../icons/32x32/cool-retro-term.png\"));\n#endif\n\n    // Manage command line arguments from the cpp side\n    QStringList args = app.arguments();\n\n    // Manage default command\n    QStringList cmdList;\n    if (args.contains(\"-e\")) {\n        cmdList << args.mid(args.indexOf(\"-e\") + 1);\n    }\n    QVariant command(cmdList.empty() ? QVariant() : cmdList[0]);\n    QVariant commandArgs(cmdList.size() <= 1 ? QVariant() : QVariant(cmdList.mid(1)));\n    engine.rootContext()->setContextProperty(\"appVersion\", appVersion);\n    engine.rootContext()->setContextProperty(\"defaultCmd\", command);\n    engine.rootContext()->setContextProperty(\"defaultCmdArgs\", commandArgs);\n\n    engine.rootContext()->setContextProperty(\"workdir\", getNamedArgument(args, \"--workdir\", QDir::currentPath()));\n    engine.rootContext()->setContextProperty(\"fileIO\", &fileIO);\n\n    // Manage import paths for Linux and OSX.\n    QStringList importPathList = engine.importPathList();\n    importPathList.append(QCoreApplication::applicationDirPath() + \"/qmltermwidget\");\n    importPathList.append(QCoreApplication::applicationDirPath() + \"/../PlugIns\");\n    importPathList.append(QCoreApplication::applicationDirPath() + \"/../../../qmltermwidget\");\n    engine.setImportPathList(importPathList);\n\n    engine.load(QUrl(QStringLiteral (\"qrc:/main.qml\")));\n\n    if (engine.rootObjects().isEmpty()) {\n        qDebug() << \"Cannot load QML interface\";\n        return EXIT_FAILURE;\n    }\n\n    // Quit the application when the engine closes.\n    QObject::connect((QObject*) &engine, SIGNAL(quit()), (QObject*) &app, SLOT(quit()));\n\n    auto requestNewWindow = [&engine]() {\n        if (engine.rootObjects().isEmpty())\n            return;\n\n        QObject *rootObject = engine.rootObjects().constFirst();\n        QMetaObject::invokeMethod(rootObject, \"createWindow\", Qt::QueuedConnection);\n    };\n\n    QObject::connect(&singleApp, &KDSingleApplication::messageReceived, &app,\n                     [&requestNewWindow](const QByteArray &message) {\n        if (message.isEmpty() || message == QByteArray(\"new-window\"))\n            requestNewWindow();\n    });\n\n#if defined(Q_OS_MAC)\n    QMenu *dockMenu = new QMenu(nullptr);\n    dockMenu->addAction(QObject::tr(\"New Window\"), [&requestNewWindow]() { requestNewWindow(); });\n    dockMenu->setAsDockMenu();\n#endif\n\n    return app.exec();\n}\n"
  },
  {
    "path": "app/qml/AboutDialog.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.2\nimport QtQuick.Layouts 1.1\nimport QtQuick.Window 2.0\n\nApplicationWindow {\n    id: dialogwindow\n    title: qsTr(\"About\")\n    width: 600\n    height: 400\n\n    ColumnLayout {\n        anchors.fill: parent\n        anchors.margins: 15\n        spacing: 15\n        Text {\n            Layout.alignment: Qt.AlignHCenter\n            text: \"cool-retro-term\"\n            color: palette.text\n            font {\n                bold: true\n                pointSize: 18\n            }\n        }\n        Loader {\n            id: mainContent\n            Layout.fillHeight: true\n            Layout.fillWidth: true\n\n            states: [\n                State {\n                    name: \"Default\"\n                    PropertyChanges {\n                        target: mainContent\n                        sourceComponent: defaultComponent\n                    }\n                },\n                State {\n                    name: \"License\"\n                    PropertyChanges {\n                        target: mainContent\n                        sourceComponent: licenseComponent\n                    }\n                }\n            ]\n            Component.onCompleted: mainContent.state = \"Default\"\n        }\n        Item {\n            Layout.fillWidth: true\n            height: childrenRect.height\n            Button {\n                anchors.left: parent.left\n                text: qsTr(\"License\")\n                onClicked: {\n                    mainContent.state == \"Default\" ? mainContent.state\n                                                     = \"License\" : mainContent.state = \"Default\"\n                }\n            }\n            Button {\n                anchors.right: parent.right\n                text: qsTr(\"Close\")\n                onClicked: dialogwindow.close()\n            }\n        }\n    }\n    // MAIN COMPONENTS ////////////////////////////////////////////////////////\n    Component {\n        id: defaultComponent\n        ColumnLayout {\n            anchors.fill: parent\n            spacing: 10\n            Image {\n                Layout.fillWidth: true\n                Layout.fillHeight: true\n                Layout.alignment: Qt.AlignHCenter\n                fillMode: Image.PreserveAspectFit\n                source: \"images/crt256.png\"\n                smooth: true\n            }\n            Text {\n                Layout.alignment: Qt.AlignCenter\n                horizontalAlignment: Text.AlignHCenter\n                color: palette.text\n                text: appSettings.version + \"\\n\" + qsTr(\n                          \"Author: \") + \"Filippo Scognamiglio\\n\" + qsTr(\n                          \"Email: \") + \"flscogna@gmail.com\\n\" + qsTr(\n                          \"Source: \") + \"https://github.com/Swordfish90/cool-retro-term\\n\"\n            }\n        }\n    }\n    Component {\n        id: licenseComponent\n        ScrollView {\n            anchors.fill: parent\n            clip: true\n            TextArea {\n                readOnly: true\n                wrapMode: TextEdit.Wrap\n                color: palette.text\n                text: \"Copyright (c) 2013-2025 Filippo Scognamiglio <flscogna@gmail.com>\\n\\n\"\n                      + \"https://github.com/Swordfish90/cool-retro-term\\n\\n\" +\n                      \"cool-retro-term is free software: you can redistribute it and/or modify \"\n                      + \"it under the terms of the GNU General Public License as published by \"\n                      + \"the Free Software Foundation, either version 3 of the License, or \"\n                      + \"(at your option) any later version.\\n\\n\" +\n                      \"This program is distributed in the hope that it will be useful, \"\n                      + \"but WITHOUT ANY WARRANTY; without even the implied warranty of \"\n                      + \"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the \"\n                      + \"GNU General Public License for more details.\\n\\n\" +\n                      \"You should have received a copy of the GNU General Public License \"\n                      + \"along with this program.  If not, see <http://www.gnu.org/licenses/>.\"\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/ApplicationSettings.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.0\nimport CoolRetroTerm 1.0\n\nimport \"utils.js\" as Utils\n\nQtObject {\n    readonly property string version: appVersion\n    readonly property int profileVersion: 2\n\n    // STATIC CONSTANTS ////////////////////////////////////////////////////////\n    readonly property real screenCurvatureSize: 0.6\n    readonly property real minimumFontScaling: 0.25\n    readonly property real maximumFontScaling: 2.50\n\n    readonly property int defaultMargin: 16\n\n    readonly property real minBurnInFadeTime: 0.16\n    readonly property real maxBurnInFadeTime: 1.6\n\n    property bool isMacOS: Qt.platform.os === \"osx\"\n\n    // GENERAL SETTINGS ///////////////////////////////////////////////////////\n    property bool showMenubar: false\n\n    property bool showTerminalSize: true\n    property real windowScaling: 1.0\n\n    property int effectsFrameSkip: 3\n    property bool verbose: false\n\n    property real bloomQuality: 0.5\n    property real burnInQuality: 0.5\n\n    property bool blinkingCursor: false\n\n\n    // PROFILE SETTINGS ///////////////////////////////////////////////////////\n    property real windowOpacity: 1.0\n    property real ambientLight: 0.2\n    property real contrast: 0.80\n    property real brightness: 0.5\n\n    property bool useCustomCommand: false\n    property string customCommand: \"\"\n\n    property string _backgroundColor: \"#000000\"\n    property string _fontColor: \"#ff8100\"\n    property string _frameColor: \"#ffffff\"\n    property string saturatedColor: Utils.mix(Utils.strToColor(_fontColor), Utils.strToColor(\"#FFFFFF\"), (saturationColor * 0.5))\n    property color fontColor: Utils.mix(Utils.strToColor(_backgroundColor), Utils.strToColor(saturatedColor), (0.7 + (contrast * 0.3)))\n    property color backgroundColor: Utils.mix(Utils.strToColor(saturatedColor), Utils.strToColor(_backgroundColor), (0.7 + (contrast * 0.3)))\n    property color frameColor: Utils.strToColor(_frameColor)\n\n    property real staticNoise: 0.12\n    property real screenCurvature: 0.3\n    property real glowingLine: 0.2\n    property real burnIn: 0.25\n    property real bloom: 0.55\n\n    property real chromaColor: 0.25\n    property real saturationColor: 0.25\n\n    property real jitter: 0.2\n\n    property real horizontalSync: 0.08\n    property real flickering: 0.1\n\n    property real rgbShift: 0.0\n\n    property real _frameShininess: 0.2\n    property real frameShininess: _frameShininess * 0.5\n\n    property real _frameSize: 0.2\n    property real frameSize: _frameSize * 0.05\n\n    property real _screenRadius: 0.2\n    property real screenRadius: Utils.lint(4.0, 120.0, _screenRadius)\n\n    property real _margin: 0.5\n    property real margin: Utils.lint(1.0, 40.0, _margin) + (1.0 - Math.SQRT1_2) * screenRadius\n\n    readonly property bool frameEnabled: ambientLight > 0 || _frameSize > 0 || screenCurvature > 0\n\n    readonly property int no_rasterization: 0\n    readonly property int scanline_rasterization: 1\n    readonly property int pixel_rasterization: 2\n    readonly property int subpixel_rasterization: 3\n    readonly property int modern_rasterization: 4\n\n    property alias rasterization: fontManager.rasterization\n\n    readonly property int bundled_fonts: 0\n    readonly property int system_fonts: 1\n\n    property alias fontSource: fontManager.fontSource\n\n    // FONTS //////////////////////////////////////////////////////////////////\n    readonly property real baseFontScaling: 0.75\n    property alias fontScaling: fontManager.fontScaling\n    property real totalFontScaling: baseFontScaling * fontScaling\n\n    property alias fontWidth: fontManager.fontWidth\n    property alias lineSpacing: fontManager.lineSpacing\n\n    property alias lowResolutionFont: fontManager.lowResolutionFont\n\n    property alias fontName: fontManager.fontName\n    property alias filteredFontList: fontManager.filteredFontList\n\n    property FontManager fontManager: FontManager {\n        id: fontManager\n        baseFontScaling: baseFontScaling\n    }\n\n    signal initializedSettings\n\n    function incrementScaling() {\n        fontScaling = Math.min(fontScaling + 0.05, maximumFontScaling)\n    }\n\n    function decrementScaling() {\n        fontScaling = Math.max(fontScaling - 0.05, minimumFontScaling)\n    }\n\n    function close() {\n        storeSettings()\n        storeCustomProfiles()\n        Qt.quit()\n    }\n\n    property Storage storage: Storage {}\n\n    function stringify(obj) {\n        var replacer = function (key, val) {\n            return val.toFixed ? Number(val.toFixed(4)) : val\n        }\n        return JSON.stringify(obj, replacer, 2)\n    }\n\n    function composeSettingsString() {\n        var settings = {\n            \"effectsFrameSkip\": effectsFrameSkip,\n            \"windowScaling\": windowScaling,\n            \"showTerminalSize\": showTerminalSize,\n            \"fontScaling\": fontScaling,\n            \"showMenubar\": showMenubar,\n            \"bloomQuality\": bloomQuality,\n            \"burnInQuality\": burnInQuality,\n            \"useCustomCommand\": useCustomCommand,\n            \"customCommand\": customCommand\n        }\n        return stringify(settings)\n    }\n\n    function composeProfileObject() {\n        var profile = {\n            \"backgroundColor\": _backgroundColor,\n            \"fontColor\": _fontColor,\n            \"flickering\": flickering,\n            \"horizontalSync\": horizontalSync,\n            \"staticNoise\": staticNoise,\n            \"chromaColor\": chromaColor,\n            \"saturationColor\": saturationColor,\n            \"screenCurvature\": screenCurvature,\n            \"glowingLine\": glowingLine,\n            \"burnIn\": burnIn,\n            \"bloom\": bloom,\n            \"rasterization\": rasterization,\n            \"jitter\": jitter,\n            \"rgbShift\": rgbShift,\n            \"brightness\": brightness,\n            \"contrast\": contrast,\n            \"ambientLight\": ambientLight,\n            \"windowOpacity\": windowOpacity,\n            \"fontName\": fontName,\n            \"fontSource\": fontSource,\n            \"fontWidth\": fontWidth,\n            \"margin\": _margin,\n            \"blinkingCursor\": blinkingCursor,\n            \"frameSize\": _frameSize,\n            \"screenRadius\": _screenRadius,\n            \"frameColor\": _frameColor,\n            \"frameShininess\": _frameShininess\n        }\n        return profile\n    }\n\n    function composeProfileString() {\n        return stringify(composeProfileObject())\n    }\n\n    function loadSettings() {\n        var settingsString = storage.getSetting(\"_CURRENT_SETTINGS\")\n        var profileString = storage.getSetting(\"_CURRENT_PROFILE\")\n\n        if (!settingsString)\n            return\n        if (!profileString)\n            return\n\n        loadSettingsString(settingsString)\n        loadProfileString(profileString)\n\n        if (verbose)\n            console.log(\"Loading settings: \" + settingsString + profileString)\n    }\n\n    function storeSettings() {\n        var settingsString = composeSettingsString()\n        var profileString = composeProfileString()\n\n        storage.setSetting(\"_CURRENT_SETTINGS\", settingsString)\n        storage.setSetting(\"_CURRENT_PROFILE\", profileString)\n\n        if (verbose) {\n            console.log(\"Storing settings: \" + settingsString)\n            console.log(\"Storing profile: \" + profileString)\n        }\n    }\n\n    function loadSettingsString(settingsString) {\n        var settings = JSON.parse(settingsString)\n\n        showTerminalSize = settings.showTerminalSize\n                !== undefined ? settings.showTerminalSize : showTerminalSize\n\n        effectsFrameSkip = settings.effectsFrameSkip !== undefined ? settings.effectsFrameSkip : effectsFrameSkip\n        windowScaling = settings.windowScaling\n                !== undefined ? settings.windowScaling : windowScaling\n\n        fontScaling = settings.fontScaling !== undefined ? settings.fontScaling : fontScaling\n\n        showMenubar = settings.showMenubar !== undefined ? settings.showMenubar : showMenubar\n\n        bloomQuality = settings.bloomQuality !== undefined ? settings.bloomQuality : bloomQuality\n        burnInQuality = settings.burnInQuality\n                !== undefined ? settings.burnInQuality : burnInQuality\n\n        useCustomCommand = settings.useCustomCommand\n                !== undefined ? settings.useCustomCommand : useCustomCommand\n        customCommand = settings.customCommand\n                !== undefined ? settings.customCommand : customCommand\n    }\n\n    function loadProfileString(profileString) {\n        var settings = JSON.parse(profileString)\n\n        _backgroundColor = settings.backgroundColor\n                !== undefined ? settings.backgroundColor : _backgroundColor\n        _fontColor = settings.fontColor !== undefined ? settings.fontColor : _fontColor\n\n        horizontalSync = settings.horizontalSync\n                !== undefined ? settings.horizontalSync : horizontalSync\n        flickering = settings.flickering !== undefined ? settings.flickering : flickering\n        staticNoise = settings.staticNoise !== undefined ? settings.staticNoise : staticNoise\n        chromaColor = settings.chromaColor !== undefined ? settings.chromaColor : chromaColor\n        saturationColor = settings.saturationColor\n                !== undefined ? settings.saturationColor : saturationColor\n        screenCurvature = settings.screenCurvature\n                !== undefined ? settings.screenCurvature : screenCurvature\n        glowingLine = settings.glowingLine !== undefined ? settings.glowingLine : glowingLine\n\n        burnIn = settings.burnIn !== undefined ? settings.burnIn : burnIn\n        bloom = settings.bloom !== undefined ? settings.bloom : bloom\n\n        rasterization = settings.rasterization\n                !== undefined ? settings.rasterization : rasterization\n\n        jitter = settings.jitter !== undefined ? settings.jitter : jitter\n\n        rgbShift = settings.rgbShift !== undefined ? settings.rgbShift : rgbShift\n\n        ambientLight = settings.ambientLight !== undefined ? settings.ambientLight : ambientLight\n        contrast = settings.contrast !== undefined ? settings.contrast : contrast\n        brightness = settings.brightness !== undefined ? settings.brightness : brightness\n        windowOpacity = settings.windowOpacity\n                !== undefined ? settings.windowOpacity : windowOpacity\n\n        fontName = settings.fontName !== undefined ? settings.fontName : fontName\n        fontSource = settings.fontSource !== undefined ? settings.fontSource : fontSource\n        fontWidth = settings.fontWidth !== undefined ? settings.fontWidth : fontWidth\n        lineSpacing = settings.lineSpacing !== undefined ? settings.lineSpacing : lineSpacing\n\n        _margin = settings.margin !== undefined ? settings.margin : _margin\n        _frameSize = settings.frameSize !== undefined ? settings.frameSize : _frameSize\n        _screenRadius = settings.screenRadius !== undefined ? settings.screenRadius : _screenRadius\n        _frameColor = settings.frameColor !== undefined ? settings.frameColor : _frameColor\n        _frameShininess = settings.frameShininess !== undefined ? settings.frameShininess : _frameShininess\n\n        blinkingCursor = settings.blinkingCursor !== undefined ? settings.blinkingCursor : blinkingCursor\n    }\n\n    function storeCustomProfiles() {\n        storage.setSetting(\"_CUSTOM_PROFILES\", composeCustomProfilesString())\n    }\n\n    function loadCustomProfiles() {\n        var customProfileString = storage.getSetting(\"_CUSTOM_PROFILES\")\n        if (customProfileString === undefined)\n            customProfileString = \"[]\"\n        loadCustomProfilesString(customProfileString)\n    }\n\n    function loadCustomProfilesString(customProfilesString) {\n        var customProfiles = JSON.parse(customProfilesString)\n        for (var i = 0; i < customProfiles.length; i++) {\n            var profile = customProfiles[i]\n\n            if (verbose)\n                console.log(\"Loading custom profile: \" + stringify(profile))\n\n            profilesList.append(profile)\n        }\n    }\n\n    function composeCustomProfilesString() {\n        var customProfiles = []\n        for (var i = 0; i < profilesList.count; i++) {\n            var profile = profilesList.get(i)\n            if (profile.builtin)\n                continue\n            customProfiles.push({\n                                    \"text\": profile.text,\n                                    \"obj_string\": profile.obj_string,\n                                    \"builtin\": false\n                                })\n        }\n        return stringify(customProfiles)\n    }\n\n    function loadProfile(index) {\n        var profile = profilesList.get(index)\n        loadProfileString(profile.obj_string)\n    }\n\n    function appendCustomProfile(name, profileString) {\n        profilesList.append({\n                                \"text\": name,\n                                \"obj_string\": profileString,\n                                \"builtin\": false\n                            })\n    }\n\n    // PROFILES ///////////////////////////////////////////////////////////////\n    property ListModel profilesList: ListModel {\n        ListElement {\n            text: \"Default Amber\"\n            obj_string: '{\n                \"ambientLight\": 0.3,\n                \"backgroundColor\": \"#000000\",\n                \"bloom\": 0.6,\n                \"brightness\": 0.5,\n                \"burnIn\": 0.3,\n                \"chromaColor\": 0.2,\n                \"contrast\": 0.8,\n                \"flickering\": 0.1,\n                \"fontColor\": \"#ff8100\",\n                \"fontName\": \"TERMINESS_SCALED\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.2,\n                \"horizontalSync\": 0.1,\n                \"jitter\": 0.2,\n                \"rasterization\": 0,\n                \"rgbShift\": 0,\n                \"saturationColor\": 0.2,\n                \"screenCurvature\": 0.2,\n                \"screenRadius\": 0.1,\n                \"staticNoise\": 0.1,\n                \"windowOpacity\": 1,\n                \"margin\": 0.3,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0.1,\n                \"frameColor\": \"#cfcfcf\",\n                \"frameShininess\": 0.3\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Monochrome Green\"\n            obj_string: '{\n                \"ambientLight\": 0.3,\n                \"backgroundColor\": \"#000000\",\n                \"bloom\": 0.5,\n                \"brightness\": 0.5,\n                \"burnIn\": 0.3,\n                \"chromaColor\": 0.0,\n                \"contrast\": 0.8,\n                \"flickering\": 0.1,\n                \"fontColor\": \"#0ccc68\",\n                \"fontName\": \"DEPARTURE_MONO_SCALED\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.2,\n                \"horizontalSync\": 0.1,\n                \"jitter\": 0.2,\n                \"rasterization\": 0,\n                \"rgbShift\": 0,\n                \"saturationColor\": 0.0,\n                \"screenCurvature\": 0.3,\n                \"screenRadius\": 0.2,\n                \"staticNoise\": 0.1,\n                \"windowOpacity\": 1,\n                \"margin\": 0.3,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0.1,\n                \"frameColor\": \"#d4d4d4\",\n                \"frameShininess\": 0.1\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Deep Blue\"\n            obj_string: '{\n                \"ambientLight\": 0.0,\n                \"backgroundColor\": \"#000000\",\n                \"bloom\": 0.6,\n                \"brightness\": 0.5,\n                \"burnIn\": 0.3,\n                \"chromaColor\": 1.0,\n                \"contrast\": 0.8,\n                \"flickering\": 0.1,\n                \"fontColor\": \"#7fb4ff\",\n                \"fontName\": \"BIGBLUE_TERMINAL_SCALED\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.2,\n                \"horizontalSync\": 0.1,\n                \"jitter\": 0.2,\n                \"rasterization\": 0,\n                \"rgbShift\": 0,\n                \"saturationColor\": 0.2,\n                \"screenCurvature\": 0.4,\n                \"screenRadius\": 0.1,\n                \"staticNoise\": 0.1,\n                \"windowOpacity\": 1,\n                \"margin\": 0.3,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0.1,\n                \"frameColor\": \"#ffffff\",\n                \"frameShininess\": 0.9\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Commodore 64\"\n            obj_string: '{\n                \"ambientLight\": 0.4,\n                \"backgroundColor\": \"#3b3b8f\",\n                \"bloom\": 0.4,\n                \"brightness\": 0.6,\n                \"burnIn\": 0.1,\n                \"chromaColor\": 0.0,\n                \"contrast\": 0.7,\n                \"flickering\": 0.1,\n                \"fontColor\": \"#a9a7ff\",\n                \"fontName\": \"COMMODORE_64_SCALED\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.1,\n                \"horizontalSync\": 0.0,\n                \"jitter\": 0.0,\n                \"rasterization\": 1,\n                \"rgbShift\": 0,\n                \"saturationColor\": 0,\n                \"screenCurvature\": 0.5,\n                \"screenRadius\": 0.1,\n                \"staticNoise\": 0.1,\n                \"windowOpacity\": 1,\n                \"margin\": 0.3,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0.5,\n                \"frameColor\": \"#999999\",\n                \"frameShininess\": 0.0\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Commodore PET\"\n            obj_string: '{\n                \"ambientLight\": 0.0,\n                \"backgroundColor\": \"#000000\",\n                \"bloom\": 0.4,\n                \"brightness\": 0.5,\n                \"burnIn\": 0.4,\n                \"chromaColor\": 0,\n                \"contrast\": 0.8,\n                \"flickering\": 0.2,\n                \"fontColor\": \"#ffffff\",\n                \"fontName\": \"COMMODORE_PET_SCALED\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1.25,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.3,\n                \"horizontalSync\": 0.2,\n                \"jitter\": 0.15,\n                \"rasterization\": 1,\n                \"rgbShift\": 0.0,\n                \"saturationColor\": 0,\n                \"screenCurvature\": 0.7,\n                \"screenRadius\": 0.3,\n                \"staticNoise\": 0.2,\n                \"windowOpacity\": 1,\n                \"margin\": 0.2,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0.5,\n                \"frameColor\": \"#000000\",\n                \"frameShininess\": 0.6\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Apple ][\"\n            obj_string: '{\n                \"ambientLight\": 1.0,\n                \"backgroundColor\": \"#001100\",\n                \"bloom\": 0.3,\n                \"brightness\": 0.5,\n                \"burnIn\": 0.3,\n                \"chromaColor\": 0,\n                \"contrast\": 0.8,\n                \"flickering\": 0.2,\n                \"fontColor\": \"#4dff6b\",\n                \"fontName\": \"APPLE_II_SCALED\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1.25,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.3,\n                \"horizontalSync\": 0.2,\n                \"jitter\": 0.2,\n                \"rasterization\": 1,\n                \"rgbShift\": 0.0,\n                \"saturationColor\": 0,\n                \"screenCurvature\": 0.5,\n                \"screenRadius\": 0.3,\n                \"staticNoise\": 0.2,\n                \"windowOpacity\": 1,\n                \"margin\": 0.0,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0.2,\n                \"frameColor\": \"#ffffff\",\n                \"frameShininess\": 0.8\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Atari 400\"\n            obj_string: '{\n                \"ambientLight\": 0.1,\n                \"backgroundColor\": \"#0f1f5a\",\n                \"bloom\": 0.1,\n                \"brightness\": 0.6,\n                \"burnIn\": 0.2,\n                \"chromaColor\": 0,\n                \"contrast\": 0.9,\n                \"flickering\": 0.1,\n                \"fontColor\": \"#8ed6ff\",\n                \"fontName\": \"ATARI_400_SCALED\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.1,\n                \"horizontalSync\": 0.0,\n                \"jitter\": 0.0,\n                \"rasterization\": 1,\n                \"rgbShift\": 0.0,\n                \"saturationColor\": 0,\n                \"screenCurvature\": 0.4,\n                \"screenRadius\": 0.2,\n                \"staticNoise\": 0.1,\n                \"windowOpacity\": 1,\n                \"margin\": 0.2,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0.4,\n                \"frameColor\": \"#cccccc\",\n                \"frameShininess\": 0.3\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"IBM VGA 8x16\"\n            obj_string: '{\n                \"ambientLight\": 0.2,\n                \"backgroundColor\": \"#000000\",\n                \"bloom\": 0.2,\n                \"brightness\": 0.6,\n                \"burnIn\": 0.1,\n                \"chromaColor\": 0.5,\n                \"contrast\": 1.0,\n                \"flickering\": 0.1,\n                \"fontColor\": \"#c0c0c0\",\n                \"fontName\": \"IBM_VGA_8x16\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.1,\n                \"horizontalSync\": 0.0,\n                \"jitter\": 0.0,\n                \"rasterization\": 1,\n                \"rgbShift\": 0.1,\n                \"saturationColor\": 0,\n                \"screenCurvature\": 0.3,\n                \"screenRadius\": 0.1,\n                \"staticNoise\": 0.0,\n                \"windowOpacity\": 1,\n                \"margin\": 0.2,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0.1,\n                \"frameColor\": \"#ffffff\",\n                \"frameShininess\": 0.3\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"IBM 3278 Reborn\"\n            obj_string: '{\n                \"ambientLight\": 0.2,\n                \"backgroundColor\": \"#000000\",\n                \"bloom\": 0.2,\n                \"brightness\": 0.5,\n                \"burnIn\": 0.5,\n                \"chromaColor\": 0,\n                \"contrast\": 0.8,\n                \"flickering\": 0,\n                \"fontColor\": \"#3cff7a\",\n                \"fontName\": \"IBM_3278\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.0,\n                \"horizontalSync\": 0,\n                \"jitter\": 0,\n                \"rasterization\": 4,\n                \"rgbShift\": 0,\n                \"saturationColor\": 0,\n                \"screenCurvature\": 0,\n                \"screenRadius\": 0.0,\n                \"staticNoise\": 0.0,\n                \"windowOpacity\": 1,\n                \"margin\": 0.1,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0,\n                \"frameColor\": \"#ffffff\",\n                \"frameShininess\": 0.2\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Neon Cyan\"\n            obj_string: '{\n                \"ambientLight\": 0.1,\n                \"backgroundColor\": \"#001018\",\n                \"bloom\": 0.6,\n                \"brightness\": 0.6,\n                \"burnIn\": 0.1,\n                \"chromaColor\": 1,\n                \"contrast\": 0.9,\n                \"flickering\": 0.1,\n                \"fontColor\": \"#52f7ff\",\n                \"fontName\": \"IOSEVKA\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.2,\n                \"horizontalSync\": 0.0,\n                \"jitter\": 0.1,\n                \"rasterization\": 4,\n                \"rgbShift\": 0.0,\n                \"saturationColor\": 0.6,\n                \"screenCurvature\": 0,\n                \"screenRadius\": 0.0,\n                \"staticNoise\": 0.1,\n                \"windowOpacity\": 0.8,\n                \"margin\": 0.1,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0,\n                \"frameColor\": \"#c3c3c3\",\n                \"frameShininess\": 0.2\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Ghost Terminal\"\n            obj_string: '{\n                \"ambientLight\": 0.3,\n                \"backgroundColor\": \"#0b1014\",\n                \"bloom\": 0.3,\n                \"brightness\": 0.6,\n                \"burnIn\": 0.2,\n                \"chromaColor\": 0,\n                \"contrast\": 0.5,\n                \"flickering\": 0.0,\n                \"fontColor\": \"#a6b3c0\",\n                \"fontName\": \"JETBRAINS_MONO\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.1,\n                \"horizontalSync\": 0.0,\n                \"jitter\": 0.0,\n                \"rasterization\": 4,\n                \"rgbShift\": 0.0,\n                \"saturationColor\": 0.0,\n                \"screenCurvature\": 0,\n                \"screenRadius\": 0.0,\n                \"staticNoise\": 0.1,\n                \"windowOpacity\": 0.7,\n                \"margin\": 0.1,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0,\n                \"frameColor\": \"#a7a7a7\",\n                \"frameShininess\": 0.2\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Plasma\"\n            obj_string: '{\n                \"ambientLight\": 0.1,\n                \"backgroundColor\": \"#070014\",\n                \"bloom\": 0.7,\n                \"brightness\": 0.6,\n                \"burnIn\": 0.1,\n                \"chromaColor\": 1,\n                \"contrast\": 0.8,\n                \"flickering\": 0.1,\n                \"fontColor\": \"#ff9bd6\",\n                \"fontName\": \"FIRA_CODE\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.2,\n                \"horizontalSync\": 0.0,\n                \"jitter\": 0.1,\n                \"rasterization\": 4,\n                \"rgbShift\": 0.1,\n                \"saturationColor\": 0.8,\n                \"screenCurvature\": 0,\n                \"screenRadius\": 0.0,\n                \"staticNoise\": 0.1,\n                \"windowOpacity\": 1.0,\n                \"margin\": 0.1,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0,\n                \"frameColor\": \"#d0d0d0\",\n                \"frameShininess\": 0.2\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"Boring\"\n            obj_string: '{\n                \"ambientLight\": 0.1,\n                \"backgroundColor\": \"#000000\",\n                \"bloom\": 0.5,\n                \"brightness\": 0.5,\n                \"burnIn\": 0.05,\n                \"chromaColor\": 1,\n                \"contrast\": 0.8,\n                \"flickering\": 0.0,\n                \"fontColor\": \"#ffffff\",\n                \"fontName\": \"JETBRAINS_MONO\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.1,\n                \"horizontalSync\": 0,\n                \"jitter\": 0.0,\n                \"rasterization\": 4,\n                \"rgbShift\": 0,\n                \"saturationColor\": 0.0,\n                \"screenCurvature\": 0,\n                \"screenRadius\": 0.0,\n                \"staticNoise\": 0.0,\n                \"windowOpacity\": 1.0,\n                \"margin\": 0.0,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0,\n                \"frameColor\": \"#c0c0c0\",\n                \"frameShininess\": 0.2\n            }'\n            builtin: true\n        }\n        ListElement {\n            text: \"E-Ink\"\n            obj_string: '{\n                \"ambientLight\": 0.6,\n                \"backgroundColor\": \"#f2f2ec\",\n                \"bloom\": 0.0,\n                \"brightness\": 1.0,\n                \"burnIn\": 0.6,\n                \"chromaColor\": 0,\n                \"contrast\": 0.5,\n                \"flickering\": 0.0,\n                \"fontColor\": \"#101010\",\n                \"fontName\": \"HACK\",\n                \"fontSource\": 0,\n                \"fontWidth\": 1,\n                \"lineSpacing\": 0.1,\n                \"glowingLine\": 0.0,\n                \"horizontalSync\": 0.0,\n                \"jitter\": 0.0,\n                \"rasterization\": 4,\n                \"rgbShift\": 0,\n                \"saturationColor\": 0,\n                \"screenCurvature\": 0,\n                \"screenRadius\": 0.0,\n                \"staticNoise\": 0.0,\n                \"windowOpacity\": 1,\n                \"margin\": 0.1,\n                \"blinkingCursor\": false,\n                \"frameSize\": 0,\n                \"frameColor\": \"#cdcdcd\",\n                \"frameShininess\": 0.2\n            }'\n            builtin: true\n        }\n    }\n\n    function getProfileIndexByName(name) {\n        for (var i = 0; i < profilesList.count; i++) {\n            if (profilesList.get(i).text === name)\n                return i\n        }\n        return -1\n    }\n\n    Component.onCompleted: {\n        // Manage the arguments from the QML side.\n        var args = Qt.application.arguments\n        if (args.indexOf(\"--verbose\") !== -1) {\n            verbose = true\n        }\n        if (args.indexOf(\"--default-settings\") === -1) {\n            loadSettings()\n        }\n\n        loadCustomProfiles()\n\n        var profileArgPosition = args.indexOf(\"--profile\")\n        if (profileArgPosition !== -1) {\n            var profileIndex = getProfileIndexByName(args[profileArgPosition + 1])\n            if (profileIndex !== -1) {\n                loadProfile(profileIndex)\n            } else {\n                console.log(\"Warning: selected profile is not valid; ignoring it\")\n            }\n        }\n\n        initializedSettings()\n    }\n\n    // VARS ///////////////////////////////////////////////////////////////////\n    property Label _sampleLabel: Label {\n        text: \"100%\"\n    }\n    property real labelWidth: _sampleLabel.width\n}\n"
  },
  {
    "path": "app/qml/BurnInEffect.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.0\n\nimport \"utils.js\" as Utils\n\nLoader {\n    id: burnInEffect\n\n    property ShaderEffectSource effectSource: item ? item.source : null\n    property bool resizing: false\n\n    property real lastUpdate: 0\n    property real prevLastUpdate: 0\n\n    property real burnIn: appSettings.burnIn\n    property real burnInFadeTime: 1 / Utils.lint(_minBurnInFadeTime, _maxBurnInFadeTime, burnIn)\n    property real _minBurnInFadeTime: appSettings.minBurnInFadeTime\n    property real _maxBurnInFadeTime: appSettings.maxBurnInFadeTime\n\n    active: appSettings.burnIn !== 0\n\n    anchors.fill: parent\n\n    function completelyUpdate() {\n        let newTime = timeManager.time\n        if (newTime > lastUpdate) {\n            prevLastUpdate = lastUpdate\n            lastUpdate = newTime\n        }\n\n        item.source.scheduleUpdate()\n    }\n\n    function restartBlurSource() {\n        prevLastUpdate = timeManager.time\n        lastUpdate = prevLastUpdate\n        completelyUpdate()\n    }\n\n    sourceComponent: Item {\n        property alias source: burnInEffectSource\n\n        ShaderEffectSource {\n            id: burnInEffectSource\n\n            anchors.fill: parent\n\n            sourceItem: burnInShaderEffect\n            live: false\n            recursive: !resizing\n            hideSource: true\n            wrapMode: ShaderEffectSource.ClampToEdge\n\n            format: ShaderEffectSource.RGBA\n            smooth: true\n\n            visible: false\n\n            Connections {\n                target: kterminal\n\n                onImagePainted: {\n                    completelyUpdate()\n                }\n            }\n            // Restart blurred source settings change.\n            Connections {\n                target: appSettings.fontManager\n\n                onTerminalFontChanged: {\n                    burnInEffect.restartBlurSource()\n                }\n            }\n\n            Connections {\n                target: appSettings\n\n                onBurnInChanged: {\n                    burnInEffect.restartBlurSource()\n                }\n\n                onRasterizationChanged: {\n                    burnInEffect.restartBlurSource()\n                }\n\n                onBurnInQualityChanged: {\n                    burnInEffect.restartBlurSource()\n                }\n            }\n        }\n\n        ShaderEffect {\n            id: burnInShaderEffect\n\n            property real time: timeManager.time\n\n            property variant txt_source: kterminalSource\n            property variant burnInSource: burnInEffectSource\n            property real burnInTime: burnInFadeTime\n            property real burnInLastUpdate: burnInEffect.lastUpdate\n            property real prevLastUpdate: burnInEffect.prevLastUpdate\n\n            anchors.fill: parent\n            blending: false\n\n            fragmentShader: \"qrc:/shaders/burn_in.frag.qsb\"\n            vertexShader: \"qrc:/shaders/burn_in.vert.qsb\"\n\n            onStatusChanged: if (log) console.log(log) //Print warning messages\n        }\n    }\n\n    onWidthChanged: {\n        resizing = true\n        resizeTimer.restart()\n    }\n\n    onHeightChanged: {\n        resizing = true\n        resizeTimer.restart()\n    }\n\n    Timer {\n        id: resizeTimer\n        interval: 300\n        onTriggered: resizing = false\n    }\n}\n"
  },
  {
    "path": "app/qml/CheckableSlider.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.0\nimport QtQuick.Layouts 1.1\n\nimport \"Components\"\n\nRowLayout {\n    property alias name: check.text\n\n    property double value\n    property alias min_value: slider.from\n    property alias max_value: slider.to\n    property alias stepSize: slider.stepSize\n\n    signal newValue(real newValue)\n\n    id: setting_component\n    Layout.fillWidth: true\n\n    onValueChanged: {\n        check.checked = !(value == 0)\n        if (check.checked)\n            slider.value = value\n    }\n\n    CheckBox {\n        id: check\n        implicitWidth: 160\n        onClicked: {\n            if (!checked) {\n                checked = false\n                slider.enabled = false\n                newValue(0)\n            } else {\n                checked = true\n                newValue(slider.value)\n                slider.enabled = true\n            }\n        }\n    }\n    Slider {\n        id: slider\n        stepSize: parent.stepSize\n        Layout.fillWidth: true\n        onValueChanged: {\n            newValue(value)\n        }\n    }\n    SizedLabel {\n        text: Math.round(\n                  ((value - min_value) / (max_value - min_value)) * 100) + \"%\"\n    }\n}\n"
  },
  {
    "path": "app/qml/ColorButton.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Dialogs\n\nItem {\n    id: rootItem\n\n    signal colorSelected(color color)\n    property color color\n    property string name\n\n    ColorDialog {\n        id: colorDialog\n        title: qsTr(\"Choose a color\")\n        modality: Qt.ApplicationModal\n        selectedColor: rootItem.color\n\n        onSelectedColorChanged: {\n            if (!appSettings.isMacOS && visible)\n                colorSelected(selectedColor)\n        }\n        onAccepted: colorSelected(selectedColor)\n    }\n    Rectangle {\n        anchors.fill: parent\n        radius: 10\n        color: rootItem.color\n\n        Rectangle {\n            anchors.fill: parent\n            anchors.margins: parent.height * 0.25\n            radius: parent.radius\n            color: \"white\"\n            opacity: 0.5\n        }\n        Text {\n            anchors.centerIn: parent\n            z: parent.z + 1\n            text: name + \":  \" + rootItem.color\n        }\n    }\n    MouseArea {\n        anchors.fill: parent\n        onClicked: colorDialog.open()\n    }\n}\n"
  },
  {
    "path": "app/qml/Components/SizedLabel.qml",
    "content": "\n\n/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.0\nimport QtQuick.Controls 2.0\nimport QtQuick.Layouts 1.0\n\n// This component is simply a label with a predefined size.\n// Used to improve alignment.\nLabel {\n    id: textfield\n    Layout.minimumWidth: appSettings.labelWidth\n    width: appSettings.labelWidth\n}\n"
  },
  {
    "path": "app/qml/InsertNameDialog.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Window 2.0\nimport QtQuick.Controls 2.0\nimport QtQuick.Layouts 1.1\nimport QtQuick.Dialogs\n\nWindow {\n    id: insertnamedialog\n    width: 400\n    height: 100\n    modality: Qt.ApplicationModal\n    title: qsTr(\"Save new profile\")\n\n    property alias profileName: namefield.text\n    signal nameSelected(string name)\n\n    MessageDialog {\n        id: errorDialog\n        title: qsTr(\"Error\")\n        visible: false\n\n        function showError(message) {\n            text = message\n            open()\n        }\n    }\n\n    function validateName(name) {\n        var profile_list = appSettings.profilesList\n        if (name === \"\")\n            return 1\n        return 0\n    }\n\n    ColumnLayout {\n        anchors.margins: 10\n        anchors.fill: parent\n        RowLayout {\n            Label {\n                text: qsTr(\"Name\")\n            }\n            TextField {\n                id: namefield\n                Layout.fillWidth: true\n                Component.onCompleted: forceActiveFocus()\n                onAccepted: okbutton.clickAction()\n            }\n        }\n        RowLayout {\n            Layout.alignment: Qt.AlignBottom | Qt.AlignRight\n            Button {\n                id: okbutton\n                text: qsTr(\"OK\")\n                onClicked: clickAction()\n                function clickAction() {\n                    var name = namefield.text\n                    switch (validateName(name)) {\n                    case 1:\n                        errorDialog.showError(\n                                    qsTr(\"The name you inserted is empty. Please choose a different one.\"))\n                        break\n                    default:\n                        nameSelected(name)\n                        close()\n                    }\n                }\n            }\n            Button {\n                text: qsTr(\"Cancel\")\n                onClicked: close()\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/PreprocessedTerminal.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\n\nimport QtQuick 2.2\nimport QtQuick.Controls 2.0\n\nimport QMLTermWidget 2.0\n\nimport \"menus\"\nimport \"utils.js\" as Utils\n\nItem{\n    id: terminalContainer\n    signal sessionFinished()\n\n    property size virtualResolution: Qt.size(kterminal.totalWidth, kterminal.totalHeight)\n    property alias mainTerminal: kterminal\n\n    property ShaderEffectSource mainSource: kterminalSource\n    property BurnInEffect burnInEffect: burnInEffect\n    property real fontWidth: 1.0\n    property real screenScaling: 1.0\n    property real scaleTexture: 1.0\n    property alias title: ksession.title\n    property alias kterminal: kterminal\n    property bool isActive: false\n\n    property size terminalSize: kterminal.terminalSize\n    property size fontMetrics: kterminal.fontMetrics\n\n    // Manage copy and paste\n    Connections {\n        target: copyAction\n\n        onTriggered: {\n            if (terminalContainer.isActive) {\n                kterminal.copyClipboard()\n            }\n        }\n    }\n    Connections {\n        target: pasteAction\n\n        onTriggered: {\n            if (terminalContainer.isActive) {\n                kterminal.pasteClipboard()\n            }\n        }\n    }\n\n    //When settings are updated sources need to be redrawn.\n    Connections {\n        target: appSettings\n\n        onFontScalingChanged: {\n            terminalContainer.updateSources()\n        }\n\n        onFontWidthChanged: {\n            terminalContainer.updateSources()\n        }\n    }\n    Connections {\n        target: terminalContainer\n\n        onWidthChanged: {\n            terminalContainer.updateSources()\n        }\n\n        onHeightChanged: {\n            terminalContainer.updateSources()\n        }\n    }\n\n    function updateSources() {\n        kterminal.update()\n    }\n\n    QMLTermWidget {\n        id: kterminal\n\n        property int textureResolutionScale: appSettings.lowResolutionFont ? Screen.devicePixelRatio : 1\n        property int margin: appSettings.margin / screenScaling\n        property int totalWidth: Math.floor(parent.width / (screenScaling * fontWidth))\n        property int totalHeight: Math.floor(parent.height / screenScaling)\n\n        property int rawWidth: totalWidth - 2 * margin\n        property int rawHeight: totalHeight - 2 * margin\n\n        textureSize: Qt.size(width / textureResolutionScale, height / textureResolutionScale)\n\n        width: ensureMultiple(rawWidth, Screen.devicePixelRatio)\n        height: ensureMultiple(rawHeight, Screen.devicePixelRatio)\n\n        /** Ensure size is a multiple of factor. This is needed for pixel perfect scaling on highdpi screens. */\n        function ensureMultiple(size, factor) {\n            return Math.round(size / factor) * factor;\n        }\n\n        fullCursorHeight: true\n        blinkingCursor: appSettings.blinkingCursor\n\n        colorScheme: \"cool-retro-term\"\n\n        session: QMLTermSession {\n            id: ksession\n\n            onFinished: {\n                terminalContainer.sessionFinished()\n            }\n        }\n\n        QMLTermScrollbar {\n            id: kterminalScrollbar\n            terminal: kterminal\n            anchors.margins: width * 0.5\n            width: terminal.fontMetrics.width * 0.75\n            Rectangle {\n                anchors.fill: parent\n                anchors.topMargin: 1\n                anchors.bottomMargin: 1\n                color: \"white\"\n                opacity: 0.7\n            }\n        }\n\n        function handleFontChanged(fontFamily, pixelSize, lineSpacing, screenScaling, fontWidth, fallbackFontFamily, lowResolutionFont) {\n            kterminal.lineSpacing = lineSpacing;\n            kterminal.antialiasText = !lowResolutionFont;\n            kterminal.smooth = !lowResolutionFont;\n            kterminal.enableBold = !lowResolutionFont;\n            kterminal.enableItalic = !lowResolutionFont;\n\n            kterminal.font = Qt.font({\n                family: fontFamily,\n                pixelSize: pixelSize\n            });\n\n            terminalContainer.fontWidth = fontWidth;\n            terminalContainer.screenScaling = screenScaling;\n            scaleTexture = Math.max(1.0, Math.floor(screenScaling * appSettings.windowScaling));\n        }\n\n        Connections {\n            target: appSettings\n\n            onWindowScalingChanged: {\n                scaleTexture = Math.max(1.0, Math.floor(terminalContainer.screenScaling * appSettings.windowScaling));\n            }\n        }\n\n        function startSession() {\n            // Retrieve the variable set in main.cpp if arguments are passed.\n            if (defaultCmd) {\n                ksession.setShellProgram(defaultCmd);\n                ksession.setArgs(defaultCmdArgs);\n            } else if (appSettings.useCustomCommand) {\n                var args = Utils.tokenizeCommandLine(appSettings.customCommand);\n                ksession.setShellProgram(args[0]);\n                ksession.setArgs(args.slice(1));\n            } else if (!defaultCmd && appSettings.isMacOS) {\n                // OSX Requires the following default parameters for auto login.\n                ksession.setArgs([\"-i\", \"-l\"]);\n            }\n\n            if (workdir)\n                ksession.initialWorkingDirectory = workdir;\n\n            ksession.startShellProgram();\n            forceActiveFocus();\n        }\n        Component.onCompleted: {\n            appSettings.fontManager.terminalFontChanged.connect(handleFontChanged);\n            appSettings.fontManager.refresh()\n            startSession();\n        }\n        Component.onDestruction: {\n            appSettings.fontManager.terminalFontChanged.disconnect(handleFontChanged);\n        }\n    }\n\n    Component {\n        id: shortContextMenu\n        ShortContextMenu { }\n    }\n\n    Component {\n        id: fullContextMenu\n        FullContextMenu { }\n    }\n\n    Loader {\n        id: menuLoader\n        sourceComponent: (appSettings.isMacOS || (appSettings.showMenubar && !terminalWindow.fullscreen) ? shortContextMenu : fullContextMenu)\n    }\n    property alias contextmenu: menuLoader.item\n\n    MouseArea {\n        property real margin: appSettings.margin\n        property real frameSize: appSettings.frameSize * terminalWindow.normalizedWindowScale\n\n        acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton\n        anchors.fill: parent\n        cursorShape: kterminal.terminalUsesMouse ? Qt.ArrowCursor : Qt.IBeamCursor\n        onWheel: function(wheel) {\n            if (wheel.modifiers & Qt.ControlModifier) {\n               wheel.angleDelta.y > 0 ? zoomIn.trigger() : zoomOut.trigger();\n            } else {\n                var coord = correctDistortion(wheel.x, wheel.y);\n                kterminal.simulateWheel(coord.x, coord.y, wheel.buttons, wheel.modifiers, wheel.angleDelta);\n            }\n        }\n        onDoubleClicked: function(mouse) {\n            var coord = correctDistortion(mouse.x, mouse.y);\n            kterminal.simulateMouseDoubleClick(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers);\n        }\n        onPressed: function(mouse) {\n            kterminal.forceActiveFocus()\n            if ((!kterminal.terminalUsesMouse || mouse.modifiers & Qt.ShiftModifier) && mouse.button == Qt.RightButton) {\n                contextmenu.popup();\n            } else {\n                var coord = correctDistortion(mouse.x, mouse.y);\n                kterminal.simulateMousePress(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers)\n            }\n        }\n        onReleased: function(mouse) {\n            var coord = correctDistortion(mouse.x, mouse.y);\n            kterminal.simulateMouseRelease(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers);\n        }\n        onPositionChanged: function(mouse) {\n            var coord = correctDistortion(mouse.x, mouse.y);\n            kterminal.simulateMouseMove(coord.x, coord.y, mouse.button, mouse.buttons, mouse.modifiers);\n        }\n\n        function correctDistortion(x, y) {\n            x = (x - margin) / width;\n            y = (y - margin) / height;\n\n            x = x * (1 + frameSize * 2) - frameSize;\n            y = y * (1 + frameSize * 2) - frameSize;\n\n            var cc = Qt.size(0.5 - x, 0.5 - y);\n            var distortion = (cc.height * cc.height + cc.width * cc.width)\n                    * appSettings.screenCurvature * appSettings.screenCurvatureSize\n                    * terminalWindow.normalizedWindowScale;\n\n            return Qt.point((x - cc.width  * (1+distortion) * distortion) * (kterminal.totalWidth),\n                           (y - cc.height * (1+distortion) * distortion) * (kterminal.totalHeight))\n        }\n    }\n    ShaderEffectSource{\n        id: kterminalSource\n        sourceItem: kterminal\n        hideSource: true\n        wrapMode: ShaderEffectSource.Repeat\n        visible: false\n        textureSize: Qt.size(kterminal.totalWidth * scaleTexture, kterminal.totalHeight * scaleTexture)\n        sourceRect: Qt.rect(-kterminal.margin, -kterminal.margin, kterminal.totalWidth, kterminal.totalHeight)\n    }\n\n    Item {\n        id: burnInContainer\n\n        property int burnInScaling: scaleTexture * appSettings.burnInQuality\n\n        width: Math.round(appSettings.lowResolutionFont\n               ? kterminal.totalWidth * Math.max(1, burnInScaling)\n               : kterminal.totalWidth * scaleTexture * appSettings.burnInQuality)\n\n        height: Math.round(appSettings.lowResolutionFont\n                ? kterminal.totalHeight * Math.max(1, burnInScaling)\n                : kterminal.totalHeight * scaleTexture * appSettings.burnInQuality)\n\n\n        BurnInEffect {\n            id: burnInEffect\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/SettingsAdvancedTab.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.0\nimport QtQuick.Layouts 1.1\nimport QtQml 2.0\n\nimport \"Components\"\n\nColumnLayout {\n    GroupBox {\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        title: qsTr(\"Miscellaneous\")\n        padding: appSettings.defaultMargin\n\n        ColumnLayout {\n            anchors.fill: parent\n            CheckBox {\n                id: useCustomCommand\n                text: qsTr(\"Use custom command instead of shell at startup\")\n                checked: appSettings.useCustomCommand\n                onCheckedChanged: appSettings.useCustomCommand = checked\n            }\n            TextField {\n                id: customCommand\n                Layout.fillWidth: true\n                text: appSettings.customCommand\n                enabled: useCustomCommand.checked\n                onEditingFinished: appSettings.customCommand = text\n\n                // Save text even if user forgets to press enter or unfocus\n                function saveSetting() {\n                    appSettings.customCommand = text\n                }\n                Component.onCompleted: settings_window.closing.connect(\n                                           saveSetting)\n            }\n            CheckBox {\n                id: blinkingCursor\n                text: qsTr(\"Blinking Cursor\")\n                checked: appSettings.blinkingCursor\n                onCheckedChanged: appSettings.blinkingCursor = checked\n            }\n            CheckBox {\n                id: showMenubar\n                text: qsTr(\"Show Menubar\")\n                enabled: !appSettings.isMacOS\n                checked: appSettings.showMenubar\n                onCheckedChanged: appSettings.showMenubar = checked\n            }\n        }\n    }\n\n    GroupBox {\n        title: qsTr(\"Performance\")\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        padding: appSettings.defaultMargin\n        GridLayout {\n            anchors.fill: parent\n            columns: 4\n\n            Label {\n                text: qsTr(\"Effects FPS\")\n            }\n            Slider {\n                Layout.fillWidth: true\n                Layout.columnSpan: 2\n                id: effectsFpsSlider\n                onValueChanged: appSettings.effectsFrameSkip = Math.round(value)\n                stepSize: 1\n                enabled: true\n                from: 5\n                to: 1\n                value: appSettings.effectsFrameSkip\n            }\n\n            SizedLabel {\n                text: Math.round(100 / Math.max(1, Math.round(effectsFpsSlider.value))) + \"%\"\n            }\n            Label {\n                text: qsTr(\"Texture Quality\")\n            }\n            Slider {\n                id: txtslider\n                Layout.fillWidth: true\n                Layout.columnSpan: 2\n                onValueChanged: appSettings.windowScaling = value\n                stepSize: 0.05\n                enabled: true\n                from: 0.25\n                value: appSettings.windowScaling\n            }\n            SizedLabel {\n                text: Math.round(txtslider.value * 100) + \"%\"\n            }\n\n            Label {\n                text: qsTr(\"Bloom Quality\")\n            }\n            Slider {\n                Layout.fillWidth: true\n                Layout.columnSpan: 2\n                id: bloomSlider\n                onValueChanged: appSettings.bloomQuality = value\n                stepSize: 0.05\n                enabled: true\n                from: 0.25\n                value: appSettings.bloomQuality\n            }\n            SizedLabel {\n                text: Math.round(bloomSlider.value * 100) + \"%\"\n            }\n\n            Label {\n                text: qsTr(\"BurnIn Quality\")\n            }\n            Slider {\n                Layout.fillWidth: true\n                id: burnInSlider\n                Layout.columnSpan: 2\n                onValueChanged: appSettings.burnInQuality = value\n                stepSize: 0.05\n                enabled: true\n                from: 0.25\n                value: appSettings.burnInQuality\n            }\n            SizedLabel {\n                text: Math.round(burnInSlider.value * 100) + \"%\"\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/SettingsEffectsTab.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.0\nimport QtQuick.Layouts 1.1\n\nColumnLayout {\n    Layout.fillWidth: true\n    Layout.fillHeight: true\n    spacing: 2\n\n    GroupBox {\n        title: qsTr(\"Effects\")\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        padding: appSettings.defaultMargin\n\n        ColumnLayout {\n            anchors.fill: parent\n\n            CheckableSlider {\n                name: qsTr(\"Bloom\")\n                onNewValue: function(newValue) { appSettings.bloom = newValue }\n                value: appSettings.bloom\n            }\n            CheckableSlider {\n                name: qsTr(\"BurnIn\")\n                onNewValue: function(newValue) { appSettings.burnIn = newValue }\n                value: appSettings.burnIn\n            }\n            CheckableSlider {\n                name: qsTr(\"Static Noise\")\n                onNewValue: function(newValue) { appSettings.staticNoise = newValue }\n                value: appSettings.staticNoise\n            }\n            CheckableSlider {\n                name: qsTr(\"Jitter\")\n                onNewValue: function(newValue) { appSettings.jitter = newValue }\n                value: appSettings.jitter\n            }\n            CheckableSlider {\n                name: qsTr(\"Glow Line\")\n                onNewValue: function(newValue) { appSettings.glowingLine = newValue }\n                value: appSettings.glowingLine\n            }\n            CheckableSlider {\n                name: qsTr(\"Screen Curvature\")\n                onNewValue: function(newValue) { appSettings.screenCurvature = newValue }\n                value: appSettings.screenCurvature\n            }\n            CheckableSlider {\n                name: qsTr(\"Ambient Light\")\n                onNewValue: function(newValue) { appSettings.ambientLight = newValue }\n                value: appSettings.ambientLight\n                enabled: appSettings.framesIndex !== 0\n            }\n            CheckableSlider {\n                name: qsTr(\"Flickering\")\n                onNewValue: function(newValue) { appSettings.flickering = newValue }\n                value: appSettings.flickering\n            }\n            CheckableSlider {\n                name: qsTr(\"Horizontal Sync\")\n                onNewValue: function(newValue) { appSettings.horizontalSync = newValue }\n                value: appSettings.horizontalSync\n            }\n            CheckableSlider {\n                name: qsTr(\"RGB Shift\")\n                onNewValue: function(newValue) { appSettings.rgbShift = newValue }\n                value: appSettings.rgbShift\n            }\n            CheckableSlider {\n                name: qsTr(\"Frame Shininess\")\n                onNewValue: function(newValue) { appSettings._frameShininess = newValue }\n                value: appSettings._frameShininess\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/SettingsGeneralTab.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.4\nimport QtQuick.Layouts 1.1\nimport QtQuick.Dialogs\n\nColumnLayout {\n    GroupBox {\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        title: qsTr(\"Profile\")\n        padding: appSettings.defaultMargin\n        RowLayout {\n            anchors.fill: parent\n            ListView {\n                id: profilesView\n                Layout.fillWidth: true\n                Layout.fillHeight: true\n                model: appSettings.profilesList\n                clip: true\n                delegate: Rectangle {\n                    width: label.width\n                    height: label.height\n                    color: (index == profilesView.currentIndex) ? palette.highlight : palette.base\n                    Label {\n                        id: label\n                        text: appSettings.profilesList.get(index).text\n                        MouseArea {\n                            anchors.fill: parent\n                            onClicked: profilesView.currentIndex = index\n                            onDoubleClicked: appSettings.loadProfile(index)\n                        }\n                    }\n                }\n            }\n            ColumnLayout {\n                Layout.fillHeight: true\n                Layout.fillWidth: false\n                Button {\n                    Layout.fillWidth: true\n                    text: qsTr(\"Save\")\n                    onClicked: {\n                        insertname.profileName = \"\"\n                        insertname.show()\n                    }\n                }\n                Button {\n                    Layout.fillWidth: true\n                    property alias currentIndex: profilesView.currentIndex\n                    enabled: currentIndex >= 0\n                    text: qsTr(\"Load\")\n                    onClicked: {\n                        var index = currentIndex\n                        if (index >= 0)\n                            appSettings.loadProfile(index)\n                    }\n                }\n                Button {\n                    Layout.fillWidth: true\n                    text: qsTr(\"Remove\")\n                    property alias currentIndex: profilesView.currentIndex\n\n                    enabled: currentIndex >= 0 && !appSettings.profilesList.get(\n                                 currentIndex).builtin\n                    onClicked: {\n                        appSettings.profilesList.remove(currentIndex)\n                        profilesView.selection.clear()\n\n                        // TODO This is a very ugly workaround. The view didn't update on Qt 5.3.2.\n                        profilesView.model = 0\n                        profilesView.model = appSettings.profilesList\n                    }\n                }\n                Item {\n                    // Spacing\n                    Layout.fillHeight: true\n                }\n                Button {\n                    Layout.fillWidth: true\n                    text: qsTr(\"Import\")\n                    onClicked: {\n                        fileDialog.selectExisting = true\n                        fileDialog.callBack = function (url) {\n                            loadFile(url)\n                        }\n                        fileDialog.open()\n                    }\n                    function loadFile(url) {\n                        try {\n                            if (appSettings.verbose)\n                                console.log(\"Loading file: \" + url)\n\n                            var profileObject = JSON.parse(fileIO.read(url))\n                            var name = profileObject.name\n\n                            if (!name)\n                                throw \"Profile doesn't have a name\"\n\n                            var version = profileObject.version\n                                    !== undefined ? profileObject.version : 1\n                            if (version !== appSettings.profileVersion)\n                                throw \"This profile is not supported on this version of CRT.\"\n\n                            delete profileObject.name\n\n                            appSettings.appendCustomProfile(name,\n                                                            JSON.stringify(\n                                                                profileObject))\n                        } catch (err) {\n                            messageDialog.text = qsTr(err)\n                            messageDialog.open()\n                        }\n                    }\n                }\n                Button {\n                    property alias currentIndex: profilesView.currentIndex\n\n                    Layout.fillWidth: true\n\n                    text: qsTr(\"Export\")\n                    enabled: currentIndex >= 0 && !appSettings.profilesList.get(\n                                 currentIndex).builtin\n                    onClicked: {\n                        fileDialog.selectExisting = false\n                        fileDialog.callBack = function (url) {\n                            storeFile(url)\n                        }\n                        fileDialog.open()\n                    }\n                    function storeFile(url) {\n                        try {\n                            var urlString = url.toString()\n\n                            // Fix the extension if it's missing.\n                            var extension = urlString.substring(\n                                        urlString.length - 5, urlString.length)\n                            var urlTail = (extension === \".json\" ? \"\" : \".json\")\n                            url += urlTail\n\n                            if (true)\n                                console.log(\"Storing file: \" + url)\n\n                            var profileObject = appSettings.profilesList.get(\n                                        currentIndex)\n                            var profileSettings = JSON.parse(\n                                        profileObject.obj_string)\n                            profileSettings[\"name\"] = profileObject.text\n                            profileSettings[\"version\"] = appSettings.profileVersion\n\n                            var result = fileIO.write(url, JSON.stringify(\n                                                          profileSettings,\n                                                          undefined, 2))\n                            if (!result)\n                                throw \"The file could not be written.\"\n                        } catch (err) {\n                            console.log(err)\n                            messageDialog.text = qsTr(\n                                        \"There has been an error storing the file.\")\n                            messageDialog.open()\n                        }\n                    }\n                }\n            }\n        }\n    }\n\n    GroupBox {\n        title: qsTr(\"Screen\")\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        padding: appSettings.defaultMargin\n        GridLayout {\n            anchors.fill: parent\n            columns: 2\n            Label {\n                text: qsTr(\"Brightness\")\n            }\n            SimpleSlider {\n                onValueChanged: appSettings.brightness = value\n                value: appSettings.brightness\n            }\n            Label {\n                text: qsTr(\"Contrast\")\n            }\n            SimpleSlider {\n                onValueChanged: appSettings.contrast = value\n                value: appSettings.contrast\n            }\n            Label {\n                text: qsTr(\"Margin\")\n            }\n            SimpleSlider {\n                onValueChanged: appSettings._margin = value\n                value: appSettings._margin\n            }\n            Label {\n                text: qsTr(\"Radius\")\n            }\n            SimpleSlider {\n                onValueChanged: appSettings._screenRadius = value\n                value: appSettings._screenRadius\n            }\n            Label {\n                text: qsTr(\"Frame size\")\n            }\n            SimpleSlider {\n                onValueChanged: appSettings._frameSize = value\n                value: appSettings._frameSize\n            }\n            Label {\n                text: qsTr(\"Opacity\")\n                visible: !appSettings.isMacOS\n            }\n            SimpleSlider {\n                onValueChanged: appSettings.windowOpacity = value\n                value: appSettings.windowOpacity\n                visible: !appSettings.isMacOS\n            }\n        }\n    }\n\n    // DIALOGS ////////////////////////////////////////////////////////////////\n    InsertNameDialog {\n        id: insertname\n        onNameSelected: {\n            appSettings.appendCustomProfile(name,\n                                            appSettings.composeProfileString())\n        }\n    }\n    MessageDialog {\n        id: messageDialog\n        title: qsTr(\"File Error\")\n        buttons: MessageDialog.Ok\n        onAccepted: {\n            messageDialog.close()\n        }\n    }\n    Loader {\n        property var callBack\n        property bool selectExisting: false\n        id: fileDialog\n\n        sourceComponent: FileDialog {\n            nameFilters: [\"Json files (*.json)\"]\n            fileMode: fileDialog.selectExisting ? FileDialog.OpenFile : FileDialog.SaveFile\n            onAccepted: callBack(selectedFile)\n        }\n\n        onSelectExistingChanged: reload()\n\n        function open() {\n            item.open()\n        }\n\n        function reload() {\n            active = false\n            active = true\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/SettingsTerminalTab.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.1\nimport QtQuick.Layouts 1.1\nimport QtQml 2.0\n\nimport \"Components\"\n\nColumnLayout {\n    GroupBox {\n        title: qsTr(\"Font\")\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        padding: appSettings.defaultMargin\n        GridLayout {\n            anchors.fill: parent\n            columns: 2\n            Label {\n                text: qsTr(\"Source\")\n            }\n            RowLayout {\n                Layout.fillWidth: true\n                RadioButton {\n                    text: qsTr(\"Bundled\")\n                    checked: appSettings.fontSource === appSettings.bundled_fonts\n                    onClicked: {\n                        appSettings.fontSource = appSettings.bundled_fonts\n                    }\n                }\n                RadioButton {\n                    text: qsTr(\"System\")\n                    checked: appSettings.fontSource === appSettings.system_fonts\n                    onClicked: {\n                        appSettings.fontSource = appSettings.system_fonts\n                    }\n                }\n            }\n            Label {\n                text: qsTr(\"Rendering\")\n                enabled: appSettings.fontSource === appSettings.bundled_fonts\n            }\n            ComboBox {\n                id: renderingBox\n\n                property string selectedElement: model[currentIndex]\n\n                Layout.fillWidth: true\n                model: [qsTr(\"Default\"), qsTr(\"Scanlines\"), qsTr(\"Pixels\"), qsTr(\"Sub-Pixels\"), qsTr(\"Modern\")]\n                currentIndex: appSettings.rasterization\n                onCurrentIndexChanged: {\n                    appSettings.rasterization = currentIndex\n                }\n                enabled: appSettings.fontSource === appSettings.bundled_fonts\n            }\n            Label {\n                text: qsTr(\"Name\")\n            }\n            ComboBox {\n                id: fontChanger\n                Layout.fillWidth: true\n                model: appSettings.filteredFontList\n                textRole: \"text\"\n                onActivated: {\n                    var font = appSettings.filteredFontList.get(currentIndex)\n\n                    // If selecting a high-res font while not in Modern mode,\n                    // switch to Modern to render at full resolution.\n                    if (!font.lowResolutionFont && appSettings.rasterization !== appSettings.modern_rasterization) {\n                        appSettings.rasterization = appSettings.modern_rasterization\n                    }\n                    // If selecting a low-res font while in Modern mode, switch back to default.\n                    if (font.lowResolutionFont && appSettings.rasterization === appSettings.modern_rasterization) {\n                        appSettings.rasterization = appSettings.no_rasterization\n                    }\n\n                    appSettings.fontName = font.name\n                }\n                function updateIndex() {\n                    for (var i = 0; i < appSettings.filteredFontList.count; i++) {\n                        var font = appSettings.filteredFontList.get(i)\n                        if (font.name === appSettings.fontName) {\n                            currentIndex = i\n                            return\n                        }\n                    }\n                    currentIndex = 0\n                }\n                Connections {\n                    target: appSettings.fontManager\n\n                    onTerminalFontChanged: {\n                        fontChanger.updateIndex()\n                    }\n\n                    onFilteredFontListChanged: {\n                        fontChanger.updateIndex()\n                    }\n                }\n                Component.onCompleted: updateIndex()\n            }\n            Label {\n                text: qsTr(\"Scaling\")\n            }\n            RowLayout {\n                Layout.fillWidth: true\n                Slider {\n                    Layout.fillWidth: true\n                    id: fontScalingChanger\n                    onValueChanged: appSettings.fontScaling = value\n                    value: appSettings.fontScaling\n                    stepSize: 0.05\n                    from: appSettings.minimumFontScaling\n                    to: appSettings.maximumFontScaling\n                }\n                SizedLabel {\n                    text: Math.round(fontScalingChanger.value * 100) + \"%\"\n                }\n            }\n            Label {\n                text: qsTr(\"Font Width\")\n            }\n            RowLayout {\n                Layout.fillWidth: true\n                Slider {\n                    Layout.fillWidth: true\n                    id: widthChanger\n                    onValueChanged: appSettings.fontWidth = value\n                    value: appSettings.fontWidth\n                    stepSize: 0.05\n                    from: 0.5\n                    to: 1.5\n                }\n                SizedLabel {\n                    text: Math.round(widthChanger.value * 100) + \"%\"\n                }\n            }\n            Label {\n                text: qsTr(\"Line Spacing\")\n            }\n            RowLayout {\n                Layout.fillWidth: true\n                Slider {\n                    Layout.fillWidth: true\n                    id: lineSpacingChanger\n                    onValueChanged: appSettings.lineSpacing = value\n                    value: appSettings.lineSpacing\n                    stepSize: 0.01\n                    from: 0.0\n                    to: 1.0\n                }\n                SizedLabel {\n                    text: Math.round(lineSpacingChanger.value * 100) + \"%\"\n                }\n            }\n        }\n    }\n    GroupBox {\n        title: qsTr(\"Colors\")\n        Layout.fillWidth: true\n        Layout.fillHeight: true\n        padding: appSettings.defaultMargin\n        ColumnLayout {\n            anchors.fill: parent\n            ColumnLayout {\n                Layout.fillWidth: true\n                CheckableSlider {\n                    name: qsTr(\"Chroma Color\")\n                    onNewValue: function(newValue) { appSettings.chromaColor = newValue }\n                    value: appSettings.chromaColor\n                }\n                CheckableSlider {\n                    name: qsTr(\"Saturation Color\")\n                    onNewValue: function(newValue) { appSettings.saturationColor = newValue }\n                    value: appSettings.saturationColor\n                    enabled: appSettings.chromaColor !== 0\n                }\n            }\n            RowLayout {\n                Layout.fillWidth: true\n                ColorButton {\n                    name: qsTr(\"Font\")\n                    height: 50\n                    Layout.fillWidth: true\n                    onColorSelected: appSettings._fontColor = color\n                    color: appSettings._fontColor\n                }\n                ColorButton {\n                    name: qsTr(\"Background\")\n                    height: 50\n                    Layout.fillWidth: true\n                    onColorSelected: appSettings._backgroundColor = color\n                    color: appSettings._backgroundColor\n                }\n                ColorButton {\n                    name: qsTr(\"Frame\")\n                    height: 50\n                    Layout.fillWidth: true\n                    onColorSelected: appSettings._frameColor = color\n                    color: appSettings._frameColor\n                }\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/SettingsWindow.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\n\nimport QtQuick 2.2\nimport QtQuick.Controls 2.1\nimport QtQuick.Window 2.1\nimport QtQuick.Layouts 1.3\nimport QtQuick.Dialogs\n\nApplicationWindow {\n    readonly property real tabButtonPadding: 10\n\n    id: settings_window\n    title: qsTr(\"Settings\")\n    width: 640\n    height: 520\n\n    Item {\n        anchors { fill: parent; }\n\n        TabBar {\n            id: bar\n            anchors { left: parent.left; right: parent.right; top: parent.top; }\n            TabButton {\n                padding: tabButtonPadding\n                text: qsTr(\"General\")\n            }\n            TabButton {\n                padding: tabButtonPadding\n                text: qsTr(\"Terminal\")\n            }\n            TabButton {\n                padding: tabButtonPadding\n                text: qsTr(\"Effects\")\n            }\n            TabButton {\n                padding: tabButtonPadding\n                text: qsTr(\"Advanced\")\n            }\n        }\n\n        StackLayout {\n            anchors {\n                top: bar.bottom\n                left: parent.left\n                right: parent.right\n                bottom: parent.bottom\n                margins: 16\n            }\n\n            currentIndex: bar.currentIndex\n\n            SettingsGeneralTab { }\n            SettingsTerminalTab { }\n            SettingsEffectsTab { }\n            SettingsAdvancedTab { }\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/ShaderTerminal.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\n\nimport QtQuick 2.2\n\nimport \"utils.js\" as Utils\n\nItem {\n    function dynamicFragmentPath() {\n        var rasterMode = appSettings.rasterization;\n        var burnInOn = appSettings.burnIn > 0 ? 1 : 0;\n        var frameOn = appSettings.frameEnabled ? 1 : 0;\n        var chromaOn = appSettings.chromaColor > 0 ? 1 : 0;\n        return \"qrc:/shaders/terminal_dynamic_raster\" + rasterMode +\n               \"_burn\" + burnInOn +\n               \"_frame\" + frameOn +\n               \"_chroma\" + chromaOn +\n               \".frag.qsb\";\n    }\n\n    function staticFragmentPath() {\n        var rgbShiftOn = appSettings.rgbShift > 0 ? 1 : 0;\n        var bloomOn = appSettings.bloom > 0 ? 1 : 0;\n        var curvatureOn = (appSettings.screenCurvature > 0 || appSettings.frameSize > 0) ? 1 : 0;\n        var shineOn = appSettings.frameShininess > 0 ? 1 : 0;\n        return \"qrc:/shaders/terminal_static_rgb\" + rgbShiftOn +\n               \"_bloom\" + bloomOn +\n               \"_curve\" + curvatureOn +\n               \"_shine\" + shineOn +\n               \".frag.qsb\";\n    }\n\n    property ShaderEffectSource source\n    property BurnInEffect burnInEffect\n    property ShaderEffectSource bloomSource\n\n    property color fontColor: appSettings.fontColor\n    property color backgroundColor: appSettings.backgroundColor\n\n    property real screenCurvature: appSettings.screenCurvature * appSettings.screenCurvatureSize * terminalWindow.normalizedWindowScale\n    property real frameSize: appSettings.frameSize * terminalWindow.normalizedWindowScale\n\n    property real chromaColor: appSettings.chromaColor\n\n    property real ambientLight: appSettings.ambientLight * 0.2\n\n    property size virtualResolution\n    property size screenResolution\n\n    property real _screenDensity: Math.min(\n        screenResolution.width / virtualResolution.width,\n        screenResolution.height / virtualResolution.height\n    )\n\n    ShaderEffect {\n        id: dynamicShader\n\n        property ShaderEffectSource screenBuffer: frameBuffer\n        property ShaderEffectSource burnInSource: burnInEffect.effectSource\n        property ShaderEffectSource frameSource: terminalFrameLoader.item\n\n        property color fontColor: parent.fontColor\n        property color backgroundColor: parent.backgroundColor\n        property real screenCurvature: parent.screenCurvature\n        property real chromaColor: parent.chromaColor\n        property real ambientLight: parent.ambientLight\n\n        property real flickering: appSettings.flickering\n        property real horizontalSync: appSettings.horizontalSync\n        property real horizontalSyncStrength: Utils.lint(0.05, 0.35, horizontalSync)\n        property real glowingLine: appSettings.glowingLine * 0.2\n\n        // Fast burnin properties\n        property real burnIn: appSettings.burnIn\n        property real burnInLastUpdate: burnInEffect.lastUpdate\n        property real burnInTime: burnInEffect.burnInFadeTime\n\n        property real jitter: appSettings.jitter\n        property size jitterDisplacement: Qt.size(0.007 * jitter, 0.002 * jitter)\n        property real staticNoise: appSettings.staticNoise\n        property size scaleNoiseSize: Qt.size((width * 0.75) / (noiseTexture.width * appSettings.windowScaling * appSettings.totalFontScaling),\n                                              (height * 0.75) / (noiseTexture.height * appSettings.windowScaling * appSettings.totalFontScaling))\n\n        property size virtualResolution: parent.virtualResolution\n\n        // Rasterization might display oversamping issues if virtual resolution is close to physical display resolution.\n        // We progressively disable rasterization from 4x up to 2x resolution.\n        property real rasterizationIntensity: Utils.smoothstep(2.0, 4.0, _screenDensity)\n\n        property real time: timeManager ? timeManager.time : 0\n        property ShaderEffectSource noiseSource: noiseShaderSource\n\n        property real frameSize: parent.frameSize\n        property real frameShininess: appSettings.frameShininess\n        property real bloom: parent.bloomSource ? appSettings.bloom * 2.5 : 0\n\n        anchors.fill: parent\n        blending: false\n\n        Image {\n            id: noiseTexture\n            source: \"images/allNoise512.png\"\n            width: 512\n            height: 512\n            fillMode: Image.Tile\n            visible: false\n        }\n        ShaderEffectSource {\n            id: noiseShaderSource\n            sourceItem: noiseTexture\n            wrapMode: ShaderEffectSource.Repeat\n            visible: false\n            smooth: true\n        }\n\n        vertexShader: \"qrc:/shaders/terminal_dynamic.vert.qsb\"\n        fragmentShader: dynamicFragmentPath()\n\n        onStatusChanged: if (log) console.log(log)\n    }\n\n    Loader {\n        id: terminalFrameLoader\n\n        active: appSettings.frameEnabled\n\n        width: staticShader.width\n        height: staticShader.height\n\n        sourceComponent: ShaderEffectSource {\n\n            sourceItem: terminalFrame\n            hideSource: true\n            visible: false\n            format: ShaderEffectSource.RGBA\n\n            TerminalFrame {\n                id: terminalFrame\n                blending: false\n                anchors.fill: parent\n            }\n        }\n    }\n\n    ShaderEffect {\n        id: staticShader\n\n        width: parent.width * appSettings.windowScaling\n        height: parent.height * appSettings.windowScaling\n\n        property ShaderEffectSource source: parent.source\n        property ShaderEffectSource bloomSource: parent.bloomSource\n\n        property color fontColor: parent.fontColor\n        property color backgroundColor: parent.backgroundColor\n        property real bloom: bloomSource ? appSettings.bloom * 2.5 : 0\n\n        property real screenCurvature: parent.screenCurvature\n\n        property real chromaColor: appSettings.chromaColor;\n\n        property real rgbShift: appSettings.rgbShift * (4.0 / width) * appSettings.totalFontScaling\n\n        property real screen_brightness: Utils.lint(0.5, 1.5, appSettings.brightness)\n        property real frameShininess: appSettings.frameShininess\n        property real frameSize: parent.frameSize\n\n        blending: false\n        visible: false\n\n        vertexShader: \"qrc:/shaders/terminal_static.vert.qsb\"\n        fragmentShader: staticFragmentPath()\n\n        onStatusChanged: if (log) console.log(log)\n    }\n\n    ShaderEffectSource {\n        id: frameBuffer\n        visible: false\n        sourceItem: staticShader\n        hideSource: true\n    }\n}\n"
  },
  {
    "path": "app/qml/SimpleSlider.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.0\nimport QtQuick.Layouts 1.1\n\nimport \"Components\"\n\nRowLayout {\n    property alias value: slider.value\n    property alias stepSize: slider.stepSize\n    property alias minimumValue: slider.from\n    property alias maximumValue: slider.to\n    property real maxMultiplier: 100\n\n    id: setting_component\n    spacing: 10\n    Slider {\n        id: slider\n        stepSize: parent.stepSize\n        Layout.fillWidth: true\n    }\n    SizedLabel {\n        text: Math.round(value * maxMultiplier) + \"%\"\n    }\n}\n"
  },
  {
    "path": "app/qml/SizeOverlay.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\n\nRectangle {\n    property size terminalSize\n    property real topOpacity: 0.5\n\n    width: textSize.width * 2\n    height: textSize.height * 2\n    radius: 5\n    color: \"black\"\n    opacity: sizetimer.running ? 0.5 : 0.0\n\n    Behavior on opacity {\n        NumberAnimation {\n            duration: 200\n        }\n    }\n\n    onTerminalSizeChanged: sizetimer.restart()\n\n    Text {\n        id: textSize\n        anchors.centerIn: parent\n        color: \"white\"\n        text: terminalSize.width + \"x\" + terminalSize.height\n    }\n    Timer {\n        id: sizetimer\n        interval: 1000\n        running: false\n    }\n}\n"
  },
  {
    "path": "app/qml/Storage.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\n\nimport QtQuick 2.2\nimport QtQuick.LocalStorage 2.0\n\nQtObject {\n    readonly property string dbMajorVersion: \"2\"\n    readonly property string dbMinorVersion: \"1.0\"\n    property bool initialized: false\n\n    function getDatabase() {\n         return LocalStorage.openDatabaseSync(\"coolretroterm\" + dbMajorVersion, dbMinorVersion, \"StorageDatabase\", 100000)\n    }\n\n    function initialize() {\n        var db = getDatabase();\n        db.transaction(\n            function(tx) {\n                tx.executeSql('CREATE TABLE IF NOT EXISTS settings(setting TEXT UNIQUE, value TEXT)');\n            }\n        )\n\n        initialized = true\n    }\n\n    function setSetting(setting, value) {\n        if(!initialized) initialize();\n\n        var db = getDatabase();\n        var res = \"\";\n        db.transaction(\n            function(tx) {\n                var rs = tx.executeSql('INSERT OR REPLACE INTO settings VALUES (?,?);', [setting,value]);\n                //console.log(rs.rowsAffected)\n                if (rs.rowsAffected > 0) {\n                    res = \"OK\";\n                } else {\n                    res = \"Error\";\n                }\n           }\n      )\n      // The function returns “OK” if it was successful, or “Error” if it wasn't\n      return res\n    }\n\n    function getSetting(setting) {\n        if(!initialized) initialize();\n        var db = getDatabase();\n        var res = \"\";\n        db.transaction(\n            function(tx) {\n                var rs = tx.executeSql('SELECT value FROM settings WHERE setting=?;', [setting]);\n                if (rs.rows.length > 0) {\n                res = rs.rows.item(0).value;\n                } else {\n                res = undefined;\n                }\n            }\n        )\n        return res\n    }\n\n    function dropSettings(){\n        var db = getDatabase();\n        db.transaction(\n            function(tx) {\n                tx.executeSql('DROP TABLE settings');\n            }\n        )\n    }\n}\n"
  },
  {
    "path": "app/qml/TerminalContainer.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport Qt5Compat.GraphicalEffects\n\nimport \"utils.js\" as Utils\n\nShaderTerminal {\n    property alias title: terminal.title\n    property alias terminalSize: terminal.terminalSize\n    property bool isActive: false\n    signal sessionFinished()\n\n    property bool loadBloomEffect: appSettings.bloom > 0 || appSettings._frameShininess > 0\n\n    id: mainShader\n    opacity: appSettings.windowOpacity * 0.3 + 0.7\n\n    source: terminal.mainSource\n    burnInEffect: terminal.burnInEffect\n    virtualResolution: terminal.virtualResolution\n    screenResolution: Qt.size(\n        terminalWindow.width * Screen.devicePixelRatio * appSettings.windowScaling,\n        terminalWindow.height * Screen.devicePixelRatio * appSettings.windowScaling\n    )\n    bloomSource: bloomSourceLoader.item\n\n    PreprocessedTerminal {\n        id: terminal\n        anchors.fill: parent\n        isActive: mainShader.isActive\n        onSessionFinished: mainShader.sessionFinished()\n    }\n\n    function activate() {\n        terminal.mainTerminal.forceActiveFocus()\n    }\n\n    //  EFFECTS  ////////////////////////////////////////////////////////////////\n    Loader {\n        id: bloomEffectLoader\n        active: loadBloomEffect\n        asynchronous: true\n        width: parent.width * appSettings.bloomQuality\n        height: parent.height * appSettings.bloomQuality\n\n        sourceComponent: FastBlur {\n            radius: Utils.lint(16, 64, appSettings.bloomQuality)\n            source: terminal.mainSource\n            transparentBorder: true\n        }\n    }\n    Loader {\n        id: bloomSourceLoader\n        active: loadBloomEffect\n        asynchronous: true\n        sourceComponent: ShaderEffectSource {\n            id: _bloomEffectSource\n            sourceItem: bloomEffectLoader.item\n            wrapMode: ShaderEffectSource.Repeat\n            hideSource: true\n            smooth: true\n            visible: false\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/TerminalFrame.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.0\n\nimport \"utils.js\" as Utils\n\nShaderEffect {\n    property color _staticFrameColor: Utils.sum(appSettings.frameColor, Qt.rgba(0.1, 0.1, 0.1, 1.0))\n    property color _backgroundColor: appSettings.backgroundColor\n    property color _fontColor: appSettings.fontColor\n    property color _lightColor: Utils.mix(_fontColor, _backgroundColor, 0.2)\n\n    property color frameColor: Utils.mix(\n        Utils.scaleColor(_lightColor, 0.2),\n        _staticFrameColor,\n        0.125 + 0.750 * ambientLight\n    )\n\n    property real screenCurvature: appSettings.screenCurvature * appSettings.screenCurvatureSize * terminalWindow.normalizedWindowScale\n\n    property real frameShininess: appSettings.frameShininess\n\n    property real frameSize: appSettings.frameSize * terminalWindow.normalizedWindowScale\n\n    property real screenRadius: appSettings.screenRadius\n\n    property size viewportSize: Qt.size(width / appSettings.windowScaling, height / appSettings.windowScaling)\n\n    property real ambientLight: appSettings.ambientLight\n\n    vertexShader: \"qrc:/shaders/terminal_frame.vert.qsb\"\n    fragmentShader: \"qrc:/shaders/terminal_frame.frag.qsb\"\n\n    onStatusChanged: if (log) console.log(log) //Print warning messages\n}\n"
  },
  {
    "path": "app/qml/TerminalTabs.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick\nimport QtQuick.Controls\nimport QtQuick.Layouts\nimport QtQml.Models\n\nItem {\n    id: tabsRoot\n\n    readonly property int innerPadding: 6\n    readonly property string currentTitle: tabsModel.get(currentIndex).title ?? \"cool-retro-term\"\n    property alias currentIndex: tabBar.currentIndex\n    readonly property int count: tabsModel.count\n    property size terminalSize: Qt.size(0, 0)\n\n    function normalizeTitle(rawTitle) {\n        if (rawTitle === undefined || rawTitle === null) {\n            return \"\"\n        }\n        return String(rawTitle).trim()\n    }\n\n    function addTab() {\n        tabsModel.append({ title: \"\" })\n        tabBar.currentIndex = tabsModel.count - 1\n    }\n\n    function closeTab(index) {\n        if (tabsModel.count <= 1) {\n            terminalWindow.close()\n            return\n        }\n\n        tabsModel.remove(index)\n        tabBar.currentIndex = Math.min(tabBar.currentIndex, tabsModel.count - 1)\n    }\n\n    ListModel {\n        id: tabsModel\n    }\n\n    Component.onCompleted: addTab()\n\n    ColumnLayout {\n        anchors.fill: parent\n        spacing: 0\n\n        Rectangle {\n            id: tabRow\n            Layout.fillWidth: true\n            height: rowLayout.implicitHeight\n            color: palette.window\n            visible: tabsModel.count > 1\n\n            RowLayout {\n                id: rowLayout\n                anchors.fill: parent\n                spacing: 0\n\n                TabBar {\n                    id: tabBar\n                    Layout.fillWidth: true\n                    Layout.fillHeight: true\n                    focusPolicy: Qt.NoFocus\n\n                    Repeater {\n                        model: tabsModel\n                        TabButton {\n                            id: tabButton\n                            contentItem: RowLayout {\n                                anchors.fill: parent\n                                anchors { leftMargin: innerPadding; rightMargin: innerPadding }\n                                spacing: innerPadding\n\n                                Label {\n                                    text: model.title\n                                    elide: Text.ElideRight\n                                    Layout.fillWidth: true\n                                    Layout.alignment: Qt.AlignVCenter\n                                }\n\n                                ToolButton {\n                                    text: \"\\u00d7\"\n                                    focusPolicy: Qt.NoFocus\n                                    padding: innerPadding\n                                    Layout.alignment: Qt.AlignVCenter\n                                    onClicked: tabsRoot.closeTab(index)\n                                }\n                            }\n                        }\n                    }\n                }\n\n                ToolButton {\n                    id: addTabButton\n                    text: \"+\"\n                    focusPolicy: Qt.NoFocus\n                    Layout.fillHeight: true\n                    padding: innerPadding\n                    Layout.alignment: Qt.AlignVCenter\n                    onClicked: tabsRoot.addTab()\n                }\n            }\n        }\n\n        StackLayout {\n            id: stack\n            Layout.fillWidth: true\n            Layout.fillHeight: true\n            currentIndex: tabBar.currentIndex\n\n            Repeater {\n                model: tabsModel\n                TerminalContainer {\n                    property bool shouldHaveFocus: terminalWindow.active && StackLayout.isCurrentItem\n                    isActive: StackLayout.isCurrentItem\n                    onShouldHaveFocusChanged: {\n                        if (shouldHaveFocus) {\n                            activate()\n                        }\n                    }\n                    onTitleChanged: tabsModel.setProperty(index, \"title\", normalizeTitle(title))\n                    Layout.fillWidth: true\n                    Layout.fillHeight: true\n                    onSessionFinished: tabsRoot.closeTab(index)\n                    onTerminalSizeChanged: updateTerminalSize()\n\n                    function updateTerminalSize() {\n                        // Every tab will have the same size so we can simply take the first one.\n                        if (index == 0) {\n                            tabsRoot.terminalSize = terminalSize\n                        }\n                    }\n                }\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/TerminalWindow.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick\nimport QtQuick.Window\nimport QtQuick.Controls\n\nimport \"menus\"\n\nApplicationWindow {\n    id: terminalWindow\n\n    width: 1024\n    height: 768\n\n    // Show the window once it is ready.\n    Component.onCompleted: {\n        visible = true\n    }\n\n    minimumWidth: 320\n    minimumHeight: 240\n\n    visible: false\n\n    property bool fullscreen: false\n    onFullscreenChanged: visibility = (fullscreen ? Window.FullScreen : Window.Windowed)\n\n    menuBar: WindowMenu { }\n\n    property real normalizedWindowScale: 1024 / ((0.5 * width + 0.5 * height))\n\n    color: \"#00000000\"\n\n    title: terminalTabs.currentTitle\n\n    Action {\n        id: fullscreenAction\n        text: qsTr(\"Fullscreen\")\n        enabled: !appSettings.isMacOS\n        shortcut: StandardKey.FullScreen\n        onTriggered: fullscreen = !fullscreen\n        checkable: true\n        checked: fullscreen\n    }\n    Action {\n        id: newWindowAction\n        text: qsTr(\"New Window\")\n        shortcut: appSettings.isMacOS ? \"Meta+N\" : \"Ctrl+Shift+N\"\n        onTriggered: appRoot.createWindow()\n    }\n    Action {\n        id: quitAction\n        text: qsTr(\"Quit\")\n        shortcut: appSettings.isMacOS ? StandardKey.Close : \"Ctrl+Shift+Q\"\n        onTriggered: terminalWindow.close()\n    }\n    Action {\n        id: showsettingsAction\n        text: qsTr(\"Settings\")\n        onTriggered: {\n            settingsWindow.show()\n            settingsWindow.requestActivate()\n            settingsWindow.raise()\n        }\n    }\n    Action {\n        id: copyAction\n        text: qsTr(\"Copy\")\n        shortcut: appSettings.isMacOS ? StandardKey.Copy : \"Ctrl+Shift+C\"\n    }\n    Action {\n        id: pasteAction\n        text: qsTr(\"Paste\")\n        shortcut: appSettings.isMacOS ? StandardKey.Paste : \"Ctrl+Shift+V\"\n    }\n    Action {\n        id: zoomIn\n        text: qsTr(\"Zoom In\")\n        shortcut: StandardKey.ZoomIn\n        onTriggered: appSettings.incrementScaling()\n    }\n    Action {\n        id: zoomOut\n        text: qsTr(\"Zoom Out\")\n        shortcut: StandardKey.ZoomOut\n        onTriggered: appSettings.decrementScaling()\n    }\n    Action {\n        id: showAboutAction\n        text: qsTr(\"About\")\n        onTriggered: {\n            aboutDialog.show()\n            aboutDialog.requestActivate()\n            aboutDialog.raise()\n        }\n    }\n    Action {\n        id: newTabAction\n        text: qsTr(\"New Tab\")\n        shortcut: appSettings.isMacOS ? \"Meta+T\" : \"Ctrl+Shift+T\"\n        onTriggered: terminalTabs.addTab()\n    }\n    Action {\n        id: closeTabAction\n        text: qsTr(\"Close Tab\")\n        shortcut: appSettings.isMacOS ? \"Meta+W\" : \"Ctrl+Shift+W\"\n        onTriggered: terminalTabs.closeTab(terminalTabs.currentIndex)\n    }\n    Shortcut {\n        sequence: appSettings.isMacOS ? \"Meta+1\" : \"Alt+1\"\n        context: Qt.WindowShortcut\n        onActivated: if (terminalTabs.count > 0) terminalTabs.currentIndex = 0\n    }\n    Shortcut {\n        sequence: appSettings.isMacOS ? \"Meta+2\" : \"Alt+2\"\n        context: Qt.WindowShortcut\n        onActivated: if (terminalTabs.count > 1) terminalTabs.currentIndex = 1\n    }\n    Shortcut {\n        sequence: appSettings.isMacOS ? \"Meta+3\" : \"Alt+3\"\n        context: Qt.WindowShortcut\n        onActivated: if (terminalTabs.count > 2) terminalTabs.currentIndex = 2\n    }\n    Shortcut {\n        sequence: appSettings.isMacOS ? \"Meta+4\" : \"Alt+4\"\n        context: Qt.WindowShortcut\n        onActivated: if (terminalTabs.count > 3) terminalTabs.currentIndex = 3\n    }\n    Shortcut {\n        sequence: appSettings.isMacOS ? \"Meta+5\" : \"Alt+5\"\n        context: Qt.WindowShortcut\n        onActivated: if (terminalTabs.count > 4) terminalTabs.currentIndex = 4\n    }\n    Shortcut {\n        sequence: appSettings.isMacOS ? \"Meta+6\" : \"Alt+6\"\n        context: Qt.WindowShortcut\n        onActivated: if (terminalTabs.count > 5) terminalTabs.currentIndex = 5\n    }\n    Shortcut {\n        sequence: appSettings.isMacOS ? \"Meta+7\" : \"Alt+7\"\n        context: Qt.WindowShortcut\n        onActivated: if (terminalTabs.count > 6) terminalTabs.currentIndex = 6\n    }\n    Shortcut {\n        sequence: appSettings.isMacOS ? \"Meta+8\" : \"Alt+8\"\n        context: Qt.WindowShortcut\n        onActivated: if (terminalTabs.count > 7) terminalTabs.currentIndex = 7\n    }\n    Shortcut {\n        sequence: appSettings.isMacOS ? \"Meta+9\" : \"Alt+9\"\n        context: Qt.WindowShortcut\n        onActivated: if (terminalTabs.count > 8) terminalTabs.currentIndex = 8\n    }\n    TerminalTabs {\n        id: terminalTabs\n        width: parent.width\n        height: (parent.height + Math.abs(y))\n    }\n    Loader {\n        anchors.centerIn: parent\n        active: appSettings.showTerminalSize\n        sourceComponent: SizeOverlay {\n            z: 3\n            terminalSize: terminalTabs.terminalSize\n        }\n    }\n    onClosing: {\n        appRoot.closeWindow(terminalWindow)\n    }\n}\n"
  },
  {
    "path": "app/qml/TimeManager.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick\n\nQtObject {\n    id: timeManager\n\n    property bool enableTimer: false\n    property real time: 0\n\n    property int framesPerUpdate: Math.max(1, appSettings.effectsFrameSkip)\n    property int _frameCounter: 0\n\n    property var frameDriver: FrameAnimation {\n        running: enableTimer\n        onTriggered: {\n            timeManager._frameCounter += 1\n\n            if (timeManager._frameCounter >= timeManager.framesPerUpdate) {\n                time = elapsedTime\n                timeManager._frameCounter = 0\n            }\n        }\n    }\n\n    onEnableTimerChanged: if (!enableTimer) _frameCounter = 0\n    onFramesPerUpdateChanged: _frameCounter = 0\n}\n"
  },
  {
    "path": "app/qml/fonts/apple2/FreeLicense.txt",
    "content": "KREATIVE SOFTWARE RELAY FONTS FREE USE LICENSE\r\nversion 1.2f\r\n\r\nPermission is hereby granted, free of charge, to any person or entity (the \"User\") obtaining a copy of the included font files (the \"Software\") produced by Kreative Software, to utilize, display, embed, or redistribute the Software, subject to the following conditions:\r\n\r\n1. The User may not sell copies of the Software for a fee.\r\n\r\n1a. The User may give away copies of the Software free of charge provided this license and any documentation is included verbatim and credit is given to Kreative Korporation or Kreative Software.\r\n\r\n2. The User may not modify, reverse-engineer, or create any derivative works of the Software.\r\n\r\n3. Any Software carrying the following font names or variations thereof is not covered by this license and may not be used under the terms of this license: Jewel Hill, Miss Diode n Friends, This is Beckie's font!\r\n\r\n3a. Any Software carrying a font name ending with the string \"Pro CE\" is not covered by this license and may not be used under the terms of this license.\r\n\r\n4. This license becomes null and void if any of the above conditions are not met.\r\n\r\n5. Kreative Software reserves the right to change this license at any time without notice.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE SOFTWARE OR FROM OTHER DEALINGS IN THE SOFTWARE.\r\n"
  },
  {
    "path": "app/qml/fonts/bigblue-terminal/LICENSE.TXT",
    "content": "Attribution-ShareAlike 4.0 International\n\n=======================================================================\n\nCreative Commons Corporation (\"Creative Commons\") is not a law firm and\ndoes not provide legal services or legal advice. Distribution of\nCreative Commons public licenses does not create a lawyer-client or\nother relationship. Creative Commons makes its licenses and related\ninformation available on an \"as-is\" basis. Creative Commons gives no\nwarranties regarding its licenses, any material licensed under their\nterms and conditions, or any related information. Creative Commons\ndisclaims all liability for damages resulting from their use to the\nfullest extent possible.\n\nUsing Creative Commons Public Licenses\n\nCreative Commons public licenses provide a standard set of terms and\nconditions that creators and other rights holders may use to share\noriginal works of authorship and other material subject to copyright\nand certain other rights specified in the public license below. The\nfollowing considerations are for informational purposes only, are not\nexhaustive, and do not form part of our licenses.\n\n     Considerations for licensors: Our public licenses are\n     intended for use by those authorized to give the public\n     permission to use material in ways otherwise restricted by\n     copyright and certain other rights. Our licenses are\n     irrevocable. Licensors should read and understand the terms\n     and conditions of the license they choose before applying it.\n     Licensors should also secure all rights necessary before\n     applying our licenses so that the public can reuse the\n     material as expected. Licensors should clearly mark any\n     material not subject to the license. This includes other CC-\n     licensed material, or material used under an exception or\n     limitation to copyright. More considerations for licensors:\n\twiki.creativecommons.org/Considerations_for_licensors\n\n     Considerations for the public: By using one of our public\n     licenses, a licensor grants the public permission to use the\n     licensed material under specified terms and conditions. If\n     the licensor's permission is not necessary for any reason--for\n     example, because of any applicable exception or limitation to\n     copyright--then that use is not regulated by the license. Our\n     licenses grant only permissions under copyright and certain\n     other rights that a licensor has authority to grant. Use of\n     the licensed material may still be restricted for other\n     reasons, including because others have copyright or other\n     rights in the material. A licensor may make special requests,\n     such as asking that all changes be marked or described.\n     Although not required by our licenses, you are encouraged to\n     respect those requests where reasonable. More_considerations\n     for the public: \n\twiki.creativecommons.org/Considerations_for_licensees\n\n=======================================================================\n\nCreative Commons Attribution-ShareAlike 4.0 International Public\nLicense\n\nBy exercising the Licensed Rights (defined below), You accept and agree\nto be bound by the terms and conditions of this Creative Commons\nAttribution-ShareAlike 4.0 International Public License (\"Public\nLicense\"). To the extent this Public License may be interpreted as a\ncontract, You are granted the Licensed Rights in consideration of Your\nacceptance of these terms and conditions, and the Licensor grants You\nsuch rights in consideration of benefits the Licensor receives from\nmaking the Licensed Material available under these terms and\nconditions.\n\n\nSection 1 -- Definitions.\n\n  a. Adapted Material means material subject to Copyright and Similar\n     Rights that is derived from or based upon the Licensed Material\n     and in which the Licensed Material is translated, altered,\n     arranged, transformed, or otherwise modified in a manner requiring\n     permission under the Copyright and Similar Rights held by the\n     Licensor. For purposes of this Public License, where the Licensed\n     Material is a musical work, performance, or sound recording,\n     Adapted Material is always produced where the Licensed Material is\n     synched in timed relation with a moving image.\n\n  b. Adapter's License means the license You apply to Your Copyright\n     and Similar Rights in Your contributions to Adapted Material in\n     accordance with the terms and conditions of this Public License.\n\n  c. BY-SA Compatible License means a license listed at\n     creativecommons.org/compatiblelicenses, approved by Creative\n     Commons as essentially the equivalent of this Public License.\n\n  d. Copyright and Similar Rights means copyright and/or similar rights\n     closely related to copyright including, without limitation,\n     performance, broadcast, sound recording, and Sui Generis Database\n     Rights, without regard to how the rights are labeled or\n     categorized. For purposes of this Public License, the rights\n     specified in Section 2(b)(1)-(2) are not Copyright and Similar\n     Rights.\n\n  e. Effective Technological Measures means those measures that, in the\n     absence of proper authority, may not be circumvented under laws\n     fulfilling obligations under Article 11 of the WIPO Copyright\n     Treaty adopted on December 20, 1996, and/or similar international\n     agreements.\n\n  f. Exceptions and Limitations means fair use, fair dealing, and/or\n     any other exception or limitation to Copyright and Similar Rights\n     that applies to Your use of the Licensed Material.\n\n  g. License Elements means the license attributes listed in the name\n     of a Creative Commons Public License. The License Elements of this\n     Public License are Attribution and ShareAlike.\n\n  h. Licensed Material means the artistic or literary work, database,\n     or other material to which the Licensor applied this Public\n     License.\n\n  i. Licensed Rights means the rights granted to You subject to the\n     terms and conditions of this Public License, which are limited to\n     all Copyright and Similar Rights that apply to Your use of the\n     Licensed Material and that the Licensor has authority to license.\n\n  j. Licensor means the individual(s) or entity(ies) granting rights\n     under this Public License.\n\n  k. Share means to provide material to the public by any means or\n     process that requires permission under the Licensed Rights, such\n     as reproduction, public display, public performance, distribution,\n     dissemination, communication, or importation, and to make material\n     available to the public including in ways that members of the\n     public may access the material from a place and at a time\n     individually chosen by them.\n\n  l. Sui Generis Database Rights means rights other than copyright\n     resulting from Directive 96/9/EC of the European Parliament and of\n     the Council of 11 March 1996 on the legal protection of databases,\n     as amended and/or succeeded, as well as other essentially\n     equivalent rights anywhere in the world.\n\n  m. You means the individual or entity exercising the Licensed Rights\n     under this Public License. Your has a corresponding meaning.\n\n\nSection 2 -- Scope.\n\n  a. License grant.\n\n       1. Subject to the terms and conditions of this Public License,\n          the Licensor hereby grants You a worldwide, royalty-free,\n          non-sublicensable, non-exclusive, irrevocable license to\n          exercise the Licensed Rights in the Licensed Material to:\n\n            a. reproduce and Share the Licensed Material, in whole or\n               in part; and\n\n            b. produce, reproduce, and Share Adapted Material.\n\n       2. Exceptions and Limitations. For the avoidance of doubt, where\n          Exceptions and Limitations apply to Your use, this Public\n          License does not apply, and You do not need to comply with\n          its terms and conditions.\n\n       3. Term. The term of this Public License is specified in Section\n          6(a).\n\n       4. Media and formats; technical modifications allowed. The\n          Licensor authorizes You to exercise the Licensed Rights in\n          all media and formats whether now known or hereafter created,\n          and to make technical modifications necessary to do so. The\n          Licensor waives and/or agrees not to assert any right or\n          authority to forbid You from making technical modifications\n          necessary to exercise the Licensed Rights, including\n          technical modifications necessary to circumvent Effective\n          Technological Measures. For purposes of this Public License,\n          simply making modifications authorized by this Section 2(a)\n          (4) never produces Adapted Material.\n\n       5. Downstream recipients.\n\n            a. Offer from the Licensor -- Licensed Material. Every\n               recipient of the Licensed Material automatically\n               receives an offer from the Licensor to exercise the\n               Licensed Rights under the terms and conditions of this\n               Public License.\n\n            b. Additional offer from the Licensor -- Adapted Material.\n               Every recipient of Adapted Material from You\n               automatically receives an offer from the Licensor to\n               exercise the Licensed Rights in the Adapted Material\n               under the conditions of the Adapter's License You apply.\n\n            c. No downstream restrictions. You may not offer or impose\n               any additional or different terms or conditions on, or\n               apply any Effective Technological Measures to, the\n               Licensed Material if doing so restricts exercise of the\n               Licensed Rights by any recipient of the Licensed\n               Material.\n\n       6. No endorsement. Nothing in this Public License constitutes or\n          may be construed as permission to assert or imply that You\n          are, or that Your use of the Licensed Material is, connected\n          with, or sponsored, endorsed, or granted official status by,\n          the Licensor or others designated to receive attribution as\n          provided in Section 3(a)(1)(A)(i).\n\n  b. Other rights.\n\n       1. Moral rights, such as the right of integrity, are not\n          licensed under this Public License, nor are publicity,\n          privacy, and/or other similar personality rights; however, to\n          the extent possible, the Licensor waives and/or agrees not to\n          assert any such rights held by the Licensor to the limited\n          extent necessary to allow You to exercise the Licensed\n          Rights, but not otherwise.\n\n       2. Patent and trademark rights are not licensed under this\n          Public License.\n\n       3. To the extent possible, the Licensor waives any right to\n          collect royalties from You for the exercise of the Licensed\n          Rights, whether directly or through a collecting society\n          under any voluntary or waivable statutory or compulsory\n          licensing scheme. In all other cases the Licensor expressly\n          reserves any right to collect such royalties.\n\n\nSection 3 -- License Conditions.\n\nYour exercise of the Licensed Rights is expressly made subject to the\nfollowing conditions.\n\n  a. Attribution.\n\n       1. If You Share the Licensed Material (including in modified\n          form), You must:\n\n            a. retain the following if it is supplied by the Licensor\n               with the Licensed Material:\n\n                 i. identification of the creator(s) of the Licensed\n                    Material and any others designated to receive\n                    attribution, in any reasonable manner requested by\n                    the Licensor (including by pseudonym if\n                    designated);\n\n                ii. a copyright notice;\n\n               iii. a notice that refers to this Public License;\n\n                iv. a notice that refers to the disclaimer of\n                    warranties;\n\n                 v. a URI or hyperlink to the Licensed Material to the\n                    extent reasonably practicable;\n\n            b. indicate if You modified the Licensed Material and\n               retain an indication of any previous modifications; and\n\n            c. indicate the Licensed Material is licensed under this\n               Public License, and include the text of, or the URI or\n               hyperlink to, this Public License.\n\n       2. You may satisfy the conditions in Section 3(a)(1) in any\n          reasonable manner based on the medium, means, and context in\n          which You Share the Licensed Material. For example, it may be\n          reasonable to satisfy the conditions by providing a URI or\n          hyperlink to a resource that includes the required\n          information.\n\n       3. If requested by the Licensor, You must remove any of the\n          information required by Section 3(a)(1)(A) to the extent\n          reasonably practicable.\n\n  b. ShareAlike.\n\n     In addition to the conditions in Section 3(a), if You Share\n     Adapted Material You produce, the following conditions also apply.\n\n       1. The Adapter's License You apply must be a Creative Commons\n          license with the same License Elements, this version or\n          later, or a BY-SA Compatible License.\n\n       2. You must include the text of, or the URI or hyperlink to, the\n          Adapter's License You apply. You may satisfy this condition\n          in any reasonable manner based on the medium, means, and\n          context in which You Share Adapted Material.\n\n       3. You may not offer or impose any additional or different terms\n          or conditions on, or apply any Effective Technological\n          Measures to, Adapted Material that restrict exercise of the\n          rights granted under the Adapter's License You apply.\n\n\nSection 4 -- Sui Generis Database Rights.\n\nWhere the Licensed Rights include Sui Generis Database Rights that\napply to Your use of the Licensed Material:\n\n  a. for the avoidance of doubt, Section 2(a)(1) grants You the right\n     to extract, reuse, reproduce, and Share all or a substantial\n     portion of the contents of the database;\n\n  b. if You include all or a substantial portion of the database\n     contents in a database in which You have Sui Generis Database\n     Rights, then the database in which You have Sui Generis Database\n     Rights (but not its individual contents) is Adapted Material,\n\n     including for purposes of Section 3(b); and\n  c. You must comply with the conditions in Section 3(a) if You Share\n     all or a substantial portion of the contents of the database.\n\nFor the avoidance of doubt, this Section 4 supplements and does not\nreplace Your obligations under this Public License where the Licensed\nRights include other Copyright and Similar Rights.\n\n\nSection 5 -- Disclaimer of Warranties and Limitation of Liability.\n\n  a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE\n     EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS\n     AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF\n     ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,\n     IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,\n     WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR\n     PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,\n     ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT\n     KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT\n     ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.\n\n  b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE\n     TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,\n     NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,\n     INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,\n     COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR\n     USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN\n     ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR\n     DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR\n     IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.\n\n  c. The disclaimer of warranties and limitation of liability provided\n     above shall be interpreted in a manner that, to the extent\n     possible, most closely approximates an absolute disclaimer and\n     waiver of all liability.\n\n\nSection 6 -- Term and Termination.\n\n  a. This Public License applies for the term of the Copyright and\n     Similar Rights licensed here. However, if You fail to comply with\n     this Public License, then Your rights under this Public License\n     terminate automatically.\n\n  b. Where Your right to use the Licensed Material has terminated under\n     Section 6(a), it reinstates:\n\n       1. automatically as of the date the violation is cured, provided\n          it is cured within 30 days of Your discovery of the\n          violation; or\n\n       2. upon express reinstatement by the Licensor.\n\n     For the avoidance of doubt, this Section 6(b) does not affect any\n     right the Licensor may have to seek remedies for Your violations\n     of this Public License.\n\n  c. For the avoidance of doubt, the Licensor may also offer the\n     Licensed Material under separate terms or conditions or stop\n     distributing the Licensed Material at any time; however, doing so\n     will not terminate this Public License.\n\n  d. Sections 1, 5, 6, 7, and 8 survive termination of this Public\n     License.\n\n\nSection 7 -- Other Terms and Conditions.\n\n  a. The Licensor shall not be bound by any additional or different\n     terms or conditions communicated by You unless expressly agreed.\n\n  b. Any arrangements, understandings, or agreements regarding the\n     Licensed Material not stated herein are separate from and\n     independent of the terms and conditions of this Public License.\n\n\nSection 8 -- Interpretation.\n\n  a. For the avoidance of doubt, this Public License does not, and\n     shall not be interpreted to, reduce, limit, restrict, or impose\n     conditions on any use of the Licensed Material that could lawfully\n     be made without permission under this Public License.\n\n  b. To the extent possible, if any provision of this Public License is\n     deemed unenforceable, it shall be automatically reformed to the\n     minimum extent necessary to make it enforceable. If the provision\n     cannot be reformed, it shall be severed from this Public License\n     without affecting the enforceability of the remaining terms and\n     conditions.\n\n  c. No term or condition of this Public License will be waived and no\n     failure to comply consented to unless expressly agreed to by the\n     Licensor.\n\n  d. Nothing in this Public License constitutes or may be interpreted\n     as a limitation upon, or waiver of, any privileges and immunities\n     that apply to the Licensor or You, including from the legal\n     processes of any jurisdiction or authority.\n\n\n=======================================================================\n\nCreative Commons is not a party to its public\nlicenses. Notwithstanding, Creative Commons may elect to apply one of\nits public licenses to material it publishes and in those instances\nwill be considered the “Licensor.” The text of the Creative Commons\npublic licenses is dedicated to the public domain under the CC0 Public\nDomain Dedication. Except for the limited purpose of indicating that\nmaterial is shared under a Creative Commons public license or as\notherwise permitted by the Creative Commons policies published at\ncreativecommons.org/policies, Creative Commons does not authorize the\nuse of the trademark \"Creative Commons\" or any other trademark or logo\nof Creative Commons without its prior written consent including,\nwithout limitation, in connection with any unauthorized modifications\nto any of its public licenses or any other arrangements,\nunderstandings, or agreements concerning use of licensed material. For\nthe avoidance of doubt, this paragraph does not form part of the\npublic licenses.\n\nCreative Commons may be contacted at creativecommons.org.\n\n"
  },
  {
    "path": "app/qml/fonts/departure-mono/LICENSE",
    "content": "Copyright 2022–2024 Helena Zhang (helenazhang.com).\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttps://openfontlicense.org\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded,\nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\"Font Software\" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the\ncopyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n"
  },
  {
    "path": "app/qml/fonts/fira-code/LICENSE.txt",
    "content": "Copyright (c) 2014, The Fira Code Project Authors (https://github.com/tonsky/FiraCode)\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttp://scripts.sil.org/OFL\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded,\nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\"Font Software\" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the\ncopyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n"
  },
  {
    "path": "app/qml/fonts/gohu/LICENSE",
    "content": "            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n                    Version 2, December 2004\n\n Copyright (C) 2004 Sam Hocevar\n  14 rue de Plaisance, 75014 Paris, France\n Everyone is permitted to copy and distribute verbatim or modified\n copies of this license document, and changing it is allowed as long\n as the name is changed.\n\n            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. You just DO WHAT THE FUCK YOU WANT TO. \n"
  },
  {
    "path": "app/qml/fonts/greybeard/LICENSE",
    "content": "MIT License\n\nCopyright (c) 2012-2015 Uwe Waldmann\nModified work Copyright 2018 Andy Walker\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "app/qml/fonts/hack/LICENSE.txt",
    "content": "The work in the Hack project is Copyright 2018 Source Foundry Authors and licensed under the MIT License\n\nThe work in the DejaVu project was committed to the public domain.\n\nBitstream Vera Sans Mono Copyright 2003 Bitstream Inc. and licensed under the Bitstream Vera License with Reserved Font Names \"Bitstream\" and \"Vera\"\n\n### MIT License\n\nCopyright (c) 2018 Source Foundry Authors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n### BITSTREAM VERA LICENSE\n\nCopyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license (\"Fonts\") and associated documentation files (the \"Font Software\"), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:\n\nThe above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\n\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words \"Bitstream\" or the word \"Vera\".\n\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the \"Bitstream Vera\" names.\n\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself.\n\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.\n\nExcept as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org.\n"
  },
  {
    "path": "app/qml/fonts/ibm-3278/LICENSE.txt",
    "content": "Copyright 2022 The 3270font Authors (https://github.com/rbanffy/3270font)\n\nCopyright (c) 2011-2022, Ricardo Banffy.\nCopyright (c) 1993-2011, Paul Mattes.\nCopyright (c) 2004-2005, Don Russell.\nCopyright (c) 2004, Dick Altenbern.\nCopyright (c) 1990, Jeff Sparkes.\nCopyright (c) 1989, Georgia Tech Research Corporation (GTRC), Atlanta, GA 30332.\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n    * Redistributions of source code must retain the above copyright notice,\n      this list of conditions and the following disclaimer.\n\n    * Redistributions in binary form must reproduce the above copyright notice,\n      this list of conditions and the following disclaimer in the documentation\n      and/or other materials provided with the distribution.\n\n    * Neither the name of Ricardo Banffy, Paul Mattes, Don Russell,\n      Dick Altenbern, Jeff Sparkes, GTRC nor the names of their contributors\n      may be used to endorse or promote products derived from this software\n      without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\nIN NO EVENT SHALL RICARDO BANFFY, PAUL MATTES, DON RUSSELL, DICK ALTENBERN, JEFF\nSPARKES OR GTRC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\nEXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT\nOF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,\nSTRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY\nOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\nThe Debian Logo glyph is based on the Debian Open Use Logo and is\nCopyright (c) 1999 Software in the Public Interest, Inc., and it is\nincorporated here under the terms of the Creative Commons\nAttribution-ShareAlike 3.0 Unported License. The logo is released\nunder the terms of the GNU Lesser General Public License, version 3 or\nany later version, or, at your option, of the Creative Commons\nAttribution-ShareAlike 3.0 Unported License.\n\nUbuntu, the Ubuntu logo and the Circle of Friends symbol are\nregistered trademarks of Canonical Ltd.\n\nThe Fontforge SFD font description file is optionally licensed under\nthe SIL Open Font License v1.1 with no Reserved Font Name. This\nlicense is available with a FAQ at http://scripts.sil.org/OFL.\n"
  },
  {
    "path": "app/qml/fonts/ibm-3278/README.md",
    "content": "3270font: A font for the nostalgic\n==================================\n\n![Travis-CI](https://api.travis-ci.org/rbanffy/3270font.svg)\n\n![Screenshot](https://raw.githubusercontent.com/wiki/rbanffy/3270font/emacs.png)\n\n![Sample](https://raw.githubusercontent.com/wiki/rbanffy/3270font/3270Medium_sample.png)\n\nA little bit of history\n-----------------------\n\nThis font is derived from the x3270 font, which, in turn, was\ntranslated from the one in Georgia Tech's 3270tool, which was itself\nhand-copied from a 3270 series terminal. I built it because I felt\nterminals deserve to be pretty. The .sfd font file contains a x3270\nbitmap font that was used for guidance.\n\n![Using with the cool-old-tern (now cool-retro-term) terminal program](\nhttps://raw.githubusercontent.com/wiki/rbanffy/3270font/cool-retro-term.png)\n\nGetting it\n----------\n\nIf you are running Debian or Ubuntu and you don't want to mess with\nbuilding your font files, you can simply `apt-get install fonts-3270`\n(It's available from the Debian\n(https://packages.debian.org/sid/fonts/fonts-3270) and Ubuntu\n(http://packages.ubuntu.com/zesty/fonts-3270) package repos at\nhttps://packages.debian.org/sid/fonts/fonts-3270 and\nhttp://packages.ubuntu.com/xenial/fonts/fonts-3270, although the\npackaged version may not be the latest version, but it's good enough for\nmost purposes. For those who don't have the luxury of a proper\nsystem-managed package, Adobe Type 1, TTF, OTF and WOFF versions are\navailable for download on\nhttp://s3.amazonaws.com/3270font/3270_fonts_4cfe95c.zip (although this\nURL may not always reflect the latest version).\n\n![ASCII is so 60's](\nhttps://raw.githubusercontent.com/wiki/rbanffy/3270font/cyrillic.png)\n\nThe format\n----------\n\nThe \"source\" file is edited using FontForge. You'll need it if you want\nto generate fonts for your platform. On most civilized operating\nsystems, you can simply `apt-get install fontforge`, `yum install\nfontforge` or even `port install fontforge`. On others, you may need to\ngrab your copy from http://fontforge.org/. I encourage you to drop by\nand read the tutorials.\n\n![Powerline-shell compatible!](\nhttps://raw.githubusercontent.com/wiki/rbanffy/3270font/powerline.png)\n\n![Using it on OSX (don't forget to turn antialiasing on)](\nhttps://raw.githubusercontent.com/wiki/rbanffy/3270font/osx_terminal.png)\n\nIf you are running Windows, you'll probably need something like\nCygwin, but, in the end, the font works correctly (with some very\nminor hinting issues).\n\n![Works on Windows](\nhttps://raw.githubusercontent.com/wiki/rbanffy/3270font/windows_7.png)\n\nGenerating usable font files\n----------------------------\n\nThe easiest way to generate the font files your computer can use is to\nrun `make all` (if you are running Ubuntu or Debian, `make install` will\ninstall them too). Using `make help` will offer a handy list of options.\n\nThe script `generate_derived.pe` calls FontForge and generates\nPostScript, OTF, TTF and WOFF versions of the base font, as well as a\nslightly more condensed .sfd file with the base font narrowed to 488\nunits, with no glyph rescaling (or cropping - we need to fix that) and\nits corresponding PostScript, TTF, OTF and WOFF versions.\n\n![For your favorite editor](\nhttps://raw.githubusercontent.com/wiki/rbanffy/3270font/symbols.png)\n\nContributing\n------------\n\nI fear GitHub's pull-request mechanism may not be very\nFontForge-friendly. If you want to contribute (there are a lot of\nmissing glyphs, such as most non-latin alphabets which most likely were\nnever built into 3270 terminals), the best workflow would probably be to\nadd the encoding slots (if needed), add/make the changes, remove the\nunchanged glyphs and save it as a different file. If, in doubt, get in\ntouch and we will figure out how to do it right.\n\nIn order to generate the sample image and the grids for FontForge,\nyou'll need a Python 3 environment with PIL or pillow installed. The\nrequirements.txt file lists everything you need to do it.\n\nKnown problems\n--------------\n\nNot all symbols in the 3270 charset have Unicode counterparts. When\npossible, they are duplicated in the Unicode space. The 3270-only\nsymbols are at the end of the font, along with some glyphs useful for\nbuilding others.\n\nPlease refer to http://x3270.bgp.nu/Charset.html for a complete map.\n\nFuture improvements\n-------------------\n\nA grid generator is provided for producing various grid sizes for the\nfont. Those grids are not used yet, but they are intended to be used to\nalign font features to provide better rendering at common font size\nchoices. The captures below exemplify these choices:\n\n![x3270 with 32 pixel font (used as bitmap template for the font)](\nhttps://raw.githubusercontent.com/wiki/rbanffy/3270font/measurements_x3270_32.png)\n\n![x3270 with 20 pixel font](\nhttps://raw.githubusercontent.com/wiki/rbanffy/3270font/measurements_x3270_20.png)\n\n![Gnome Terminal on Ubuntu 17.10](\nhttps://raw.githubusercontent.com/wiki/rbanffy/3270font/measurements_gnome_terminal.png)\n"
  },
  {
    "path": "app/qml/fonts/iosevka/LICENSE.txt",
    "content": "Copyright (c) 2015-2023, Renzhi Li (aka. Belleve Invis, belleve@typeof.net)\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\n\nThis license is copied below, and is also available with a FAQ at:\nhttp://scripts.sil.org/OFL\n\n--------------------------\n\n\nSIL Open Font License v1.1\n====================================================\n\n\nPreamble\n----------\n\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded, \nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\n\nDefinitions\n-------------\n\n`\"Font Software\"` refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n`\"Reserved Font Name\"` refers to any names specified as such after the\ncopyright statement(s).\n\n`\"Original Version\"` refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n`\"Modified Version\"` refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n`\"Author\"` refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\n\nPermission & Conditions\n------------------------\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1. Neither the Font Software nor any of its individual components,\n   in Original or Modified Versions, may be sold by itself.\n\n2. Original or Modified Versions of the Font Software may be bundled,\n   redistributed and/or sold with any software, provided that each copy\n   contains the above copyright notice and this license. These can be\n   included either as stand-alone text files, human-readable headers or\n   in the appropriate machine-readable metadata fields within text or\n   binary files as long as those fields can be easily viewed by the user.\n\n3. No Modified Version of the Font Software may use the Reserved Font\n   Name(s) unless explicit written permission is granted by the corresponding\n   Copyright Holder. This restriction only applies to the primary font name as\n   presented to the users.\n\n4. The name(s) of the Copyright Holder(s) or the Author(s) of the Font\n   Software shall not be used to promote, endorse or advertise any\n   Modified Version, except to acknowledge the contribution(s) of the\n   Copyright Holder(s) and the Author(s) or with their explicit written\n   permission.\n\n5. The Font Software, modified or unmodified, in part or in whole,\n   must be distributed entirely under this license, and must not be\n   distributed under any other license. The requirement for fonts to\n   remain under this license does not apply to any document created\n   using the Font Software.\n\n\n\nTermination\n-----------\n\nThis license becomes null and void if any of the above conditions are\nnot met.\n\n\n    DISCLAIMER\n    \n    THE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\n    OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\n    COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n    INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\n    DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n    FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\n    OTHER DEALINGS IN THE FONT SOFTWARE.\n"
  },
  {
    "path": "app/qml/fonts/jetbrains-mono/LICENSE.txt",
    "content": "Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)\n\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\nThis license is copied below, and is also available with a FAQ at:\nhttps://scripts.sil.org/OFL\n\n\n-----------------------------------------------------------\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\n-----------------------------------------------------------\n\nPREAMBLE\nThe goals of the Open Font License (OFL) are to stimulate worldwide\ndevelopment of collaborative font projects, to support the font creation\nefforts of academic and linguistic communities, and to provide a free and\nopen framework in which fonts may be shared and improved in partnership\nwith others.\n\nThe OFL allows the licensed fonts to be used, studied, modified and\nredistributed freely as long as they are not sold by themselves. The\nfonts, including any derivative works, can be bundled, embedded, \nredistributed and/or sold with any software provided that any reserved\nnames are not used by derivative works. The fonts and derivatives,\nhowever, cannot be released under any other type of license. The\nrequirement for fonts to remain under this license does not apply\nto any document created using the fonts or their derivatives.\n\nDEFINITIONS\n\"Font Software\" refers to the set of files released by the Copyright\nHolder(s) under this license and clearly marked as such. This may\ninclude source files, build scripts and documentation.\n\n\"Reserved Font Name\" refers to any names specified as such after the\ncopyright statement(s).\n\n\"Original Version\" refers to the collection of Font Software components as\ndistributed by the Copyright Holder(s).\n\n\"Modified Version\" refers to any derivative made by adding to, deleting,\nor substituting -- in part or in whole -- any of the components of the\nOriginal Version, by changing formats or by porting the Font Software to a\nnew environment.\n\n\"Author\" refers to any designer, engineer, programmer, technical\nwriter or other person who contributed to the Font Software.\n\nPERMISSION & CONDITIONS\nPermission is hereby granted, free of charge, to any person obtaining\na copy of the Font Software, to use, study, copy, merge, embed, modify,\nredistribute, and sell modified and unmodified copies of the Font\nSoftware, subject to the following conditions:\n\n1) Neither the Font Software nor any of its individual components,\nin Original or Modified Versions, may be sold by itself.\n\n2) Original or Modified Versions of the Font Software may be bundled,\nredistributed and/or sold with any software, provided that each copy\ncontains the above copyright notice and this license. These can be\nincluded either as stand-alone text files, human-readable headers or\nin the appropriate machine-readable metadata fields within text or\nbinary files as long as those fields can be easily viewed by the user.\n\n3) No Modified Version of the Font Software may use the Reserved Font\nName(s) unless explicit written permission is granted by the corresponding\nCopyright Holder. This restriction only applies to the primary font name as\npresented to the users.\n\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\nSoftware shall not be used to promote, endorse or advertise any\nModified Version, except to acknowledge the contribution(s) of the\nCopyright Holder(s) and the Author(s) or with their explicit written\npermission.\n\n5) The Font Software, modified or unmodified, in part or in whole,\nmust be distributed entirely under this license, and must not be\ndistributed under any other license. The requirement for fonts to\nremain under this license does not apply to any document created\nusing the Font Software.\n\nTERMINATION\nThis license becomes null and void if any of the above conditions are\nnot met.\n\nDISCLAIMER\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\nOTHER DEALINGS IN THE FONT SOFTWARE.\n"
  },
  {
    "path": "app/qml/fonts/oldschool-pc-fonts/LICENSE.TXT",
    "content": "Attribution-ShareAlike 4.0 International\n\n=======================================================================\n\nCreative Commons Corporation (\"Creative Commons\") is not a law firm and\ndoes not provide legal services or legal advice. Distribution of\nCreative Commons public licenses does not create a lawyer-client or\nother relationship. Creative Commons makes its licenses and related\ninformation available on an \"as-is\" basis. Creative Commons gives no\nwarranties regarding its licenses, any material licensed under their\nterms and conditions, or any related information. Creative Commons\ndisclaims all liability for damages resulting from their use to the\nfullest extent possible.\n\nUsing Creative Commons Public Licenses\n\nCreative Commons public licenses provide a standard set of terms and\nconditions that creators and other rights holders may use to share\noriginal works of authorship and other material subject to copyright\nand certain other rights specified in the public license below. The\nfollowing considerations are for informational purposes only, are not\nexhaustive, and do not form part of our licenses.\n\n     Considerations for licensors: Our public licenses are\n     intended for use by those authorized to give the public\n     permission to use material in ways otherwise restricted by\n     copyright and certain other rights. Our licenses are\n     irrevocable. Licensors should read and understand the terms\n     and conditions of the license they choose before applying it.\n     Licensors should also secure all rights necessary before\n     applying our licenses so that the public can reuse the\n     material as expected. Licensors should clearly mark any\n     material not subject to the license. This includes other CC-\n     licensed material, or material used under an exception or\n     limitation to copyright. More considerations for licensors:\n\twiki.creativecommons.org/Considerations_for_licensors\n\n     Considerations for the public: By using one of our public\n     licenses, a licensor grants the public permission to use the\n     licensed material under specified terms and conditions. If\n     the licensor's permission is not necessary for any reason--for\n     example, because of any applicable exception or limitation to\n     copyright--then that use is not regulated by the license. Our\n     licenses grant only permissions under copyright and certain\n     other rights that a licensor has authority to grant. Use of\n     the licensed material may still be restricted for other\n     reasons, including because others have copyright or other\n     rights in the material. A licensor may make special requests,\n     such as asking that all changes be marked or described.\n     Although not required by our licenses, you are encouraged to\n     respect those requests where reasonable. More_considerations\n     for the public: \n\twiki.creativecommons.org/Considerations_for_licensees\n\n=======================================================================\n\nCreative Commons Attribution-ShareAlike 4.0 International Public\nLicense\n\nBy exercising the Licensed Rights (defined below), You accept and agree\nto be bound by the terms and conditions of this Creative Commons\nAttribution-ShareAlike 4.0 International Public License (\"Public\nLicense\"). To the extent this Public License may be interpreted as a\ncontract, You are granted the Licensed Rights in consideration of Your\nacceptance of these terms and conditions, and the Licensor grants You\nsuch rights in consideration of benefits the Licensor receives from\nmaking the Licensed Material available under these terms and\nconditions.\n\n\nSection 1 -- Definitions.\n\n  a. Adapted Material means material subject to Copyright and Similar\n     Rights that is derived from or based upon the Licensed Material\n     and in which the Licensed Material is translated, altered,\n     arranged, transformed, or otherwise modified in a manner requiring\n     permission under the Copyright and Similar Rights held by the\n     Licensor. For purposes of this Public License, where the Licensed\n     Material is a musical work, performance, or sound recording,\n     Adapted Material is always produced where the Licensed Material is\n     synched in timed relation with a moving image.\n\n  b. Adapter's License means the license You apply to Your Copyright\n     and Similar Rights in Your contributions to Adapted Material in\n     accordance with the terms and conditions of this Public License.\n\n  c. BY-SA Compatible License means a license listed at\n     creativecommons.org/compatiblelicenses, approved by Creative\n     Commons as essentially the equivalent of this Public License.\n\n  d. Copyright and Similar Rights means copyright and/or similar rights\n     closely related to copyright including, without limitation,\n     performance, broadcast, sound recording, and Sui Generis Database\n     Rights, without regard to how the rights are labeled or\n     categorized. For purposes of this Public License, the rights\n     specified in Section 2(b)(1)-(2) are not Copyright and Similar\n     Rights.\n\n  e. Effective Technological Measures means those measures that, in the\n     absence of proper authority, may not be circumvented under laws\n     fulfilling obligations under Article 11 of the WIPO Copyright\n     Treaty adopted on December 20, 1996, and/or similar international\n     agreements.\n\n  f. Exceptions and Limitations means fair use, fair dealing, and/or\n     any other exception or limitation to Copyright and Similar Rights\n     that applies to Your use of the Licensed Material.\n\n  g. License Elements means the license attributes listed in the name\n     of a Creative Commons Public License. The License Elements of this\n     Public License are Attribution and ShareAlike.\n\n  h. Licensed Material means the artistic or literary work, database,\n     or other material to which the Licensor applied this Public\n     License.\n\n  i. Licensed Rights means the rights granted to You subject to the\n     terms and conditions of this Public License, which are limited to\n     all Copyright and Similar Rights that apply to Your use of the\n     Licensed Material and that the Licensor has authority to license.\n\n  j. Licensor means the individual(s) or entity(ies) granting rights\n     under this Public License.\n\n  k. Share means to provide material to the public by any means or\n     process that requires permission under the Licensed Rights, such\n     as reproduction, public display, public performance, distribution,\n     dissemination, communication, or importation, and to make material\n     available to the public including in ways that members of the\n     public may access the material from a place and at a time\n     individually chosen by them.\n\n  l. Sui Generis Database Rights means rights other than copyright\n     resulting from Directive 96/9/EC of the European Parliament and of\n     the Council of 11 March 1996 on the legal protection of databases,\n     as amended and/or succeeded, as well as other essentially\n     equivalent rights anywhere in the world.\n\n  m. You means the individual or entity exercising the Licensed Rights\n     under this Public License. Your has a corresponding meaning.\n\n\nSection 2 -- Scope.\n\n  a. License grant.\n\n       1. Subject to the terms and conditions of this Public License,\n          the Licensor hereby grants You a worldwide, royalty-free,\n          non-sublicensable, non-exclusive, irrevocable license to\n          exercise the Licensed Rights in the Licensed Material to:\n\n            a. reproduce and Share the Licensed Material, in whole or\n               in part; and\n\n            b. produce, reproduce, and Share Adapted Material.\n\n       2. Exceptions and Limitations. For the avoidance of doubt, where\n          Exceptions and Limitations apply to Your use, this Public\n          License does not apply, and You do not need to comply with\n          its terms and conditions.\n\n       3. Term. The term of this Public License is specified in Section\n          6(a).\n\n       4. Media and formats; technical modifications allowed. The\n          Licensor authorizes You to exercise the Licensed Rights in\n          all media and formats whether now known or hereafter created,\n          and to make technical modifications necessary to do so. The\n          Licensor waives and/or agrees not to assert any right or\n          authority to forbid You from making technical modifications\n          necessary to exercise the Licensed Rights, including\n          technical modifications necessary to circumvent Effective\n          Technological Measures. For purposes of this Public License,\n          simply making modifications authorized by this Section 2(a)\n          (4) never produces Adapted Material.\n\n       5. Downstream recipients.\n\n            a. Offer from the Licensor -- Licensed Material. Every\n               recipient of the Licensed Material automatically\n               receives an offer from the Licensor to exercise the\n               Licensed Rights under the terms and conditions of this\n               Public License.\n\n            b. Additional offer from the Licensor -- Adapted Material.\n               Every recipient of Adapted Material from You\n               automatically receives an offer from the Licensor to\n               exercise the Licensed Rights in the Adapted Material\n               under the conditions of the Adapter's License You apply.\n\n            c. No downstream restrictions. You may not offer or impose\n               any additional or different terms or conditions on, or\n               apply any Effective Technological Measures to, the\n               Licensed Material if doing so restricts exercise of the\n               Licensed Rights by any recipient of the Licensed\n               Material.\n\n       6. No endorsement. Nothing in this Public License constitutes or\n          may be construed as permission to assert or imply that You\n          are, or that Your use of the Licensed Material is, connected\n          with, or sponsored, endorsed, or granted official status by,\n          the Licensor or others designated to receive attribution as\n          provided in Section 3(a)(1)(A)(i).\n\n  b. Other rights.\n\n       1. Moral rights, such as the right of integrity, are not\n          licensed under this Public License, nor are publicity,\n          privacy, and/or other similar personality rights; however, to\n          the extent possible, the Licensor waives and/or agrees not to\n          assert any such rights held by the Licensor to the limited\n          extent necessary to allow You to exercise the Licensed\n          Rights, but not otherwise.\n\n       2. Patent and trademark rights are not licensed under this\n          Public License.\n\n       3. To the extent possible, the Licensor waives any right to\n          collect royalties from You for the exercise of the Licensed\n          Rights, whether directly or through a collecting society\n          under any voluntary or waivable statutory or compulsory\n          licensing scheme. In all other cases the Licensor expressly\n          reserves any right to collect such royalties.\n\n\nSection 3 -- License Conditions.\n\nYour exercise of the Licensed Rights is expressly made subject to the\nfollowing conditions.\n\n  a. Attribution.\n\n       1. If You Share the Licensed Material (including in modified\n          form), You must:\n\n            a. retain the following if it is supplied by the Licensor\n               with the Licensed Material:\n\n                 i. identification of the creator(s) of the Licensed\n                    Material and any others designated to receive\n                    attribution, in any reasonable manner requested by\n                    the Licensor (including by pseudonym if\n                    designated);\n\n                ii. a copyright notice;\n\n               iii. a notice that refers to this Public License;\n\n                iv. a notice that refers to the disclaimer of\n                    warranties;\n\n                 v. a URI or hyperlink to the Licensed Material to the\n                    extent reasonably practicable;\n\n            b. indicate if You modified the Licensed Material and\n               retain an indication of any previous modifications; and\n\n            c. indicate the Licensed Material is licensed under this\n               Public License, and include the text of, or the URI or\n               hyperlink to, this Public License.\n\n       2. You may satisfy the conditions in Section 3(a)(1) in any\n          reasonable manner based on the medium, means, and context in\n          which You Share the Licensed Material. For example, it may be\n          reasonable to satisfy the conditions by providing a URI or\n          hyperlink to a resource that includes the required\n          information.\n\n       3. If requested by the Licensor, You must remove any of the\n          information required by Section 3(a)(1)(A) to the extent\n          reasonably practicable.\n\n  b. ShareAlike.\n\n     In addition to the conditions in Section 3(a), if You Share\n     Adapted Material You produce, the following conditions also apply.\n\n       1. The Adapter's License You apply must be a Creative Commons\n          license with the same License Elements, this version or\n          later, or a BY-SA Compatible License.\n\n       2. You must include the text of, or the URI or hyperlink to, the\n          Adapter's License You apply. You may satisfy this condition\n          in any reasonable manner based on the medium, means, and\n          context in which You Share Adapted Material.\n\n       3. You may not offer or impose any additional or different terms\n          or conditions on, or apply any Effective Technological\n          Measures to, Adapted Material that restrict exercise of the\n          rights granted under the Adapter's License You apply.\n\n\nSection 4 -- Sui Generis Database Rights.\n\nWhere the Licensed Rights include Sui Generis Database Rights that\napply to Your use of the Licensed Material:\n\n  a. for the avoidance of doubt, Section 2(a)(1) grants You the right\n     to extract, reuse, reproduce, and Share all or a substantial\n     portion of the contents of the database;\n\n  b. if You include all or a substantial portion of the database\n     contents in a database in which You have Sui Generis Database\n     Rights, then the database in which You have Sui Generis Database\n     Rights (but not its individual contents) is Adapted Material,\n\n     including for purposes of Section 3(b); and\n  c. You must comply with the conditions in Section 3(a) if You Share\n     all or a substantial portion of the contents of the database.\n\nFor the avoidance of doubt, this Section 4 supplements and does not\nreplace Your obligations under this Public License where the Licensed\nRights include other Copyright and Similar Rights.\n\n\nSection 5 -- Disclaimer of Warranties and Limitation of Liability.\n\n  a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE\n     EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS\n     AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF\n     ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,\n     IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,\n     WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR\n     PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,\n     ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT\n     KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT\n     ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.\n\n  b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE\n     TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,\n     NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,\n     INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,\n     COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR\n     USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN\n     ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR\n     DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR\n     IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.\n\n  c. The disclaimer of warranties and limitation of liability provided\n     above shall be interpreted in a manner that, to the extent\n     possible, most closely approximates an absolute disclaimer and\n     waiver of all liability.\n\n\nSection 6 -- Term and Termination.\n\n  a. This Public License applies for the term of the Copyright and\n     Similar Rights licensed here. However, if You fail to comply with\n     this Public License, then Your rights under this Public License\n     terminate automatically.\n\n  b. Where Your right to use the Licensed Material has terminated under\n     Section 6(a), it reinstates:\n\n       1. automatically as of the date the violation is cured, provided\n          it is cured within 30 days of Your discovery of the\n          violation; or\n\n       2. upon express reinstatement by the Licensor.\n\n     For the avoidance of doubt, this Section 6(b) does not affect any\n     right the Licensor may have to seek remedies for Your violations\n     of this Public License.\n\n  c. For the avoidance of doubt, the Licensor may also offer the\n     Licensed Material under separate terms or conditions or stop\n     distributing the Licensed Material at any time; however, doing so\n     will not terminate this Public License.\n\n  d. Sections 1, 5, 6, 7, and 8 survive termination of this Public\n     License.\n\n\nSection 7 -- Other Terms and Conditions.\n\n  a. The Licensor shall not be bound by any additional or different\n     terms or conditions communicated by You unless expressly agreed.\n\n  b. Any arrangements, understandings, or agreements regarding the\n     Licensed Material not stated herein are separate from and\n     independent of the terms and conditions of this Public License.\n\n\nSection 8 -- Interpretation.\n\n  a. For the avoidance of doubt, this Public License does not, and\n     shall not be interpreted to, reduce, limit, restrict, or impose\n     conditions on any use of the Licensed Material that could lawfully\n     be made without permission under this Public License.\n\n  b. To the extent possible, if any provision of this Public License is\n     deemed unenforceable, it shall be automatically reformed to the\n     minimum extent necessary to make it enforceable. If the provision\n     cannot be reformed, it shall be severed from this Public License\n     without affecting the enforceability of the remaining terms and\n     conditions.\n\n  c. No term or condition of this Public License will be waived and no\n     failure to comply consented to unless expressly agreed to by the\n     Licensor.\n\n  d. Nothing in this Public License constitutes or may be interpreted\n     as a limitation upon, or waiver of, any privileges and immunities\n     that apply to the Licensor or You, including from the legal\n     processes of any jurisdiction or authority.\n\n\n=======================================================================\n\nCreative Commons is not a party to its public\nlicenses. Notwithstanding, Creative Commons may elect to apply one of\nits public licenses to material it publishes and in those instances\nwill be considered the “Licensor.” The text of the Creative Commons\npublic licenses is dedicated to the public domain under the CC0 Public\nDomain Dedication. Except for the limited purpose of indicating that\nmaterial is shared under a Creative Commons public license or as\notherwise permitted by the Creative Commons policies published at\ncreativecommons.org/policies, Creative Commons does not authorize the\nuse of the trademark \"Creative Commons\" or any other trademark or logo\nof Creative Commons without its prior written consent including,\nwithout limitation, in connection with any unauthorized modifications\nto any of its public licenses or any other arrangements,\nunderstandings, or agreements concerning use of licensed material. For\nthe avoidance of doubt, this paragraph does not form part of the\npublic licenses.\n\nCreative Commons may be contacted at creativecommons.org.\n\n"
  },
  {
    "path": "app/qml/fonts/opendyslexic/LICENSE.txt",
    "content": "License\n-------\nThe license for this font is: \n\n♡ Copying is an act of love. Please copy.\nBitstream License: \n\nCopyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is a trademark of Bitstream, Inc. \n\nPermission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license (“Fonts”) and associated documentation files (the “Font Software”), to reproduce and distribute the Font Software, including without limitation the rights to use, copy, merge, publish, distribute, and/or sell copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions: \n\nThe above copyright and trademark notices and this permission notice shall be included in all copies of one or more of the Font Software typefaces.\n\nThe Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing either the words “Bitstream” or the word “Vera”.\n\nThis License becomes null and void to the extent applicable to Fonts or Font Software that has been modified and is distributed under the “Bitstream Vera” names. \n\nThe Font Software may be sold as part of a larger software package but no copy of one or more of the Font Software typefaces may be sold by itself. \n\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. \n\nExcept as contained in this notice, the names of Gnome, the Gnome Foundation, and Bitstream Inc., shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Font Software without prior written authorization from the Gnome Foundation or Bitstream Inc., respectively. For further information, contact: fonts at gnome dot org. \n"
  },
  {
    "path": "app/qml/fonts/pet-me/FreeLicense.txt",
    "content": "KREATIVE SOFTWARE RELAY FONTS FREE USE LICENSE\r\nversion 1.2f\r\n\r\nPermission is hereby granted, free of charge, to any person or entity (the \"User\") obtaining a copy of the included font files (the \"Software\") produced by Kreative Software, to utilize, display, embed, or redistribute the Software, subject to the following conditions:\r\n\r\n1. The User may not sell copies of the Software for a fee.\r\n\r\n1a. The User may give away copies of the Software free of charge provided this license and any documentation is included verbatim and credit is given to Kreative Korporation or Kreative Software.\r\n\r\n2. The User may not modify, reverse-engineer, or create any derivative works of the Software.\r\n\r\n3. Any Software carrying the following font names or variations thereof is not covered by this license and may not be used under the terms of this license: Jewel Hill, Miss Diode n Friends, This is Beckie's font!\r\n\r\n3a. Any Software carrying a font name ending with the string \"Pro CE\" is not covered by this license and may not be used under the terms of this license.\r\n\r\n4. This license becomes null and void if any of the above conditions are not met.\r\n\r\n5. Kreative Software reserves the right to change this license at any time without notice.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE SOFTWARE OR FROM OTHER DEALINGS IN THE SOFTWARE.\r\n"
  },
  {
    "path": "app/qml/fonts/source-code-pro/LICENSE.txt",
    "content": "Copyright 2010-2020 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.\r\n\r\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\r\n\r\nThis license is copied below, and is also available with a FAQ at: http://scripts.sil.org/OFL\r\n\r\n\r\n-----------------------------------------------------------\r\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\r\n-----------------------------------------------------------\r\n\r\nPREAMBLE\r\nThe goals of the Open Font License (OFL) are to stimulate worldwide\r\ndevelopment of collaborative font projects, to support the font creation\r\nefforts of academic and linguistic communities, and to provide a free and\r\nopen framework in which fonts may be shared and improved in partnership\r\nwith others.\r\n\r\nThe OFL allows the licensed fonts to be used, studied, modified and\r\nredistributed freely as long as they are not sold by themselves. The\r\nfonts, including any derivative works, can be bundled, embedded,\r\nredistributed and/or sold with any software provided that any reserved\r\nnames are not used by derivative works. The fonts and derivatives,\r\nhowever, cannot be released under any other type of license. The\r\nrequirement for fonts to remain under this license does not apply\r\nto any document created using the fonts or their derivatives.\r\n\r\nDEFINITIONS\r\n\"Font Software\" refers to the set of files released by the Copyright\r\nHolder(s) under this license and clearly marked as such. This may\r\ninclude source files, build scripts and documentation.\r\n\r\n\"Reserved Font Name\" refers to any names specified as such after the\r\ncopyright statement(s).\r\n\r\n\"Original Version\" refers to the collection of Font Software components as\r\ndistributed by the Copyright Holder(s).\r\n\r\n\"Modified Version\" refers to any derivative made by adding to, deleting,\r\nor substituting -- in part or in whole -- any of the components of the\r\nOriginal Version, by changing formats or by porting the Font Software to a\r\nnew environment.\r\n\r\n\"Author\" refers to any designer, engineer, programmer, technical\r\nwriter or other person who contributed to the Font Software.\r\n\r\nPERMISSION & CONDITIONS\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of the Font Software, to use, study, copy, merge, embed, modify,\r\nredistribute, and sell modified and unmodified copies of the Font\r\nSoftware, subject to the following conditions:\r\n\r\n1) Neither the Font Software nor any of its individual components,\r\nin Original or Modified Versions, may be sold by itself.\r\n\r\n2) Original or Modified Versions of the Font Software may be bundled,\r\nredistributed and/or sold with any software, provided that each copy\r\ncontains the above copyright notice and this license. These can be\r\nincluded either as stand-alone text files, human-readable headers or\r\nin the appropriate machine-readable metadata fields within text or\r\nbinary files as long as those fields can be easily viewed by the user.\r\n\r\n3) No Modified Version of the Font Software may use the Reserved Font\r\nName(s) unless explicit written permission is granted by the corresponding\r\nCopyright Holder. This restriction only applies to the primary font name as\r\npresented to the users.\r\n\r\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\r\nSoftware shall not be used to promote, endorse or advertise any\r\nModified Version, except to acknowledge the contribution(s) of the\r\nCopyright Holder(s) and the Author(s) or with their explicit written\r\npermission.\r\n\r\n5) The Font Software, modified or unmodified, in part or in whole,\r\nmust be distributed entirely under this license, and must not be\r\ndistributed under any other license. The requirement for fonts to\r\nremain under this license does not apply to any document created\r\nusing the Font Software.\r\n\r\nTERMINATION\r\nThis license becomes null and void if any of the above conditions are\r\nnot met.\r\n\r\nDISCLAIMER\r\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\r\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\r\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\r\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\r\nOTHER DEALINGS IN THE FONT SOFTWARE.\r\n"
  },
  {
    "path": "app/qml/fonts/terminus/LICENSE-Terminess.txt",
    "content": "Copyright (c) 2010 Dimitar Toshkov Zhekov,\r\nwith Reserved Font Name \"Terminus Font\".\r\n\r\nCopyright (c) 2011-2021 Tilman Blumenbach,\r\nwith Reserved Font Name \"Terminus (TTF)\".\r\n\r\nThis Font Software is licensed under the SIL Open Font License, Version 1.1.\r\nThis license is copied below, and is also available with a FAQ at:\r\nhttp://scripts.sil.org/OFL\r\n\r\n\r\n-----------------------------------------------------------\r\nSIL OPEN FONT LICENSE Version 1.1 - 26 February 2007\r\n-----------------------------------------------------------\r\n\r\nPREAMBLE\r\nThe goals of the Open Font License (OFL) are to stimulate worldwide\r\ndevelopment of collaborative font projects, to support the font creation\r\nefforts of academic and linguistic communities, and to provide a free and\r\nopen framework in which fonts may be shared and improved in partnership\r\nwith others.\r\n\r\nThe OFL allows the licensed fonts to be used, studied, modified and\r\nredistributed freely as long as they are not sold by themselves. The\r\nfonts, including any derivative works, can be bundled, embedded, \r\nredistributed and/or sold with any software provided that any reserved\r\nnames are not used by derivative works. The fonts and derivatives,\r\nhowever, cannot be released under any other type of license. The\r\nrequirement for fonts to remain under this license does not apply\r\nto any document created using the fonts or their derivatives.\r\n\r\nDEFINITIONS\r\n\"Font Software\" refers to the set of files released by the Copyright\r\nHolder(s) under this license and clearly marked as such. This may\r\ninclude source files, build scripts and documentation.\r\n\r\n\"Reserved Font Name\" refers to any names specified as such after the\r\ncopyright statement(s).\r\n\r\n\"Original Version\" refers to the collection of Font Software components as\r\ndistributed by the Copyright Holder(s).\r\n\r\n\"Modified Version\" refers to any derivative made by adding to, deleting,\r\nor substituting -- in part or in whole -- any of the components of the\r\nOriginal Version, by changing formats or by porting the Font Software to a\r\nnew environment.\r\n\r\n\"Author\" refers to any designer, engineer, programmer, technical\r\nwriter or other person who contributed to the Font Software.\r\n\r\nPERMISSION & CONDITIONS\r\nPermission is hereby granted, free of charge, to any person obtaining\r\na copy of the Font Software, to use, study, copy, merge, embed, modify,\r\nredistribute, and sell modified and unmodified copies of the Font\r\nSoftware, subject to the following conditions:\r\n\r\n1) Neither the Font Software nor any of its individual components,\r\nin Original or Modified Versions, may be sold by itself.\r\n\r\n2) Original or Modified Versions of the Font Software may be bundled,\r\nredistributed and/or sold with any software, provided that each copy\r\ncontains the above copyright notice and this license. These can be\r\nincluded either as stand-alone text files, human-readable headers or\r\nin the appropriate machine-readable metadata fields within text or\r\nbinary files as long as those fields can be easily viewed by the user.\r\n\r\n3) No Modified Version of the Font Software may use the Reserved Font\r\nName(s) unless explicit written permission is granted by the corresponding\r\nCopyright Holder. This restriction only applies to the primary font name as\r\npresented to the users.\r\n\r\n4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font\r\nSoftware shall not be used to promote, endorse or advertise any\r\nModified Version, except to acknowledge the contribution(s) of the\r\nCopyright Holder(s) and the Author(s) or with their explicit written\r\npermission.\r\n\r\n5) The Font Software, modified or unmodified, in part or in whole,\r\nmust be distributed entirely under this license, and must not be\r\ndistributed under any other license. The requirement for fonts to\r\nremain under this license does not apply to any document created\r\nusing the Font Software.\r\n\r\nTERMINATION\r\nThis license becomes null and void if any of the above conditions are\r\nnot met.\r\n\r\nDISCLAIMER\r\nTHE FONT SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\r\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\r\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT\r\nOF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE\r\nCOPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r\nINCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL\r\nDAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\r\nFROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM\r\nOTHER DEALINGS IN THE FONT SOFTWARE.\r\n"
  },
  {
    "path": "app/qml/fonts/unscii/LICENSE",
    "content": "You can consider it Public Domain (or CC-0) except for the files derived from or containing parts of Roman Czyborra's Unifont project (unifont.hex, hex2bdf.pl, unscii-16-full.*) which fall under GPL. See https://savannah.gnu.org/projects/unifont/ for more.\n"
  },
  {
    "path": "app/qml/main.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\n\nimport \"menus\"\n\nQtObject {\n    id: appRoot\n\n    property ApplicationSettings appSettings: ApplicationSettings {\n        onInitializedSettings: appRoot.createWindow()\n    }\n\n    property TimeManager timeManager: TimeManager {\n        enableTimer: windowsModel.count > 0\n    }\n\n    property SettingsWindow settingsWindow: SettingsWindow {\n        visible: false\n    }\n\n    property AboutDialog aboutDialog: AboutDialog {\n        visible: false\n    }\n\n    property Component windowComponent: Component {\n        TerminalWindow { }\n    }\n\n    property ListModel windowsModel: ListModel { }\n\n    function createWindow() {\n        var window = windowComponent.createObject(null)\n        if (!window)\n            return\n\n        windowsModel.append({ window: window })\n        window.show()\n        window.requestActivate()\n    }\n\n    function closeWindow(window) {\n        for (var i = 0; i < windowsModel.count; i++) {\n            if (windowsModel.get(i).window === window) {\n                windowsModel.remove(i)\n                break\n            }\n        }\n\n        window.destroy()\n\n        if (windowsModel.count === 0) {\n            appSettings.close()\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/menus/FullContextMenu.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.3\n\nMenu {\n    id: contextmenu\n    MenuItem {\n        action: copyAction\n    }\n    MenuItem {\n        action: pasteAction\n    }\n    MenuItem {\n        action: showsettingsAction\n    }\n\n    Menu {\n        title: qsTr(\"File\")\n        MenuItem {\n            action: newWindowAction\n        }\n        MenuItem {\n            action: newTabAction\n        }\n        MenuSeparator {}\n        MenuItem {\n            action: quitAction\n        }\n    }\n    Menu {\n        title: qsTr(\"Edit\")\n        MenuItem {\n            action: copyAction\n        }\n        MenuItem {\n            action: pasteAction\n        }\n        MenuSeparator {}\n        MenuItem {\n            action: showsettingsAction\n        }\n    }\n    Menu {\n        title: qsTr(\"View\")\n        MenuItem {\n            action: fullscreenAction\n            visible: fullscreenAction.enabled\n        }\n        MenuItem {\n            action: zoomIn\n        }\n        MenuItem {\n            action: zoomOut\n        }\n    }\n    Menu {\n        id: profilesMenu\n        title: qsTr(\"Profiles\")\n        Instantiator {\n            model: appSettings.profilesList\n            delegate: MenuItem {\n                text: model.text\n                onTriggered: {\n                    appSettings.loadProfileString(obj_string)\n                }\n            }\n            onObjectAdded: function(index, object) { profilesMenu.insertItem(index, object) }\n            onObjectRemoved: function(object) { profilesMenu.removeItem(object) }\n        }\n    }\n    Menu {\n        title: qsTr(\"Help\")\n        MenuItem {\n            action: showAboutAction\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/menus/ShortContextMenu.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.3\n\nMenu {\n    id: contextmenu\n    MenuItem {\n        action: copyAction\n    }\n    MenuItem {\n        action: pasteAction\n    }\n}\n"
  },
  {
    "path": "app/qml/menus/WindowMenu.qml",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\nimport QtQuick 2.2\nimport QtQuick.Controls 2.3\n\nMenuBar {\n    id: defaultMenuBar\n    visible: appSettings.isMacOS || appSettings.showMenubar\n\n    Menu {\n        title: qsTr(\"File\")\n        MenuItem { action: newWindowAction }\n        MenuItem { action: newTabAction }\n        MenuItem { action: closeTabAction }\n        MenuSeparator { }\n        MenuItem { action: quitAction }\n    }\n    Menu {\n        title: qsTr(\"Edit\")\n        MenuItem { action: copyAction }\n        MenuItem { action: pasteAction }\n        MenuSeparator {}\n        MenuItem { action: showsettingsAction }\n    }\n    Menu {\n        id: viewMenu\n        title: qsTr(\"View\")\n        Instantiator {\n            model: !appSettings.isMacOS ? 1 : 0\n            delegate: MenuItem { action: fullscreenAction }\n            onObjectAdded: (index, object) => viewMenu.insertItem(index, object)\n            onObjectRemoved: (index, object) => viewMenu.removeItem(object)\n        }\n        MenuItem { action: zoomIn }\n        MenuItem { action: zoomOut }\n    }\n    Menu {\n        id: profilesMenu\n        title: qsTr(\"Profiles\")\n        Instantiator {\n            model: appSettings.profilesList\n            delegate: MenuItem {\n                text: model.text\n                onTriggered: {\n                    appSettings.loadProfileString(obj_string)\n                }\n            }\n            onObjectAdded: function(index, object) { profilesMenu.insertItem(index, object) }\n            onObjectRemoved: function(object) { profilesMenu.removeItem(object) }\n        }\n    }\n    Menu {\n        title: qsTr(\"Help\")\n        MenuItem {\n            action: showAboutAction\n        }\n    }\n}\n"
  },
  {
    "path": "app/qml/resources.qrc",
    "content": "<RCC>\n    <qresource prefix=\"/\">\n        <file>SizeOverlay.qml</file>\n        <file>ShaderTerminal.qml</file>\n        <file>CheckableSlider.qml</file>\n        <file>ApplicationSettings.qml</file>\n        <file>SettingsWindow.qml</file>\n        <file>TerminalWindow.qml</file>\n        <file>SettingsGeneralTab.qml</file>\n        <file>PreprocessedTerminal.qml</file>\n        <file>TimeManager.qml</file>\n        <file>SimpleSlider.qml</file>\n        <file>ColorButton.qml</file>\n        <file>AboutDialog.qml</file>\n        <file>InsertNameDialog.qml</file>\n        <file>SettingsEffectsTab.qml</file>\n        <file>main.qml</file>\n        <file>SettingsTerminalTab.qml</file>\n        <file>fonts/apple2/PrintChar21.ttf</file>\n        <file>fonts/ibm-3278/3270NerdFontMono-Regular.ttf</file>\n        <file>Storage.qml</file>\n        <file>SettingsAdvancedTab.qml</file>\n        <file>TerminalContainer.qml</file>\n        <file>TerminalTabs.qml</file>\n        <file>images/crt256.png</file>\n        <file>utils.js</file>\n        <file>images/allNoise512.png</file>\n        <file>fonts/fixedsys-excelsior/FSEX301-L2.ttf</file>\n        <file>fonts/cozette/CozetteVector.ttf</file>\n        <file>fonts/greybeard/Greybeard-16px.ttf</file>\n        <file>fonts/gohu/GohuFont11NerdFontMono-Regular.ttf</file>\n        <file>fonts/hack/HackNerdFontMono-Regular.ttf</file>\n        <file>fonts/fira-code/FiraCodeNerdFontMono-Regular.ttf</file>\n        <file>fonts/bigblue-terminal/BigBlueTerm437NerdFontMono-Regular.ttf</file>\n        <file>fonts/iosevka/IosevkaTermNerdFontMono-Regular.ttf</file>\n        <file>fonts/jetbrains-mono/JetBrainsMonoNerdFontMono-Regular.ttf</file>\n        <file>../icons/32x32/cool-retro-term.png</file>\n        <file>Components/SizedLabel.qml</file>\n        <file>fonts/atari-400-800/AtariClassic-Regular.ttf</file>\n        <file>fonts/pet-me/PetMe64.ttf</file>\n        <file>fonts/pet-me/PetMe.ttf</file>\n        <file>BurnInEffect.qml</file>\n        <file>fonts/terminus/TerminessNerdFontMono-Regular.ttf</file>\n        <file>fonts/departure-mono/DepartureMonoNerdFontMono-Regular.otf</file>\n        <file>fonts/opendyslexic/OpenDyslexicMNerdFontMono-Regular.otf</file>\n        <file>fonts/source-code-pro/SauceCodeProNerdFontMono-Regular.ttf</file>\n        <file>TerminalFrame.qml</file>\n        <file>menus/WindowMenu.qml</file>\n        <file>menus/FullContextMenu.qml</file>\n        <file>menus/ShortContextMenu.qml</file>\n        <file>../shaders/terminal_dynamic.vert.qsb</file>\n        <file>../shaders/terminal_static.vert.qsb</file>\n        <file>../shaders/terminal_frame.vert.qsb</file>\n        <file>../shaders/burn_in.vert.qsb</file>\n        <file>../shaders/terminal_dynamic_raster0_burn0_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster0_burn0_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster0_burn0_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster0_burn0_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster0_burn1_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster0_burn1_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster0_burn1_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster0_burn1_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster1_burn0_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster1_burn0_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster1_burn0_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster1_burn0_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster1_burn1_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster1_burn1_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster1_burn1_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster1_burn1_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster2_burn0_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster2_burn0_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster2_burn0_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster2_burn0_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster2_burn1_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster2_burn1_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster2_burn1_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster2_burn1_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster3_burn0_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster3_burn0_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster3_burn0_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster3_burn0_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster3_burn1_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster3_burn1_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster3_burn1_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster3_burn1_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster4_burn0_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster4_burn0_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster4_burn0_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster4_burn0_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster4_burn1_frame0_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster4_burn1_frame0_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster4_burn1_frame1_chroma0.frag.qsb</file>\n        <file>../shaders/terminal_dynamic_raster4_burn1_frame1_chroma1.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb0_bloom0_curve0_shine0.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb0_bloom0_curve0_shine1.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb0_bloom0_curve1_shine0.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb0_bloom0_curve1_shine1.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb0_bloom1_curve0_shine0.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb0_bloom1_curve0_shine1.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb0_bloom1_curve1_shine0.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb0_bloom1_curve1_shine1.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb1_bloom0_curve0_shine0.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb1_bloom0_curve0_shine1.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb1_bloom0_curve1_shine0.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb1_bloom0_curve1_shine1.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb1_bloom1_curve0_shine0.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb1_bloom1_curve0_shine1.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb1_bloom1_curve1_shine0.frag.qsb</file>\n        <file>../shaders/terminal_static_rgb1_bloom1_curve1_shine1.frag.qsb</file>\n        <file>../shaders/terminal_frame.frag.qsb</file>\n        <file>../shaders/burn_in.frag.qsb</file>\n        <file>fonts/unscii/unscii-8-thin.ttf</file>\n        <file>fonts/unscii/unscii-16-full.ttf</file>\n        <file>fonts/unscii/unscii-8.ttf</file>\n        <file>fonts/oldschool-pc-fonts/PxPlus_IBM_EGA_8x8.ttf</file>\n        <file>fonts/oldschool-pc-fonts/PxPlus_IBM_VGA8.ttf</file>\n        <file>fonts/oldschool-pc-fonts/PxPlus_IBM_VGA_8x16.ttf</file>\n    </qresource>\n</RCC>\n"
  },
  {
    "path": "app/qml/utils.js",
    "content": "/*******************************************************************************\n* Copyright (c) 2013-2021 \"Filippo Scognamiglio\"\n* https://github.com/Swordfish90/cool-retro-term\n*\n* This file is part of cool-retro-term.\n*\n* cool-retro-term is free software: you can redistribute it and/or modify\n* it under the terms of the GNU General Public License as published by\n* the Free Software Foundation, either version 3 of the License, or\n* (at your option) any later version.\n*\n* This program is distributed in the hope that it will be useful,\n* but WITHOUT ANY WARRANTY; without even the implied warranty of\n* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n* GNU General Public License for more details.\n*\n* You should have received a copy of the GNU General Public License\n* along with this program.  If not, see <http://www.gnu.org/licenses/>.\n*******************************************************************************/\n\n.pragma library\nfunction clamp(x, min, max) {\n    if (x <= min)\n        return min;\n    if (x >= max)\n        return max;\n    return x;\n}\n\nfunction lint(a, b, t) {\n    return (1 - t) * a + (t) * b;\n}\n\nfunction mix(c1, c2, alpha) {\n    return Qt.rgba(c1.r * (1 - alpha) + c2.r * alpha,\n                   c1.g * (1 - alpha) + c2.g * alpha,\n                   c1.b * (1 - alpha) + c2.b * alpha,\n                   c1.a * (1 - alpha) + c2.a * alpha)\n}\n\nfunction sum(c1, c2) {\n    let result = Qt.rgba(\n        clamp(c1.r + c2.r, 0, 1),\n        clamp(c1.g + c2.g, 0, 1),\n        clamp(c1.b + c2.b, 0, 1),\n        clamp(c1.a + c2.a, 0, 1)\n    );\n    return result\n}\n\nfunction scaleColor(c1, value) {\n    return Qt.rgba(\n        clamp(c1.r * value, 0, 1),\n        clamp(c1.g * value, 0, 1),\n        clamp(c1.b * value, 0, 1),\n        clamp(c1.a, 0, 1)\n    );\n}\n\nfunction smoothstep(min, max, value) {\n    let x = Math.max(0, Math.min(1, (value - min) / (max - min)));\n    return x * x * (3 - 2 * x);\n}\n\nfunction strToColor(s){\n    var r = parseInt(s.substring(1,3), 16) / 256;\n    var g = parseInt(s.substring(3,5), 16) / 256;\n    var b = parseInt(s.substring(5,7), 16) / 256;\n    return Qt.rgba(r, g, b, 1.0);\n}\n\n/* Tokenizes a command into program and arguments, taking into account quoted\n * strings and backslashes.\n * Based on GLib's tokenizer, used by Gnome Terminal\n */\nfunction tokenizeCommandLine(s){\n    var args = [];\n    var currentToken = \"\";\n    var quoteChar = \"\";\n    var escaped = false;\n    var nextToken = function() {\n        args.push(currentToken);\n        currentToken = \"\";\n    }\n    var appendToCurrentToken = function(c) {\n        currentToken += c;\n    }\n\n    for (var i = 0; i < s.length; i++) {\n\n        // char followed by backslash, append literally\n        if (escaped) {\n            escaped = false;\n            appendToCurrentToken(s[i]);\n\n        // char inside quotes, either close or append\n        } else if (quoteChar) {\n            escaped = s[i] === '\\\\';\n            if (quoteChar === s[i]) {\n                quoteChar = \"\";\n                nextToken();\n            } else if (!escaped) {\n                appendToCurrentToken(s[i]);\n            }\n\n        // regular char\n        } else {\n            escaped = s[i] === '\\\\';\n            switch (s[i]) {\n            case '\\\\':\n                // begin escape\n                break;\n            case '\\n':\n                // newlines always delimits\n                nextToken();\n                break;\n            case ' ':\n            case '\\t':\n                // delimit on new whitespace\n                if (currentToken) {\n                    nextToken();\n                }\n                break;\n            case '\\'':\n            case '\"':\n                // begin quoted section\n                quoteChar = s[i];\n                break;\n            default:\n                appendToCurrentToken(s[i]);\n            }\n        }\n    }\n\n    // ignore last token if broken quotes/backslash\n    if (currentToken && !escaped && !quoteChar) {\n        nextToken();\n    }\n\n    return args;\n}\n"
  },
  {
    "path": "app/shaders/burn_in.frag",
    "content": "#version 440\n\nlayout(location = 0) in vec2 qt_TexCoord0;\nlayout(location = 0) out vec4 fragColor;\n\nlayout(std140, binding = 0) uniform ubuf {\n    mat4 qt_Matrix;\n    float qt_Opacity;\n    float burnInLastUpdate;\n    float burnInTime;\n    float prevLastUpdate;\n};\n\nlayout(binding = 1) uniform sampler2D txt_source;\nlayout(binding = 2) uniform sampler2D burnInSource;\n\nfloat rgb2grey(vec3 v) {\n    return dot(v, vec3(0.21, 0.72, 0.04));\n}\n\nvoid main() {\n    vec2 coords = qt_TexCoord0;\n\n    vec3 txtColor = texture(txt_source, coords).rgb;\n    vec4 accColor = texture(burnInSource, coords);\n\n    float prevMask = accColor.a;\n\n    float blurDecay = clamp((burnInLastUpdate - prevLastUpdate) * burnInTime, 0.0, 1.0);\n    blurDecay = max(0.0, blurDecay - prevMask);\n    vec3 color = max(accColor.rgb - vec3(blurDecay), txtColor);\n\n    float currMask = step(rgb2grey(color), rgb2grey(txtColor));\n\n    fragColor = vec4(color, currMask) * qt_Opacity;\n}\n"
  },
  {
    "path": "app/shaders/burn_in.vert",
    "content": "#version 440\n\nlayout(location = 0) in vec4 qt_Vertex;\nlayout(location = 1) in vec2 qt_MultiTexCoord0;\n\nlayout(std140, binding = 0) uniform ubuf {\n    mat4 qt_Matrix;\n    float qt_Opacity;\n    float burnInLastUpdate;\n    float burnInTime;\n    float prevLastUpdate;\n};\n\nlayout(location = 0) out vec2 qt_TexCoord0;\n\nvoid main() {\n    qt_TexCoord0 = qt_MultiTexCoord0;\n    gl_Position = qt_Matrix * qt_Vertex;\n}\n"
  },
  {
    "path": "app/shaders/passthrough.vert",
    "content": "#version 440\n\nlayout(location = 0) in vec4 qt_Vertex;\nlayout(location = 1) in vec2 qt_MultiTexCoord0;\n\nlayout(std140, binding = 0) uniform ubuf {\n    mat4 qt_Matrix;\n    float qt_Opacity;\n    float time;\n    vec4 fontColor;\n    vec4 backgroundColor;\n    float shadowLength;\n    vec2 virtualResolution;\n    float rasterizationIntensity;\n    int rasterizationMode;\n    float burnInLastUpdate;\n    float burnInTime;\n    float burnIn;\n    float staticNoise;\n    float screenCurvature;\n    float glowingLine;\n    float chromaColor;\n    vec2 jitterDisplacement;\n    float ambientLight;\n    float jitter;\n    float horizontalSync;\n    float horizontalSyncStrength;\n    float flickering;\n    vec2 scaleNoiseSize;\n    float screen_brightness;\n    float bloom;\n    float rgbShift;\n    float frameShadowCoeff;\n    float frameShininess;\n    vec4 frameColor;\n    float frameSize;\n    float prevLastUpdate;\n};\n\nlayout(location = 0) out vec2 qt_TexCoord0;\n\nvoid main() {\n    qt_TexCoord0 = qt_MultiTexCoord0;\n    gl_Position = qt_Matrix * qt_Vertex;\n}\n"
  },
  {
    "path": "app/shaders/terminal_dynamic.frag",
    "content": "#version 440\n\n#ifndef CRT_RASTER_MODE\n#define CRT_RASTER_MODE 0\n#endif\n#ifndef CRT_BURN_IN\n#define CRT_BURN_IN 1\n#endif\n#ifndef CRT_DISPLAY_FRAME\n#define CRT_DISPLAY_FRAME 1\n#endif\n#ifndef CRT_CHROMA\n#define CRT_CHROMA 1\n#endif\n\nlayout(location = 0) in vec2 qt_TexCoord0;\nlayout(location = 1) in float vBrightness;\nlayout(location = 2) in float vDistortionScale;\nlayout(location = 3) in float vDistortionFreq;\n\nlayout(location = 0) out vec4 fragColor;\n\nlayout(std140, binding = 0) uniform ubuf {\n    mat4 qt_Matrix;\n    float qt_Opacity;\n    float time;\n    vec4 fontColor;\n    vec4 backgroundColor;\n    vec2 virtualResolution;\n    float rasterizationIntensity;\n    float burnInLastUpdate;\n    float burnInTime;\n    float burnIn;\n    float staticNoise;\n    float screenCurvature;\n    float glowingLine;\n    float chromaColor;\n    vec2 jitterDisplacement;\n    float jitter;\n    float horizontalSync;\n    float horizontalSyncStrength;\n    float flickering;\n    vec2 scaleNoiseSize;\n    float frameShininess;\n    float frameSize;\n    float bloom;\n};\n\nlayout(binding = 0) uniform sampler2D noiseSource;\nlayout(binding = 1) uniform sampler2D screenBuffer;\nlayout(binding = 2) uniform sampler2D burnInSource;\nlayout(binding = 3) uniform sampler2D frameSource;\n\nfloat min2(vec2 v) { return min(v.x, v.y); }\nfloat prod2(vec2 v) { return v.x * v.y; }\nfloat sum2(vec2 v) { return v.x + v.y; }\nfloat rgb2grey(vec3 v) { return dot(v, vec3(0.21, 0.72, 0.04)); }\n\nvec2 distortCoordinates(vec2 coords){\n    vec2 paddedCoords = coords * (vec2(1.0) + frameSize * 2.0) - frameSize;\n    vec2 cc = (paddedCoords - vec2(0.5));\n    float dist = dot(cc, cc) * screenCurvature;\n    return (paddedCoords + cc * (1.0 + dist) * dist);\n}\n\nvec3 applyRasterization(vec2 screenCoords, vec3 texel, vec2 virtualRes, float intensity) {\n#if CRT_RASTER_MODE == 0 || CRT_RASTER_MODE == 4\n    return texel;\n#else\n    if (intensity <= 0.0) {\n        return texel;\n    }\n\n    const float INTENSITY = 0.30;\n    const float BRIGHTBOOST = 0.30;\n\n#if CRT_RASTER_MODE == 1\n    vec3 pixelHigh = ((1.0 + BRIGHTBOOST) - (0.2 * texel)) * texel;\n    vec3 pixelLow  = ((1.0 - INTENSITY) + (0.1 * texel)) * texel;\n\n    vec2 coords = fract(screenCoords * virtualRes) * 2.0 - vec2(1.0);\n    float mask = 1.0 - abs(coords.y);\n\n    vec3 rasterizationColor = mix(pixelLow, pixelHigh, mask);\n    return mix(texel, rasterizationColor, intensity);\n#elif CRT_RASTER_MODE == 2\n    vec3 pixelHigh = ((1.0 + BRIGHTBOOST) - (0.2 * texel)) * texel;\n    vec3 pixelLow  = ((1.0 - INTENSITY) + (0.1 * texel)) * texel;\n\n    vec2 coords = fract(screenCoords * virtualRes) * 2.0 - vec2(1.0);\n    coords = coords * coords;\n    float mask = 1.0 - coords.x - coords.y;\n\n    vec3 rasterizationColor = mix(pixelLow, pixelHigh, mask);\n    return mix(texel, rasterizationColor, intensity);\n#elif CRT_RASTER_MODE == 3\n    const float SUBPIXELS = 3.0;\n    vec3 offsets = vec3(3.141592654) * vec3(0.5, 0.5 - 2.0 / 3.0, 0.5 - 4.0 / 3.0);\n\n    vec2 omega = vec2(3.141592654) * vec2(2.0) * virtualRes;\n    vec2 angle = screenCoords * omega;\n    vec3 xfactors = (SUBPIXELS + sin(angle.x + offsets)) / (SUBPIXELS + 1.0);\n\n    vec3 result = texel * xfactors;\n    vec3 pixelHigh = ((1.0 + BRIGHTBOOST) - (0.2 * result)) * result;\n    vec3 pixelLow  = ((1.0 - INTENSITY) + (0.1 * result)) * result;\n\n    vec2 coords = fract(screenCoords * virtualRes) * 2.0 - vec2(1.0);\n    float mask = 1.0 - abs(coords.y);\n\n    vec3 rasterizationColor = mix(pixelLow, pixelHigh, mask);\n    return mix(texel, rasterizationColor, intensity);\n#else\n    return texel;\n#endif\n#endif\n}\n\nfloat randomPass(vec2 coords){\n    return fract(smoothstep(-120.0, 0.0, coords.y - (virtualResolution.y + 120.0) * fract(time * 0.15)));\n}\n\nvec3 convertWithChroma(vec3 inColor) {\n#if CRT_CHROMA == 1\n    float grey = rgb2grey(inColor);\n    float denom = max(grey, 0.0001);\n    vec3 foregroundColor = mix(fontColor.rgb, inColor * fontColor.rgb / denom, chromaColor);\n    return mix(backgroundColor.rgb, foregroundColor, grey);\n#else\n    return mix(backgroundColor.rgb, fontColor.rgb, rgb2grey(inColor));\n#endif\n}\n\nvoid main() {\n    vec2 cc = vec2(0.5) - qt_TexCoord0;\n    float distance = length(cc);\n\n    vec2 staticCoords = distortCoordinates(qt_TexCoord0);\n    vec2 coords = qt_TexCoord0;\n\n    float dst = sin((coords.y + time) * vDistortionFreq);\n    coords.x += dst * vDistortionScale;\n\n    vec4 noiseTexel = texture(noiseSource, scaleNoiseSize * coords + vec2(fract(time / 0.051), fract(time / 0.237)));\n\n    vec2 txt_coords = coords + (noiseTexel.ba - vec2(0.5)) * jitterDisplacement * jitter;\n\n    float color = 0.0001;\n    color += noiseTexel.a * staticNoise * (1.0 - distance * 1.3);\n    color += randomPass(coords * virtualResolution) * glowingLine;\n\n#if CRT_DISPLAY_FRAME == 1\n    vec4 frameColor = texture(frameSource, qt_TexCoord0);\n    color *= (1.0 - frameColor.a);\n#endif\n\n    vec3 txt_color = texture(screenBuffer, txt_coords).rgb;\n    float bloomScale = 1.0 + max(bloom, 0.0);\n    txt_color *= bloomScale;\n\n#if CRT_BURN_IN == 1\n    vec4 txt_blur = texture(burnInSource, staticCoords);\n    float blurDecay = clamp((time - burnInLastUpdate) * burnInTime, 0.0, 1.0);\n    vec3 burnInColor = 0.65 * (txt_blur.rgb - vec3(blurDecay)) * (1.0 - txt_blur.a);\n    txt_color = max(txt_color, burnInColor);\n#endif\n\n    txt_color += vec3(color);\n    txt_color = applyRasterization(staticCoords, txt_color, virtualResolution, rasterizationIntensity);\n\n    vec3 finalColor = convertWithChroma(txt_color);\n    float brightness = mix(1.0, vBrightness, step(0.0, flickering));\n    finalColor *= brightness;\n\n#if CRT_DISPLAY_FRAME == 1\n    finalColor = mix(finalColor, frameColor.rgb, frameColor.a);\n#endif\n\n    fragColor = vec4(finalColor, qt_Opacity);\n}\n"
  },
  {
    "path": "app/shaders/terminal_dynamic.vert",
    "content": "#version 440\n\nlayout(location = 0) in vec4 qt_Vertex;\nlayout(location = 1) in vec2 qt_MultiTexCoord0;\n\nlayout(std140, binding = 0) uniform ubuf {\n    mat4 qt_Matrix;\n    float qt_Opacity;\n    float time;\n    vec4 fontColor;\n    vec4 backgroundColor;\n    vec2 virtualResolution;\n    float rasterizationIntensity;\n    float burnInLastUpdate;\n    float burnInTime;\n    float burnIn;\n    float staticNoise;\n    float screenCurvature;\n    float glowingLine;\n    float chromaColor;\n    vec2 jitterDisplacement;\n    float jitter;\n    float horizontalSync;\n    float horizontalSyncStrength;\n    float flickering;\n    vec2 scaleNoiseSize;\n    float frameShininess;\n    float frameSize;\n    float bloom;\n};\n\nlayout(binding = 0) uniform sampler2D noiseSource;\n\nlayout(location = 0) out vec2 qt_TexCoord0;\nlayout(location = 1) out float vBrightness;\nlayout(location = 2) out float vDistortionScale;\nlayout(location = 3) out float vDistortionFreq;\n\nvoid main() {\n    qt_TexCoord0 = qt_MultiTexCoord0;\n\n    vec2 coords = vec2(fract(time / 2.048), fract(time / 1048.576));\n    vec4 initialNoiseTexel = texture(noiseSource, coords);\n\n    vBrightness = 1.0 + (initialNoiseTexel.g - 0.5) * flickering;\n\n    float randval = horizontalSyncStrength - initialNoiseTexel.r;\n    vDistortionScale = step(0.0, randval) * randval * horizontalSyncStrength * horizontalSync;\n    vDistortionFreq = mix(4.0, 40.0, initialNoiseTexel.g) * step(0.0, horizontalSync);\n\n    gl_Position = qt_Matrix * qt_Vertex;\n}\n"
  },
  {
    "path": "app/shaders/terminal_frame.frag",
    "content": "#version 440\n\nlayout(location = 0) in vec2 qt_TexCoord0;\nlayout(location = 0) out vec4 fragColor;\n\nlayout(std140, binding = 0) uniform ubuf {\n    mat4 qt_Matrix;\n    float qt_Opacity;\n    float screenCurvature;\n    vec4 frameColor;\n    float frameSize;\n    float screenRadius;\n    vec2 viewportSize;\n    float ambientLight;\n    float frameShininess;\n};\n\nfloat min2(vec2 v) { return min(v.x, v.y); }\nfloat prod2(vec2 v) { return v.x * v.y; }\nfloat rand2(vec2 v) { return fract(sin(dot(v, vec2(12.9898, 78.233))) * 43758.5453); }\n\nvec2 distortCoordinates(vec2 coords){\n    vec2 paddedCoords = coords * (vec2(1.0) + frameSize * 2.0) - frameSize;\n    vec2 cc = (paddedCoords - vec2(0.5));\n    float dist = dot(cc, cc) * screenCurvature;\n    return (paddedCoords + cc * (1.0 + dist) * dist);\n}\n\nfloat roundedRectSdfPixels(vec2 p, vec2 topLeft, vec2 bottomRight, float radiusPixels) {\n    vec2 sizePixels = (bottomRight - topLeft) * viewportSize;\n    vec2 centerPixels = (topLeft + bottomRight) * 0.5 * viewportSize;\n    vec2 localPixels = p * viewportSize - centerPixels;\n    vec2 halfSize = sizePixels * 0.5 - vec2(radiusPixels);\n    vec2 d = abs(localPixels) - halfSize;\n    return length(max(d, vec2(0.0))) + min(max(d.x, d.y), 0.0) - radiusPixels;\n}\n\nvoid main() {\n    vec2 staticCoords = qt_TexCoord0;\n    vec2 coords = distortCoordinates(staticCoords);\n\n    float screenRadiusPixels = screenRadius;\n    float edgeSoftPixels = 1.0;\n\n    float seamWidth = max(screenRadiusPixels, 0.5) / min2(viewportSize);\n\n    float e = min(\n        smoothstep(-seamWidth, seamWidth, coords.x - coords.y),\n        smoothstep(-seamWidth, seamWidth, coords.x - (1.0 - coords.y))\n    );\n    float s = min(\n        smoothstep(-seamWidth, seamWidth, coords.y - coords.x),\n        smoothstep(-seamWidth, seamWidth, coords.x - (1.0 - coords.y))\n    );\n    float w = min(\n        smoothstep(-seamWidth, seamWidth, coords.y - coords.x),\n        smoothstep(-seamWidth, seamWidth, (1.0 - coords.x) - coords.y)\n    );\n    float n = min(\n        smoothstep(-seamWidth, seamWidth, coords.x - coords.y),\n        smoothstep(-seamWidth, seamWidth, (1.0 - coords.x) - coords.y)\n    );\n\n    float distPixels = roundedRectSdfPixels(coords, vec2(0.0), vec2(1.0), screenRadiusPixels);\n    float frameShadow = (e * 0.66 + w * 0.66 + n * 0.33 + s);\n    frameShadow *= smoothstep(0.0, edgeSoftPixels * 5.0, distPixels);\n\n    float frameAlpha = 1.0 - frameShininess * 0.4;\n\n    float inScreen = smoothstep(0.0, edgeSoftPixels, -distPixels);\n    float alpha = mix(frameAlpha, mix(0.0, 0.3, ambientLight), inScreen);\n    float glass = clamp(ambientLight * pow(prod2(coords * (1.0 - coords.yx)) * 25.0, 0.5) * inScreen, 0.0, 1.0);\n    vec3 frameTint = frameColor.rgb * frameShadow;\n    float noise = rand2(staticCoords * viewportSize) - 0.5;\n    frameTint = clamp(frameTint + vec3(noise * 0.04), 0.0, 1.0);\n    vec3 color = mix(frameTint, vec3(glass), inScreen);\n\n    fragColor = vec4(color, alpha) * qt_Opacity;\n}\n"
  },
  {
    "path": "app/shaders/terminal_frame.vert",
    "content": "#version 440\n\nlayout(location = 0) in vec4 qt_Vertex;\nlayout(location = 1) in vec2 qt_MultiTexCoord0;\n\nlayout(std140, binding = 0) uniform ubuf {\n    mat4 qt_Matrix;\n    float qt_Opacity;\n    float screenCurvature;\n    vec4 frameColor;\n    float frameSize;\n    float screenRadius;\n    vec2 viewportSize;\n    float ambientLight;\n    float frameShininess;\n};\n\nlayout(location = 0) out vec2 qt_TexCoord0;\n\nvoid main() {\n    qt_TexCoord0 = qt_MultiTexCoord0;\n    gl_Position = qt_Matrix * qt_Vertex;\n}\n"
  },
  {
    "path": "app/shaders/terminal_static.frag",
    "content": "#version 440\n\n#ifndef CRT_RGB_SHIFT\n#define CRT_RGB_SHIFT 1\n#endif\n#ifndef CRT_BLOOM\n#define CRT_BLOOM 1\n#endif\n#ifndef CRT_FRAME_SHININESS\n#define CRT_FRAME_SHININESS 1\n#endif\n#ifndef CRT_CURVATURE\n#define CRT_CURVATURE 1\n#endif\n\nlayout(location = 0) in vec2 qt_TexCoord0;\nlayout(location = 0) out vec4 fragColor;\n\nlayout(std140, binding = 0) uniform ubuf {\n    mat4 qt_Matrix;\n    float qt_Opacity;\n    float screenCurvature;\n    float rgbShift;\n    float frameShininess;\n    float frameSize;\n    float screen_brightness;\n    float bloom;\n};\n\nlayout(binding = 1) uniform sampler2D source;\nlayout(binding = 2) uniform sampler2D bloomSource;\n\nfloat min2(vec2 v) { return min(v.x, v.y); }\nfloat max2(vec2 v) { return max(v.x, v.y); }\nfloat rand2(vec2 v) { return fract(sin(dot(v, vec2(12.9898, 78.233))) * 43758.5453); }\nvec2 distortCoordinates(vec2 coords){\n    vec2 paddedCoords = coords * (vec2(1.0) + frameSize * 2.0) - frameSize;\n    vec2 cc = (paddedCoords - vec2(0.5));\n    float dist = dot(cc, cc) * screenCurvature;\n    return (paddedCoords + cc * (1.0 + dist) * dist);\n}\n\nvoid main() {\n    vec2 cc = vec2(0.5) - qt_TexCoord0;\n\n    float shownDraw = 1.0;\n    float isReflection = 0.0;\n    float isScreen = 1.0;\n\n    vec2 txt_coords = qt_TexCoord0;\n#if CRT_CURVATURE == 1\n    vec2 curvatureCoords = distortCoordinates(qt_TexCoord0);\n    shownDraw = max2(step(vec2(0.0), curvatureCoords) - step(vec2(1.0), curvatureCoords));\n    isScreen = min2(step(vec2(0.0), curvatureCoords) - step(vec2(1.0), curvatureCoords));\n    isReflection = shownDraw - isScreen;\n    txt_coords = curvatureCoords * (-1.0 + 2.0 * step(vec2(0.0), curvatureCoords) - 2.0 * step(vec2(1.0), curvatureCoords));\n#endif\n\n    vec3 txt_color = texture(source, txt_coords).rgb;\n\n#if CRT_RGB_SHIFT == 1\n    vec2 displacement = vec2(rgbShift, 0.0);\n    vec3 rightColor = texture(source, txt_coords + displacement).rgb;\n    vec3 leftColor = texture(source, txt_coords - displacement).rgb;\n    txt_color.r = leftColor.r * 0.10 + rightColor.r * 0.30 + txt_color.r * 0.60;\n    txt_color.g = leftColor.g * 0.20 + rightColor.g * 0.20 + txt_color.g * 0.60;\n    txt_color.b = leftColor.b * 0.30 + rightColor.b * 0.10 + txt_color.b * 0.60;\n#endif\n\n    vec3 finalColor = txt_color * shownDraw;\n\n    vec3 bloomColor = txt_color;\n    float bloomAlpha = 0.0;\n#if CRT_BLOOM == 1 || CRT_FRAME_SHININESS == 1\n    vec4 bloomFullColor = texture(bloomSource, txt_coords);\n    bloomColor = bloomFullColor.rgb;\n    bloomAlpha = bloomFullColor.a;\n#endif\n\n#if CRT_BLOOM == 1\n    vec3 bloomOnScreen = bloomColor * isScreen;\n    finalColor += clamp(bloomOnScreen * bloom * bloomAlpha, 0.0, 0.5);\n    float bloomScale = 1.0 + max(bloom, 0.0);\n    finalColor /= bloomScale;\n#endif\n\n#if CRT_FRAME_SHININESS == 1\n    vec3 reflectionColor = mix(bloomColor * bloomAlpha * 2.0, finalColor, frameShininess * 0.5);\n    finalColor = mix(finalColor, reflectionColor, isReflection);\n#endif\n\n    finalColor *= screen_brightness;\n\n    float noise = rand2(qt_TexCoord0) - 0.5;\n    finalColor = clamp(finalColor + vec3(noise * 0.025), 0.0, 1.0);\n\n    fragColor = vec4(finalColor, qt_Opacity);\n}\n"
  },
  {
    "path": "app/shaders/terminal_static.vert",
    "content": "#version 440\n\nlayout(location = 0) in vec4 qt_Vertex;\nlayout(location = 1) in vec2 qt_MultiTexCoord0;\n\nlayout(std140, binding = 0) uniform ubuf {\n    mat4 qt_Matrix;\n    float qt_Opacity;\n    float screenCurvature;\n    float rgbShift;\n    float frameShininess;\n    float frameSize;\n    float screen_brightness;\n    float bloom;\n};\n\nlayout(location = 0) out vec2 qt_TexCoord0;\n\nvoid main() {\n    qt_TexCoord0 = qt_MultiTexCoord0;\n    gl_Position = qt_Matrix * qt_Vertex;\n}\n"
  },
  {
    "path": "cool-retro-term.desktop",
    "content": "[Desktop Entry]\nComment=Use the command line the old way\nExec=cool-retro-term\nGenericName=Terminal emulator\nIcon=cool-retro-term\nName=Cool Retro Term\nCategories=System;TerminalEmulator;\nStartupNotify=true\nTerminal=false\nType=Application\nKeywords=shell;prompt;command;commandline;\nActions=NewWindow;\n\n[Desktop Action NewWindow]\nName=New Window\nExec=cool-retro-term\n"
  },
  {
    "path": "cool-retro-term.pro",
    "content": "TEMPLATE = subdirs\n\nCONFIG += ordered\n\nSUBDIRS += qmltermwidget\nSUBDIRS += app\n\ndesktop.files += cool-retro-term.desktop\ndesktop.path += /usr/share/applications\n\nINSTALLS += desktop\n"
  },
  {
    "path": "gpl-2.0.txt",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 2, June 1991\n\n Copyright (C) 1989, 1991 Free Software Foundation, Inc.,\n 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicense is intended to guarantee your freedom to share and change free\nsoftware--to make sure the software is free for all its users.  This\nGeneral Public License applies to most of the Free Software\nFoundation's software and to any other program whose authors commit to\nusing it.  (Some other Free Software Foundation software is covered by\nthe GNU Lesser General Public License instead.)  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthis service if you wish), that you receive source code or can get it\nif you want it, that you can change the software or use pieces of it\nin new free programs; and that you know you can do these things.\n\n  To protect your rights, we need to make restrictions that forbid\nanyone to deny you these rights or to ask you to surrender the rights.\nThese restrictions translate to certain responsibilities for you if you\ndistribute copies of the software, or if you modify it.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must give the recipients all the rights that\nyou have.  You must make sure that they, too, receive or can get the\nsource code.  And you must show them these terms so they know their\nrights.\n\n  We protect your rights with two steps: (1) copyright the software, and\n(2) offer you this license which gives you legal permission to copy,\ndistribute and/or modify the software.\n\n  Also, for each author's protection and ours, we want to make certain\nthat everyone understands that there is no warranty for this free\nsoftware.  If the software is modified by someone else and passed on, we\nwant its recipients to know that what they have is not the original, so\nthat any problems introduced by others will not reflect on the original\nauthors' reputations.\n\n  Finally, any free program is threatened constantly by software\npatents.  We wish to avoid the danger that redistributors of a free\nprogram will individually obtain patent licenses, in effect making the\nprogram proprietary.  To prevent this, we have made it clear that any\npatent must be licensed for everyone's free use or not licensed at all.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                    GNU GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License applies to any program or other work which contains\na notice placed by the copyright holder saying it may be distributed\nunder the terms of this General Public License.  The \"Program\", below,\nrefers to any such program or work, and a \"work based on the Program\"\nmeans either the Program or any derivative work under copyright law:\nthat is to say, a work containing the Program or a portion of it,\neither verbatim or with modifications and/or translated into another\nlanguage.  (Hereinafter, translation is included without limitation in\nthe term \"modification\".)  Each licensee is addressed as \"you\".\n\nActivities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning the Program is not restricted, and the output from the Program\nis covered only if its contents constitute a work based on the\nProgram (independent of having been made by running the Program).\nWhether that is true depends on what the Program does.\n\n  1. You may copy and distribute verbatim copies of the Program's\nsource code as you receive it, in any medium, provided that you\nconspicuously and appropriately publish on each copy an appropriate\ncopyright notice and disclaimer of warranty; keep intact all the\nnotices that refer to this License and to the absence of any warranty;\nand give any other recipients of the Program a copy of this License\nalong with the Program.\n\nYou may charge a fee for the physical act of transferring a copy, and\nyou may at your option offer warranty protection in exchange for a fee.\n\n  2. You may modify your copy or copies of the Program or any portion\nof it, thus forming a work based on the Program, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) You must cause the modified files to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    b) You must cause any work that you distribute or publish, that in\n    whole or in part contains or is derived from the Program or any\n    part thereof, to be licensed as a whole at no charge to all third\n    parties under the terms of this License.\n\n    c) If the modified program normally reads commands interactively\n    when run, you must cause it, when started running for such\n    interactive use in the most ordinary way, to print or display an\n    announcement including an appropriate copyright notice and a\n    notice that there is no warranty (or else, saying that you provide\n    a warranty) and that users may redistribute the program under\n    these conditions, and telling the user how to view a copy of this\n    License.  (Exception: if the Program itself is interactive but\n    does not normally print such an announcement, your work based on\n    the Program is not required to print an announcement.)\n\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Program,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Program, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote it.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Program.\n\nIn addition, mere aggregation of another work not based on the Program\nwith the Program (or with a work based on the Program) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may copy and distribute the Program (or a work based on it,\nunder Section 2) in object code or executable form under the terms of\nSections 1 and 2 above provided that you also do one of the following:\n\n    a) Accompany it with the complete corresponding machine-readable\n    source code, which must be distributed under the terms of Sections\n    1 and 2 above on a medium customarily used for software interchange; or,\n\n    b) Accompany it with a written offer, valid for at least three\n    years, to give any third party, for a charge no more than your\n    cost of physically performing source distribution, a complete\n    machine-readable copy of the corresponding source code, to be\n    distributed under the terms of Sections 1 and 2 above on a medium\n    customarily used for software interchange; or,\n\n    c) Accompany it with the information you received as to the offer\n    to distribute corresponding source code.  (This alternative is\n    allowed only for noncommercial distribution and only if you\n    received the program in object code or executable form with such\n    an offer, in accord with Subsection b above.)\n\nThe source code for a work means the preferred form of the work for\nmaking modifications to it.  For an executable work, complete source\ncode means all the source code for all modules it contains, plus any\nassociated interface definition files, plus the scripts used to\ncontrol compilation and installation of the executable.  However, as a\nspecial exception, the source code distributed need not include\nanything that is normally distributed (in either source or binary\nform) with the major components (compiler, kernel, and so on) of the\noperating system on which the executable runs, unless that component\nitself accompanies the executable.\n\nIf distribution of executable or object code is made by offering\naccess to copy from a designated place, then offering equivalent\naccess to copy the source code from the same place counts as\ndistribution of the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n  4. You may not copy, modify, sublicense, or distribute the Program\nexcept as expressly provided under this License.  Any attempt\notherwise to copy, modify, sublicense or distribute the Program is\nvoid, and will automatically terminate your rights under this License.\nHowever, parties who have received copies, or rights, from you under\nthis License will not have their licenses terminated so long as such\nparties remain in full compliance.\n\n  5. You are not required to accept this License, since you have not\nsigned it.  However, nothing else grants you permission to modify or\ndistribute the Program or its derivative works.  These actions are\nprohibited by law if you do not accept this License.  Therefore, by\nmodifying or distributing the Program (or any work based on the\nProgram), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Program or works based on it.\n\n  6. Each time you redistribute the Program (or any work based on the\nProgram), the recipient automatically receives a license from the\noriginal licensor to copy, distribute or modify the Program subject to\nthese terms and conditions.  You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties to\nthis License.\n\n  7. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Program at all.  For example, if a patent\nlicense would not permit royalty-free redistribution of the Program by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Program.\n\nIf any portion of this section is held invalid or unenforceable under\nany particular circumstance, the balance of the section is intended to\napply and the section as a whole is intended to apply in other\ncircumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system, which is\nimplemented by public license practices.  Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n  8. If the distribution and/or use of the Program is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Program under this License\nmay add an explicit geographical distribution limitation excluding\nthose countries, so that distribution is permitted only in or among\ncountries not thus excluded.  In such case, this License incorporates\nthe limitation as if written in the body of this License.\n\n  9. The Free Software Foundation may publish revised and/or new versions\nof the General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\nEach version is given a distinguishing version number.  If the Program\nspecifies a version number of this License which applies to it and \"any\nlater version\", you have the option of following the terms and conditions\neither of that version or of any later version published by the Free\nSoftware Foundation.  If the Program does not specify a version number of\nthis License, you may choose any version ever published by the Free Software\nFoundation.\n\n  10. If you wish to incorporate parts of the Program into other free\nprograms whose distribution conditions are different, write to the author\nto ask for permission.  For software which is copyrighted by the Free\nSoftware Foundation, write to the Free Software Foundation; we sometimes\nmake exceptions for this.  Our decision will be guided by the two goals\nof preserving the free status of all derivatives of our free software and\nof promoting the sharing and reuse of software generally.\n\n                            NO WARRANTY\n\n  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\nFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN\nOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\nPROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\nOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS\nTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE\nPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\nREPAIR OR CORRECTION.\n\n  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\nREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\nINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\nOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\nTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\nYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\nPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\nPOSSIBILITY OF SUCH DAMAGES.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nconvey the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software; you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation; either version 2 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License along\n    with this program; if not, write to the Free Software Foundation, Inc.,\n    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n\nAlso add information on how to contact you by electronic and paper mail.\n\nIf the program is interactive, make it output a short notice like this\nwhen it starts in an interactive mode:\n\n    Gnomovision version 69, Copyright (C) year name of author\n    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, the commands you use may\nbe called something other than `show w' and `show c'; they could even be\nmouse-clicks or menu items--whatever suits your program.\n\nYou should also get your employer (if you work as a programmer) or your\nschool, if any, to sign a \"copyright disclaimer\" for the program, if\nnecessary.  Here is a sample; alter the names:\n\n  Yoyodyne, Inc., hereby disclaims all copyright interest in the program\n  `Gnomovision' (which makes passes at compilers) written by James Hacker.\n\n  <signature of Ty Coon>, 1 April 1989\n  Ty Coon, President of Vice\n\nThis General Public License does not permit incorporating your program into\nproprietary programs.  If your program is a subroutine library, you may\nconsider it more useful to permit linking proprietary applications with the\nlibrary.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.\n"
  },
  {
    "path": "gpl-3.0.txt",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
  },
  {
    "path": "packaging/appdata/cool-retro-term.appdata.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!-- Copyright 2014 Markus S. <kamikazow@web.de> -->\n<component type=\"desktop\">\n  <id>cool-retro-term.desktop</id>\n  <metadata_license>MIT</metadata_license>\n  <project_license>GPL-3.0+</project_license>\n  <name>Cool Retro Term</name>\n  <summary>Terminal emulator with an old school look and feel</summary>\n\n  <description>\n    <p>\n      cool-retro-term is a terminal emulator which tries to mimic the look and feel of the old cathode tube screens. It has been designed to be eye-candy, customizable, and reasonably lightweight.\n    </p>\n  </description>\n\n  <screenshots>\n    <screenshot type=\"default\">\n      <caption>Default amber look</caption>\n      <image width=\"1022\" height=\"791\">https://camo.githubusercontent.com/2443e662e95733ba6ae331f391f6ec036d1ee7fd/687474703a2f2f692e696d6775722e636f6d2f4e5566766e6c752e706e67</image>\n    </screenshot>\n    <screenshot>\n      <caption>Apple II look</caption>\n      <image width=\"1024\" height=\"796\">https://camo.githubusercontent.com/44a19842d532555c7b02bf6b4b4684add9edf18c/687474703a2f2f692e696d6775722e636f6d2f4d4d6d4d3648742e706e67</image>\n    </screenshot>\n  </screenshots>\n\n  <url type=\"homepage\">https://github.com/Swordfish90/cool-retro-term</url>\n\n  <provides>\n    <binary>cool-retro-term</binary>\n  </provides>\n\n  <releases>\n    <release version=\"0.9\" timestamp=\"1410447866\">\n      <description>\n        <p>First release</p>\n      </description>\n    </release>\n  </releases>\n</component>\n"
  },
  {
    "path": "packaging/debian/.gitignore",
    "content": "/*.debhelper.log\n/*.substvars\n/cool-retro-term/\n/files\n"
  },
  {
    "path": "packaging/debian/changelog",
    "content": "cool-retro-term (0.9-1) UNRELEASED; urgency=medium\n\n  * Initial release. (Closes: #758238)\n\n -- Jeka Der <jekader@gmail.com>  Fri, 10 Oct 2014 19:58:29 +0200\n"
  },
  {
    "path": "packaging/debian/compat",
    "content": "9\n"
  },
  {
    "path": "packaging/debian/control",
    "content": "Source: cool-retro-term\nMaintainer: Jeka Der <jekader@gmail.com>\nSection: x11\nPriority: optional\nStandards-Version: 3.9.6\nHomepage: https://github.com/Swordfish90/cool-retro-term\nVcs-Git: git://github.com/barak/cool-retro-term.git\nVcs-Browser: https://github.com/barak/cool-retro-term\nBuild-Depends: debhelper (>= 9), qmlscene,\n qt5-qmake, qtdeclarative5-dev, qml-module-qtquick-controls,\n qml-module-qtgraphicaleffects, qml-module-qtquick-dialogs,\n qml-module-qtquick-localstorage, qml-module-qtquick-window2\n\nPackage: cool-retro-term\nArchitecture: any\nReplaces: cool-old-term\nProvides: x-terminal-emulator\nDepends: qml-module-qtquick-controls, qml-module-qtgraphicaleffects,\n qml-module-qtquick-dialogs, qml-module-qtquick-localstorage,\n qml-module-qtquick-window2, ${shlibs:Depends}, ${misc:Depends}\nDescription: terminal emulator which mimics old screens\n cool-retro-term is a terminal emulator which mimics the look and feel\n of the old cathode tube screens. It has been designed to be eye-candy,\n customizable, and reasonably lightweight.\n"
  },
  {
    "path": "packaging/debian/cool-retro-term.1",
    "content": ".TH \"COOL-RETRO-TERM\" 1 \"2017-11-06\"\n.SH NAME\ncool\\-retro\\-term \\- terminal emulator mimicking an old cathode display\n.SH SYNOPSIS\n\\fBcool\\-retro\\-term\\fR [\\fIOPTIONS\\fR]\n.br\n\\fBcool\\-retro\\-term\\fR [\\fIOPTIONS\\fR] -e \\fICOMMAND\\fR [\\fIARGUMENT\\fR...]\n.SH DESCRIPTION\nThis manual page documents briefly the \\fBcool\\-retro\\-term\\fR command.\n.PP\n\\fBcool\\-retro\\-term\\fR is a terminal emulator which mimics the\nlook and feel of the old cathode tube screens.\nIt has been designed to be eye-candy,\ncustomizable, and reasonably lightweight.\n.SH OPTIONS\n.TP\n\\fB\\-\\-default\\-settings\\fR\nRun with the default settings.\n.TP\n\\fB\\-e\\fR \\fICOMMAND\\fR\nCommand to execute. This should be used as the last option.\nAll the arguments following \\fICOMMAND\\fR will be passed to said command.\n.TP\n\\fB\\-\\-fullscreen\\fR\nRun in fullscreen mode.\n.TP\n\\fB\\-h\\fR, \\fB\\-\\-help\\fR\nPrint a help screen and exit.\n.TP\n\\fB\\-p\\fR \\fIPROFILE\\fR, \\fB\\-\\-profile\\fR \\fIPROFILE\\fR\nRun with the given profile.\n.TP\n\\fB\\-T\\fR \\fITITLE\\fR\nUse \\fITITLE\\fR as the window title.\n.TP\n\\fB\\-\\-verbose\\fR\nPrint additional information such as profiles and settings.\n.TP\n\\fB\\-v\\fR, \\fB\\-\\-version\\fR\nPrint the version number and exit.\n.TP\n\\fB\\-\\-workdir\\fR \\fIDIR\\fR\nStart with \\fIDIR\\fR as the working directory.\n.SH LICENCE\nThis program is available under the terms of the GNU General Public License,\nversion 3 or any later version, as published by the Free Software Foundation.\n"
  },
  {
    "path": "packaging/debian/copyright",
    "content": "Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/\nUpstream-Name: cool-retro-term\nUpstream-Contact: Filippo Scognamiglio <flscogna@gmail.com>\nSource: https://github.com/Swordfish90/cool-retro-term\n\nFiles: *\nCopyright: 2013-2017 Filippo Scognamiglio\nLicense: GPL-3\n On Debian systems, the full text of the GNU General Public\n License version 3 can be found in the file\n `/usr/share/common-licenses/GPL-3'.\n"
  },
  {
    "path": "packaging/debian/rules",
    "content": "#!/usr/bin/make -f\n%:\n\tdh $@\n\n"
  },
  {
    "path": "packaging/debian/source/format",
    "content": "3.0 (quilt)\n"
  },
  {
    "path": "packaging/debian/watch",
    "content": "version=4\nopts=\"filenamemangle=s%(?:.*?)?v?(\\d[\\d.]*)\\.tar\\.gz%<project>-$1.tar.gz%\" \\\n   https://github.com/Swordfish90/cool-retro-term/tags \\\n   (?:.*?/)?v?(\\d[\\d.]*)\\.tar\\.gz debian uupdate\n"
  },
  {
    "path": "packaging/rpm/cool-retro-term.spec",
    "content": "#\n# spec file for package cool-retro-term\n#\n# Copyright © 2014 Markus S. <kamikazow@web.de>\n#\n# This program is free software: you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation, either version 3 of the License, or\n# (at your option) any later version.\n#\n# This program is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You should have received a copy of the GNU General Public License\n# along with this program. If not, see <http://www.gnu.org/licenses/>.\n\nName:       cool-retro-term\nSummary:    Cool Retro Terminal\nVersion:    1.0\nRelease:    0%{?dist}\nGroup:      System/X11/Terminals\nLicense:    GPL-3.0+\nURL:        https://github.com/Swordfish90/cool-retro-term\n\n# For this spec file to work, the cool-retro-term sources must be located\n# in a directory named cool-retro-term-0.9 (with \"0.9\" being the version\n# number defined above).\n# If the sources are compressed in another format than .tar.xz, change the\n# file extension accordingly.\nSource0:    %{name}-%{version}.tar.xz\n\nBuildRequires: pkgconfig(Qt5Core)\nBuildRequires: pkgconfig(Qt5Declarative)\nBuildRequires: pkgconfig(Qt5Gui)\nBuildRequires: pkgconfig(Qt5Quick)\nBuildRequires: desktop-file-utils\n\n# Package names only verified with Fedora and openSUSE.\n# Should the packages in your distro be named dirrerently,\n# see http://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto\n%if 0%{?fedora}\nRequires:      qt5-qtbase\nRequires:      qt5-qtbase-gui\nRequires:      qt5-qtdeclarative\nRequires:      qt5-qtgraphicaleffects\nRequires:      qt5-qtquickcontrols\n%endif\n\n%if 0%{?suse_version}\nRequires:      libqt5-qtquickcontrols\nRequires:      libqt5-qtbase\nRequires:      libQt5Gui5\nRequires:      libqt5-qtdeclarative\nRequires:      libqt5-qtgraphicaleffects\n%endif\n\n%description\ncool-retro-term is a terminal emulator which tries to mimic the look and feel\nof the old cathode tube screens. It has been designed to be eye-candy,\ncustomizable, and reasonably lightweight.\n\n%prep\n%setup -q\n\n%build\nqmake-qt5\nmake %{?_smp_mflags}\n\n%install\n# Work around weird qmake behaviour: http://davmac.wordpress.com/2007/02/21/qts-qmake/\nmake INSTALL_ROOT=%{buildroot} install\n\ndesktop-file-install                            \\\n--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \\\n%{name}.desktop\n\n%files\n%defattr(-,root,root,-)\n%doc gpl-2.0.txt gpl-3.0.txt README.md\n%{_bindir}/%{name}\n%{_libdir}/qt5/qml/\n%{_datadir}/applications/%{name}.desktop\n%{_datadir}/icons/hicolor/*/*/*\n\n%clean\nrm -rf %{buildroot}\n\n%changelog\n* Sun Sep  7 14:03:35 UTC 2014 - kamikazow@web.de\n- cool-old-term has been renamed to cool-retro-term\n- Ported the spec file to CRT's new, way nicer build system <https://github.com/Swordfish90/cool-retro-term/pull/105>\n\n* Fri Aug 29 20:56:20 UTC 2014 - kamikazow@web.de\n- Fixed: QtDeclarative-devel is required for \"qmlscene\" binary\n\n* Fri Aug  1 14:09:35 UTC 2014 - kamikazow@web.de\n- First build\n- cool-old-term 0.9\n"
  },
  {
    "path": "scripts/build-appimage.sh",
    "content": "#!/usr/bin/env bash\nset -euo pipefail\nset -x\n\nREPO_ROOT=\"$(readlink -f \"$(dirname \"$(dirname \"$0\")\")\")\"\nOLD_CWD=\"$(readlink -f .)\"\nBUILD_DIR=\"$REPO_ROOT/build/appimage\"\nTOOLS_DIR=\"$BUILD_DIR/tools\"\nVERSION=\"$(git -C \"$REPO_ROOT\" describe --tags --always --dirty=-dirty 2>/dev/null || true)\"\nif [ -z \"$VERSION\" ]; then\n    VERSION=\"unknown\"\nfi\n\nif ! command -v qmake >/dev/null; then\n    echo \"qmake not found in PATH.\" >&2\n    exit 1\nfi\nQTDIR=\"$(qmake -query QT_INSTALL_PREFIX)\"\nQT_INSTALL_QML=\"$(qmake -query QT_INSTALL_QML)\"\n\nAPPDIR=\"$BUILD_DIR/AppDir\"\n\nmkdir -p \"$BUILD_DIR\"\nrm -rf \"$APPDIR\"\npushd \"$BUILD_DIR\"\n\nqmake \"$REPO_ROOT/cool-retro-term.pro\"\nmake -j\"$(nproc)\"\n\n# Install targets from subprojects (the top-level install only installs the desktop file).\nmake -C app install INSTALL_ROOT=\"$APPDIR\"\nmake -C qmltermwidget install INSTALL_ROOT=\"$APPDIR\"\nmake install INSTALL_ROOT=\"$APPDIR\"\n\npopd\n\n# Relocate QMLTermWidget into the standard AppDir QML import path.\nQML_ROOT=\"$APPDIR$QT_INSTALL_QML\"\nif [ -d \"$QML_ROOT\" ]; then\n    mkdir -p \"$APPDIR/usr/qml\"\n    rsync -a \"$QML_ROOT/\" \"$APPDIR/usr/qml/\"\n    rm -rf \"$QML_ROOT\"\n    QML_PARENT=\"$(dirname \"$QML_ROOT\")\"\n    while [ \"$QML_PARENT\" != \"$APPDIR\" ] && rmdir \"$QML_PARENT\" 2>/dev/null; do\n        QML_PARENT=\"$(dirname \"$QML_PARENT\")\"\n    done\nfi\n\n\n# Build AppImage using linuxdeploy and linuxdeploy-plugin-qt.\nmkdir -p \"$TOOLS_DIR\"\nLINUXDEPLOY=\"$TOOLS_DIR/linuxdeploy-x86_64.AppImage\"\nLINUXDEPLOY_QT=\"$TOOLS_DIR/linuxdeploy-plugin-qt-x86_64.AppImage\"\nif [ ! -x \"$LINUXDEPLOY\" ]; then\n    wget -c -O \"$LINUXDEPLOY\" https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage\n    chmod +x \"$LINUXDEPLOY\"\nfi\nif [ ! -x \"$LINUXDEPLOY_QT\" ]; then\n    wget -c -O \"$LINUXDEPLOY_QT\" https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage\n    chmod +x \"$LINUXDEPLOY_QT\"\nfi\n\nexport QML_SOURCES_PATHS=\"$REPO_ROOT/app\"\n\npushd \"$BUILD_DIR\"\n\nexport EXTRA_PLATFORM_PLUGINS=\"libqwayland.so;\"\nexport EXTRA_QT_MODULES=\"sql;waylandcompositor;waylandclient\"\nexport DEPLOY_PLATFORM_THEMES=true\nexport LINUXDEPLOY_EXCLUDED_LIBRARIES=\"libmysqlclient.so;libqsqlmimer.so;libqsqlmysql.so;libqsqlodbc.so;libqsqlpsql.so;libqsqloci.so;libqsqlibase.so\"\n\n\"$LINUXDEPLOY\" \\\n    --appdir \"$APPDIR\" \\\n    -e \"$APPDIR/usr/bin/cool-retro-term\" \\\n    -i \"$REPO_ROOT/app/icons/256x256/cool-retro-term.png\" \\\n    -d \"$REPO_ROOT/cool-retro-term.desktop\" \\\n    --plugin qt \\\n    --output appimage\n\nAPPIMAGE_PATH=\"$(ls -1 ./*.AppImage | head -n 1)\"\nAPPIMAGE_OUT=\"cool-retro-term-${VERSION}.AppImage\"\nmv \"$APPIMAGE_PATH\" \"$OLD_CWD/$APPIMAGE_OUT\"\npopd\n"
  },
  {
    "path": "scripts/build-dmg.sh",
    "content": "#!/usr/bin/env bash\nset -euo pipefail\nset -x\n\nREPO_ROOT=\"$(cd \"$(dirname \"$0\")/..\" && pwd -P)\"\nOLD_CWD=\"$(pwd -P)\"\nBUILD_DIR=\"$REPO_ROOT/build/dmg\"\nAPP=\"cool-retro-term.app\"\nQML_DIR=\"$REPO_ROOT/app/qml\"\nJOBS=\"${JOBS:-$(sysctl -n hw.ncpu 2>/dev/null || echo 4)}\"\nVERSION=\"$(git -C \"$REPO_ROOT\" describe --tags --always --dirty=-dirty 2>/dev/null || true)\"\nif [ -z \"$VERSION\" ]; then\n    VERSION=\"unknown\"\nfi\n\nif ! command -v qmake >/dev/null; then\n    echo \"qmake not found in PATH.\" >&2\n    exit 1\nfi\nQT_DIR=\"${QT_DIR:-$(qmake -query QT_INSTALL_PREFIX)}\"\nQT_BIN=\"${QT_DIR%/}/bin\"\n\nmkdir -p \"$BUILD_DIR\"\nrm -f \"$BUILD_DIR/${APP%.app}.dmg\"\npushd \"$BUILD_DIR\"\n\n\"$QT_BIN/qmake\" CONFIG+=release \"$REPO_ROOT/cool-retro-term.pro\"\nmake -j\"$JOBS\"\n\nPLUGIN_DST=\"$APP/Contents/PlugIns/qmltermwidget\"\nrm -rf \"$PLUGIN_DST\"\nmkdir -p \"$APP/Contents/PlugIns\"\ncp -R qmltermwidget/QMLTermWidget \"$PLUGIN_DST\"\n\nexport QML_IMPORT_PATH=\"$PWD/$APP/Contents/PlugIns\"\n\"$QT_BIN/macdeployqt\" \"$APP\" -qmldir=\"$QML_DIR\"\n\nrm -f \"$APP/Contents/PlugIns/sqldrivers/\"libqsql{odbc,psql,mimer}.dylib 2>/dev/null || true\n\n# Remove stale signatures and ad-hoc sign so Gatekeeper doesn't report corruption.\ncodesign --remove-signature \"$APP\" 2>/dev/null || true\nrm -rf \"$APP/Contents/_CodeSignature\"\ncodesign --force --deep --sign - \"$APP\"\nDMG_OUT=\"${APP%.app}-${VERSION}.dmg\"\nhdiutil create -volname \"${APP%.app}\" -srcfolder \"$APP\" -ov -format UDZO \"$DMG_OUT\"\nmv \"$BUILD_DIR/$DMG_OUT\" \"$OLD_CWD/$DMG_OUT\"\npopd\n"
  },
  {
    "path": "scripts/list_glyph_counts.py",
    "content": "#!/usr/bin/env python3\n\"\"\"\nPrint glyph counts for all font files under app/qml/fonts.\nRequires fontTools (already available in this environment).\n\"\"\"\nfrom pathlib import Path\nfrom fontTools.ttLib import TTFont\n\n\ndef count_glyphs(font_path: Path) -> int:\n    \"\"\"Return the number of glyphs in the font.\"\"\"\n    with TTFont(str(font_path), lazy=False, fontNumber=0) as font:\n        return len(font.getGlyphOrder())\n\n\ndef main() -> None:\n    fonts_root = Path(__file__).resolve().parents[1] / \"app\" / \"qml\" / \"fonts\"\n    font_files = sorted(\n        p for p in fonts_root.rglob(\"*\") if p.suffix.lower() in {\".ttf\", \".otf\", \".otb\"}\n    )\n\n    if not font_files:\n        print(f\"No font files found under {fonts_root}\")\n        return\n\n    for font_path in font_files:\n        rel = font_path.relative_to(fonts_root.parent.parent)\n        try:\n            count = count_glyphs(font_path)\n            print(f\"{rel}: {count} glyphs\")\n        except Exception as exc:  # noqa: BLE001\n            print(f\"{rel}: error reading font ({exc})\")\n\n\nif __name__ == \"__main__\":\n    main()\n"
  },
  {
    "path": "snap/snapcraft.yaml",
    "content": "name: cool-retro-term # check to see if it's available\nversion: '1.1.1' # this is freakin' awesome\nsummary: cool-retro-term is a cool and retro terminal emulator. # 79 char long summary\ndescription: |\n  cool-retro-term is a terminal emulator which mimics the look and feel of the old cathode tube screens. It has been designed to be eye-candy, customizable, and reasonably lightweight.\ngrade: stable # must be 'stable' to release into candidate/stable channels\nconfinement: classic # use 'strict' once you have the right plugs\n\nbase: core18\n\napps:\n  cool-retro-term:\n    command: bin/desktop-launch $SNAP/usr/bin/cool-retro-term\n    desktop: usr/share/applications/cool-retro-term.desktop\n    environment:\n      QML2_IMPORT_PATH: $SNAP/usr/lib/x86_64-linux-gnu/qt5/qml\n      \nparts:\n  desktop-qt5:\n    source: https://github.com/ubuntu/snapcraft-desktop-helpers.git\n    source-subdir: qt\n    plugin: make\n    make-parameters: [\"FLAVOR=qt5\"]\n    build-packages:\n      - build-essential\n      - qtbase5-dev\n      - dpkg-dev\n    stage-packages:\n      - libxkbcommon0\n      - ttf-ubuntu-font-family\n      - dmz-cursor-theme\n      - light-themes\n      - adwaita-icon-theme\n      - gnome-themes-standard\n      - shared-mime-info\n      - libqt5gui5\n      - libgdk-pixbuf2.0-0\n      - libqt5svg5 # for loading icon themes which are svg\n      - try: [appmenu-qt5] # not available on core18\n      - locales-all\n      - xdg-user-dirs\n      - fcitx-frontend-qt5\n\n  my-part:\n    source: https://github.com/Swordfish90/cool-retro-term\n    source-type: git\n    plugin: qmake # See 'snapcraft plugins'\n    qt-version: qt5\n    after: [desktop-qt5]\n\n    build-packages:\n      - build-essential \n      - qmlscene \n      - qt5-qmake \n      - qt5-default \n      - qtdeclarative5-dev \n      \n    stage-packages: \n      - qmlscene\n      - qml-module-qtquick-controls \n      - qml-module-qtquick2\n      - qml-module-qtgraphicaleffects\n      - qml-module-qtquick-dialogs \n      - qml-module-qtquick-localstorage\n      - qml-module-qtquick-window2\n      - libgl1-mesa-dev\n      - qtdeclarative5-dev-tools\n      - qml-module-qtquick-extras\n      - qml-module-qt-labs-settings\n      - qml-module-qt-labs-folderlistmodel\n\n"
  }
]