]> git.sesse.net Git - kdenlive/blobdiff - src/smallruler.cpp
Fix parts of Kdenlive not responding to color theme change
[kdenlive] / src / smallruler.cpp
index dce24f469c1299294d45ef41d24718abd556e7cb..89d876d8cc7cbdc3305254d9f2448c31e5faf29a 100644 (file)
@@ -233,4 +233,11 @@ void SmallRuler::paintEvent(QPaintEvent *e)
     p.drawPolygon(pa);
 }
 
+void SmallRuler::updatePalette()
+{
+    KSharedConfigPtr config = KSharedConfig::openConfig(KdenliveSettings::colortheme());
+    m_zoneBrush = KStatefulBrush(KColorScheme::View, KColorScheme::PositiveBackground, config);
+    updatePixmap();
+}
+
 #include "smallruler.moc"