mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Add empty screen nav element
This commit is contained in:
parent
d066c4c18c
commit
742fee688d
@ -120,5 +120,7 @@
|
||||
<file>translations/ScreenPlay_de.qm</file>
|
||||
<file>translations/ScreenPlay_en.qm</file>
|
||||
<file>qml/Create/Wizards/CreateWallpaper/NextButton.qml</file>
|
||||
<file>qml/Screen/Screen.qml</file>
|
||||
<file>assets/icons/icon_screen.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
1
ScreenPlay/assets/icons/icon_screen.svg
Normal file
1
ScreenPlay/assets/icons/icon_screen.svg
Normal file
@ -0,0 +1 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 128 128" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><path id="hexagon-outline" d="M120.7,92.35c0,2.402 -1.344,4.489 -3.32,5.552l-49.812,27.991c-1.014,0.698 -2.243,1.107 -3.568,1.107c-1.325,0 -2.554,-0.409 -3.568,-1.107l-49.811,-27.99c-1.977,-1.063 -3.321,-3.151 -3.321,-5.553l0,-56.7c0,-2.402 1.344,-4.49 3.321,-5.553l49.811,-27.99c1.014,-0.698 2.243,-1.107 3.568,-1.107c1.325,0 2.553,0.409 3.568,1.107l49.812,27.991c1.976,1.063 3.32,3.151 3.32,5.552l0,56.7Zm-56.695,-67.917l-35.292,19.832l0,39.47l35.292,19.832l35.282,-19.832l0,-39.47l-35.282,-19.832Z" style="fill:#bebebe;fill-rule:nonzero;"/></svg>
|
After Width: | Height: | Size: 997 B |
@ -11,27 +11,7 @@ Rectangle {
|
||||
|
||||
signal changePage(string name)
|
||||
|
||||
Action {
|
||||
shortcut: "F1"
|
||||
onTriggered: onPageChanged("Create")
|
||||
}
|
||||
Action {
|
||||
shortcut: "F2"
|
||||
onTriggered: onPageChanged("Workshop")
|
||||
}
|
||||
Action {
|
||||
shortcut: "F3"
|
||||
onTriggered: onPageChanged("Installed")
|
||||
}
|
||||
Action {
|
||||
shortcut: "F4"
|
||||
onTriggered: onPageChanged("Community")
|
||||
}
|
||||
Action {
|
||||
shortcut: "F5"
|
||||
onTriggered: onPageChanged("Settings")
|
||||
}
|
||||
property var navArray: [navCreate, navWorkshop, navInstalled, navSettings, navCommunity]
|
||||
property var navArray: [navCreate, navWorkshop, navInstalled, navSettings, navCommunity, navScreen]
|
||||
|
||||
function onPageChanged(name) {
|
||||
|
||||
@ -82,6 +62,14 @@ Rectangle {
|
||||
onPageClicked: navigation.onPageChanged(name)
|
||||
}
|
||||
|
||||
NavigationItem {
|
||||
id: navScreen
|
||||
state: "inactive"
|
||||
name: "Screen"
|
||||
iconSource: "qrc:/assets/icons/icon_screen.svg"
|
||||
onPageClicked: navigation.onPageChanged(name)
|
||||
}
|
||||
|
||||
NavigationItem {
|
||||
id: navCommunity
|
||||
state: "inactive"
|
||||
@ -98,5 +86,6 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
NavigationWallpaperConfiguration {}
|
||||
NavigationWallpaperConfiguration {
|
||||
}
|
||||
}
|
||||
|
8
ScreenPlay/qml/Screen/Screen.qml
Normal file
8
ScreenPlay/qml/Screen/Screen.qml
Normal file
@ -0,0 +1,8 @@
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
import QtQuick.Controls.Material 2.2
|
||||
|
||||
Item {
|
||||
id: screen
|
||||
anchors.fill: parent
|
||||
}
|
Loading…
Reference in New Issue
Block a user