forked from qt-creator/qt-creator
		
	Fixed function argument widget text color in dark themes
By setting the window and button text colors to the tool tip text color, since a tool tip background is drawn. Task-number: QTCREATORBUG-322
This commit is contained in:
		@@ -87,6 +87,14 @@ public:
 | 
			
		||||
    {
 | 
			
		||||
        setFocusPolicy(Qt::NoFocus);
 | 
			
		||||
        setAttribute(Qt::WA_DeleteOnClose);
 | 
			
		||||
 | 
			
		||||
        // Set the window and button text to the tooltip text color, since this
 | 
			
		||||
        // widget draws the background as a tooltip.
 | 
			
		||||
        QPalette p = palette();
 | 
			
		||||
        const QColor toolTipTextColor = p.color(QPalette::Inactive, QPalette::ToolTipText);
 | 
			
		||||
        p.setColor(QPalette::Inactive, QPalette::WindowText, toolTipTextColor);
 | 
			
		||||
        p.setColor(QPalette::Inactive, QPalette::ButtonText, toolTipTextColor);
 | 
			
		||||
        setPalette(p);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
protected:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user