mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-05 18:42:29 +01:00
Change monitor preview size when only a single monitor is in use
This commit is contained in:
parent
c3de439436
commit
c289a3ebb6
@ -10,7 +10,7 @@ Rectangle {
|
||||
color: Material.theme === Material.Light ? Material.background : Qt.darker(Material.background)
|
||||
|
||||
height: availableHeight
|
||||
width: availableWidth
|
||||
width: parent.width
|
||||
|
||||
// Width of the Sidebar or Space that should be used
|
||||
property real availableWidth: 0
|
||||
@ -82,9 +82,15 @@ Rectangle {
|
||||
isWidthGreaterThanHeight = true
|
||||
}
|
||||
|
||||
if(rp.count === 1){
|
||||
availableWidth = availableWidth *.66
|
||||
}
|
||||
|
||||
|
||||
var dynamicHeight = availableWidth * windowsDelta
|
||||
var dynamicWidth = availableHeight * windowsDelta
|
||||
|
||||
|
||||
// Delta (height/width)
|
||||
var monitorHeightRationDelta = 0
|
||||
var monitorWidthRationDelta = 0
|
||||
|
Loading…
Reference in New Issue
Block a user