forked from nate97/Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
launcher_interface.py
157 lines (151 loc) · 6.47 KB
/
launcher_interface.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'launcher_interface.ui'
#
# Created by: PyQt5 UI code generator 5.7
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_LauncherWindow(object):
def setupUi(self, LauncherWindow):
LauncherWindow.setObjectName("LauncherWindow")
LauncherWindow.setEnabled(True)
LauncherWindow.resize(800, 500)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(LauncherWindow.sizePolicy().hasHeightForWidth())
LauncherWindow.setSizePolicy(sizePolicy)
LauncherWindow.setMinimumSize(QtCore.QSize(800, 500))
LauncherWindow.setMaximumSize(QtCore.QSize(800, 500))
font = QtGui.QFont()
font.setStyleStrategy(QtGui.QFont.PreferDefault)
LauncherWindow.setFont(font)
LauncherWindow.setStyleSheet("background-image: url(:/images/images/pattern_bg.png)")
self.centralwidget = QtWidgets.QWidget(LauncherWindow)
self.centralwidget.setObjectName("centralwidget")
self.login = QtWidgets.QFrame(self.centralwidget)
self.login.setGeometry(QtCore.QRect(50, 50, 701, 391))
self.login.setStyleSheet("background: #f9f9f9;\n"
"background-color: rgba(249,249,249, 0.7);\n"
"border-radius: 25;\n"
"border: 5px solid #cacaca;\n"
"padding: 5px;")
self.login.setFrameShape(QtWidgets.QFrame.NoFrame)
self.login.setFrameShadow(QtWidgets.QFrame.Sunken)
self.login.setLineWidth(0)
self.login.setObjectName("login")
self.pass_input = QtWidgets.QLineEdit(self.login)
self.pass_input.setGeometry(QtCore.QRect(40, 140, 191, 41))
self.pass_input.setFocusPolicy(QtCore.Qt.ClickFocus)
self.pass_input.setStyleSheet("background: white;\n"
"border-radius: 8;\n"
"border: 2px solid #cacaca;\n"
"padding: 0px;\n"
"font: 12pt \"Arial\";")
self.pass_input.setText("")
self.pass_input.setFrame(False)
self.pass_input.setEchoMode(QtWidgets.QLineEdit.Password)
self.pass_input.setObjectName("pass_input")
self.user_input = QtWidgets.QLineEdit(self.login)
self.user_input.setGeometry(QtCore.QRect(40, 90, 191, 41))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(12)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
font.setStyleStrategy(QtGui.QFont.PreferDefault)
self.user_input.setFont(font)
self.user_input.setFocusPolicy(QtCore.Qt.StrongFocus)
self.user_input.setStyleSheet("background: white;\n"
"border-radius: 8;\n"
"border: 2px solid #cacaca;\n"
"padding: 0px;\n"
"font: 12pt \"Arial\";")
self.user_input.setText("")
self.user_input.setFrame(False)
self.user_input.setObjectName("user_input")
self.launcher_state = QtWidgets.QLabel(self.login)
self.launcher_state.setGeometry(QtCore.QRect(30, 40, 241, 31))
self.launcher_state.setStyleSheet("background-color: rgba(249,249,249, 0);\n"
"border-radius: 5;\n"
"border: 0px solid #ffffff;\n"
"padding: 0px;\n"
"font: 14pt;")
self.launcher_state.setObjectName("launcher_state")
self.launcher_status = QtWidgets.QLabel(self.login)
self.launcher_status.setGeometry(QtCore.QRect(30, 280, 641, 31))
font = QtGui.QFont()
font.setPointSize(14)
self.launcher_status.setFont(font)
self.launcher_status.setStyleSheet("QLabel {\n"
"background-color: rgba(249,249,249, 0);\n"
"border-radius: 0;\n"
"border: 0px solid #ffffff;\n"
"padding: 0px;\n"
"}")
self.launcher_status.setObjectName("launcher_status")
self.progress_bar = QtWidgets.QProgressBar(self.login)
self.progress_bar.setEnabled(True)
self.progress_bar.setGeometry(QtCore.QRect(30, 320, 641, 41))
self.progress_bar.setAutoFillBackground(False)
self.progress_bar.setStyleSheet("QProgressBar:horizontal {\n"
"background-color: rgba(249,249,249, 1);\n"
"border-radius: 8;\n"
"border: 2px solid #cacaca;\n"
"padding: 0px;\n"
"}\n"
"\n"
"\n"
"QProgressBar::chunk:horizontal {\n"
"background-color: #1c65a0;\n"
"border-radius: 6;\n"
"}")
self.progress_bar.setProperty("value", 24)
self.progress_bar.setTextVisible(False)
self.progress_bar.setInvertedAppearance(False)
self.progress_bar.setTextDirection(QtWidgets.QProgressBar.TopToBottom)
self.progress_bar.setObjectName("progress_bar")
self.pushButton = QtWidgets.QPushButton(self.login)
self.pushButton.setEnabled(True)
self.pushButton.setGeometry(QtCore.QRect(40, 200, 191, 51))
self.pushButton.setCursor(QtGui.QCursor(QtCore.Qt.PointingHandCursor))
self.pushButton.setFocusPolicy(QtCore.Qt.ClickFocus)
self.pushButton.setStyleSheet("QPushButton { \n"
" color: white;\n"
" background: #cc3018;\n"
" border-radius: 8;\n"
" border: 4px solid #cacaca;\n"
" padding: 0px;\n"
" font: 12pt;}\n"
"\n"
"\n"
"\n"
"QPushButton:hover { \n"
" background: #dd3d23;\n"
"}")
self.pushButton.setDefault(False)
self.pushButton.setFlat(False)
self.pushButton.setObjectName("pushButton")
self.label = QtWidgets.QLabel(self.login)
self.label.setGeometry(QtCore.QRect(330, 40, 311, 111))
self.label.setStyleSheet("background: url(:/images/images/logo_plain_sampled.png);\n"
"background-repeat: no-repeat;\n"
"border-radius: 8;\n"
"border: 0px solid #cacaca;\n"
"padding: 0px;")
self.label.setText("")
self.label.setObjectName("label")
LauncherWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(LauncherWindow)
QtCore.QMetaObject.connectSlotsByName(LauncherWindow)
def retranslateUi(self, LauncherWindow):
_translate = QtCore.QCoreApplication.translate
LauncherWindow.setWindowTitle(_translate("LauncherWindow", "Launcher"))
self.pass_input.setPlaceholderText(_translate("LauncherWindow", "password"))
self.user_input.setPlaceholderText(_translate("LauncherWindow", "username"))
self.launcher_state.setText(_translate("LauncherWindow", "Launcher state"))
self.launcher_status.setText(_translate("LauncherWindow", "Launcher status"))
self.progress_bar.setFormat(_translate("LauncherWindow", "%p%"))
self.pushButton.setText(_translate("LauncherWindow", "Play Now!"))
import resources_rc