# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'src/resources/_ui/color_palette.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(390, 409)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setContentsMargins(3, 3, 3, 3)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName("gridLayout")
        self.palette_combobox = QtWidgets.QComboBox(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.palette_combobox.sizePolicy().hasHeightForWidth())
        self.palette_combobox.setSizePolicy(sizePolicy)
        self.palette_combobox.setObjectName("palette_combobox")
        self.gridLayout.addWidget(self.palette_combobox, 0, 1, 1, 2)
        self.add_color_button = QtWidgets.QPushButton(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.add_color_button.sizePolicy().hasHeightForWidth())
        self.add_color_button.setSizePolicy(sizePolicy)
        self.add_color_button.setObjectName("add_color_button")
        self.gridLayout.addWidget(self.add_color_button, 3, 2, 1, 1)
        self.colorlist = QtWidgets.QListWidget(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.colorlist.sizePolicy().hasHeightForWidth())
        self.colorlist.setSizePolicy(sizePolicy)
        self.colorlist.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)
        self.colorlist.setObjectName("colorlist")
        self.gridLayout.addWidget(self.colorlist, 4, 1, 1, 2)
        self.add_palette_button = QtWidgets.QPushButton(Dialog)
        self.add_palette_button.setObjectName("add_palette_button")
        self.gridLayout.addWidget(self.add_palette_button, 1, 1, 1, 1)
        self.new_name_edit = QtWidgets.QLineEdit(Dialog)
        self.new_name_edit.setObjectName("new_name_edit")
        self.gridLayout.addWidget(self.new_name_edit, 6, 1, 1, 2)
        self.buttonBox = QtWidgets.QDialogButtonBox(Dialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 7, 0, 1, 3)
        self.color_combobox = ColorListEditor(Dialog)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.color_combobox.sizePolicy().hasHeightForWidth())
        self.color_combobox.setSizePolicy(sizePolicy)
        self.color_combobox.setObjectName("color_combobox")
        self.gridLayout.addWidget(self.color_combobox, 3, 1, 1, 1)
        self.line = QtWidgets.QFrame(Dialog)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 2, 0, 1, 3)
        self.save_button = QtWidgets.QPushButton(Dialog)
        self.save_button.setObjectName("save_button")
        self.gridLayout.addWidget(self.save_button, 6, 0, 1, 1)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.append_palette_button = QtWidgets.QPushButton(Dialog)
        self.append_palette_button.setObjectName("append_palette_button")
        self.gridLayout.addWidget(self.append_palette_button, 1, 2, 1, 1)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 3, 0, 1, 1)
        self.line_2 = QtWidgets.QFrame(Dialog)
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.gridLayout.addWidget(self.line_2, 5, 0, 1, 3)
        self.label.setBuddy(self.palette_combobox)
        self.label_2.setBuddy(self.color_combobox)

        self.retranslateUi(Dialog)
        self.buttonBox.accepted.connect(Dialog.accept) # type: ignore
        self.buttonBox.rejected.connect(Dialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Color cycles"))
        self.add_color_button.setText(_translate("Dialog", "Add color"))
        self.add_palette_button.setText(_translate("Dialog", "Load"))
        self.save_button.setText(_translate("Dialog", "Save as new list"))
        self.label.setText(_translate("Dialog", "Color cycles"))
        self.append_palette_button.setText(_translate("Dialog", "Append"))
        self.label_2.setText(_translate("Dialog", "Available color"))
from ..lib.delegates import ColorListEditor
