ui: fixed ui issues

* fixed dock title buttons on bottom on Windows
* fixed no gap between buttons on Linux
* fixed dark scheme title bar contrast
* fixed filter checkbox colors for dark schemes
This commit is contained in:
Eberhard Graether
2018-01-05 16:58:00 +01:00
parent 3ac18a9977
commit 125e65e575
5 changed files with 37 additions and 7 deletions
+18
View File
@@ -14,6 +14,7 @@
#include "utility/logging/logging.h"
#include "utility/ResourcePaths.h"
#include "utility/text/TextAccess.h"
#include "utility/utilityApp.h"
#include "utility/utilityString.h"
#include "settings/ApplicationSettings.h"
@@ -168,6 +169,23 @@ namespace utility
{
val = ColorScheme::getInstance()->getColor(val);
}
else if (key == "platform_wml")
{
std::vector<std::string> values = utility::splitToVector(val, '|');
if (values.size() != 3)
{
LOG_ERROR("Syntax error in file: " + path.str());
return "";
}
switch (utility::getOsType())
{
case OS_WINDOWS: val = values[0]; break;
case OS_MAC: val = values[1]; break;
case OS_LINUX: val = values[2]; break;
default: break;
}
}
else
{
LOG_ERROR("Syntax error in file: " + path.str());
+2 -2
View File
@@ -3,12 +3,12 @@
#include <string>
class FilePath;
class QColor;
class QIcon;
class QPixmap;
class QString;
class QWidget;
class FilePath;
namespace utility
{
@@ -25,4 +25,4 @@ namespace utility
void copyNewFilesFromDirectory(QString src, QString dst);
}
# endif // UTILITY_QT_H
#endif // UTILITY_QT_H