Move hover preview height from settings to theme

This commit is contained in:
miruka 2019-09-17 16:39:45 -04:00
parent 692749e72f
commit f19d337817
3 changed files with 4 additions and 2 deletions

View File

@ -115,7 +115,6 @@ class UISettings(JSONConfigFile):
"autoHideOSDAfterMsec": 3000,
"defaultVolume": 100,
"startMuted": False,
"hoverPreviewHeight": 192,
},
"keys": {
"startPythonDebugger": "Alt+Shift+D",

View File

@ -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(

View File

@ -359,6 +359,9 @@ chat:
mediaPlayer:
hoverPreview:
int maxHeight: 192
progress:
int height: 8
color background: hsluv(0, 0, 0, 0.5)