responsive size fixes #32
|
@ -13,9 +13,8 @@ Item {
|
||||||
property alias badgeColor: badge.color
|
property alias badgeColor: badge.color
|
||||||
|
|
||||||
property int size: Theme.contactPortraitSize
|
property int size: Theme.contactPortraitSize
|
||||||
property real logscale: 4 * Math.log10(gcd.themeScale + 1)
|
property int baseWidth: size * gcd.themeScale
|
||||||
property int baseWidth: size * logscale
|
height: size * gcd.themeScale
|
||||||
height: size * logscale
|
|
||||||
|
|
||||||
property alias portraitBorderColor: mainImage.color
|
property alias portraitBorderColor: mainImage.color
|
||||||
property alias portraitColor: imageInner.color
|
property alias portraitColor: imageInner.color
|
||||||
|
|
|
@ -3,6 +3,7 @@ import QtQuick.Controls 2.4
|
||||||
import QtQuick.Controls.Material 2.0
|
import QtQuick.Controls.Material 2.0
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
import QtQuick.Controls 1.4
|
import QtQuick.Controls 1.4
|
||||||
|
import "theme"
|
||||||
|
|
||||||
|
|
||||||
GridLayout {
|
GridLayout {
|
||||||
|
@ -10,7 +11,7 @@ GridLayout {
|
||||||
|
|
||||||
// have children ... control weather to stack or row them
|
// have children ... control weather to stack or row them
|
||||||
// n * minWidth determin
|
// n * minWidth determin
|
||||||
property int minCellWidth: 500
|
property int minCellWidth: Theme.sidePaneMinSize * gcd.themeScale
|
||||||
|
|
||||||
|
|
||||||
onWidthChanged: resizeCheck()
|
onWidthChanged: resizeCheck()
|
||||||
|
|
|
@ -106,7 +106,7 @@ Item {
|
||||||
readonly property int contactPortraitSize: 75
|
readonly property int contactPortraitSize: 75
|
||||||
|
|
||||||
readonly property int sidePaneMinSize: 700
|
readonly property int sidePaneMinSize: 700
|
||||||
readonly property int doublePaneMinSize: 1000
|
readonly property int doublePaneMinSize: 1400
|
||||||
|
|
||||||
property ThemeType dark: CwtchDark{}
|
property ThemeType dark: CwtchDark{}
|
||||||
property ThemeType light: CwtchLight{}
|
property ThemeType light: CwtchLight{}
|
||||||
|
|
Loading…
Reference in New Issue