pro加json文件,补上漏的初始化色板

This commit is contained in:
tanjing 2023-11-30 17:27:55 +08:00
parent 0d63f0e4c0
commit 80982a65b4
2 changed files with 5 additions and 0 deletions

View File

@ -88,6 +88,9 @@ unix {
DISTFILES += \
ukui.json
DISTFILES += \
filedialogplugin.json
DEFINES += OPEN_ACTIONS_SEPARATOR='\\"open-actions-seperator\\"'
DEFINES += CREATE_ACTIONS_SEPARATOR='\\"create-actions-seperator\\"'
DEFINES += VIEW_ACTIONS_SEPARATOR='\\"view-actions-seperator\\"'

View File

@ -880,6 +880,7 @@ UKUIColorTheme::TableColorCfg ReadThemeConfig::tableColorCfg(const QPalette pale
if(!m_loadConfig)
return m_tableColorCfg;
m_readConfig->widgetPalette(palette);
m_readConfig->getColorValue(m_tableColorCfg.defaultBrush ,m_theme, UKUITable, property, C_Table_DefaultBrush);
m_readConfig->getColorValue(m_tableColorCfg.selectBrush ,m_theme, UKUITable, property, C_Table_SelectBrush);
m_readConfig->getColorValue(m_tableColorCfg.disableBrush ,m_theme, UKUITable, property, C_Table_DisableBrush);
@ -1029,6 +1030,7 @@ UKUIColorTheme::ToolTipColorCfg ReadThemeConfig::toolTipColorCfg(const QPalette
if(!m_loadConfig)
return m_toolTipColorCfg;
m_readConfig->widgetPalette(palette);
m_readConfig->getColorValue(m_toolTipColorCfg.backgroundBrush, m_theme, UKUIToolTip, property, C_ToolTip_BackgroundBrush);
m_readConfig->getColorValue(m_toolTipColorCfg.backgroundPen, m_theme, UKUIToolTip, property, C_ToolTip_BackgroundPen);
return m_toolTipColorCfg;