forked from openkylin/qt5-ukui-platformtheme
Set kylin-video use dark palette
This commit is contained in:
parent
0ffd94fcc4
commit
c2e87f009e
|
@ -287,7 +287,11 @@ QPalette Qt5UKUIStyle::standardPalette() const
|
|||
|
||||
bool Qt5UKUIStyle::isUseDarkPalette() const
|
||||
{
|
||||
return (!useDefaultPaletteList().contains(qAppName()) && (m_drak_palette || (m_default_palette && useDarkPaletteList().contains(qAppName()))));
|
||||
bool usedark = (!useDefaultPaletteList().contains(qAppName()) && (m_drak_palette || (m_default_palette && useDarkPaletteList().contains(qAppName()))));
|
||||
if (qAppName() == "kylin-video") {
|
||||
usedark = true;
|
||||
}
|
||||
return usedark;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue