fix bug#203853 tabbar关闭按钮颜色调整 bug#203902文件对话框侧边栏选中高亮

This commit is contained in:
tanjing 2024-01-08 17:41:51 +08:00
parent e59dbf83ac
commit c6e8fc40eb
2 changed files with 10 additions and 8 deletions

View File

@ -104,6 +104,8 @@ FileDialogSideBar::FileDialogSideBar(QWidget *parent) : QTreeView(parent)
setSortingEnabled(true);
setProperty("useIconHighlightEffect", true);
setProperty("highlightMode", true);
setDragDropMode(QTreeView::NoDragDrop);
setProperty("doNotBlur", true);
viewport()->setProperty("doNotBlur", true);

View File

@ -226,16 +226,16 @@ void UKUIConfigStyleParameters::initialDefaultPaletteColor(QString colorPath, bo
#endif
if(isDark){
Indicator_IconDefault = defaultPalette.color(QPalette::Active, QPalette::ButtonText);
Indicator_IconHover = defaultPalette.color(QPalette::Active, QPalette::BrightText);
Indicator_IconSunken = defaultPalette.color(QPalette::Active, QPalette::BrightText);
Indicator_IconDisable = defaultPalette.color(QPalette::Disabled, QPalette::Midlight);
Indicator_IconDefault = defaultPalette.color(QPalette::Active, QPalette::Mid);
Indicator_IconHover = defaultPalette.color(QPalette::Active, QPalette::Text);
Indicator_IconSunken = defaultPalette.color(QPalette::Active, QPalette::Text);
Indicator_IconDisable = defaultPalette.color(QPalette::Disabled, QPalette::Text);
}
else{
Indicator_IconDefault = defaultPalette.color(QPalette::Active, QPalette::Midlight);
Indicator_IconHover = defaultPalette.color(QPalette::Active, QPalette::ButtonText);
Indicator_IconSunken = defaultPalette.color(QPalette::Active, QPalette::ButtonText);
Indicator_IconDisable = defaultPalette.color(QPalette::Disabled, QPalette::Midlight);
Indicator_IconDefault = defaultPalette.color(QPalette::Active, QPalette::Mid);
Indicator_IconHover = defaultPalette.color(QPalette::Active, QPalette::Text);
Indicator_IconSunken = defaultPalette.color(QPalette::Active, QPalette::Text);
Indicator_IconDisable = defaultPalette.color(QPalette::Disabled, QPalette::Text);
}
}