MCPcopy Create free account
hub / github.com/KDE/kdenlive / applyTimecodeDisplayStyling

Method applyTimecodeDisplayStyling

src/monitor/monitor.cpp:3443–3453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3441}
3442
3443void Monitor::applyTimecodeDisplayStyling()
3444{
3445 bool isActive = m_monitorManager->isActive(m_id);
3446 QPalette pal = m_timePos->palette();
3447 KColorScheme scheme(QApplication::palette().currentColorGroup());
3448 QColor bg = isActive ? scheme.decoration(KColorScheme::FocusColor).color() : scheme.foreground(KColorScheme::NormalText).color();
3449 pal.setColor(QPalette::Text, bg);
3450 m_timePos->setPalette(pal);
3451 m_timePos->setBold(isActive);
3452 Q_EMIT getControllerProxy() -> activeMonitorChanged();
3453}
3454
3455void Monitor::updatePowerManagement()
3456{

Callers 1

activateMonitorMethod · 0.80

Calls 5

setPaletteMethod · 0.80
isActiveMethod · 0.45
colorMethod · 0.45
setColorMethod · 0.45
setBoldMethod · 0.45

Tested by

no test coverage detected