Просмотр исходного кода

UI: Don't show alpha value for color source

This isn't editable by the user, so it doesn't make sense to show it.
Richard Stanway 5 лет назад
Родитель
Сommit
eee7862363
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      UI/properties-view.cpp

+ 1 - 1
UI/properties-view.cpp

@@ -650,7 +650,7 @@ void OBSPropertiesView::AddColor(obs_property_t *prop, QFormLayout *layout,
 
 
 	QPalette palette = QPalette(color);
 	QPalette palette = QPalette(color);
 	colorLabel->setFrameStyle(QFrame::Sunken | QFrame::Panel);
 	colorLabel->setFrameStyle(QFrame::Sunken | QFrame::Panel);
-	colorLabel->setText(color.name(QColor::HexArgb));
+	colorLabel->setText(color.name(QColor::HexRgb));
 	colorLabel->setPalette(palette);
 	colorLabel->setPalette(palette);
 	colorLabel->setStyleSheet(
 	colorLabel->setStyleSheet(
 		QString("background-color :%1; color: %2;")
 		QString("background-color :%1; color: %2;")