responsive size fixes #32

Merged
erinn merged 2 commits from responsiveFix into master 2020-12-02 23:03:29 +00:00
3 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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()

View File

@ -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{}