added styling options and rearranged preferences

This commit is contained in:
itsmattkc
2019-03-13 21:34:23 +11:00
parent 654c6f32c6
commit c634070368
14 changed files with 282 additions and 85 deletions
+24
View File
@@ -0,0 +1,24 @@
#include "styling.h"
#include "global/config.h"
bool olive::styling::UseDarkIcons()
{
return olive::CurrentConfig.style == kOliveDefaultLight || olive::CurrentConfig.style == kNativeDarkIcons;
}
QColor olive::styling::GetIconColor()
{
if (UseDarkIcons()) {
return Qt::black;
} else {
return Qt::white;
}
}
bool olive::styling::UseNativeUI()
{
return olive::CurrentConfig.style == kNativeLightIcons || olive::CurrentConfig.style == kNativeDarkIcons;
}