43 lines
1.1 KiB
QML
43 lines
1.1 KiB
QML
import QtQuick 6
|
|
import QtQuick.Controls 6
|
|
import QtQuick.Layouts 6
|
|
|
|
import "players"
|
|
|
|
ApplicationWindow {
|
|
width: 600
|
|
height: 501
|
|
title: "BJ Helper ;)"
|
|
Component.onCompleted: visible = true
|
|
|
|
Image{ // setting background img properties
|
|
id: backg
|
|
anchors.centerIn: parent
|
|
width: parent.width
|
|
height: parent.height
|
|
source: "bg.jpg"
|
|
|
|
}
|
|
|
|
SplitView{ // setting up a SplitView that has 2 rectangles
|
|
orientation: Qt.Vertical
|
|
anchors.fill: parent
|
|
|
|
Rectangle{
|
|
id: rect1
|
|
SplitView.preferredHeight: parent.height - 190 // setting the bar to be 60 ambiguous units lower than middle
|
|
Layout.maximumHeight: 500
|
|
color: "transparent"
|
|
|
|
Player0{}
|
|
}
|
|
|
|
Rectangle{
|
|
id: rect2
|
|
//SplitView.preferredHeight: parent.height - 300 // not needed as it conflicts with rect1 line placement
|
|
Layout.maximumHeight: 500
|
|
color: "#2b2b29" //making payout window grey for better visibility
|
|
|
|
}
|
|
}
|
|
}
|