add color list
This commit is contained in:
@@ -7,6 +7,7 @@ from PySide6.QtCore import Qt, Slot
|
||||
from PySide6.QtGui import QPalette, QColor
|
||||
|
||||
from ui.widgets.placeholder_widget import PlaceholderWidget
|
||||
from ui.widgets.color_list_widget import ColorListWidget
|
||||
|
||||
class MainWindow(QMainWindow):
|
||||
def __init__(self):
|
||||
@@ -43,7 +44,28 @@ class MainWindow(QMainWindow):
|
||||
histogram_view.setFixedHeight(200)
|
||||
control_layout.addWidget(histogram_view)
|
||||
|
||||
control_layout.addStretch()
|
||||
color_list_widget = ColorListWidget([
|
||||
{"name": "Red", "color": "#FF0000"},
|
||||
{"name": "Green", "color": "#00FF00"},
|
||||
{"name": "Blue", "color": "#0000FF"},
|
||||
{"name": "Yellow", "color": "#FFFF00"},
|
||||
{"name": "Cyan", "color": "#00FFFF"},
|
||||
{"name": "Magenta", "color": "#FF00FF"},
|
||||
], self.control_widget)
|
||||
|
||||
control_layout.addWidget(color_list_widget)
|
||||
|
||||
|
||||
# control_layout.addStretch()
|
||||
record_button = QPushButton("Nagraj Wideo")
|
||||
record_button.setMinimumHeight(40)
|
||||
record_button.setStyleSheet("font-size: 12pt;")
|
||||
control_layout.addWidget(record_button)
|
||||
|
||||
photo_button = QPushButton("Zrób zdjęcie")
|
||||
photo_button.setMinimumHeight(40)
|
||||
photo_button.setStyleSheet("font-size: 12pt;")
|
||||
control_layout.addWidget(photo_button)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user