Commit 386b41ce authored by Yankovskiy Georgiy's avatar Yankovskiy Georgiy

Simple layout with tabs

parent 7e605751
...@@ -83,9 +83,11 @@ fabric.properties ...@@ -83,9 +83,11 @@ fabric.properties
### PyCharm Patch ### ### PyCharm Patch ###
# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
# *.iml .idea/*.iml
# modules.xml .idea/modules.xml
# .idea/misc.xml .idea/misc.xml
.idea/inspectionProfiles/profiles_settings.xml
.idea/vcs.xml
# *.ipr # *.ipr
# Sonarlint plugin # Sonarlint plugin
......
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
import QtQuick
Rectangle {
id: rectangle
width: 150
height: 50
radius: 5
color: "#ffffff"
Text {
id: text1
text: qsTr("Text")
anchors.fill: parent
font.pixelSize: 12
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
}
import QtQuick
Rectangle {
id: tabs
x: 0
y: 0
width: 640
height: 480
color: "#ffffff"
Grid {
id: grid
y: 60
height: 420
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.rightMargin: 0
anchors.leftMargin: 0
anchors.bottomMargin: 0
}
Rectangle {
id: tabsBar
height: 60
color: "#4a4a4a"
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.topMargin: 0
anchors.leftMargin: 0
anchors.rightMargin: 0
Row {
id: row
height: 60
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
spacing: 5
padding: 0
rightPadding: 5
leftPadding: 5
bottomPadding: 5
topPadding: 5
Button {
id: button1
}
Button {
id: button2
}
Button {
id: button3
}
}
}
}
import QtQuick import QtQuick
// import QtQuick.VirtualKeyboard // import QtQuick.VirtualKeyboard
// Import all components from folder
import "scenes"
Window { Window {
id: window id: window
width: 640 width: 640
height: 480 height: 480
visible: true visible: true
title: qsTr("Hello World") title: qsTr("Launcher")
HomeScene {
id: grid
anchors.fill: parent
}
/* InputPanel { /* InputPanelHomeScene {
id: inputPanel id: inputPanel
z: 99 z: 99
x: 0 x: 0
y: window.height y: window.height
width: window.width width: window.width
states: State { states: StateHomeScene {
name: "visible" name: "visible"
when: inputPanel.active when: inputPanel.active
PropertyChanges { PropertyChangesHomeScene {
target: inputPanel target: inputPanel
y: window.height - inputPanel.height y: window.height - inputPanel.height
} }
} }
transitions: Transition { transitions: TransitionHomeScene {
from: "" from: ""
to: "visible" to: "visible"
reversible: true reversible: true
ParallelAnimation { ParallelAnimationHomeScene {
NumberAnimation { NumberAnimationHomeScene {
properties: "y" properties: "y"
duration: 250 duration: 250
easing.type: Easing.InOutQuad easing.type: Easing.InOutQuad
......
...@@ -17,4 +17,6 @@ Project { ...@@ -17,4 +17,6 @@ Project {
} }
/* List of plugin directories passed to QML runtime */ /* List of plugin directories passed to QML runtime */
// importPaths: [ "asset_imports" ] // importPaths: [ "asset_imports" ]
mainUiFile: "qml.qml"
} }
import QtQuick
import "../components"
Rectangle {
id: container
x: 0
y: 0
width: 640
height: 480
Rectangle {
id: rectangle
height: 50
color: "#2b2b2b"
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.rightMargin: 0
anchors.leftMargin: 0
anchors.topMargin: 0
}
Tabs {
id: tabs
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.topMargin: 48
anchors.bottomMargin: 0
anchors.leftMargin: 0
anchors.rightMargin: 0
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment