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
+8 -1
View File
@@ -25,6 +25,7 @@
#include "global/config.h"
#include "global/math.h"
#include "global/debug.h"
#include "ui/styling.h"
#include <QMouseEvent>
#include <QInputDialog>
@@ -119,7 +120,13 @@ QString LabelSlider::ValueToString() {
}
void LabelSlider::SetColor(QString c) {
if (c.isEmpty()) c = "#ffc000";
if (c.isEmpty()) {
if (olive::styling::UseDarkIcons()) {
c = "#0080ff";
} else {
c = "#ffc000";
}
}
setStyleSheet("QLabel{color:" + c + ";text-decoration:underline;}QLabel:disabled{color:#808080;}");
}