mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-31 08:14:29 -04:00 
			
		
		
		
	This means having two versions of everything, the idea is to migrate to Qt6, test that everything works fine and drop Qt5 as soon as possible.
		
			
				
	
	
		
			29 lines
		
	
	
		
			491 B
		
	
	
	
		
			QML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			491 B
		
	
	
	
		
			QML
		
	
	
	
	
	
| import QtQuick 2.15
 | |
| 
 | |
| import Qt5Compat.GraphicalEffects
 | |
| 
 | |
| Item {
 | |
| 
 | |
|     property bool read
 | |
| 
 | |
|     signal readChangedByUser(bool read)
 | |
| 
 | |
|     MouseArea {
 | |
|         anchors.fill: read_compact
 | |
|         onClicked: {
 | |
|             readChangedByUser(!read);
 | |
|         }
 | |
|     }
 | |
| 
 | |
|     Image {
 | |
|         id: read_compact
 | |
|         source: "info-tick.png"
 | |
|     }
 | |
| 
 | |
|     ColorOverlay {
 | |
|         anchors.fill: read_compact
 | |
|         source: read_compact
 | |
|         color: read ? readTickCheckedColor : readTickUncheckedColor
 | |
|     }
 | |
| }
 |