Try to match old theme better

This commit is contained in:
Nicolas Werner 2020-01-14 20:44:11 +01:00
parent 54a16ae2d7
commit 4eb0e11740
2 changed files with 5 additions and 3 deletions

View file

@ -66,6 +66,8 @@ Rectangle {
durationText.text = formatTime(new Date(media.duration)) durationText.text = formatTime(new Date(media.duration))
} }
onValueChanged: updatePositionTexts() onValueChanged: updatePositionTexts()
palette: colors
} }
Text { Text {
id: durationText id: durationText

View file

@ -34,12 +34,12 @@ TimelineViewManager::updateColorPalette()
QPalette darkActive(/*windowText*/ QColor("#caccd1"), QPalette darkActive(/*windowText*/ QColor("#caccd1"),
/*button*/ QColor("#caccd1"), /*button*/ QColor("#caccd1"),
/*light*/ QColor(), /*light*/ QColor(),
/*dark*/ QColor(45, 49, 57, 120), /*dark*/ QColor("#202228"),
/*mid*/ QColor(), /*mid*/ QColor(),
/*text*/ QColor("#caccd1"), /*text*/ QColor("#caccd1"),
/*bright_text*/ QColor(), /*bright_text*/ QColor(),
/*base*/ QColor("#202228"), /*base*/ QColor("#2d3139"),
/*window*/ QColor("#202228")); /*window*/ QColor("#2d3139"));
darkActive.setColor(QPalette::Highlight, QColor("#e7e7e9")); darkActive.setColor(QPalette::Highlight, QColor("#e7e7e9"));
view->rootContext()->setContextProperty("currentActivePalette", darkActive); view->rootContext()->setContextProperty("currentActivePalette", darkActive);
view->rootContext()->setContextProperty("currentInactivePalette", darkActive); view->rootContext()->setContextProperty("currentInactivePalette", darkActive);