@@ -100,10 +100,10 @@ DownloadButton::DownloadButton(QWidget *parent) : QWidget(parent)
100
100
QSizePolicy::Preferred);
101
101
102
102
_downloadButton = new QPushButton (this );
103
- _downloadButton->setToolTip (obs_module_text (" MarketplaceWindow.DownloadButton.Tooltip" ));
103
+ _downloadButton->setToolTip (
104
+ obs_module_text (" MarketplaceWindow.DownloadButton.Tooltip" ));
104
105
std::string downloadIconPath = imageBaseDir + " download.svg" ;
105
106
std::string downloadIconHoverPath = imageBaseDir + " download_hover.svg" ;
106
- blog (LOG_INFO, " download img: " , downloadIconPath.c_str ());
107
107
std::string downloadIconDisabledPath =
108
108
imageBaseDir + " download_hover.svg" ;
109
109
QString buttonStyle = EIconHoverDisabledButtonStyle;
@@ -226,7 +226,9 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
226
226
imageBaseDir += " /images/" ;
227
227
228
228
auto api = MarketplaceApi::getInstance ();
229
- std::string storeUrl = api->storeUrl () + " /obs/scene-collections?utm_source=mp_connect&utm_medium=direct_software&utm_campaign=v_1.0" ;
229
+ std::string storeUrl =
230
+ api->storeUrl () +
231
+ " /obs/scene-collections?utm_source=mp_connect&utm_medium=direct_software&utm_campaign=v_1.0" ;
230
232
231
233
QPalette pal = QPalette ();
232
234
pal.setColor (QPalette::Window, " #151515" );
@@ -245,7 +247,8 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
245
247
_layout->addStretch ();
246
248
247
249
_settingsButton = new QPushButton (this );
248
- _settingsButton->setToolTip (obs_module_text (" MarketplaceWindow.OpenSettingsButton.Tooltip" ));
250
+ _settingsButton->setToolTip (obs_module_text (
251
+ " MarketplaceWindow.OpenSettingsButton.Tooltip" ));
249
252
std::string settingsIconPath = imageBaseDir + " settings.svg" ;
250
253
std::string settingsIconHoverPath = imageBaseDir + " settings_hover.svg" ;
251
254
QString settingsButtonStyle = EIconHoverButtonStyle;
@@ -262,7 +265,8 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
262
265
_layout->addWidget (_settingsButton);
263
266
264
267
_storeButton = new QPushButton (this );
265
- _storeButton->setToolTip (obs_module_text (" MarketplaceWindow.StoreButton.Tooltip" ));
268
+ _storeButton->setToolTip (
269
+ obs_module_text (" MarketplaceWindow.StoreButton.Tooltip" ));
266
270
std::string storeIconPath = imageBaseDir + " marketplace-logo.svg" ;
267
271
std::string storeIconHoverPath =
268
272
imageBaseDir + " marketplace-logo_hover.svg" ;
@@ -281,7 +285,8 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
281
285
_layout->addWidget (_storeButton);
282
286
283
287
_logInButton = new QPushButton (this );
284
- _logInButton->setText (obs_module_text (" MarketplaceWindow.LoginButton.LogIn" ));
288
+ _logInButton->setText (
289
+ obs_module_text (" MarketplaceWindow.LoginButton.LogIn" ));
285
290
_logInButton->setHidden (elgatoCloud->loggedIn );
286
291
_logInButton->setStyleSheet (
287
292
" QPushButton {font-size: 12pt; border-radius: 8px; padding: 8px; background-color: #232323; border: none; } "
@@ -291,7 +296,8 @@ WindowToolBar::WindowToolBar(QWidget *parent) : QWidget(parent)
291
296
[this ]() { elgatoCloud->StartLogin (); });
292
297
293
298
_logOutButton = new QPushButton (this );
294
- _logOutButton->setText (obs_module_text (" MarketplaceWindow.LoginButton.LogOut" ));
299
+ _logOutButton->setText (
300
+ obs_module_text (" MarketplaceWindow.LoginButton.LogOut" ));
295
301
_logOutButton->setHidden (!elgatoCloud->loggedIn );
296
302
_logOutButton->setStyleSheet (
297
303
" QPushButton {font-size: 12pt; border-radius: 8px; padding: 8px; background-color: #232323; border: none; } "
@@ -396,7 +402,8 @@ OwnedProducts::OwnedProducts(QWidget *parent) : QWidget(parent)
396
402
connect (_sideMenu, &QListWidget::itemPressed, this ,
397
403
[this ](QListWidgetItem *item) {
398
404
QString val = item->text ();
399
- if (val == obs_module_text (" MarketplaceWindow.PurchasedTab" )) {
405
+ if (val ==
406
+ obs_module_text (" MarketplaceWindow.PurchasedTab" )) {
400
407
if (_numProducts > 0 )
401
408
_content->setCurrentIndex (0 );
402
409
else
@@ -422,12 +429,14 @@ OwnedProducts::OwnedProducts(QWidget *parent) : QWidget(parent)
422
429
auto npLayout = new QVBoxLayout (noProducts);
423
430
npLayout->addStretch ();
424
431
auto npTitle = new QLabel (
425
- obs_module_text (" MarketplaceWindow.Purchased.NoPurchasesTitle" ), noProducts);
432
+ obs_module_text (" MarketplaceWindow.Purchased.NoPurchasesTitle" ),
433
+ noProducts);
426
434
npTitle->setStyleSheet (" QLabel {font-size: 18pt;}" );
427
435
npTitle->setAlignment (Qt::AlignCenter);
428
436
npLayout->addWidget (npTitle);
429
437
auto npSubTitle = new QLabel (
430
- obs_module_text (" MarketplaceWindow.Purchased.NoPurchasesSubtitle" ),
438
+ obs_module_text (
439
+ " MarketplaceWindow.Purchased.NoPurchasesSubtitle" ),
431
440
noProducts);
432
441
npSubTitle->setStyleSheet (" QLabel {font-size: 13pt;}" );
433
442
npSubTitle->setAlignment (Qt::AlignCenter);
@@ -515,7 +524,8 @@ void ElgatoCloudWindow::initialize()
515
524
auto loadingWidget = new LoadingWidget (this ); // Loading widget, id: 3
516
525
_stackedContent->addWidget (loadingWidget);
517
526
518
- auto loginErrorWidget = new LoginError (this ); // Login error widget, id: 4
527
+ auto loginErrorWidget =
528
+ new LoginError (this ); // Login error widget, id: 4
519
529
_stackedContent->addWidget (loginErrorWidget);
520
530
521
531
mainLayout->addWidget (_stackedContent);
@@ -709,13 +719,15 @@ LoginNeeded::LoginNeeded(QWidget *parent) : QWidget(parent)
709
719
login->setAlignment (Qt::AlignCenter);
710
720
711
721
auto loginSub = new QLabel (this );
712
- loginSub->setText (obs_module_text (" MarketplaceWindow.LoginNeeded.Subtitle" ));
722
+ loginSub->setText (
723
+ obs_module_text (" MarketplaceWindow.LoginNeeded.Subtitle" ));
713
724
loginSub->setWordWrap (true );
714
725
loginSub->setAlignment (Qt::AlignCenter);
715
726
716
727
auto hLayout = new QHBoxLayout ();
717
728
auto loginButton = new QPushButton (this );
718
- loginButton->setText (obs_module_text (" MarketplaceWindow.LoginButton.LogIn" ));
729
+ loginButton->setText (
730
+ obs_module_text (" MarketplaceWindow.LoginButton.LogIn" ));
719
731
loginButton->setHidden (elgatoCloud->loggedIn );
720
732
loginButton->setStyleSheet (
721
733
" QPushButton {font-size: 12pt; border-radius: 8px; padding: 8px; background-color: #232323; border: none; } "
@@ -732,7 +744,7 @@ LoginNeeded::LoginNeeded(QWidget *parent) : QWidget(parent)
732
744
layout->addStretch ();
733
745
}
734
746
735
- LoginError::LoginError (QWidget* parent) : QWidget(parent)
747
+ LoginError::LoginError (QWidget * parent) : QWidget(parent)
736
748
{
737
749
auto layout = new QVBoxLayout (this );
738
750
@@ -742,7 +754,8 @@ LoginError::LoginError(QWidget* parent) : QWidget(parent)
742
754
login->setAlignment (Qt::AlignCenter);
743
755
744
756
auto loginSub = new QLabel (this );
745
- loginSub->setText (obs_module_text (" MarketplaceWindow.LoginError.Subtitle" ));
757
+ loginSub->setText (
758
+ obs_module_text (" MarketplaceWindow.LoginError.Subtitle" ));
746
759
loginSub->setWordWrap (true );
747
760
loginSub->setAlignment (Qt::AlignCenter);
748
761
@@ -878,10 +891,12 @@ extern void CheckForUpdates(bool forceCheck)
878
891
elgatoCloud->CheckUpdates (forceCheck);
879
892
}
880
893
881
- extern void CheckForUpdatesOnLaunch (enum obs_frontend_event event, void * private_data)
894
+ extern void CheckForUpdatesOnLaunch (enum obs_frontend_event event,
895
+ void *private_data)
882
896
{
883
897
if (event == OBS_FRONTEND_EVENT_FINISHED_LOADING) {
884
- obs_frontend_remove_event_callback (CheckForUpdatesOnLaunch, nullptr );
898
+ obs_frontend_remove_event_callback (CheckForUpdatesOnLaunch,
899
+ nullptr );
885
900
CheckForUpdates (false );
886
901
}
887
902
}
0 commit comments