diff --git a/interface/src/UIUtil.cpp b/interface/src/UIUtil.cpp index 3be6a824fa..19d3a51917 100644 --- a/interface/src/UIUtil.cpp +++ b/interface/src/UIUtil.cpp @@ -12,6 +12,9 @@ #include #include +#include "DependencyManager.h" +#include "GLCanvas.h" + #include "UIUtil.h" int UIUtil::getWindowTitleBarHeight(const QWidget* window) { @@ -27,3 +30,49 @@ int UIUtil::getWindowTitleBarHeight(const QWidget* window) { return titleBarHeight; } + +// When setting the font size of a widget in points, the rendered text will be larger +// on Windows and Linux than on Mac OSX. This is because Windows and Linux use a DPI +// of 96, while OSX uses 72. In order to get consistent results across platforms, the +// font sizes need to be scaled based on the system DPI. +// This function will scale the font size of widget and all +// of its children recursively. +// +// When creating widgets, if a font size isn't explicitly set Qt will choose a +// reasonable, but often different font size across platforms. This means +// YOU SHOUD EXPLICITLY SET ALL FONT SIZES and call this function OR not use +// this function at all. If you mix both you will end up with inconsistent results +// across platforms. +void UIUtil::scaleWidgetFontSizes(QWidget* widget) { + auto glCanvas = DependencyManager::get(); + + // This is the base dpi that we are targetting. This is based on Mac OSXs default DPI, + // and is the basis for all font sizes. + const float BASE_DPI = 72.0f; + +#ifdef Q_OS_MAC + const float NATIVE_DPI = 72.0f; +#else + const float NATIVE_DPI = 96.0f; +#endif + + // Scale fonts based on the native dpi. On Windows, where the native DPI is 96, + // the scale will be: 72.0 / 96.0 = 0.75 + float fontScale = BASE_DPI / NATIVE_DPI; + + internalScaleWidgetFontSizes(widget, fontScale); +} + +// Depth-first traversal through widget hierarchy. It is important to do a depth-first +// traversal because modifying the font size of a parent node can affect children. +void UIUtil::internalScaleWidgetFontSizes(QWidget* widget, float scale) { + for (auto child : widget->findChildren()) { + if (child->parent() == widget) { + internalScaleWidgetFontSizes(child, scale); + } + } + + QFont font = widget->font(); + font.setPointSizeF(font.pointSizeF() * scale); + widget->setFont(font); +} diff --git a/interface/src/UIUtil.h b/interface/src/UIUtil.h index f9dc669840..0866101ebe 100644 --- a/interface/src/UIUtil.h +++ b/interface/src/UIUtil.h @@ -18,7 +18,10 @@ class UIUtil { public: static int getWindowTitleBarHeight(const QWidget* window); + static void scaleWidgetFontSizes(QWidget* widget); +private: + static void internalScaleWidgetFontSizes(QWidget* widget, float scale); }; #endif // hifi_UIUtil_h diff --git a/interface/src/ui/LoginDialog.cpp b/interface/src/ui/LoginDialog.cpp index 99b60fc232..4817727909 100644 --- a/interface/src/ui/LoginDialog.cpp +++ b/interface/src/ui/LoginDialog.cpp @@ -21,6 +21,7 @@ #include "AccountManager.h" #include "ui_loginDialog.h" #include "LoginDialog.h" +#include "UIUtil.h" const QString FORGOT_PASSWORD_URL = "https://metaverse.highfidelity.io/users/password/new"; @@ -42,6 +43,8 @@ LoginDialog::LoginDialog(QWidget* parent) : connect(_ui->closeButton, &QPushButton::clicked, this, &LoginDialog::close); + UIUtil::scaleWidgetFontSizes(this); + // Initialize toggle connection toggleQAction(); }; diff --git a/interface/src/ui/PreferencesDialog.cpp b/interface/src/ui/PreferencesDialog.cpp index e27875ce67..1a3ad541c9 100644 --- a/interface/src/ui/PreferencesDialog.cpp +++ b/interface/src/ui/PreferencesDialog.cpp @@ -10,6 +10,7 @@ // #include +#include #include #include @@ -23,6 +24,7 @@ #include "PreferencesDialog.h" #include "Snapshot.h" #include "UserActivityLogger.h" +#include "UIUtil.h" const int PREFERENCES_HEIGHT_PADDING = 20; @@ -46,6 +48,8 @@ PreferencesDialog::PreferencesDialog(QWidget* parent) : // move dialog to left side move(parentWidget()->geometry().topLeft()); setFixedHeight(parentWidget()->size().height() - PREFERENCES_HEIGHT_PADDING); + + UIUtil::scaleWidgetFontSizes(this); } void PreferencesDialog::accept() { diff --git a/interface/src/ui/RunningScriptsWidget.cpp b/interface/src/ui/RunningScriptsWidget.cpp index 4346d813bb..9ff600675f 100644 --- a/interface/src/ui/RunningScriptsWidget.cpp +++ b/interface/src/ui/RunningScriptsWidget.cpp @@ -64,6 +64,8 @@ RunningScriptsWidget::RunningScriptsWidget(QWidget* parent) : connect(ui->loadScriptFromURLButton, &QPushButton::clicked, Application::getInstance(), &Application::loadScriptURLDialog); connect(&_signalMapper, SIGNAL(mapped(QString)), Application::getInstance(), SLOT(stopScript(const QString&))); + + UIUtil::scaleWidgetFontSizes(this); } RunningScriptsWidget::~RunningScriptsWidget() { @@ -103,6 +105,7 @@ void RunningScriptsWidget::setRunningScripts(const QStringList& list) { hash.insert(list.at(i), 1); } QWidget* row = new QWidget(ui->scriptListWidget); + row->setFont(ui->scriptListWidget->font()); row->setLayout(new QHBoxLayout(row)); QUrl url = QUrl(list.at(i)); diff --git a/interface/ui/preferencesDialog.ui b/interface/ui/preferencesDialog.ui index e9b0f43924..13894a2592 100644 --- a/interface/ui/preferencesDialog.ui +++ b/interface/ui/preferencesDialog.ui @@ -28,1080 +28,572 @@ 16777215 - - - - 0 - 0 - 500 - 491 - - - - - 0 - 0 - - - - QFrame::NoFrame - - - QFrame::Plain - - + + + 13 + + + + 0 - - true + + 0 - - - - 0 - -825 - 485 - 1611 - - - - + + 0 + + + 0 + + + + + + 0 + 0 + + + + QFrame::NoFrame + + + QFrame::Plain + + 0 - - 30 + + true - - 0 - - - 30 - - - 30 - - - - - - 0 - 40 - - - - - 0 - 40 - - - - - Arial - 18 - 75 - true - - - - color:#29967e - - - Avatar basics - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - 0 - - - - - - - - 0 - 0 - - - - - 0 - 28 - - - - - Arial - 14 - - - - <html><head/><body><p>Avatar display name <span style=" color:#909090;">(optional)</span></p></body></html> - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - displayNameEdit - - - - - - - - 0 - 0 - - - - - 280 - 0 - - - - - Arial - - - - Qt::LeftToRight - - - - - - Not showing a name - - - - - - - - 0 - 0 - - - - - 0 - 28 - - - - - Arial - 14 - - - - Head - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - 0 - - - snapshotLocationEdit - - - - - - - - - - 0 - 0 - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 5 - 20 - - - - - - - - - Arial - - - - Browse - - - - 0 - 0 - - - - - - - - - - - 0 - 0 - - - - - 0 - 28 - - - - - Arial - 14 - - - - Body - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - skeletonURLEdit - - - - - - - - - - 0 - 0 - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 5 - 20 - - - - - - - - - Arial - - - - Browse - - - - 0 - 0 - - - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - Arial - 18 - 75 - true - - - - color:#29967e - - - Snapshots - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - - - - - 0 - 0 - - - - - 0 - 22 - - - - - Arial - 13 - - - - Place my Snapshots here: - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - 0 - - - snapshotLocationEdit - - - - - - - - - - 0 - 0 - - - - - Arial - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 5 - 20 - - - - - - - - - Arial - - - - Browse - - - - 0 - 0 - - - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - Arial - 18 - 75 - true - - - - color:#29967e - - - Scripts - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - - - - - 0 - 0 - - - - - 0 - 22 - - - - - Arial - 13 - - - - Load scripts from this directory: - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - 0 - - - snapshotLocationEdit - - - - - - - - - - 0 - 0 - - - - - Arial - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 5 - 20 - - - - - - - - - Arial - - - - Browse - - - - 0 - 0 - - - - - - - - - - - 0 - 0 - - - - - 150 - 0 - - - - - 300 - 0 - - - - - Arial - - - - Load Default Scripts - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - Arial - 18 - 75 - true - - - - color:#29967e - - - Privacy - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - 0 - - - snapshotLocationEdit - - - - - - - - 0 - 0 - - - - - 32 - 28 - - - - - 0 - 0 - - - - - Arial - - - - Send data - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - Arial - 18 - 75 - true - - - - color:#29967e - - - Avatar tuning - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - - + + + + 0 + -107 + 485 + 1550 + + + 0 - - 7 + + 30 - + 0 + + 30 + - 7 + 30 - + + + Qt::Vertical + + + QSizePolicy::Fixed + + + + 20 + 20 + + + + + + Arial + 18 + 75 + true - + color:#29967e; - Real world vertical field of view (angular size of monitor) + Avatar basics - + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + + + + 0 - - fieldOfViewSpin + + 7 - + + 7 + + + + + + Arial + + + + <html><head/><body><p>Avatar display name <span style=" color:#909090;">(optional)</span></p></body></html> + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + displayNameEdit + + + + + + + 4 + + + 140 + + + 4 + + + + + + Arial + + + + Qt::LeftToRight + + + Not showing a name + + + + + + - - - - Arial - - - - Qt::Horizontal - - - - 0 - 0 - - - - - - - - - 100 - 0 - - - - - 95 - 36 - - - - - Arial - - - - 1 - - - 180 - - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - - - - - - - Vertical field of view - - + + 0 - - fieldOfViewSpin + + 7 - + + 7 + + + + + + Arial + + + + Head + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + snapshotLocationEdit + + + + + + + 0 + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 5 + 20 + + + + + + + + + Arial + + + + Browse + + + + 0 + 0 + + + + + + + - - - - Arial - - - - Qt::Horizontal - - - - 0 - 0 - - - - - - - - - 0 - 0 - - - - - 100 - 0 - - - - - 95 - 36 - - - - - Arial - - - - 1 - - - 180 - - - - - - - - - 0 - - - 8 - - - 8 - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 25 - - - - - Arial - - - - Lean scale (applies to Faceshift users) - - + + 0 - - leanScaleSpin + + 7 - + + 7 + + + + + + Arial + + + + Body + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + skeletonURLEdit + + + + + + + 0 + + + + + + 0 + 0 + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 5 + 20 + + + + + + + + + Arial + + + + Browse + + + + 0 + 0 + + + + + + + - - - - Arial - - + - Qt::Horizontal + Qt::Vertical - QSizePolicy::Expanding + QSizePolicy::Fixed - 40 - 10 - - - - - - - - - 0 - 0 - - - - - 100 - 0 - - - - - Arial - - - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - - - - Avatar scale <span style=" color:#909090;">(default is 1.0)</span> - - - 0 - - - avatarScaleSpin - - - - - - - - Arial - - - - Qt::Horizontal - - - - 40 + 20 20 - - - - 100 - 0 - - - - - 70 - 16777215 - - + Arial + 18 + 75 + true - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - + + color:#29967e - Pupil dillation + Snapshots - - 0 - - - pupilDilationSlider + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - Arial - + + + 0 + + 7 + + + 0 + + + + + + Arial + + + + Place my Snapshots here: + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + 0 + + + snapshotLocationEdit + + + + + + + 0 + + + + + + Arial + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 5 + 20 + + + + + + + + + Arial + + + + Browse + + + + 0 + 0 + + + + + + + + + + - Qt::Horizontal + Qt::Vertical + + + QSizePolicy::Fixed - 40 + 20 20 - + + + + Arial + 18 + 75 + true + + + + color:#29967e + + + Scripts + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + + + + + 0 + + + 7 + + + 0 + + + + + + Arial + + + + Load scripts from this directory: + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + 0 + + + snapshotLocationEdit + + + + + + + 0 + + + + + + 0 + 0 + + + + + Arial + + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 5 + 20 + + + + + + + + + Arial + + + + Browse + + + + 0 + 0 + + + + + + + + + + 0 @@ -1110,1456 +602,1988 @@ - 130 + 150 + 0 + + + + + 300 0 - - - Arial - - - - Qt::Horizontal - - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - Arial - Faceshift eye detection - - - 0 - - - faceshiftEyeDeflectionSider + Load Default Scripts - - - - Arial - - + - Qt::Horizontal + Qt::Vertical + + + QSizePolicy::Fixed - 40 + 20 20 - + + + + Arial + 18 + 75 + true + + + + color:#29967e + + + Privacy + + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft + + + 0 + + + snapshotLocationEdit + + + + + - + 0 0 - 130 - 0 + 32 + 28 - - - Arial - - - - Qt::Horizontal - - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - - - - Faceshift hostname - - - 0 - - - faceshiftHostnameEdit - - - - - - - - Arial - - - - Qt::Horizontal - - + 0 0 - - - - Arial - - Qt::LeftToRight + + Send data + + + + 0 + 0 + + + + + + + + Qt::Vertical + + + QSizePolicy::Fixed + + + + 20 + 20 + + + + + + + + + Arial + 18 + 75 + true + - - - - localhost - - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - Arial - 18 - 75 - true - - - - color:#29967e - - - Audio - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - 0 - 40 - - - - - Arial - - - - Enable Dynamic Jitter Buffers - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - + color:#29967e - Static Jitter Buffer Frames + Avatar tuning - - 0 - - - staticDesiredJitterBufferFramesSpin + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - Arial - + + + 0 + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + + + + Real world vertical field of view (angular size of monitor) + + + 0 + + + fieldOfViewSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 0 + 0 + + + + + + + + + 100 + 0 + + + + + 95 + 36 + + + + + Arial + + + + 1 + + + 180 + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + + + + Vertical field of view + + + 0 + + + fieldOfViewSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 0 + 0 + + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + 95 + 36 + + + + + Arial + + + + 1 + + + 180 + + + + + + + + + 0 + + + 8 + + + 8 + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 25 + + + + + Arial + + + + Lean scale (applies to Faceshift users) + + + 0 + + + leanScaleSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + QSizePolicy::Expanding + + + + 40 + 10 + + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + Arial + + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Avatar scale <span style=" color:#909090;">(default is 1.0)</span> + + + 0 + + + avatarScaleSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 100 + 0 + + + + + 70 + 16777215 + + + + + Arial + + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Pupil dillation + + + 0 + + + pupilDilationSlider + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 130 + 0 + + + + + Arial + + + + Qt::Horizontal + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Faceshift eye detection + + + 0 + + + faceshiftEyeDeflectionSider + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 130 + 0 + + + + + Arial + + + + Qt::Horizontal + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Faceshift hostname + + + 0 + + + faceshiftHostnameEdit + + + + + + + + Arial + + + + Qt::Horizontal + + + + 0 + 0 + + + + + + + + + Arial + + + + Qt::LeftToRight + + + + + + localhost + + + + + + + - Qt::Horizontal + Qt::Vertical + + + QSizePolicy::Fixed - 40 + 20 20 - - - - 0 - 0 - - - - - 100 - 0 - - + Arial + 18 + 75 + true - - 0 - - - 10000 - - - 1 - - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - + + color:#29967e - Max Frames Over Desired + Audio - - 0 - - - maxFramesOverDesiredSpin + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - Arial - + + + 7 + + 7 + + + + + + 0 + 40 + + + + + Arial + + + + Enable Dynamic Jitter Buffers + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Static Jitter Buffer Frames + + + 0 + + + staticDesiredJitterBufferFramesSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + Arial + + + + 0 + + + 10000 + + + 1 + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Max Frames Over Desired + + + 0 + + + maxFramesOverDesiredSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 100 + 0 + + + + + Arial + + + + 0 + + + 10000 + + + 1 + + + + + + + + + 7 + + + 7 + + + + + + 0 + 32 + + + + + Arial + + + + Use Stdev for Dynamic Jitter Calc + + + + 32 + 32 + + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Window A Starve Threshold + + + 0 + + + windowStarveThresholdSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + 70 + 16777215 + + + + + Arial + + + + 0 + + + 10000 + + + 1 + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Window A (raise desired on N starves) Seconds + + + 0 + + + windowSecondsForDesiredCalcOnTooManyStarvesSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + 70 + 16777215 + + + + + Arial + + + + 0 + + + 10000 + + + 1 + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Window B (desired ceiling) Seconds + + + 0 + + + windowSecondsForDesiredReductionSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + 70 + 16777215 + + + + + Arial + + + + 0 + + + 10000 + + + 1 + + + + + + + + + 7 + + + 7 + + + + + + 0 + 0 + + + + + Arial + + + + Repetition with Fade + + + + 32 + 32 + + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Output Buffer Size (Frames) + + + 0 + + + windowSecondsForDesiredReductionSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + 70 + 16777215 + + + + + Arial + + + + 1 + + + 20 + + + 1 + + + + + + + + + 7 + + + 7 + + + + + + 0 + 0 + + + + + Arial + + + + Output Starve Detection (Automatic Buffer Size Increase) + + + + 32 + 32 + + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Output Starve Detection Threshold + + + 0 + + + windowSecondsForDesiredReductionSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + 70 + 16777215 + + + + + Arial + + + + 1 + + + 500 + + + 1 + + + + + + + + + 0 + + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Output Starve Detection Period (ms) + + + 0 + + + windowSecondsForDesiredReductionSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 100 + 0 + + + + + 70 + 16777215 + + + + + Arial + + + + 1 + + + 999999999 + + + 1 + + + + + + + - Qt::Horizontal + Qt::Vertical + + + QSizePolicy::Fixed - 40 + 20 20 - - - - 100 - 0 - - + Arial + 18 + 75 + true - - 0 - - - 10000 - - - 1 - - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - 0 - 32 - - - - - Arial - - - - Use Stdev for Dynamic Jitter Calc - - - - 32 - 32 - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - + + color:#29967e - Window A Starve Threshold + Octree - - 0 - - - windowStarveThresholdSpin + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - Arial - + + + 0 + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + Max packets sent each second + + + 0 + + + maxOctreePPSSpin + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 100 + 0 + + + + + Arial + + + + 60 + + + 6000 + + + 10 + + + + + + + - Qt::Horizontal + Qt::Vertical + + + QSizePolicy::Fixed - 40 + 20 20 - - - - 0 - 0 - - - - - 100 - 0 - - - - - 70 - 16777215 - - + Arial + 18 + 75 + true - - 0 - - - 10000 - - - 1 - - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - + + color:#29967e - Window A (raise desired on N starves) Seconds + Oculus Rift - - 0 - - - windowSecondsForDesiredCalcOnTooManyStarvesSpin + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - Arial - + + + 0 + + 7 + + + 0 + + + 7 + + + + + + Arial + + + + User Interface Angular Size + + + 0 + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 100 + 0 + + + + + Arial + + + + 30 + + + 160 + + + 1 + + + 72 + + + + + + + - Qt::Horizontal + Qt::Vertical + + + QSizePolicy::Fixed - 40 + 20 20 - - - - 0 - 0 - - - - - 100 - 0 - - - - - 70 - 16777215 - - + Arial + 18 + 75 + true - - 0 - - - 10000 - - - 1 - - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - + + color:#29967e - Window B (desired ceiling) Seconds + Sixense Controllers - - 0 - - - windowSecondsForDesiredReductionSpin + + Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - Arial - + + + 7 - - Qt::Horizontal + + 7 - - - 40 - 20 - - - + + + + + 0 + 40 + + + + + Arial + + + + Invert Mouse Buttons + + + + 0 + 0 + + + + + - - - - 0 - 0 - - - - - 100 - 0 - - - - - 70 - 16777215 - - - - - Arial - - - + + 0 - - 10000 + + 7 - - 1 + + 0 - + + 7 + + + + + + Arial + + + + Reticle Movement Speed + + + 0 + + + + + + + + Arial + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 100 + 0 + + + + + Arial + + + + 100 + + + 1 + + + 50 + + + + - - - - - - 0 - 0 - - - - - 32 - 40 - - - - - 0 - 0 - - - - - Arial - - - - Repetition with Fade - - - - 32 - 32 - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - - - - Output Buffer Size (Frames) - - - 0 - - - windowSecondsForDesiredReductionSpin - - - - - - - - Arial - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 0 - 0 - - - - - 100 - 0 - - - - - 70 - 16777215 - - - - - Arial - - - - 1 - - - 20 - - - 1 - - - - - - - - - - 0 - 0 - - - - - 32 - 40 - - - - - 0 - 0 - - - - - Arial - - - - Output Starve Detection (Automatic Buffer Size Increase) - - - - 32 - 32 - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - - - - Output Starve Detection Threshold - - - 0 - - - windowSecondsForDesiredReductionSpin - - - - - - - - Arial - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 0 - 0 - - - - - 100 - 0 - - - - - 70 - 16777215 - - - - - Arial - - - - 1 - - - 500 - - - 1 - - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - - - - Output Starve Detection Period (ms) - - - 0 - - - windowSecondsForDesiredReductionSpin - - - - - - - - Arial - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 0 - 0 - - - - - 100 - 0 - - - - - 70 - 16777215 - - - - - Arial - - - - 1 - - - 999999999 - - - 1 - - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - Arial - 18 - 75 - true - - - - color:#29967e - - - Octree - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - - - - Max packets sent each second - - - 0 - - - maxOctreePPSSpin - - - - - - - - Arial - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 100 - 0 - - - - - Arial - - - - 60 - - - 6000 - - - 10 - - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - Arial - 18 - 75 - true - - - - color:#29967e - - - Oculus Rift - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - - - - User Interface Angular Size - - - 0 - - - - - - - - Arial - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 100 - 0 - - - - - Arial - - - - 30 - - - 160 - - - 1 - - - 72 - - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - Arial - 18 - 75 - true - - - - color:#29967e - - - Sixense Controllers - - - Qt::AlignBottom|Qt::AlignLeading|Qt::AlignLeft - - - - - - - - 0 - 35 - - - - - 0 - 40 - - - - - Arial - - - - Invert Mouse Buttons - - - - 0 - 0 - - - - - - - - 0 - - - 7 - - - 0 - - - 7 - - - - - - Arial - - - - Reticle Movement Speed - - - 0 - - - - - - - - Arial - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 100 - 0 - - - - - Arial - - - - 100 - - - 1 - - - 50 - - - - - - - - - - - - 0 - 490 - 501 - 50 - - - - QFrame::NoFrame - - - QFrame::Raised - - - - - 0 - 0 - 491 - 41 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - Arial - - - - Cancel - - - false - - - - - - - - Arial - - - - Save all changes - - - true - - - false - - - - - - + + + + + + + QFrame::NoFrame + + + QFrame::Raised + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + Arial + + + + Cancel + + + false + + + + + + + + Arial + + + + Save all changes + + + true + + + false + + + + + + + + + diff --git a/interface/ui/runningScriptsWidget.ui b/interface/ui/runningScriptsWidget.ui index ec078681e3..852d61a7ba 100644 --- a/interface/ui/runningScriptsWidget.ui +++ b/interface/ui/runningScriptsWidget.ui @@ -10,6 +10,12 @@ 728 + + + Helvetica,Arial,sans-serif + 13 + + Running Scripts @@ -31,6 +37,12 @@ 141 + + + Helvetica,Arial,sans-serif + 13 + + 0 @@ -113,6 +125,12 @@ font: bold 16pt; 0 + + + Helvetica,Arial,sans-serif + 13 + + reloadStopButtonArea { padding: 0 } @@ -131,6 +149,12 @@ font: bold 16pt; + + + Helvetica,Arial,sans-serif + 13 + + Reload all @@ -138,6 +162,12 @@ font: bold 16pt; + + + Helvetica,Arial,sans-serif + 13 + + Stop all @@ -167,6 +197,12 @@ font: bold 16pt; 0 + + + Helvetica,Arial,sans-serif + 13 + + 0 @@ -191,8 +227,14 @@ font: bold 16pt; 0 + + + Helvetica,Arial,sans-serif + 14 + + - font: 14pt; color: #5f5f5f; margin: 2px; + color: #5f5f5f; margin: 2px; There are no scripts running. @@ -255,12 +297,15 @@ font: bold 16pt; 0 + + + Helvetica,Arial,sans-serif + 14 + + Qt::LeftToRight - - font-size: 14pt; - 0 @@ -279,6 +324,12 @@ font: bold 16pt; + + + Helvetica,Arial,sans-serif + 14 + + 0 @@ -300,8 +351,14 @@ font: bold 16pt; + + + Helvetica,Arial,sans-serif + 14 + + - font: 14pt; color: #5f5f5f; margin: 2px; + color: #5f5f5f; margin: 2px; Tip