mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	The preference setting seemed far too strange to do this. And not very user friendly. So instead we figure out if this is a dark theme or not by looking at text and background colors in the palette, and make sure we get notified if that changes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			306 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			306 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0
 | |
| #ifndef TAB_BASE_H
 | |
| #define TAB_BASE_H
 | |
| 
 | |
| #include <QWidget>
 | |
| 
 | |
| struct dive;
 | |
| 
 | |
| class TabBase : public QWidget {
 | |
| 	Q_OBJECT
 | |
| 
 | |
| public:
 | |
| 	TabBase(QWidget *parent = 0);
 | |
| 	virtual void updateData() = 0;
 | |
| 	virtual void clear() = 0;
 | |
| 	virtual void updateUi(QString titleColor);
 | |
| };
 | |
| 
 | |
| #endif
 |