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:
@@ -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());
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user