Logo sizing changes for platform brand guidelines
Some checks failed
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled

This commit is contained in:
David Marsh 2024-11-15 18:36:00 +00:00
parent be6e15dab2
commit 67182d2721
3 changed files with 8 additions and 7 deletions

View File

@ -543,7 +543,7 @@ void OBSBasicSettings::AddServer(QFormLayout *outputsLayout, obs_data_t *setting
auto platformIconLabel = new QLabel;
auto platformIcon =
ConfigUtils::getPlatformIconFromEndpoint(QString::fromUtf8(obs_data_get_string(settings, "stream_server")));
platformIconLabel->setPixmap(platformIcon.pixmap(30, 30));
platformIconLabel->setPixmap(platformIcon.pixmap(36, 36));
server_title_layout->addWidget(platformIconLabel, 0);
auto streaming_title = new QLabel(QString::fromUtf8(obs_data_get_string(settings, "name")));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -126,6 +126,8 @@ auto outputTitleStyle = QString("QLabel{}");
auto outputGroupStyle = QString("background-color: %1; padding: 0px;")
.arg(QPalette().color(QPalette::ColorRole::Mid).name(QColor::HexRgb)); // wrapper around above
auto outputPlatformIconSize = 36;
// For showing warning for no vertical integration
void showVerticalWarning(QVBoxLayout *verticalLayout)
{
@ -146,7 +148,7 @@ void showVerticalWarning(QVBoxLayout *verticalLayout)
verticalLayout->addWidget(verticalWarning);
}
static config_t *(*get_user_config_func)(void) = nullptr;
//static config_t *(*get_user_config_func)(void) = nullptr;
config_t *get_user_config(void)
{
@ -222,9 +224,8 @@ MultistreamDock::MultistreamDock(QWidget *parent) : QFrame(parent)
// blank because we're pulling settings through from bis later
mainPlatformIconLabel = new QLabel;
auto platformIcon = ConfigUtils::getPlatformIconFromEndpoint(QString::fromUtf8(""));
mainPlatformIconLabel->setPixmap(platformIcon.pixmap(30, 30));
mainPlatformIconLabel->setPixmap(platformIcon.pixmap(outputPlatformIconSize, outputPlatformIconSize));
l2->addWidget(mainPlatformIconLabel);
l2->addWidget(bisHeaderLabel, 1);
@ -404,7 +405,7 @@ MultistreamDock::MultistreamDock(QWidget *parent) : QFrame(parent)
: "");
if (url != mainPlatformUrl) {
mainPlatformUrl = url;
mainPlatformIconLabel->setPixmap(ConfigUtils::getPlatformIconFromEndpoint(url).pixmap(30, 30));
mainPlatformIconLabel->setPixmap(ConfigUtils::getPlatformIconFromEndpoint(url).pixmap(outputPlatformIconSize, outputPlatformIconSize));
}
int idx = 0;
@ -638,7 +639,7 @@ void MultistreamDock::LoadOutput(obs_data_t *output_data, bool vertical)
auto platformIconLabel = new QLabel;
auto platformIcon = ConfigUtils::getPlatformIconFromEndpoint(endpoint);
platformIconLabel->setPixmap(platformIcon.pixmap(30, 30));
platformIconLabel->setPixmap(platformIcon.pixmap(outputPlatformIconSize, outputPlatformIconSize));
l2->addWidget(platformIconLabel);