mirror of
https://github.com/Wanderson-Magalhaes/PyOneDark_Qt_Widgets_Modern_GUI.git
synced 2026-02-17 07:53:57 +00:00
16/06/2021
This commit is contained in:
28
gui/themes/bright_theme.json
Normal file
28
gui/themes/bright_theme.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"theme_name" : "Default",
|
||||
"app_color" : {
|
||||
"dark_one" : "#1b1e23",
|
||||
"dark_two" : "#1e2229",
|
||||
"dark_three" : "#21252d",
|
||||
"dark_four" : "#272c36",
|
||||
"bg_one" : "#D3E0F7",
|
||||
"bg_two" : "#E2E9F7",
|
||||
"bg_three" : "#EFF1F7",
|
||||
"icon_color" : "#6C7C96",
|
||||
"icon_hover" : "#8CB8FF",
|
||||
"icon_pressed" : "#6c99f4",
|
||||
"icon_active" : "#8CB8FF",
|
||||
"context_color" : "#568af2",
|
||||
"context_hover" : "#6c99f4",
|
||||
"context_pressed" : "#4B5469",
|
||||
"text_title" : "#606C85",
|
||||
"text_foreground" : "#6B7894",
|
||||
"text_description" : "#7887A6",
|
||||
"text_active" : "#8797BA",
|
||||
"white" : "#f5f6f9",
|
||||
"pink" : "#ff007f",
|
||||
"green" : "#00ff7f",
|
||||
"red" : "#ff5555",
|
||||
"yellow" : "#f1fa8c"
|
||||
}
|
||||
}
|
||||
@@ -32,7 +32,7 @@
|
||||
<item>
|
||||
<widget class="QStackedWidget" name="menus">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="menu_1">
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
@@ -51,39 +51,6 @@
|
||||
<property name="bottomMargin">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QWidget" name="btn_1_widget" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="btn_1_layout">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_1">
|
||||
<property name="font">
|
||||
@@ -121,39 +88,6 @@
|
||||
<property name="bottomMargin">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<item>
|
||||
<widget class="QWidget" name="btn_2_widget" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>0</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>16777215</width>
|
||||
<height>40</height>
|
||||
</size>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="btn_2_layout">
|
||||
<property name="spacing">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="leftMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="bottomMargin">
|
||||
<number>0</number>
|
||||
</property>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_2">
|
||||
<property name="font">
|
||||
@@ -172,28 +106,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_3">
|
||||
<property name="font">
|
||||
<font>
|
||||
<pointsize>9</pointsize>
|
||||
</font>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">font-size: 9pt</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>This is just an example menu.
|
||||
Add Qt Widgets or your custom widgets here.</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</widget>
|
||||
|
||||
@@ -224,6 +224,16 @@ class SetupMainWindow:
|
||||
# were created using Qt Designer.
|
||||
# This is just an example and should be deleted when creating
|
||||
# your application.
|
||||
#
|
||||
# OBJECTS FOR LOAD PAGES, LEFT AND RIGHT COLUMNS
|
||||
# You can access objects inside Qt Designer projects using
|
||||
# the objects below:
|
||||
#
|
||||
# <OBJECTS>
|
||||
# LEFT COLUMN: self.ui.left_column.menus
|
||||
# RIGHT COLUMN: self.ui.right_column
|
||||
# LOAD PAGES: self.ui.load_pages
|
||||
# </OBJECTS>
|
||||
# ///////////////////////////////////////////////////////////////
|
||||
|
||||
# LOAD SETTINGS
|
||||
|
||||
@@ -59,7 +59,6 @@ class PyToggle(QCheckBox):
|
||||
else:
|
||||
self.animation.setEndValue(4)
|
||||
self.animation.start()
|
||||
print(f"Status: {self.isChecked()}")
|
||||
|
||||
def hitButton(self, pos: QPoint):
|
||||
return self.contentsRect().contains(pos)
|
||||
|
||||
1
main.py
1
main.py
@@ -102,7 +102,6 @@ class MainWindow(QMainWindow):
|
||||
|
||||
# Load Page 2
|
||||
MainFunctions.set_page(self, self.ui.load_pages.page_2)
|
||||
MainFunctions.set_right_column_menu(self, self.ui.right_column.menu_1)
|
||||
|
||||
# LOAD USER PAGE
|
||||
if btn.objectName() == "btn_add_user":
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"theme_name" : "default",
|
||||
"custom_title_bar": true,
|
||||
"startup_size": [
|
||||
1200,
|
||||
1400,
|
||||
720
|
||||
],
|
||||
"minimum_size": [
|
||||
|
||||
Reference in New Issue
Block a user