You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
1.6 KiB

4 years ago
import QtQuick 2.12
import QtQuick.Window 2.12
import Qt.labs.platform 1.1
import QtMultimedia 5.15
Window {
title: qsTr("Tangra Mega Rock")
id: mainWindow
visible: true
width: 640
maximumWidth: 640
4 years ago
height: 480
maximumHeight: 480
flags: Qt.FramelessWindowHint
4 years ago
FontLoader { id: mainfont; source: "Resources/KellySlab-Regular.ttf" }
4 years ago
SystemTrayIcon {
visible: true
icon.source: "Resources/tangra.ico"
4 years ago
menu: Menu {
MenuItem {
text: qsTr("Показване")
4 years ago
onTriggered: {
mainWindow.show()
mainWindow.raise()
mainWindow.requestActivate()
}
}
MenuItem {
text: qsTr("Изключване")
onTriggered: Qt.quit()
4 years ago
}
}
onActivated: {
mainWindow.show()
mainWindow.raise()
mainWindow.requestActivate()
}
}
AboutProgram {
id: aboutDialog
}
4 years ago
AudioPlayer {
id: tangraplay
}
function mediaControl() {
if (tangraplay.playbackState != Audio.PlayingState) {
tangraplay.play();
}
else {
tangraplay.stop();
}
return 0;
}
Image {
id: background
anchors.fill: parent
visible: true
fillMode: Image.Tile
source: "Resources/dark_leather.png"
MenuToolbar {}
4 years ago
PgLive {
id: pgLive1
4 years ago
}
PgNews {
id: pgnews1
visible: false
}
}
4 years ago
}