obs-aitum-multistream/config-utils.hpp
2024-07-31 14:02:47 +01:00

27 lines
680 B
C++

#pragma once
#include <QPushButton>
#include <QComboBox>
#include <QFormLayout>
#include <QVBoxLayout>
#include <QWidget>
#include <QGroupBox>
#include <QIcon>
#include <QString>
#include <QToolButton>
#include "obs.h"
class ConfigUtils {
public:
// UI generation
static QPushButton *generateButton(QString buttonText);
static QGroupBox *generateSettingsGroupBox(QString headingText);
static QToolButton *generateMenuButton(QString title, QIcon icon);
static QIcon generateEmojiQIcon(QString emoji);
static void updateButtonStyles(QPushButton *defaultButton, QPushButton *customButton, int activeIndex);
static QIcon getPlatformIconFromEndpoint(QString endpoint);
};