def __init__(self, parent):
super().__init__('Colors', parent)
self.primary_color_button = bubblesub.ui.util.ColorPicker(self)
self.secondary_color_button = bubblesub.ui.util.ColorPicker(self)
self.outline_color_button = bubblesub.ui.util.ColorPicker(self)
self.back_color_button = bubblesub.ui.util.ColorPicker(self)
layout = QtWidgets.QGridLayout(self)
layout.setColumnStretch(0, 1)
layout.setColumnStretch(1, 2)
layout.addWidget(QtWidgets.QLabel('Primary:', self), 0, 0)
layout.addWidget(self.primary_color_button, 0, 1)
layout.addWidget(QtWidgets.QLabel('Secondary:', self), 1, 0)
layout.addWidget(self.secondary_color_button, 1, 1)
layout.addWidget(QtWidgets.QLabel('Outline:', self), 2, 0)
layout.addWidget(self.outline_color_button, 2, 1)
layout.addWidget(QtWidgets.QLabel('Shadow:', self), 3, 0)
layout.addWidget(self.back_color_button, 3, 1)
评论列表
文章目录