Set kylin-video use dark palette

This commit is contained in:
xibowen 2022-07-18 10:39:58 +08:00
parent 0ffd94fcc4
commit c2e87f009e
1 changed files with 5 additions and 1 deletions

View File

@ -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;
}