Skip to content

Commit 68efd1a

Browse files
SyldaSylda
Sylda
authored and
Sylda
committed
init
1 parent 6f1a6d4 commit 68efd1a

7 files changed

+773
-0
lines changed

CustomButton.qml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import QtQuick 2.14
2+
3+
Rectangle {
4+
width: 138
5+
height: 75
6+
color: "transparent"
7+
Text {
8+
id: buttonPLay
9+
property bool pressed: false
10+
anchors.centerIn: parent
11+
text: "PLAY"
12+
font.family: "Arial"
13+
font.pointSize: 25
14+
color: "#AAAAAA"
15+
MouseArea {
16+
hoverEnabled: true
17+
anchors.fill: parent
18+
onClicked: {
19+
parent.pressed = !parent.pressed
20+
parent.color = parent.pressed ? "white" : "#DDDDDD"
21+
_Button.buttonClicked("ads")
22+
}
23+
onEntered: {
24+
parent.color = parent.pressed ? parent.color : "#DDDDDD"
25+
}
26+
onExited: {
27+
parent.color = parent.pressed ? parent.color : "#AAAAAA"
28+
}
29+
}
30+
Behavior on color {
31+
ColorAnimation { duration: 100 }
32+
}
33+
}
34+
}

LaunchBox.qml

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
import QtQuick 2.14
2+
import QtQuick.Controls 2.14
3+
import QtQuick.Window 2.14
4+
import QtWebEngine 1.0
5+
6+
Window {
7+
id: window
8+
visible: true
9+
width: 1200
10+
height: 500
11+
color: "#202020"
12+
flags: Qt.Window | Qt.FramelessWindowHint | Qt.WindowMinimizeButtonHint | Qt.WindowMaximizeButtonHint
13+
minimumWidth: 800
14+
minimumHeight: 600
15+
// for window movement
16+
property bool maximalized: false
17+
property point startMousePos
18+
property point startWindowPos
19+
property size startWindowSize
20+
21+
function absoluteMousePos(mouseArea) {
22+
var windowAbs = mouseArea.mapToItem(null, mouseArea.mouseX, mouseArea.mouseY)
23+
return Qt.point(windowAbs.x + window.x,
24+
windowAbs.y + window.y)
25+
}
26+
27+
TopBar {
28+
id: topBar
29+
anchors{
30+
top: parent.top
31+
left: parent.left
32+
right: parent.right
33+
}
34+
35+
height: 25
36+
color: "black"
37+
smooth: true
38+
}
39+
40+
Rectangle {
41+
id:addressBar
42+
color: "#303030"
43+
anchors{
44+
top: topBar.bottom
45+
left: parent.left
46+
right: parent.right
47+
}
48+
height: 20
49+
50+
Rectangle {
51+
anchors {
52+
fill: parent
53+
leftMargin: 15
54+
rightMargin: 15
55+
}
56+
radius: 10
57+
TextInput {
58+
id: textInput
59+
text: "asd"
60+
color: "#151515";
61+
font.pixelSize: 15;
62+
width: parent.width-30
63+
anchors.centerIn: parent
64+
}
65+
}
66+
}
67+
68+
CustomButton {
69+
id: button
70+
x: 45
71+
y: 359
72+
}
73+
74+
ResizingFrames {
75+
anchors.fill: parent
76+
size: 3
77+
}
78+
}
79+
80+
/*##^##
81+
Designer {
82+
D{i:0;3d-active-scene:-1}
83+
}
84+
##^##*/

LaunchBox.qmlproject

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/* File generated by Qt Creator */
2+
3+
import QmlProject 1.1
4+
5+
Project {
6+
mainFile: "LaunchBox.qml"
7+
8+
/* Include .qml, .js, and image files from current directory and subdirectories */
9+
QmlFiles {
10+
directory: "."
11+
}
12+
13+
JavaScriptFiles {
14+
directory: "."
15+
}
16+
17+
ImageFiles {
18+
directory: "."
19+
}
20+
21+
Files {
22+
filter: "*.conf"
23+
files: ["qtquickcontrols2.conf"]
24+
}
25+
26+
Files {
27+
filter: "qmldir"
28+
directory: "."
29+
}
30+
31+
Files {
32+
filter: "*.ttf;*.otf"
33+
}
34+
35+
Environment {
36+
QT_QUICK_CONTROLS_CONF: "qtquickcontrols2.conf"
37+
QT_AUTO_SCREEN_SCALE_FACTOR: "1"
38+
}
39+
40+
/* List of plugin directories passed to QML runtime */
41+
importPaths: [ "imports", "asset_imports" ]
42+
43+
/* Required for deployment */
44+
targetDirectory: "/opt/LaunchBox"
45+
}

LaunchBox.qmlproject.qtds

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE QtCreatorProject>
3+
<!-- Written by QtDesignStudio 1.5.0, 2020-05-23T12:29:18. -->
4+
<qtcreator>
5+
<data>
6+
<variable>EnvironmentId</variable>
7+
<value type="QByteArray">{3f70a751-75b1-4491-add3-eb9bb8b406b0}</value>
8+
</data>
9+
<data>
10+
<variable>ProjectExplorer.Project.ActiveTarget</variable>
11+
<value type="int">0</value>
12+
</data>
13+
<data>
14+
<variable>ProjectExplorer.Project.EditorSettings</variable>
15+
<valuemap type="QVariantMap">
16+
<value type="bool" key="EditorConfiguration.AutoIndent">true</value>
17+
<value type="bool" key="EditorConfiguration.AutoSpacesForTabs">false</value>
18+
<value type="bool" key="EditorConfiguration.CamelCaseNavigation">true</value>
19+
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.0">
20+
<value type="QString" key="language">Cpp</value>
21+
<valuemap type="QVariantMap" key="value">
22+
<value type="QByteArray" key="CurrentPreferences">CppGlobal</value>
23+
</valuemap>
24+
</valuemap>
25+
<valuemap type="QVariantMap" key="EditorConfiguration.CodeStyle.1">
26+
<value type="QString" key="language">QmlJS</value>
27+
<valuemap type="QVariantMap" key="value">
28+
<value type="QByteArray" key="CurrentPreferences">QmlJSGlobal</value>
29+
</valuemap>
30+
</valuemap>
31+
<value type="int" key="EditorConfiguration.CodeStyle.Count">2</value>
32+
<value type="QByteArray" key="EditorConfiguration.Codec">UTF-8</value>
33+
<value type="bool" key="EditorConfiguration.ConstrainTooltips">false</value>
34+
<value type="int" key="EditorConfiguration.IndentSize">4</value>
35+
<value type="bool" key="EditorConfiguration.KeyboardTooltips">false</value>
36+
<value type="int" key="EditorConfiguration.MarginColumn">80</value>
37+
<value type="bool" key="EditorConfiguration.MouseHiding">true</value>
38+
<value type="bool" key="EditorConfiguration.MouseNavigation">true</value>
39+
<value type="int" key="EditorConfiguration.PaddingMode">1</value>
40+
<value type="bool" key="EditorConfiguration.ScrollWheelZooming">true</value>
41+
<value type="bool" key="EditorConfiguration.ShowMargin">false</value>
42+
<value type="int" key="EditorConfiguration.SmartBackspaceBehavior">0</value>
43+
<value type="bool" key="EditorConfiguration.SmartSelectionChanging">true</value>
44+
<value type="bool" key="EditorConfiguration.SpacesForTabs">true</value>
45+
<value type="int" key="EditorConfiguration.TabKeyBehavior">0</value>
46+
<value type="int" key="EditorConfiguration.TabSize">8</value>
47+
<value type="bool" key="EditorConfiguration.UseGlobal">true</value>
48+
<value type="int" key="EditorConfiguration.Utf8BomBehavior">1</value>
49+
<value type="bool" key="EditorConfiguration.addFinalNewLine">true</value>
50+
<value type="bool" key="EditorConfiguration.cleanIndentation">true</value>
51+
<value type="bool" key="EditorConfiguration.cleanWhitespace">true</value>
52+
<value type="bool" key="EditorConfiguration.inEntireDocument">false</value>
53+
</valuemap>
54+
</data>
55+
<data>
56+
<variable>ProjectExplorer.Project.PluginSettings</variable>
57+
<valuemap type="QVariantMap"/>
58+
</data>
59+
<data>
60+
<variable>ProjectExplorer.Project.Target.0</variable>
61+
<valuemap type="QVariantMap">
62+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop</value>
63+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop</value>
64+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">{8994bd34-5ed9-4c45-8c0a-94c8f33eca4a}</value>
65+
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">-1</value>
66+
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
67+
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
68+
<value type="int" key="ProjectExplorer.Target.BuildConfigurationCount">0</value>
69+
<valuemap type="QVariantMap" key="ProjectExplorer.Target.DeployConfiguration.0">
70+
<valuemap type="QVariantMap" key="ProjectExplorer.BuildConfiguration.BuildStepList.0">
71+
<value type="int" key="ProjectExplorer.BuildStepList.StepsCount">0</value>
72+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Deploy</value>
73+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Deploy</value>
74+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.BuildSteps.Deploy</value>
75+
</valuemap>
76+
<value type="int" key="ProjectExplorer.BuildConfiguration.BuildStepListCount">1</value>
77+
<valuemap type="QVariantMap" key="ProjectExplorer.DeployConfiguration.CustomData"/>
78+
<value type="bool" key="ProjectExplorer.DeployConfiguration.CustomDataEnabled">false</value>
79+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">ProjectExplorer.DefaultDeployConfiguration</value>
80+
</valuemap>
81+
<value type="int" key="ProjectExplorer.Target.DeployConfigurationCount">1</value>
82+
<valuemap type="QVariantMap" key="ProjectExplorer.Target.PluginSettings"/>
83+
<valuemap type="QVariantMap" key="ProjectExplorer.Target.RunConfiguration.0">
84+
<value type="bool" key="Analyzer.QmlProfiler.AggregateTraces">false</value>
85+
<value type="bool" key="Analyzer.QmlProfiler.FlushEnabled">false</value>
86+
<value type="uint" key="Analyzer.QmlProfiler.FlushInterval">1000</value>
87+
<value type="QString" key="Analyzer.QmlProfiler.LastTraceFile"></value>
88+
<value type="bool" key="Analyzer.QmlProfiler.Settings.UseGlobalSettings">true</value>
89+
<value type="int" key="PE.EnvironmentAspect.Base">0</value>
90+
<valuelist type="QVariantList" key="PE.EnvironmentAspect.Changes"/>
91+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">QML Scene</value>
92+
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">QmlProjectManager.QmlRunConfiguration.QmlScene</value>
93+
<value type="QString" key="ProjectExplorer.RunConfiguration.BuildKey"></value>
94+
<value type="QString" key="QmlProjectManager.QmlRunConfiguration.MainScript">CurrentFile</value>
95+
<value type="QString" key="QmlProjectManager.QmlRunConfiguration.QDeclarativeViewerArguments"></value>
96+
<value type="bool" key="QmlProjectManager.QmlRunConfiguration.QDeclarativeViewerArguments.multi">false</value>
97+
<value type="QString" key="RunConfiguration.OverrideDebuggerStartup"></value>
98+
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
99+
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>
100+
<value type="bool" key="RunConfiguration.UseMultiProcess">false</value>
101+
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
102+
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
103+
</valuemap>
104+
<value type="int" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
105+
</valuemap>
106+
</data>
107+
<data>
108+
<variable>ProjectExplorer.Project.TargetCount</variable>
109+
<value type="int">1</value>
110+
</data>
111+
<data>
112+
<variable>ProjectExplorer.Project.Updater.FileVersion</variable>
113+
<value type="int">22</value>
114+
</data>
115+
<data>
116+
<variable>Version</variable>
117+
<value type="int">22</value>
118+
</data>
119+
</qtcreator>

LaunchBox.qrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<!DOCTYPE RCC><RCC version="1.0">
2+
<qresource prefix="/">
3+
<file>LaunchBox.qml</file>
4+
<file>CustomButton.qml</file>
5+
<file>TopBar.qml</file>
6+
<file>ResizingFrames.qml</file>
7+
</qresource>
8+
</RCC>

0 commit comments

Comments
 (0)