Коммит 219acfa0 создал по автору OMP Education's avatar OMP Education
Просмотр файлов

[Structure] Setup application template.

владелец 44d0ab2d
.apptool
.DS_Store
.mb2
.vscode
CMakeCache.txt
CMakeFiles
Makefile
QtCreatorDeployment.txt
RPMS
cmake_install.cmake
install_manifest.txt
*.autosave
*.list
*.md.backup
*.moc
*.o
*.pro.user*
*.qm
*~
*_autogen
CMakeLists.txt.user*
moc_*.cpp
ru.auroraos.WakeWord
build
stages:
- readme_cspell_check
- build
- sign
- validation
include:
- local: 'gitlab-ci/**.yml'
# SPDX-FileCopyrightText: 2026 Open Mobile Platform LLC <community@omp.ru>
# SPDX-License-Identifier: BSD-3-Clause
cmake_minimum_required(VERSION 3.18)
project(ru.auroraos.WakeWord CXX)
find_package (Qt5 COMPONENTS Core Qml Gui Quick LinguistTools REQUIRED)
include(FindPkgConfig)
pkg_search_module(AURORA auroraapp REQUIRED)
pkg_search_module(AURORA auroraapp_i18n REQUIRED)
set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 17)
set(SHORT_NAME WakeWord)
file(GLOB_RECURSE SOURCES_FILES "src/*.cpp")
file(GLOB_RECURSE HEADER_FILES "src/*.h")
file(GLOB_RECURSE QML_FILES "qml/*.qml")
file(GLOB_RECURSE ICON_FILES "icons/*.png")
file(GLOB TS_FILES "translations/*.ts")
file(GLOB MD_FILES "*.md")
set(TRANSLATION_SOURCES_FILES
${SOURCES_FILES}
${QML_FILES}
)
set(GEN_TS_PATH ${CMAKE_CURRENT_BINARY_DIR}/gen_translations)
foreach(_ts_file ${TS_FILES})
file(COPY ${_ts_file} DESTINATION ${GEN_TS_PATH})
endforeach()
file(GLOB GEN_TS_FILES "${GEN_TS_PATH}/*.ts")
add_custom_target(update_translations)
foreach(_ts_file ${GEN_TS_FILES})
get_filename_component(_ts_name ${_ts_file} NAME_WE)
add_custom_command(
OUTPUT ${_ts_file}
DEPENDS ${TRANSLATION_SOURCES_FILES}
COMMAND ${Qt5_LUPDATE_EXECUTABLE}
ARGS ${TRANSLATION_SOURCES_FILES} -ts ${_ts_file}
COMMAND ${CMAKE_COMMAND} -E copy
ARGS ${_ts_file} ${CMAKE_CURRENT_SOURCE_DIR}/translations
)
add_custom_target(translate_${_ts_name} DEPENDS ${_ts_file})
add_dependencies(update_translations translate_${_ts_name})
endforeach()
qt5_add_translation(TRANSLATION_QM_FILES ${GEN_TS_FILES})
set(CMAKE_SKIP_RPATH FALSE)
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/lib")
add_executable(${PROJECT_NAME}
${SOURCES_FILES}
${HEADER_FILES}
${ICON_FILES}
${QML_FILES}
${TS_FILES}
${PROJECT_NAME}.desktop
rpm/${PROJECT_NAME}.spec
${TRANSLATION_QM_FILES}
${MD_FILES}
)
target_compile_definitions(${PROJECT_NAME} PRIVATE
$<$<OR:$<$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>:QT_QML_DEBUG>
)
target_include_directories(${PROJECT_NAME} PRIVATE
$<BUILD_INTERFACE:
${AURORA_INCLUDE_DIRS}
>)
target_link_libraries(${PROJECT_NAME} PRIVATE
Qt5::Quick
${AURORA_LDFLAGS}
)
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(DIRECTORY qml
DESTINATION share/${PROJECT_NAME}
)
foreach(_file IN LISTS TRANSLATION_QM_FILES)
get_filename_component(_filename "${_file}" NAME)
string(REPLACE "${SHORT_NAME}" "${PROJECT_NAME}" _full_filename "${_filename}")
install(FILES ${_file} DESTINATION share/${PROJECT_NAME}/translations RENAME ${_full_filename})
endforeach()
set(ICON_SIZES 86x86 108x108 128x128 172x172)
foreach(_size IN LISTS ICON_SIZES)
install(FILES icons/${_size}/${PROJECT_NAME}.png DESTINATION share/icons/hicolor/${_size}/apps)
endforeach()
install(FILES ${PROJECT_NAME}.desktop
DESTINATION share/applications
)
file(WRITE "${CMAKE_BINARY_DIR}/QtCreatorDeployment.txt"
"${CMAKE_INSTALL_PREFIX}
${CMAKE_BINARY_DIR}/${PROJECT_NAME}:bin
")
## WakeWord
# WakeWord
The project provides a template of the WakeWord application for Aurora OS.
The main purpose is to demonstrate the initial repository structure for further development.
The project provides a template for the WakeWord Aurora OS application.
The main purpose is to demonstrate using a minimum of source code to get a correct and extensible application.
## Terms of Use and Participation
The source code of the project is provided under [the license](LICENSE.BSD-3-Clause.md),
which allows its use in third-party applications.
The [contributor agreement](CONTRIBUTING.md) documents the rights granted by contributors
of the Open Mobile Platform.
Information about the contributors is specified in the [AUTHORS](AUTHORS.md) file.
[Code of conduct](CODE_OF_CONDUCT.md) is a current set of rules of the Open Mobile
Platform which informs you how we expect the members of the community will interact
while contributing and communicating.
## Project Structure
The project has a standard structure
of an application based on C++ and QML for Aurora OS.
* **[CMakeLists.txt](CMakeLists.txt)** file describes the project structure for the CMake build system.
* **[icons](icons)** directory contains the application icons for different screen resolutions.
* **[qml](qml)** directory contains the QML source code and the UI resources.
* **[cover](qml/cover)** directory contains the application cover implementations.
* **[icons](qml/icons)** directory contains the additional custom UI icons.
* **[pages](qml/pages)** directory contains the application pages.
* **[WakeWord.qml](qml/WakeWord.qml)** file provides the application window implementation.
* **[rpm](rpm)** directory contains the rpm-package build settings.
* **[ru.auroraos.WakeWord.spec](rpm/ru.auroraos.WakeWord.spec)** file is used by rpmbuild tool.
* **[src](src)** directory contains the C++ source code.
* **[main.cpp](src/main.cpp)** file is the application entry point.
* **[translations](translations)** directory contains the UI translation files.
* **[ru.auroraos.WakeWord.desktop](ru.auroraos.WakeWord.desktop)** file defines the display and parameters for launching the application.
## Compatibility
The project is compatible with all the current versions of the Aurora OS.
## Screenshots
![screenshots](screenshots/screenshots.png)
## This document in Russian / Перевод этого документа на русский язык
- [README.ru.md](README.ru.md)
# WakeWord
Проект предоставляет шаблон приложения WakeWord для ОС Аврора.
Основная цель — наглядно продемонстрировать практически минимальный исходный код для получения корректного и расширяемого приложения.
## Условия использования и участия
Исходный код проекта предоставляется по [лицензии](LICENSE.BSD-3-Clause.md),
которая позволяет использовать его в сторонних приложениях.
[Соглашение участника](CONTRIBUTING.md) регламентирует права,
предоставляемые участниками компании «Открытая Мобильная Платформа».
Информация об участниках указана в файле [AUTHORS](AUTHORS.md).
[Кодекс поведения](CODE_OF_CONDUCT.md) — это действующий набор правил
компании «Открытая Мобильная Платформа»,
который информирует об ожиданиях по взаимодействию между членами сообщества при общении и работе над проектами.
## Структура проекта
Проект имеет стандартную структуру приложения на базе C++ и QML для ОС Аврора.
* Файл **[CMakeLists.txt](CMakeLists.txt)** описывает структуру проекта для системы сборки cmake.
* Каталог **[icons](icons)** содержит иконки приложения для поддерживаемых разрешений экрана.
* Каталог **[qml](qml)** содержит исходный код на QML и ресурсы интерфейса пользователя.
* Каталог **[cover](qml/cover)** содержит реализации обложек приложения.
* Каталог **[icons](qml/icons)** содержит дополнительные иконки интерфейса пользователя.
* Каталог **[pages](qml/pages)** содержит страницы приложения.
* Файл **[WakeWord.qml](qml/WakeWord.qml)** предоставляет реализацию окна приложения.
* Каталог **[rpm](rpm)** содержит настройки сборки rpm-пакета.
* Файл **[ru.auroraos.WakeWord.spec](rpm/ru.auroraos.WakeWord.spec)** используется инструментом rpmbuild.
* Каталог **[src](src)** содержит исходный код на C++.
* Файл **[main.cpp](src/main.cpp)** является точкой входа в приложение.
* Каталог **[translations](translations)** содержит файлы перевода интерфейса пользователя.
* Файл **[ru.auroraos.WakeWord.desktop](ru.auroraos.WakeWord.desktop)** определяет отображение и параметры запуска приложения.
## Совместимость
Проект совместим с актуальными версиями ОС Аврора.
## Снимки экранов
![screenshots](screenshots/screenshots.png)
## This document in English
- [README.md](README.md)
spec:
inputs:
PSDK_4_VER:
default: $PSDK_4_VER
SIGN_PROFILE:
default: $SIGN_PROFILE
---
"build-aurora_$[[ inputs.PSDK_4_VER | expand_vars ]]_armv7hl":
stage: build
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/build.sh
- /home/gitlab-runner/Aurora4PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/build.sh -a ./ -t AuroraOS-$[[ inputs.PSDK_4_VER | expand_vars ]]-base-armv7hl
when: always
"build-aurora_$[[ inputs.PSDK_4_VER | expand_vars ]]_i486":
stage: build
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/build.sh
- /home/gitlab-runner/Aurora4PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/build.sh -a ./ -t AuroraOS-$[[ inputs.PSDK_4_VER | expand_vars ]]-base-i486
when: always
"sign-aurora_$[[ inputs.PSDK_4_VER | expand_vars ]]_armv7hl":
stage: sign
needs: ["build-aurora_$[[ inputs.PSDK_4_VER | expand_vars ]]_armv7hl"]
dependencies:
- "build-aurora_$[[ inputs.PSDK_4_VER | expand_vars ]]_armv7hl"
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/sign.sh
- /home/gitlab-runner/Aurora4PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/sign.sh -p $[[ inputs.SIGN_PROFILE | expand_vars ]] -r ./artifacts
"sign-aurora_$[[ inputs.PSDK_4_VER | expand_vars ]]_i486":
stage: sign
needs: ["build-aurora_$[[ inputs.PSDK_4_VER | expand_vars ]]_i486"]
dependencies:
- "build-aurora_$[[ inputs.PSDK_4_VER | expand_vars ]]_i486"
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/sign.sh
- /home/gitlab-runner/Aurora4PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/sign.sh -p $[[ inputs.SIGN_PROFILE | expand_vars ]] -r ./artifacts
spec:
inputs:
PSDK_5_VER:
default: $PSDK_5_VER
SIGN_PROFILE:
default: $SIGN_PROFILE
---
"build-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_aarch64":
stage: build
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/build.sh
- /home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/build.sh -a ./ -t AuroraOS-$[[ inputs.PSDK_5_VER | expand_vars ]]-MB2-aarch64
when: always
"build-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_armv7hl":
stage: build
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/build.sh
- /home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/build.sh -a ./ -t AuroraOS-$[[ inputs.PSDK_5_VER | expand_vars ]]-MB2-armv7hl
when: always
"build-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_x86_64":
stage: build
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/build.sh
- /home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/build.sh -a ./ -t AuroraOS-$[[ inputs.PSDK_5_VER | expand_vars ]]-MB2-x86_64
when: always
"sign-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_aarch64":
stage: sign
needs: ["build-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_aarch64"]
dependencies:
- "build-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_aarch64"
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/sign.sh
- /home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/sign.sh -p $[[ inputs.SIGN_PROFILE | expand_vars ]] -r ./artifacts
"sign-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_armv7hl":
stage: sign
needs: ["build-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_armv7hl"]
dependencies:
- "build-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_armv7hl"
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/sign.sh
- /home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/sign.sh -p $[[ inputs.SIGN_PROFILE | expand_vars ]] -r ./artifacts
"sign-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_x86_64":
stage: sign
needs: ["build-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_x86_64"]
dependencies:
- "build-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_x86_64"
tags:
- aurora_psdk_runner
artifacts:
paths:
- ./artifacts/*.rpm
script:
- chmod +x ./gitlab-ci/sign.sh
- /home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/sign.sh -p $[[ inputs.SIGN_PROFILE | expand_vars ]] -r ./artifacts
"validation-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_aarch64":
stage: validation
needs: ["sign-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_aarch64"]
dependencies:
- "sign-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_aarch64"
tags:
- aurora_psdk_runner
script:
- chmod +x ./gitlab-ci/validate.sh
- /home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/validate.sh -p $[[ inputs.SIGN_PROFILE | expand_vars ]]
"validation-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_armv7hl":
stage: validation
needs: ["sign-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_armv7hl"]
dependencies:
- "sign-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_armv7hl"
tags:
- aurora_psdk_runner
script:
- chmod +x ./gitlab-ci/validate.sh
- /home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/validate.sh -p $[[ inputs.SIGN_PROFILE | expand_vars ]]
"validation-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_x86_64":
stage: validation
needs: ["sign-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_x86_64"]
dependencies:
- "sign-aurora_$[[ inputs.PSDK_5_VER | expand_vars ]]_x86_64"
tags:
- aurora_psdk_runner
script:
- chmod +x ./gitlab-ci/validate.sh
- /home/gitlab-runner/Aurora5PlatformSDK/sdks/aurora_psdk/sdk-chroot ./gitlab-ci/validate.sh -p $[[ inputs.SIGN_PROFILE | expand_vars ]]
spell-checking:
stage: readme_cspell_check
tags:
- aurora_psdk_runner
script:
- sudo cp ./gitlab-ci/project-words.txt /home/gitlab-runner/cspell
- /home/gitlab-runner/.nvm/versions/node/v22.14.0/bin/npx cspell --config /home/gitlab-runner/cspell/cspell.json "./README.md" "./README.ru.md" --show-suggestions
#!/bin/bash
# handle commandline options
usage()
{
echo "Script for building projects with PSDK."
echo
echo "Usage: build.sh <options>"
echo
echo "Options:"
echo "-a | --application Path to application directory for build."
echo "-s | --spec Path to spec file."
echo "-t | --target PSDK target to build RPM with."
echo "-h | --help Print this help and exit."
}
while [[ ${1:-} ]]; do
case "$1" in
-a | --application ) shift
OPT_PROJECT_PATH=$1; shift
;;
-s | --spec ) shift
OPT_SPEC_PATH=$1; shift
;;
-t | --target ) shift
OPT_PSDK_TARGET=$1; shift
;;
-h | --help ) shift
usage
exit;;
* )
usage
exit;;
esac
done
if [[ -z $OPT_PROJECT_PATH ]]; then
echo "Enter path to application directory"
exit
fi
if [[ -z $OPT_PSDK_TARGET ]]; then
echo "Incorrect target of PSDK"
exit
fi
mkdir -p build
mkdir -p artifacts
cd build
sdk-assistant list
# Build project
echo "Build project for $OPT_PSDK_TARGET"
if [[ -z $OPT_SPEC_PATH ]]; then
mb2 --target $OPT_PSDK_TARGET build ../$OPT_PROJECT_PATH
else
mb2 --target $OPT_PSDK_TARGET -s ../$OPT_SPEC_PATH build ../$OPT_PROJECT_PATH
fi
# Copy build artifacts
cp RPMS/* ../artifacts/
#!/bin/bash
set -e
# handle commandline options
usage()
{
echo "Script for signing RPM packages with PSDK."
echo
echo "Usage: sign.sh <options>"
echo
echo "Options:"
echo "-r | --rpm Path to directory with RPM packages."
echo "-p | --profile Validation profile for signing RPM-package."
echo " Available validation profiles: regular, extended, mdm, antivirus, auth."
echo "-h | --help Print this help and exit."
}
while [[ ${1:-} ]]; do
case "$1" in
-r | --rpm ) shift
OPT_RPM_PATH=$1; shift
;;
-p | --profile ) shift
OPT_SIGN_PROFILE=$1; shift
;;
-h | --help ) shift
usage
exit;;
* )
usage
exit;;
esac
done
if [[ -z $OPT_RPM_PATH ]]; then
echo "Enter path to directory with RPM packages"
exit 1
fi
if [[ -z $OPT_SIGN_PROFILE ]]; then
OPT_SIGN_PROFILE="regular"
fi
if [[ "$OPT_SIGN_PROFILE" != "regular" ]] && [[ "$OPT_SIGN_PROFILE" != "extended" ]] &&
[[ "$OPT_SIGN_PROFILE" != "mdm" ]] && [[ "$OPT_SIGN_PROFILE" != "antivirus" ]] && [[ "$OPT_SIGN_PROFILE" != "auth" ]]; then
echo "Incorrect validation profile"
exit 1
fi
# Sign artifact
echo "Sign artifact"
rpmsign-external sign \
-k ~/aurora-profiles/$OPT_SIGN_PROFILE/key.pem \
-c ~/aurora-profiles/$OPT_SIGN_PROFILE/cert.pem \
$OPT_RPM_PATH/*
#!/bin/bash
set -e
# handle commandline options
usage()
{
echo "Script for validate RPM packages with PSDK."
echo
echo "Usage: validate.sh <options>"
echo
echo "Options:"
echo "-p | --profile Validation profile for signing RPM-package."
echo " Available validation profiles: regular, extended, mdm, antivirus, auth."
echo "-h | --help Print this help and exit."
}
while [[ ${1:-} ]]; do
case "$1" in
-p | --profile ) shift
OPT_SIGN_PROFILE=$1; shift
;;
-h | --help ) shift
usage
exit;;
* )
usage
exit;;
esac
done
if [[ -z $OPT_RPM_PATH ]]; then
echo "Enter path to directory with RPM packages"
exit 1
fi
if [[ -z $OPT_SIGN_PROFILE ]]; then
OPT_SIGN_PROFILE="regular"
fi
if [[ "$OPT_SIGN_PROFILE" != "regular" ]] && [[ "$OPT_SIGN_PROFILE" != "extended" ]] &&
[[ "$OPT_SIGN_PROFILE" != "mdm" ]] && [[ "$OPT_SIGN_PROFILE" != "antivirus" ]] && [[ "$OPT_SIGN_PROFILE" != "auth" ]]; then
echo "Incorrect validation profile"
exit 1
fi
# Validate artifact
echo "Validate artifact"
rpm-validator \
--profile $OPT_SIGN_PROFILE \
$OPT_RPM_PATH/*
// SPDX-FileCopyrightText: 2026 Open Mobile Platform LLC <community@omp.ru>
// SPDX-License-Identifier: BSD-3-Clause
import QtQuick 2.0
import Sailfish.Silica 1.0
ApplicationWindow {
objectName: "applicationWindow"
initialPage: Qt.resolvedUrl("pages/MainPage.qml")
cover: Qt.resolvedUrl("cover/DefaultCoverPage.qml")
allowedOrientations: defaultAllowedOrientations
}
// SPDX-FileCopyrightText: 2026 Open Mobile Platform LLC <community@omp.ru>
// SPDX-License-Identifier: BSD-3-Clause
import QtQuick 2.0
import Sailfish.Silica 1.0
CoverBackground {
objectName: "defaultCover"
CoverPlaceholder {
objectName: "placeholder"
text: qsTr("WakeWord")
icon {
source: Qt.resolvedUrl("../icons/WakeWord.svg")
sourceSize {
width: icon.width;
height: icon.height
}
}
forceFit: true
}
}
<svg width="86" height="86" viewBox="0 0 86 86" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_15_404)">
<path d="M0 0H86V86H0V0Z" fill="url(#paint0_radial_15_404)"/>
<rect x="31" y="12" width="24" height="44" rx="12" fill="white"/>
<path d="M64 36.0025C64 42.4677 64 37.5323 64 43.9975C64 51.1337 60.4405 57.4395 55 61.2351C52.3575 63.0786 40.5438 70.0632 35.4029 73.0886C34.6183 73.5503 34.226 73.7812 33.9013 73.749C33.6184 73.7209 33.3601 73.5732 33.1925 73.3436C33 73.0801 33 72.623 33 71.7088V67.232C33 65.6116 33 64.8014 32.8393 64.1829C32.6585 63.4875 32.5474 63.241 32.1457 62.6452C31.7884 62.1154 30.8945 61.3261 29.1066 59.7475C24.7485 55.8996 22 50.2708 22 44V36" stroke="white" stroke-width="6" stroke-linecap="round"/>
</g>
<defs>
<radialGradient id="paint0_radial_15_404" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="rotate(45) scale(121.622 121.622)">
<stop stop-color="#1479E4"/>
<stop offset="1" stop-color="#5153E5"/>
</radialGradient>
<clipPath id="clip0_15_404">
<rect width="86" height="86" fill="white"/>
</clipPath>
</defs>
</svg>
// SPDX-FileCopyrightText: 2026 Open Mobile Platform LLC <community@omp.ru>
// SPDX-License-Identifier: BSD-3-Clause
import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
objectName: "aboutPage"
allowedOrientations: Orientation.All
SilicaFlickable {
objectName: "flickable"
anchors.fill: parent
contentHeight: layout.height + Theme.paddingLarge
Column {
id: layout
objectName: "layout"
width: parent.width
PageHeader {
objectName: "pageHeader"
title: qsTr("About Application")
}
Label {
objectName: "descriptionText"
anchors { left: parent.left; right: parent.right; margins: Theme.horizontalPageMargin }
color: palette.highlightColor
font.pixelSize: Theme.fontSizeSmall
textFormat: Text.RichText
wrapMode: Text.WordWrap
text: qsTr("#descriptionText")
}
SectionHeader {
objectName: "licenseHeader"
text: qsTr("3-Clause BSD License")
}
Label {
objectName: "licenseText"
anchors { left: parent.left; right: parent.right; margins: Theme.horizontalPageMargin }
color: palette.highlightColor
font.pixelSize: Theme.fontSizeSmall
textFormat: Text.RichText
wrapMode: Text.WordWrap
text: qsTr("#licenseText")
}
}
}
}
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать