SettingsPanel: better var naming
This commit is contained in:
parent
de32b86f7c
commit
9a4317739b
1 changed files with 6 additions and 6 deletions
|
|
@ -12,14 +12,14 @@ NPanel {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
panelWidth: {
|
panelWidth: {
|
||||||
var width = Math.round(Math.max(screen?.width * 0.4, 1000) * scaling)
|
var w = Math.round(Math.max(screen?.width * 0.4, 1000) * scaling)
|
||||||
width = Math.min(width, screen?.width - Style.marginL * 2)
|
w = Math.min(w, screen?.width - Style.marginL * 2)
|
||||||
return width
|
return w
|
||||||
}
|
}
|
||||||
panelHeight: {
|
panelHeight: {
|
||||||
var height = Math.round(Math.max(screen?.height * 0.75, 800) * scaling)
|
var h = Math.round(Math.max(screen?.height * 0.75, 800) * scaling)
|
||||||
height = Math.min(height, screen?.height - Style.barHeight * scaling - Style.marginL * 2)
|
h = Math.min(h, screen?.height - Style.barHeight * scaling - Style.marginL * 2)
|
||||||
return height
|
return h
|
||||||
}
|
}
|
||||||
panelAnchorHorizontalCenter: true
|
panelAnchorHorizontalCenter: true
|
||||||
panelAnchorVerticalCenter: true
|
panelAnchorVerticalCenter: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue