ui: Fixed font colors in indexing dialogs and line breaks in status bar
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
* {
|
||||
QLabel {
|
||||
color: white;
|
||||
}
|
||||
|
||||
@@ -29,9 +29,10 @@
|
||||
}
|
||||
|
||||
#errorCount {
|
||||
font-size: 12pt;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: white;
|
||||
font-size: 14pt;
|
||||
}
|
||||
|
||||
#windowButton {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "component/view/StatusBarView.h"
|
||||
#include "data/access/StorageAccess.h"
|
||||
#include "utility/logging/logging.h"
|
||||
#include "utility/utilityString.h"
|
||||
|
||||
StatusBarController::StatusBarController(StorageAccess* storageAccess)
|
||||
: m_storageAccess(storageAccess)
|
||||
@@ -51,10 +52,12 @@ void StatusBarController::handleMessage(MessageStatus* message)
|
||||
|
||||
void StatusBarController::setStatus(const std::string& status, bool isError, bool showLoader)
|
||||
{
|
||||
if (!status.empty())
|
||||
{
|
||||
LOG_INFO_STREAM(<< "STATUS " << status);
|
||||
std::string str = utility::replace(status, "\n", " ");
|
||||
|
||||
getView()->showMessage(status, isError, showLoader);
|
||||
if (!str.empty())
|
||||
{
|
||||
LOG_INFO_STREAM(<< "STATUS " << str);
|
||||
|
||||
getView()->showMessage(str, isError, showLoader);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user