2019-12-19 07:46:16 -04:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
|
2019-07-16 12:37:11 -04:00
|
|
|
import QtQuick 2.12
|
|
|
|
import QtQuick.Controls 2.12
|
|
|
|
|
2019-12-08 14:43:41 -04:00
|
|
|
Page {
|
2020-06-05 05:42:12 -04:00
|
|
|
padding: currentSpacing < theme.spacing ? 0 : currentSpacing
|
2020-03-11 10:45:47 -04:00
|
|
|
background: null
|
2019-12-08 14:43:41 -04:00
|
|
|
|
2019-07-16 12:53:52 -04:00
|
|
|
|
2020-06-05 05:42:12 -04:00
|
|
|
property bool useVariableSpacing: true
|
|
|
|
|
2019-07-16 12:37:11 -04:00
|
|
|
property int currentSpacing:
|
2020-06-05 05:42:12 -04:00
|
|
|
useVariableSpacing ?
|
2020-06-25 08:32:08 -04:00
|
|
|
Math.min(
|
|
|
|
theme.spacing * width / 400,
|
|
|
|
theme.spacing * height / 400,
|
|
|
|
theme.spacing,
|
|
|
|
) :
|
2020-06-05 05:42:12 -04:00
|
|
|
theme.spacing
|
2019-07-16 12:37:11 -04:00
|
|
|
|
|
|
|
|
2020-06-05 05:42:12 -04:00
|
|
|
Behavior on padding { HNumberAnimation {} }
|
2019-07-16 12:37:11 -04:00
|
|
|
}
|