@@ -456,13 +456,21 @@ void MainWindow::showWelcomeScreen() {
456456 QSettings settings (QSettings::IniFormat, QSettings::UserScope, " sonic-pi.net" , " gui-settings" );
457457 if (settings.value (" first_time" , 1 ).toInt () == 1 ) {
458458 QTextBrowser* startupPane = new QTextBrowser;
459- startupPane->setFixedSize (ScaleHeightForDPI (600 ), ScaleHeightForDPI (615 ));
459+ startupPane->setFixedSize (ScaleHeightForDPI (600 ), ScaleHeightForDPI (650 ));
460460 startupPane->setWindowIcon (QIcon (" :images/icon-smaller.png" ));
461461 startupPane->setWindowTitle (tr (" Welcome to Sonic Pi" ));
462462 addUniversalCopyShortcuts (startupPane);
463463 QString styles = ScalePxInStyleSheet (readFile (" :/theme/light/doc-styles.css" ));
464464 startupPane->document ()->setDefaultStyleSheet (styles);
465- startupPane->setSource (QUrl (" qrc:///html/startup.html" ));
465+ QFile file (" :/html/startup.html" );
466+ file.open (QFile::ReadOnly | QFile::Text);
467+ QTextStream st (&file);
468+ st.setCodec (" UTF-8" );
469+ QString source = st.readAll ();
470+ source = source.replace (" 214dx" , QString (" %1" ).arg (ScaleHeightForDPI (214 )));
471+ source = source.replace (" 262dx" , QString (" %1" ).arg (ScaleHeightForDPI (262 )));
472+ source = source.replace (" 50dx" , QString (" %1px" ).arg (ScaleHeightForDPI (32 )));
473+ startupPane->setHtml (source);
466474 docWidget->show ();
467475 docsCentral->setCurrentIndex (0 );
468476 helpLists[0 ]->setCurrentRow (0 );
0 commit comments