Add About page
This commit is contained in:
@@ -121,7 +121,7 @@ jobs:
|
|||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules
|
apt-get install --yes curl wget sudo jq cmake gcc g++ git pkgconf libboost-all-dev libkirigami-dev gettext libarchive-dev nlohmann-json3-dev qcoro-qt6-dev libkf6i18n-dev libkf6coreaddons-dev libkf6qqc2desktopstyle-dev libkf6iconthemes-dev libvulkan-dev libssl-dev librsvg2-dev extra-cmake-modules qml6-module-org-kde-kirigamiaddons-formcard
|
||||||
|
|
||||||
- uses: actions/cache@v4
|
- uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ include(ECMQmlModule)
|
|||||||
include(I18n)
|
include(I18n)
|
||||||
|
|
||||||
ecm_find_qmlmodule(org.kde.kirigami REQUIRED)
|
ecm_find_qmlmodule(org.kde.kirigami REQUIRED)
|
||||||
|
ecm_find_qmlmodule(org.kde.kirigamiaddons.formcard REQUIRED)
|
||||||
|
|
||||||
add_executable(wivrn-dashboard
|
add_executable(wivrn-dashboard
|
||||||
avahi.cpp
|
avahi.cpp
|
||||||
@@ -27,6 +28,7 @@ qt_add_dbus_interface(DBUS_INTERFACE_SRC ${CMAKE_CURRENT_SOURCE_DIR}/../dbus/io.
|
|||||||
target_sources(wivrn-dashboard PRIVATE ${DBUS_INTERFACE_SRC})
|
target_sources(wivrn-dashboard PRIVATE ${DBUS_INTERFACE_SRC})
|
||||||
|
|
||||||
set_source_files_properties(../images/wivrn.svg PROPERTIES QT_RESOURCE_ALIAS qml/wivrn.svg)
|
set_source_files_properties(../images/wivrn.svg PROPERTIES QT_RESOURCE_ALIAS qml/wivrn.svg)
|
||||||
|
qt_add_resources(wivrn-dashboard PREFIX "/" BASE .. FILES ../images/wivrn.svg)
|
||||||
|
|
||||||
set_source_files_properties(qml/DashboardSettings.qml PROPERTIES
|
set_source_files_properties(qml/DashboardSettings.qml PROPERTIES
|
||||||
QT_QML_SINGLETON_TYPE TRUE
|
QT_QML_SINGLETON_TYPE TRUE
|
||||||
@@ -36,6 +38,7 @@ qt_add_qml_module(wivrn-dashboard
|
|||||||
URI io.github.wivrn.wivrn
|
URI io.github.wivrn.wivrn
|
||||||
QML_FILES
|
QML_FILES
|
||||||
qml/Main.qml
|
qml/Main.qml
|
||||||
|
qml/About.qml
|
||||||
qml/ApkInstallPage.qml
|
qml/ApkInstallPage.qml
|
||||||
qml/DashboardSettings.qml
|
qml/DashboardSettings.qml
|
||||||
qml/SettingsPage.qml
|
qml/SettingsPage.qml
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
#include <KAboutData>
|
||||||
#include <KIconTheme>
|
#include <KIconTheme>
|
||||||
#include <KLocalizedContext>
|
#include <KLocalizedContext>
|
||||||
#include <KLocalizedString>
|
#include <KLocalizedString>
|
||||||
@@ -26,6 +27,28 @@ int main(int argc, char * argv[])
|
|||||||
|
|
||||||
app.setApplicationDisplayName(i18n("WiVRn dashboard"));
|
app.setApplicationDisplayName(i18n("WiVRn dashboard"));
|
||||||
|
|
||||||
|
KAboutData aboutData(
|
||||||
|
QStringLiteral("wivrn-dashboard"),
|
||||||
|
i18nc("@title", "WiVRn"),
|
||||||
|
wivrn::display_version(),
|
||||||
|
i18n("WiVRn server"),
|
||||||
|
KAboutLicense::GPL_V3,
|
||||||
|
i18n("(c) 2022-2026 WiVRn development team"));
|
||||||
|
|
||||||
|
aboutData.setHomepage("https://github.com/WiVRn/WiVRn");
|
||||||
|
aboutData.setBugAddress("https://github.com/WiVRn/WiVRn/issues");
|
||||||
|
aboutData.setProgramLogo(QIcon(":/qml/wivrn.svg"));
|
||||||
|
|
||||||
|
aboutData.addComponent(
|
||||||
|
i18n("Monado"),
|
||||||
|
i18n("OpenXR runtime"),
|
||||||
|
"",
|
||||||
|
"https://monado.dev/",
|
||||||
|
KAboutLicense::BSL_V1);
|
||||||
|
|
||||||
|
// Set aboutData as information about the app
|
||||||
|
KAboutData::setApplicationData(aboutData);
|
||||||
|
|
||||||
QCoro::Qml::registerTypes();
|
QCoro::Qml::registerTypes();
|
||||||
|
|
||||||
// Work around QTBUG-45105, QTBUG-46074, QTBUG-51112: flicker when resizing
|
// Work around QTBUG-45105, QTBUG-46074, QTBUG-51112: flicker when resizing
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
import QtQuick
|
||||||
|
import QtQuick.Controls as Controls
|
||||||
|
import org.kde.kirigami as Kirigami
|
||||||
|
import org.kde.coreaddons as KCoreAddons
|
||||||
|
import org.kde.kirigamiaddons.formcard as FormCard
|
||||||
|
|
||||||
|
FormCard.AboutPage {
|
||||||
|
aboutData: KCoreAddons.AboutData
|
||||||
|
donateUrl: "https://opencollective.com/wivrn"
|
||||||
|
getInvolvedUrl: ""
|
||||||
|
|
||||||
|
footer: Controls.DialogButtonBox {
|
||||||
|
standardButtons: Controls.DialogButtonBox.NoButton
|
||||||
|
onAccepted: applicationWindow().pageStack.pop()
|
||||||
|
|
||||||
|
Controls.Button {
|
||||||
|
text: i18nc("go back to the home page", "Back")
|
||||||
|
icon.name: "go-previous"
|
||||||
|
Controls.DialogButtonBox.buttonRole: Controls.DialogButtonBox.AcceptRole
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Shortcut {
|
||||||
|
sequences: [StandardKey.Cancel]
|
||||||
|
onActivated: {if (isCurrentPage) applicationWindow().pageStack.pop();}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -421,6 +421,11 @@ Kirigami.ApplicationWindow {
|
|||||||
onTriggered: root.pageStack.push(Qt.createComponent("SettingsPage.qml").createObject())
|
onTriggered: root.pageStack.push(Qt.createComponent("SettingsPage.qml").createObject())
|
||||||
enabled: root.server_started
|
enabled: root.server_started
|
||||||
},
|
},
|
||||||
|
Kirigami.Action {
|
||||||
|
text: i18n("About")
|
||||||
|
icon.name: "help-about"
|
||||||
|
onTriggered: root.pageStack.push(Qt.createComponent("About.qml").createObject())
|
||||||
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: i18n("Troubleshoot")
|
text: i18n("Troubleshoot")
|
||||||
icon.name: "help-contents-symbolic"
|
icon.name: "help-contents-symbolic"
|
||||||
|
|||||||
Reference in New Issue
Block a user