Move hover preview height from settings to theme
This commit is contained in:
		@@ -115,7 +115,6 @@ class UISettings(JSONConfigFile):
 | 
			
		||||
                "autoHideOSDAfterMsec": 3000,
 | 
			
		||||
                "defaultVolume": 100,
 | 
			
		||||
                "startMuted": False,
 | 
			
		||||
                "hoverPreviewHeight": 192,
 | 
			
		||||
            },
 | 
			
		||||
            "keys": {
 | 
			
		||||
                "startPythonDebugger": "Alt+Shift+D",
 | 
			
		||||
 
 | 
			
		||||
@@ -97,7 +97,7 @@ HColumnLayout {
 | 
			
		||||
            contentItem: VideoPreview {
 | 
			
		||||
                id: preview
 | 
			
		||||
                implicitHeight: Math.min(
 | 
			
		||||
                    window.settings.media.hoverPreviewHeight,
 | 
			
		||||
                    theme.mediaPlayer.hoverPreview.maxHeight,
 | 
			
		||||
                    media.height - osd.height - theme.spacing
 | 
			
		||||
                )
 | 
			
		||||
                implicitWidth: Math.min(
 | 
			
		||||
 
 | 
			
		||||
@@ -359,6 +359,9 @@ chat:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
mediaPlayer:
 | 
			
		||||
    hoverPreview:
 | 
			
		||||
        int maxHeight: 192
 | 
			
		||||
 | 
			
		||||
    progress:
 | 
			
		||||
        int height:        8
 | 
			
		||||
        color background:  hsluv(0, 0, 0, 0.5)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user