def set_graphics_item_brush(item, fill_color=None, alpha=255): ''' :param alpha: 255 means opaque, 0 means transparent. ''' if fill_color is None: fill_color = QColor(Qt.white) fill_color.setAlpha(alpha) brush = QBrush(fill_color) item.setBrush(brush)
def get_cpu_plot_fill_brush_color(self): color = QColor('#99B7FF') color.setAlpha(30) return color