Change tooltip palette settings for QML
This commit is contained in:
parent
4951241d23
commit
d205952fc8
5 changed files with 27 additions and 12 deletions
|
|
@ -29,6 +29,8 @@ TimelineViewManager::updateColorPalette()
|
|||
/*bright_text*/ QColor(),
|
||||
/*base*/ QColor("white"),
|
||||
/*window*/ QColor("white"));
|
||||
lightActive.setColor(QPalette::ToolTipBase, lightActive.base().color());
|
||||
lightActive.setColor(QPalette::ToolTipText, lightActive.text().color());
|
||||
view->rootContext()->setContextProperty("currentActivePalette", lightActive);
|
||||
view->rootContext()->setContextProperty("currentInactivePalette", lightActive);
|
||||
} else if (settings.theme() == "dark") {
|
||||
|
|
@ -42,6 +44,8 @@ TimelineViewManager::updateColorPalette()
|
|||
/*base*/ QColor("#202228"),
|
||||
/*window*/ QColor("#202228"));
|
||||
darkActive.setColor(QPalette::Highlight, QColor("#e7e7e9"));
|
||||
darkActive.setColor(QPalette::ToolTipBase, darkActive.base().color());
|
||||
darkActive.setColor(QPalette::ToolTipText, darkActive.text().color());
|
||||
view->rootContext()->setContextProperty("currentActivePalette", darkActive);
|
||||
view->rootContext()->setContextProperty("currentInactivePalette", darkActive);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue