diff --git a/gui/images/svg_images/logo_home.svg b/gui/images/svg_images/logo_home.svg new file mode 100644 index 0000000..377a685 --- /dev/null +++ b/gui/images/svg_images/logo_home.svg @@ -0,0 +1,158 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/gui/uis/columns/left_column.ui b/gui/uis/columns/left_column.ui index e51b83f..d514076 100644 --- a/gui/uis/columns/left_column.ui +++ b/gui/uis/columns/left_column.ui @@ -39,6 +39,120 @@ background: lightgreen; font-size: 16pt + + 5 + + + 5 + + + 5 + + + 5 + + + 5 + + + + + + 0 + 40 + + + + + 16777215 + 40 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + 0 + 40 + + + + + 16777215 + 40 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + 0 + 40 + + + + + 16777215 + 40 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + @@ -47,7 +161,7 @@ - Page 1 + Menu 1 - Left Menu Qt::AlignCenter @@ -61,6 +175,54 @@ background: lightblue; font-size: 16pt + + 5 + + + 5 + + + 5 + + + 5 + + + 5 + + + + + + 0 + 40 + + + + + 16777215 + 40 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + @@ -69,13 +231,35 @@ - Page 2 + Menu 2 - Left Menu Qt::AlignCenter + + + + + 9 + + + + font-size: 9pt + + + This is just an example menu. +Add Qt Widgets or your custom widgets here. + + + Qt::AlignCenter + + + true + + + diff --git a/gui/uis/columns/right_column.ui b/gui/uis/columns/right_column.ui index 4b2c8c7..6711a14 100644 --- a/gui/uis/columns/right_column.ui +++ b/gui/uis/columns/right_column.ui @@ -39,6 +39,120 @@ background: lightgreen; font-size: 16pt + + 5 + + + 5 + + + 5 + + + 5 + + + 5 + + + + + + 0 + 40 + + + + + 16777215 + 40 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + 0 + 40 + + + + + 16777215 + 40 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + + 0 + 40 + + + + + 16777215 + 40 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + @@ -47,7 +161,7 @@ - Page 1 + Menu 1 - Right Menu Qt::AlignCenter @@ -61,6 +175,54 @@ background: lightblue; font-size: 16pt + + 5 + + + 5 + + + 5 + + + 5 + + + 5 + + + + + + 0 + 40 + + + + + 16777215 + 40 + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + @@ -69,13 +231,35 @@ - Page 2 + Menu 2 - Right Menu Qt::AlignCenter + + + + + 9 + + + + font-size: 9pt + + + This is just an example menu. +Add Qt Widgets or your custom widgets here. + + + Qt::AlignCenter + + + true + + + diff --git a/gui/uis/columns/ui_left_column.py b/gui/uis/columns/ui_left_column.py index 07a9511..db40bef 100644 --- a/gui/uis/columns/ui_left_column.py +++ b/gui/uis/columns/ui_left_column.py @@ -1,16 +1,22 @@ -# -*- coding: utf-8 -*- +# /////////////////////////////////////////////////////////////// +# +# BY: WANDERSON M.PIMENTA +# PROJECT MADE WITH: Qt Designer and PySide6 +# V: 1.0.0 +# +# This project can be used freely for all uses, as long as they maintain the +# respective credits only in the Python scripts, any information in the visual +# interface (GUI) can be modified without any implication. +# +# There are limitations on Qt licenses if you want to use your products +# commercially, I recommend reading them on the official website: +# https://doc.qt.io/qtforpython/licenses.html +# +# /////////////////////////////////////////////////////////////// -################################################################################ -## Form generated from reading UI file 'left_columnoRCxDO.ui' -## -## Created by: Qt User Interface Compiler version 6.0.2 -## -## WARNING! All changes made in this file will be lost when recompiling UI file! -################################################################################ - -from PySide6.QtCore import * -from PySide6.QtGui import * -from PySide6.QtWidgets import * +# IMPORT QT CORE +# /////////////////////////////////////////////////////////////// +from qt_core import * class Ui_LeftColumn(object): @@ -28,7 +34,42 @@ class Ui_LeftColumn(object): self.menu_1.setObjectName(u"menu_1") self.menu_1.setStyleSheet(u"background: lightgreen; font-size: 16pt") self.verticalLayout = QVBoxLayout(self.menu_1) + self.verticalLayout.setSpacing(5) self.verticalLayout.setObjectName(u"verticalLayout") + self.verticalLayout.setContentsMargins(5, 5, 5, 5) + self.btn_1_widget = QWidget(self.menu_1) + self.btn_1_widget.setObjectName(u"btn_1_widget") + self.btn_1_widget.setMinimumSize(QSize(0, 40)) + self.btn_1_widget.setMaximumSize(QSize(16777215, 40)) + self.btn_1_layout = QVBoxLayout(self.btn_1_widget) + self.btn_1_layout.setSpacing(0) + self.btn_1_layout.setObjectName(u"btn_1_layout") + self.btn_1_layout.setContentsMargins(0, 0, 0, 0) + + self.verticalLayout.addWidget(self.btn_1_widget) + + self.btn_2_widget = QWidget(self.menu_1) + self.btn_2_widget.setObjectName(u"btn_2_widget") + self.btn_2_widget.setMinimumSize(QSize(0, 40)) + self.btn_2_widget.setMaximumSize(QSize(16777215, 40)) + self.btn_2_layout = QVBoxLayout(self.btn_2_widget) + self.btn_2_layout.setSpacing(0) + self.btn_2_layout.setObjectName(u"btn_2_layout") + self.btn_2_layout.setContentsMargins(0, 0, 0, 0) + + self.verticalLayout.addWidget(self.btn_2_widget) + + self.btn_3_widget = QWidget(self.menu_1) + self.btn_3_widget.setObjectName(u"btn_3_widget") + self.btn_3_widget.setMinimumSize(QSize(0, 40)) + self.btn_3_widget.setMaximumSize(QSize(16777215, 40)) + self.btn_3_layout = QVBoxLayout(self.btn_3_widget) + self.btn_3_layout.setSpacing(0) + self.btn_3_layout.setObjectName(u"btn_3_layout") + self.btn_3_layout.setContentsMargins(0, 0, 0, 0) + + self.verticalLayout.addWidget(self.btn_3_widget) + self.label_1 = QLabel(self.menu_1) self.label_1.setObjectName(u"label_1") font = QFont() @@ -43,7 +84,20 @@ class Ui_LeftColumn(object): self.menu_2.setObjectName(u"menu_2") self.menu_2.setStyleSheet(u"background: lightblue; font-size: 16pt") self.verticalLayout_2 = QVBoxLayout(self.menu_2) + self.verticalLayout_2.setSpacing(5) self.verticalLayout_2.setObjectName(u"verticalLayout_2") + self.verticalLayout_2.setContentsMargins(5, 5, 5, 5) + self.btn_4_widget = QWidget(self.menu_2) + self.btn_4_widget.setObjectName(u"btn_4_widget") + self.btn_4_widget.setMinimumSize(QSize(0, 40)) + self.btn_4_widget.setMaximumSize(QSize(16777215, 40)) + self.btn_4_layout = QVBoxLayout(self.btn_4_widget) + self.btn_4_layout.setSpacing(0) + self.btn_4_layout.setObjectName(u"btn_4_layout") + self.btn_4_layout.setContentsMargins(0, 0, 0, 0) + + self.verticalLayout_2.addWidget(self.btn_4_widget) + self.label_2 = QLabel(self.menu_2) self.label_2.setObjectName(u"label_2") self.label_2.setFont(font) @@ -51,6 +105,17 @@ class Ui_LeftColumn(object): self.verticalLayout_2.addWidget(self.label_2) + self.label_3 = QLabel(self.menu_2) + self.label_3.setObjectName(u"label_3") + font1 = QFont() + font1.setPointSize(9) + self.label_3.setFont(font1) + self.label_3.setStyleSheet(u"font-size: 9pt") + self.label_3.setAlignment(Qt.AlignCenter) + self.label_3.setWordWrap(True) + + self.verticalLayout_2.addWidget(self.label_3) + self.pages.addWidget(self.menu_2) self.main_pages_layout.addWidget(self.pages) @@ -58,7 +123,7 @@ class Ui_LeftColumn(object): self.retranslateUi(LeftColumn) - self.pages.setCurrentIndex(1) + self.pages.setCurrentIndex(0) QMetaObject.connectSlotsByName(LeftColumn) @@ -66,7 +131,9 @@ class Ui_LeftColumn(object): def retranslateUi(self, LeftColumn): LeftColumn.setWindowTitle(QCoreApplication.translate("LeftColumn", u"Form", None)) - self.label_1.setText(QCoreApplication.translate("LeftColumn", u"Page 1", None)) - self.label_2.setText(QCoreApplication.translate("LeftColumn", u"Page 2", None)) + self.label_1.setText(QCoreApplication.translate("LeftColumn", u"Menu 1 - Left Menu", None)) + self.label_2.setText(QCoreApplication.translate("LeftColumn", u"Menu 2 - Left Menu", None)) + self.label_3.setText(QCoreApplication.translate("LeftColumn", u"This is just an example menu.\n" +"Add Qt Widgets or your custom widgets here.", None)) # retranslateUi diff --git a/gui/uis/columns/ui_right_column.py b/gui/uis/columns/ui_right_column.py index 4ef4f91..ae097b7 100644 --- a/gui/uis/columns/ui_right_column.py +++ b/gui/uis/columns/ui_right_column.py @@ -1,16 +1,22 @@ -# -*- coding: utf-8 -*- +# /////////////////////////////////////////////////////////////// +# +# BY: WANDERSON M.PIMENTA +# PROJECT MADE WITH: Qt Designer and PySide6 +# V: 1.0.0 +# +# This project can be used freely for all uses, as long as they maintain the +# respective credits only in the Python scripts, any information in the visual +# interface (GUI) can be modified without any implication. +# +# There are limitations on Qt licenses if you want to use your products +# commercially, I recommend reading them on the official website: +# https://doc.qt.io/qtforpython/licenses.html +# +# /////////////////////////////////////////////////////////////// -################################################################################ -## Form generated from reading UI file 'right_columnNzhEBW.ui' -## -## Created by: Qt User Interface Compiler version 6.0.2 -## -## WARNING! All changes made in this file will be lost when recompiling UI file! -################################################################################ - -from PySide6.QtCore import * -from PySide6.QtGui import * -from PySide6.QtWidgets import * +# IMPORT QT CORE +# /////////////////////////////////////////////////////////////// +from qt_core import * class Ui_RightColumn(object): @@ -28,7 +34,42 @@ class Ui_RightColumn(object): self.menu_1.setObjectName(u"menu_1") self.menu_1.setStyleSheet(u"background: lightgreen; font-size: 16pt") self.verticalLayout = QVBoxLayout(self.menu_1) + self.verticalLayout.setSpacing(5) self.verticalLayout.setObjectName(u"verticalLayout") + self.verticalLayout.setContentsMargins(5, 5, 5, 5) + self.btn_1_widget = QWidget(self.menu_1) + self.btn_1_widget.setObjectName(u"btn_1_widget") + self.btn_1_widget.setMinimumSize(QSize(0, 40)) + self.btn_1_widget.setMaximumSize(QSize(16777215, 40)) + self.btn_1_layout = QVBoxLayout(self.btn_1_widget) + self.btn_1_layout.setSpacing(0) + self.btn_1_layout.setObjectName(u"btn_1_layout") + self.btn_1_layout.setContentsMargins(0, 0, 0, 0) + + self.verticalLayout.addWidget(self.btn_1_widget) + + self.btn_2_widget = QWidget(self.menu_1) + self.btn_2_widget.setObjectName(u"btn_2_widget") + self.btn_2_widget.setMinimumSize(QSize(0, 40)) + self.btn_2_widget.setMaximumSize(QSize(16777215, 40)) + self.btn_2_layout = QVBoxLayout(self.btn_2_widget) + self.btn_2_layout.setSpacing(0) + self.btn_2_layout.setObjectName(u"btn_2_layout") + self.btn_2_layout.setContentsMargins(0, 0, 0, 0) + + self.verticalLayout.addWidget(self.btn_2_widget) + + self.btn_3_widget = QWidget(self.menu_1) + self.btn_3_widget.setObjectName(u"btn_3_widget") + self.btn_3_widget.setMinimumSize(QSize(0, 40)) + self.btn_3_widget.setMaximumSize(QSize(16777215, 40)) + self.btn_3_layout = QVBoxLayout(self.btn_3_widget) + self.btn_3_layout.setSpacing(0) + self.btn_3_layout.setObjectName(u"btn_3_layout") + self.btn_3_layout.setContentsMargins(0, 0, 0, 0) + + self.verticalLayout.addWidget(self.btn_3_widget) + self.label_1 = QLabel(self.menu_1) self.label_1.setObjectName(u"label_1") font = QFont() @@ -43,7 +84,20 @@ class Ui_RightColumn(object): self.menu_2.setObjectName(u"menu_2") self.menu_2.setStyleSheet(u"background: lightblue; font-size: 16pt") self.verticalLayout_2 = QVBoxLayout(self.menu_2) + self.verticalLayout_2.setSpacing(5) self.verticalLayout_2.setObjectName(u"verticalLayout_2") + self.verticalLayout_2.setContentsMargins(5, 5, 5, 5) + self.btn_4_widget = QWidget(self.menu_2) + self.btn_4_widget.setObjectName(u"btn_4_widget") + self.btn_4_widget.setMinimumSize(QSize(0, 40)) + self.btn_4_widget.setMaximumSize(QSize(16777215, 40)) + self.btn_4_layout = QVBoxLayout(self.btn_4_widget) + self.btn_4_layout.setSpacing(0) + self.btn_4_layout.setObjectName(u"btn_4_layout") + self.btn_4_layout.setContentsMargins(0, 0, 0, 0) + + self.verticalLayout_2.addWidget(self.btn_4_widget) + self.label_2 = QLabel(self.menu_2) self.label_2.setObjectName(u"label_2") self.label_2.setFont(font) @@ -51,6 +105,17 @@ class Ui_RightColumn(object): self.verticalLayout_2.addWidget(self.label_2) + self.label_3 = QLabel(self.menu_2) + self.label_3.setObjectName(u"label_3") + font1 = QFont() + font1.setPointSize(9) + self.label_3.setFont(font1) + self.label_3.setStyleSheet(u"font-size: 9pt") + self.label_3.setAlignment(Qt.AlignCenter) + self.label_3.setWordWrap(True) + + self.verticalLayout_2.addWidget(self.label_3) + self.pages.addWidget(self.menu_2) self.main_pages_layout.addWidget(self.pages) @@ -58,7 +123,7 @@ class Ui_RightColumn(object): self.retranslateUi(RightColumn) - self.pages.setCurrentIndex(1) + self.pages.setCurrentIndex(0) QMetaObject.connectSlotsByName(RightColumn) @@ -66,7 +131,9 @@ class Ui_RightColumn(object): def retranslateUi(self, RightColumn): RightColumn.setWindowTitle(QCoreApplication.translate("RightColumn", u"Form", None)) - self.label_1.setText(QCoreApplication.translate("RightColumn", u"Page 1", None)) - self.label_2.setText(QCoreApplication.translate("RightColumn", u"Page 2", None)) + self.label_1.setText(QCoreApplication.translate("RightColumn", u"Menu 1 - Right Menu", None)) + self.label_2.setText(QCoreApplication.translate("RightColumn", u"Menu 2 - Right Menu", None)) + self.label_3.setText(QCoreApplication.translate("RightColumn", u"This is just an example menu.\n" +"Add Qt Widgets or your custom widgets here.", None)) # retranslateUi diff --git a/gui/uis/pages/main_pages.ui b/gui/uis/pages/main_pages.ui index c0da5c7..415e3c8 100644 --- a/gui/uis/pages/main_pages.ui +++ b/gui/uis/pages/main_pages.ui @@ -36,22 +36,110 @@ - background: lightgreen; font-size: 16pt + font-size: 14pt - - - - - 16 - + + 5 + + + 5 + + + 5 + + + 5 + + + 5 + + + + + + 300 + 150 + - - Page 1 + + + 300 + 150 + - - Qt::AlignCenter + + QFrame::NoFrame + + QFrame::Raised + + + + 10 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + 300 + 120 + + + + + 300 + 120 + + + + QFrame::NoFrame + + + QFrame::Raised + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + + + + Welcome To PyOneDark GUI + + + Qt::AlignCenter + + + + diff --git a/gui/uis/pages/ui_main_pages.py b/gui/uis/pages/ui_main_pages.py index e369914..36e7ec8 100644 --- a/gui/uis/pages/ui_main_pages.py +++ b/gui/uis/pages/ui_main_pages.py @@ -18,6 +18,7 @@ # /////////////////////////////////////////////////////////////// from qt_core import * + class Ui_MainPages(object): def setupUi(self, MainPages): if not MainPages.objectName(): @@ -31,17 +32,42 @@ class Ui_MainPages(object): self.pages.setObjectName(u"pages") self.page_1 = QWidget() self.page_1.setObjectName(u"page_1") - self.page_1.setStyleSheet(u"background: lightgreen; font-size: 16pt") + self.page_1.setStyleSheet(u"font-size: 14pt") self.verticalLayout = QVBoxLayout(self.page_1) + self.verticalLayout.setSpacing(5) self.verticalLayout.setObjectName(u"verticalLayout") - self.label_1 = QLabel(self.page_1) - self.label_1.setObjectName(u"label_1") - font = QFont() - font.setPointSize(16) - self.label_1.setFont(font) - self.label_1.setAlignment(Qt.AlignCenter) + self.verticalLayout.setContentsMargins(5, 5, 5, 5) + self.welcome_base = QFrame(self.page_1) + self.welcome_base.setObjectName(u"welcome_base") + self.welcome_base.setMinimumSize(QSize(300, 150)) + self.welcome_base.setMaximumSize(QSize(300, 150)) + self.welcome_base.setFrameShape(QFrame.NoFrame) + self.welcome_base.setFrameShadow(QFrame.Raised) + self.center_page_layout = QVBoxLayout(self.welcome_base) + self.center_page_layout.setSpacing(10) + self.center_page_layout.setObjectName(u"center_page_layout") + self.center_page_layout.setContentsMargins(0, 0, 0, 0) + self.logo = QFrame(self.welcome_base) + self.logo.setObjectName(u"logo") + self.logo.setMinimumSize(QSize(300, 120)) + self.logo.setMaximumSize(QSize(300, 120)) + self.logo.setFrameShape(QFrame.NoFrame) + self.logo.setFrameShadow(QFrame.Raised) + self.logo_layout = QVBoxLayout(self.logo) + self.logo_layout.setSpacing(0) + self.logo_layout.setObjectName(u"logo_layout") + self.logo_layout.setContentsMargins(0, 0, 0, 0) - self.verticalLayout.addWidget(self.label_1) + self.center_page_layout.addWidget(self.logo) + + self.label = QLabel(self.welcome_base) + self.label.setObjectName(u"label") + self.label.setAlignment(Qt.AlignCenter) + + self.center_page_layout.addWidget(self.label) + + + self.verticalLayout.addWidget(self.welcome_base, 0, Qt.AlignHCenter) self.pages.addWidget(self.page_1) self.page_2 = QWidget() @@ -51,6 +77,8 @@ class Ui_MainPages(object): self.verticalLayout_2.setObjectName(u"verticalLayout_2") self.label_2 = QLabel(self.page_2) self.label_2.setObjectName(u"label_2") + font = QFont() + font.setPointSize(16) self.label_2.setFont(font) self.label_2.setAlignment(Qt.AlignCenter) @@ -76,7 +104,7 @@ class Ui_MainPages(object): self.retranslateUi(MainPages) - self.pages.setCurrentIndex(2) + self.pages.setCurrentIndex(0) QMetaObject.connectSlotsByName(MainPages) @@ -84,7 +112,7 @@ class Ui_MainPages(object): def retranslateUi(self, MainPages): MainPages.setWindowTitle(QCoreApplication.translate("MainPages", u"Form", None)) - self.label_1.setText(QCoreApplication.translate("MainPages", u"Page 1", None)) + self.label.setText(QCoreApplication.translate("MainPages", u"Welcome To PyOneDark GUI", None)) self.label_2.setText(QCoreApplication.translate("MainPages", u"Page 2", None)) self.label_3.setText(QCoreApplication.translate("MainPages", u"Page 3", None)) # retranslateUi diff --git a/gui/uis/windows/main_window/setup_main_window.py b/gui/uis/windows/main_window/setup_main_window.py index 2f28c97..793b788 100644 --- a/gui/uis/windows/main_window/setup_main_window.py +++ b/gui/uis/windows/main_window/setup_main_window.py @@ -215,6 +215,11 @@ class SetupMainWindow: ) MainFunctions.set_right_column_menu(self, self.ui.right_column.menu_1) + # ADD LOGO TO MAIN PAGE + # /////////////////////////////////////////////////////////////// + self.logo_svg = QSvgWidget(Functions.set_svg_image("logo_home.svg")) + self.ui.load_pages.logo_layout.addWidget(self.logo_svg, Qt.AlignCenter, Qt.AlignCenter) + # RESIZE GRIPS AND CHANGE POSITION # Resize or change position when window is resized # ///////////////////////////////////////////////////////////////