diff --git a/include/f1x/openauto/autoapp/Configuration/Configuration.hpp b/include/f1x/openauto/autoapp/Configuration/Configuration.hpp index 92a2dec..9375a61 100644 --- a/include/f1x/openauto/autoapp/Configuration/Configuration.hpp +++ b/include/f1x/openauto/autoapp/Configuration/Configuration.hpp @@ -56,6 +56,8 @@ public: bool hideMenuToggle() const override; void hideAlpha(bool value) override; bool hideAlpha() const override; + void showLux(bool value) override; + bool showLux() const override; std::string getMp3MasterPath() const override; void setMp3MasterPath(const std::string& value) override; @@ -107,6 +109,7 @@ private: size_t alphaTrans_; bool hideMenuToggle_; bool hideAlpha_; + bool showLux_; std::string mp3MasterPath_; std::string mp3SubFolder_; int32_t mp3Track_; @@ -134,6 +137,7 @@ private: static const std::string cGeneralAlphaTransKey; static const std::string cGeneralHideMenuToggleKey; static const std::string cGeneralHideAlphaKey; + static const std::string cGeneralShowLuxKey; static const std::string cGeneralHandednessOfTrafficTypeKey; diff --git a/include/f1x/openauto/autoapp/Configuration/IConfiguration.hpp b/include/f1x/openauto/autoapp/Configuration/IConfiguration.hpp index a2e4632..8635dc0 100644 --- a/include/f1x/openauto/autoapp/Configuration/IConfiguration.hpp +++ b/include/f1x/openauto/autoapp/Configuration/IConfiguration.hpp @@ -64,6 +64,8 @@ public: virtual bool hideMenuToggle() const = 0; virtual void hideAlpha(bool value) = 0; virtual bool hideAlpha() const = 0; + virtual void showLux(bool value) = 0; + virtual bool showLux() const = 0; virtual std::string getMp3MasterPath() const = 0; virtual void setMp3MasterPath(const std::string& value) = 0; diff --git a/src/autoapp/Configuration/Configuration.cpp b/src/autoapp/Configuration/Configuration.cpp index 1a36f9b..b3529b3 100644 --- a/src/autoapp/Configuration/Configuration.cpp +++ b/src/autoapp/Configuration/Configuration.cpp @@ -38,6 +38,7 @@ const std::string Configuration::cGeneralOldGUIKey = "General.OldGUI"; const std::string Configuration::cGeneralAlphaTransKey = "General.AlphaTrans"; const std::string Configuration::cGeneralHideMenuToggleKey = "General.HideMenuToggle"; const std::string Configuration::cGeneralHideAlphaKey = "General.HideAlpha"; +const std::string Configuration::cGeneralShowLuxKey = "General.ShowLux"; const std::string Configuration::cGeneralHandednessOfTrafficTypeKey = "General.HandednessOfTrafficType"; @@ -99,6 +100,7 @@ void Configuration::load() alphaTrans_ = iniConfig.get(cGeneralAlphaTransKey, 50); hideMenuToggle_ = iniConfig.get(cGeneralHideMenuToggleKey, false); hideAlpha_ = iniConfig.get(cGeneralHideAlphaKey, false); + showLux_ = iniConfig.get(cGeneralShowLuxKey, false); mp3MasterPath_ = iniConfig.get(cGeneralMp3MasterPathKey, "/media/MYMEDIA"); mp3SubFolder_ = iniConfig.get(cGeneralMp3SubFolderKey, "/"); mp3Track_ = iniConfig.get(cGeneralMp3TrackKey, 0); @@ -143,6 +145,7 @@ void Configuration::reset() alphaTrans_ = 50; hideMenuToggle_ = false; hideAlpha_ = false; + showLux_ = false; mp3MasterPath_ = "/media/MYMEDIA"; mp3SubFolder_ = "/"; mp3Track_ = 0; @@ -172,6 +175,7 @@ void Configuration::save() iniConfig.put(cGeneralAlphaTransKey, alphaTrans_); iniConfig.put(cGeneralHideMenuToggleKey, hideMenuToggle_); iniConfig.put(cGeneralHideAlphaKey, hideAlpha_); + iniConfig.put(cGeneralShowLuxKey, showLux_); iniConfig.put(cGeneralMp3MasterPathKey, mp3MasterPath_); iniConfig.put(cGeneralMp3SubFolderKey, mp3SubFolder_); iniConfig.put(cGeneralMp3TrackKey, mp3Track_); @@ -285,6 +289,16 @@ bool Configuration::hideAlpha() const return hideAlpha_; } +void Configuration::showLux(bool value) +{ + showLux_ = value; +} + +bool Configuration::showLux() const +{ + return showLux_; +} + std::string Configuration::getMp3MasterPath() const { return mp3MasterPath_; diff --git a/src/autoapp/UI/MainWindow.cpp b/src/autoapp/UI/MainWindow.cpp index 31bb4d4..4c86105 100644 --- a/src/autoapp/UI/MainWindow.cpp +++ b/src/autoapp/UI/MainWindow.cpp @@ -1610,7 +1610,7 @@ void f1x::openauto::autoapp::ui::MainWindow::tmpChanged() // read value from tsl2561 QFileInfo lightsensorFile("/tmp/tsl2561"); - if (lightsensorFile.exists()) { + if (lightsensorFile.exists() && this->configuration_->showLux()) { QFile paramFile("/tmp/tsl2561"); paramFile.open(QIODevice::ReadOnly); QTextStream data(¶mFile); diff --git a/src/autoapp/UI/SettingsWindow.cpp b/src/autoapp/UI/SettingsWindow.cpp index c4ba5ef..f05e8a9 100644 --- a/src/autoapp/UI/SettingsWindow.cpp +++ b/src/autoapp/UI/SettingsWindow.cpp @@ -125,6 +125,7 @@ void SettingsWindow::onSave() configuration_->setAlphaTrans(static_cast(ui_->horizontalSliderAlphaTrans->value())); configuration_->hideMenuToggle(ui_->checkBoxHideMenuToggle->isChecked()); configuration_->hideAlpha(ui_->checkBoxHideAlpha->isChecked()); + configuration_->showLux(ui_->checkBoxShowLux->isChecked()); configuration_->mp3AutoPlay(ui_->checkBoxAutoPlay->isChecked()); configuration_->setVideoFPS(ui_->radioButton30FPS->isChecked() ? aasdk::proto::enums::VideoFPS::_30 : aasdk::proto::enums::VideoFPS::_60); @@ -308,6 +309,7 @@ void SettingsWindow::load() ui_->checkBoxOldGUI->setChecked(configuration_->oldGUI()); ui_->checkBoxHideMenuToggle->setChecked(configuration_->hideMenuToggle()); ui_->checkBoxHideAlpha->setChecked(configuration_->hideAlpha()); + ui_->checkBoxShowLux->setChecked(configuration_->showLux()); ui_->checkBoxAutoPlay->setChecked(configuration_->mp3AutoPlay()); ui_->radioButton30FPS->setChecked(configuration_->getVideoFPS() == aasdk::proto::enums::VideoFPS::_30); diff --git a/src/autoapp/UI/mainwindow.old b/src/autoapp/UI/mainwindow.old deleted file mode 100644 index 84ca6eb..0000000 --- a/src/autoapp/UI/mainwindow.old +++ /dev/null @@ -1,4253 +0,0 @@ - - - MainWindow - - - - 0 - 0 - 862 - 1297 - - - - - 0 - 0 - - - - - 800 - 480 - - - - - 12 - - - - MainWindow - - - color: rgb(0, 0, 0); - - - - true - - - - 0 - 0 - - - - false - - - - 4 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 0 - 0 - - - - background-color: rgba(0, 0, 0, 0.5); - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 0 - - - - - - 75 - true - PreferDefault - - - - background-color: rgb(164, 0, 0); -color: rgb(255, 255, 255); - - - Dev Mode Enabled - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - DejaVu Sans - 14 - 75 - true - true - false - - - - background-color: rgba(255, 255, 255, 0); - - - <html><head/><body><p><span style=" font-style:normal; color:#ffffff;">crank</span><span style=" font-style:normal; color:#5ce739;">shaft </span><span style=" font-style:normal; color:#40bfbf;">NG </span><span style=" font-style:normal; color:#888a85;">- OpenCarOS</span></p></body></html> - - - Qt::AlignCenter - - - - - - - - 75 - true - - - - background-color: rgb(164, 0, 0); -color: rgb(255, 255, 255); - - - Dev Mode Enabled - - - Qt::AlignCenter - - - - - - - - - - 0 - 0 - - - - - 0 - 24 - - - - - 16777215 - 24 - - - - background-color: rgba(0, 0, 0, 0); - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 0 - 24 - - - - - 16777215 - 24 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 0 - 22 - - - - - 16777215 - 22 - - - - - 10 - 75 - true - - - - background-color: rgba(0, 0, 0, 0); -color: rgb(78, 244, 37); - - - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - - - - - 0 - 0 - - - - - 0 - 24 - - - - - 16777215 - 24 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(255, 255, 255, 0); -color: rgb(255, 255, 255); - - - USB Connected - - - Qt::AlignCenter - - - - - - - Qt::Horizontal - - - - 10 - 10 - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(255, 255, 255, 0); -color: rgb(0, 102, 255); - - - BT-Device - - - Qt::AlignCenter - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 10 - 20 - - - - - - - - - 0 - 0 - - - - - 80 - 22 - - - - - 80 - 22 - - - - - 0 - 0 - - - - background-color: rgb(32, 74, 135); -color: rgb(239, 239, 239); -outline: none; - - - BT-Pairing - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 10 - 20 - - - - - - - - - 0 - 0 - - - - - 0 - 22 - - - - - 100 - 22 - - - - - 75 - true - - - - background-color: rgba(255, 255, 255, 0); -color: rgb(255, 255, 255); - - - 12:00:00 - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - - 0 - 0 - - - - - 0 - 1 - - - - background-color: rgba(255,255,255,0.3); - - - Qt::Horizontal - - - - - - - - - - true - - - - 0 - 0 - - - - outline: none; - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 6 - - - - - - 0 - 0 - - - - - 0 - 0 - - - - background: rgba(252, 233, 79, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/day-hot.png - - - - - 64 - 64 - - - - false - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - background-color: rgba(114, 159, 207, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/night-hot.png - - - - - 64 - 64 - - - - false - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - background-color: rgba(114, 159, 207, 0.5); -color: rgb(255, 255, 255); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - Auto - Day/Night -activated - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - background-color: rgba(173, 127, 168, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/skin-hot.png - - - - - 64 - 64 - - - - false - - - - - - - - - 6 - - - - - - 0 - 0 - - - - background-color: rgba(100, 62, 4, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/camera-hot.png - - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - background-color: rgba(252, 175, 62, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - :/wifi-hot.png - - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - background-color: rgba(100, 62, 4, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - - - - - 0 - 0 - - - - background-color: rgba(100, 62, 4, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - Setup - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - - - - - - - - - 0 - 0 - - - - background-color: rgba(164, 0, 0, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/power-hot.png - - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - background-color: rgba(239, 41, 41, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/power-hot.png - - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - background-color: rgba(252, 175, 62, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/reboot-hot.png - - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - background-color: rgba(32, 74, 135, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/back-hot.png - - - - - 64 - 64 - - - - - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - - - - - - - - - 0 - 0 - - - - background-color: rgba(237, 164, 255, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/eye-hot.png - - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - background-color: rgba(15, 54, 5, 0.5); -color: rgb(255, 255, 255); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - - :/lock-hot.png - - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - background-color: rgba(138, 226, 52, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/settings-hot.png - - - - - 64 - 64 - - - - true - - - - - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - false - - - - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - - - - - - - - - 0 - 0 - - - - background-color: rgba(85, 87, 83, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/bug-hot.png - - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - - 75 - true - - - - background-color: rgba(78, 154, 6, 0.5); -color: rgb(255, 255, 255); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/mp3-hot.png - - - - - 64 - 64 - - - - - - - - - - - - - 0 - 0 - - - - background-color: rgba(245, 121, 0, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/brightness-hot.png - - - - - 64 - 64 - - - - - - - - - 0 - 0 - - - - background-color: rgba(64, 191, 191, 0.5); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/volume-hot.png - - - - - 64 - 64 - - - - - - - - - - - - - - 0 - 0 - - - - - 4 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - - - - - 0 - 0 - - - - - 10 - - - 10 - - - 0 - - - 10 - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/settings-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/lock-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/day-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/night-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/brightness-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/power-hot.png - - - - - 50 - 50 - - - - - - - - - - - - 0 - 0 - - - - - 10 - - - 10 - - - 0 - - - 10 - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/power-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/reboot-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/back-hot.png - - - - - 50 - 50 - - - - - - - - - - - - 0 - 0 - - - - - 80 - - - - color: rgb(255, 255, 255); - - - 12:00:00 - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - - - - - - - - 0 - 0 - - - - - 10 - - - 10 - - - 10 - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/camera-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/volume-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/eye-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/wifi-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/bug-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - :/mp3-hot.png - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - - 62 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - 50 - 50 - - - - - - - - - 0 - 0 - - - - - 62 - 0 - - - - background-color: rgba(136, 138, 133, 0.5); -outline: none; - - - - - - - 50 - 50 - - - - - - - - - - - - - - - - - - - 0 - 0 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - background-color: rgba(0, 0, 0, 1); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); - - - - - - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - background-color: rgb(186, 189, 182); -color: rgb(0, 0, 0); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - Record - - - - :/record-hot.png - - - - - 32 - 32 - - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - background-color: rgb(186, 189, 182); -color: rgb(0, 0, 0); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - Record - - - - :/recordactive-hot.png - - - - - 32 - 32 - - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - background-color: rgb(186, 189, 182); -color: rgb(0, 0, 0); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - Stop - - - - :/stop-hot.png - - - - - 32 - 32 - - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - background-color: rgb(186, 189, 182); -color: rgb(0, 0, 0); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - Save - - - - :/save-hot.png - - - - - 32 - 32 - - - - - - - - - - - - - - 0 - 0 - - - - Qt::LeftToRight - - - background-color: rgba(0, 0, 0, 0); - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - border: 0px; -background-color: rgba(0, 0, 0, 0); - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - background-color: rgba(0, 0, 0, 0.5); -color: rgb(255, 255, 255); -height: 45px; - - - - 4 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - 2 - - - - - - 0 - 0 - - - - - 0 - 45 - - - - - 16777215 - 45 - - - - - 0 - 45 - - - - - 14 - 75 - true - - - - Qt::DefaultContextMenu - - - QComboBox { - background-color: rgba(117, 80, 123, 0.9); - color: rgb(255, 255, 255); - border: 2px solid rgba(255,255,255,0.5); - outline: none; - height: 40px; -} - -QComboBox::drop-down { - width: 40px; - color: rgb(255, 255, 255); -} - -QScrollBar { - width: 40px; - background-color: rgba(117, 80, 123, 0.9); -} - - - - QComboBox::AdjustToContents - - - true - - - - - - - - - - 0 - 0 - - - - - 0 - 20 - - - - - 16777215 - 20 - - - - - 8 - - - - background-color: rgba(85, 87, 83, 0.7); -color: rgb(255, 255, 255); -border: 2px solid rgba(255,255,255,0.5); - - - - - - - - - - - 0 - 0 - - - - - 0 - 20 - - - - - 16777215 - 20 - - - - - 8 - - - - background-color: rgba(85, 87, 83, 0.7); -color: rgb(255, 255, 255); -border: 2px solid rgba(255,255,255,0.5); - - - - - - - - - - - 14 - 75 - true - - - - Qt::LeftToRight - - - false - - - QScrollBar { - width: 40px; - background-color: rgba(85, 87, 83, 0.7); -} - -QWidget { -background-color: rgba(85, 87, 83, 0.7); -color: rgb(255, 255, 255); -border: 2px solid rgba(255,255,255,0.5); -outline: none; -} - - - QFrame::NoFrame - - - Qt::ScrollBarAsNeeded - - - Qt::ScrollBarAsNeeded - - - QAbstractScrollArea::AdjustToContents - - - 16 - - - false - - - QAbstractItemView::SingleSelection - - - QListView::Static - - - false - - - QListView::Fixed - - - QListView::SinglePass - - - - 0 - 40 - - - - QListView::ListMode - - - - - - - - - - - 0 - 0 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - color: rgb(255, 255, 255); - - - Title - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - color: rgb(255, 255, 255); -background-color: rgba(0, 0, 0, 0); - - - - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 20 - 0 - - - - - 20 - 16777215 - - - - - 12 - 75 - true - - - - color: rgb(255, 255, 255); - - - / - - - Qt::AlignCenter - - - - - - - - 12 - 75 - true - - - - color: rgb(255, 255, 255); - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - - Qt::Horizontal - - - - 5 - 20 - - - - - - - - - 0 - 0 - - - - - 90 - 0 - - - - - 90 - 16777215 - - - - outline: none; - - - - - - - :/prevbig-hot.png - - - - - 128 - 140 - - - - - - - - Qt::Horizontal - - - - 5 - 20 - - - - - - - - - 0 - 0 - - - - - 90 - 0 - - - - - 90 - 16777215 - - - - outline: none; - - - - - - - :/prevbig-hot.png - - - - - 128 - 160 - - - - - - - - Qt::Horizontal - - - - 5 - 20 - - - - - - - - - - - - - 0 - 0 - - - - - 280 - 0 - - - - - 280 - 16777215 - - - - background-color: rgba(0, 0, 0, 0); -outline: none; - - - - - - - :/coverlogo.png - - - - - 270 - 270 - - - - false - - - false - - - - - - - - - - - Qt::Horizontal - - - - 1 - 1 - - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - color: rgb(255, 255, 255); - - - Album - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - color: rgb(255, 255, 255); - - - - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - 0 - 0 - - - - - 20 - 0 - - - - - 20 - 16777215 - - - - - 12 - 75 - true - - - - color: rgb(255, 255, 255); - - - / - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 12 - 75 - true - - - - color: rgb(255, 255, 255); - - - - - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - - - - - - - Qt::Horizontal - - - - 1 - 1 - - - - - - - - - - - - Qt::Horizontal - - - - 5 - 20 - - - - - - - - - 0 - 0 - - - - - 90 - 0 - - - - - 90 - 16777215 - - - - outline: none; - - - - - - - :/nextbig-hot.png - - - - - 128 - 160 - - - - - - - - Qt::Horizontal - - - - 5 - 20 - - - - - - - - - 0 - 0 - - - - - 90 - 0 - - - - - 90 - 16777215 - - - - outline: none; - - - - - - - :/nextbig-hot.png - - - - - 128 - 140 - - - - - - - - Qt::Horizontal - - - - 5 - 20 - - - - - - - - - - - - - - - - - - - 0 - 0 - - - - - 14 - - - - background-color: rgba(0, 0, 0, 0.5); - - - - 0 - - - 0 - - - 4 - - - 0 - - - 4 - - - - - - 0 - 0 - - - - - 150 - 20 - - - - - 150 - 20 - - - - color: rgb(255, 255, 255); -background-color: rgba(0, 0, 0, 0); - - - - - - - - - - - 0 - 0 - - - - - 0 - 20 - - - - - 16777215 - 20 - - - - - 14 - 75 - true - true - - - - background-color: rgba(0, 0, 0, 0); -color: rgb(255, 255, 255); - - - - - - Qt::AlignCenter - - - - - - - - 0 - 0 - - - - - 150 - 16 - - - - - 150 - 16 - - - - - 14 - 75 - true - - - - color: rgb(255, 255, 255); -background-color: rgba(0, 0, 0, 0); - - - 00:00 / 00:00 - - - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - - - - - - - - 0 - 20 - - - - - 16777215 - 20 - - - - Qt::LeftToRight - - - false - - - QSlider::groove:horizontal { background-color: rgba(0, 0, 0, 0.8); height: 32px;} -QSlider::handle:horizontal { background: rgb(255, 255, 255); height: 52px; width: 52px; margin: 0 0;}; - - - Qt::Horizontal - - - - - - - - 0 - 0 - - - - - 0 - 4 - - - - - 16777215 - 4 - - - - background-color: rgba(0, 0, 0, 0.5); - - - - - - - - - - - 0 - 0 - - - - background-color: rgba(0, 0, 0, 0.5); - - - - 0 - - - 4 - - - 0 - - - 10 - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - 16777215 - 40 - - - - background-color: rgba(114, 159, 207, 0.7); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/player-hot.png - - - - - 32 - 32 - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - 16777215 - 40 - - - - background-color: rgba(114, 159, 207, 0.7); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/list-hot.png - - - - - 32 - 32 - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - 16777215 - 40 - - - - background-color: rgba(250, 80, 80, 0.7); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/stop-hot.png - - - - - 32 - 32 - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - 16777215 - 40 - - - - background-color: rgba(138, 226, 52, 0.7); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - :/play-hot.png - - - - - 32 - 32 - - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - 16777215 - 40 - - - - background-color: rgba(233, 185, 110, 0.7); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -outline: none; - - - - - - - - :/pause-hot.png - - - - - 32 - 32 - - - - false - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - 16777215 - 40 - - - - - 12 - 75 - true - - - - background-color: rgba(186, 189, 182, 0.7); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - USB - - - - - - - - 0 - 0 - - - - - 0 - 40 - - - - - 16777215 - 40 - - - - - 75 - true - - - - background-color: rgba(186, 189, 182, 0.7); -border-radius: 4px; -border: 2px solid rgba(255,255,255,0.5); -color: rgb(255, 255, 255); -outline: none; - - - - - - - :/home-hot.png - - - - - 32 - 32 - - - - - - - - - - - - - - false - - - - 0 - 0 - - - - - 0 - 30 - - - - - 75 - true - - - - background-color: rgb(92, 231, 57); -color: rgb(0, 0, 0); - - - System messages - - - false - - - Qt::AlignCenter - - - 0 - - - - - - - - 0 - 0 - - - - - 0 - 30 - - - - - 16777215 - 30 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 80 - 30 - - - - - 80 - 30 - - - - color: rgb(255, 255, 255); -background-color: rgb(164, 0, 0); -outline: none; - - - Muted - - - - - - - - 0 - 0 - - - - - 80 - 30 - - - - - 80 - 30 - - - - color: rgb(255, 255, 255); -background-color: #6d6d6d; -outline: none; - - - Mute - - - false - - - - - - - - 0 - 0 - - - - - 0 - 30 - - - - QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} -QSlider::handle:horizontal { background: rgb(64, 191, 191); height: 52px; width: 52px; margin: 0 0;}; -outline: none; - - - 100 - - - Qt::Horizontal - - - - - - - - 0 - 0 - - - - - 40 - 30 - - - - - 40 - 16777215 - - - - - 75 - true - - - - color: rgb(255, 255, 255); -background-color: #6d6d6d; - - - - - - - Qt::AlignCenter - - - - - - - - - - - 0 - 0 - - - - - 0 - 30 - - - - - 16777215 - 30 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 30 - - - - Qt::LeftToRight - - - QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} -QSlider::handle:horizontal { background: rgb(64, 191, 191); height: 52px; width: 52px; margin: 0 0;}; -outline: none; - - - 100 - - - 100 - - - Qt::Horizontal - - - - - - - - 0 - 0 - - - - - 40 - 30 - - - - - 40 - 16777215 - - - - - 75 - true - - - - color: rgb(255, 255, 255); -background-color: #6d6d6d; - - - 100% - - - Qt::AlignCenter - - - - - - - - - - - 0 - 0 - - - - - 0 - 30 - - - - - 16777215 - 30 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 0 - - - - - 0 - 30 - - - - - - - - - - QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} -QSlider::handle:horizontal { background: rgb(245, 121, 0); height: 52px; width: 52px; margin: 0 0;}; -outline: none; - - - 30 - - - 255 - - - 25 - - - 30 - - - 30 - - - Qt::Horizontal - - - - - - - - 0 - 0 - - - - - 40 - 30 - - - - - 40 - 16777215 - - - - - 75 - true - - - - color: rgb(255, 255, 255); -background-color: #6d6d6d; - - - - - - - Qt::AlignCenter - - - - - - - - - - - 0 - 0 - - - - - 0 - 30 - - - - - 16777215 - 30 - - - - - 0 - - - 0 - - - 0 - - - 0 - - - - - - 0 - 30 - - - - QSlider::groove:horizontal { background: #6d6d6d; height: 32px;} -QSlider::handle:horizontal { background: rgb(173, 127, 168); height: 52px; width: 52px; margin: 0 0;}; -outline: none; - - - 1 - - - 100 - - - 1 - - - 50 - - - Qt::Horizontal - - - - - - - - 0 - 0 - - - - - 40 - 30 - - - - - 40 - 16777215 - - - - - 75 - true - - - - color: rgb(255, 255, 255); -background-color: #6d6d6d; - - - 0.5 - - - Qt::AlignCenter - - - - - - - - - - - - - diff --git a/src/autoapp/UI/settingswindow.ui b/src/autoapp/UI/settingswindow.ui index 448ffe2..bdd4b62 100644 --- a/src/autoapp/UI/settingswindow.ui +++ b/src/autoapp/UI/settingswindow.ui @@ -7,7 +7,7 @@ 0 0 963 - 3006 + 3033 @@ -403,6 +403,13 @@ outline: none; + + + + Show Lux value from tls2561 + + +