2019-07-08 13:52:41 +10:00
|
|
|
// Copyright 2019 miruka
|
|
|
|
// This file is part of harmonyqml, licensed under LGPLv3.
|
|
|
|
|
2019-07-13 19:39:01 +10:00
|
|
|
import QtQuick 2.12
|
2019-04-28 08:00:28 +10:00
|
|
|
|
2019-05-12 07:51:00 +10:00
|
|
|
HRectangle {
|
2019-04-28 08:00:28 +10:00
|
|
|
property real widthForHeight: 0.75
|
|
|
|
property int baseHeight: 300
|
|
|
|
property int startScalingUpAboveHeight: 1080
|
|
|
|
|
|
|
|
readonly property int baseWidth: baseHeight * widthForHeight
|
|
|
|
readonly property int margins: baseHeight * 0.03
|
|
|
|
|
2019-07-24 16:14:34 +10:00
|
|
|
color: theme.controls.box.background
|
2019-04-28 11:07:20 +10:00
|
|
|
height: Math.min(parent.height, baseHeight)
|
|
|
|
width: Math.min(parent.width, baseWidth)
|
|
|
|
scale: Math.max(1, parent.height / startScalingUpAboveHeight)
|
2019-04-28 08:00:28 +10:00
|
|
|
}
|