chore: remove unnecessary splitview props

This commit is contained in:
Pascal Precht 2021-04-14 17:13:34 +02:00 committed by Pascal Precht
parent 0832cef36b
commit 63bc6f0e53
5 changed files with 3 additions and 51 deletions

View File

@ -30,8 +30,6 @@ SplitView {
Loader { Loader {
id: contactColumnLoader id: contactColumnLoader
SplitView.preferredWidth: Style.current.leftTabPreferredSize SplitView.preferredWidth: Style.current.leftTabPreferredSize
SplitView.minimumWidth: Style.current.leftTabMinimumWidth
SplitView.maximumWidth: Style.current.leftTabMaximumWidth
sourceComponent: appSettings.communitiesEnabled && chatsModel.communities.activeCommunity.active ? communtiyColumnComponent : contactsColumnComponent sourceComponent: appSettings.communitiesEnabled && chatsModel.communities.activeCommunity.active ? communtiyColumnComponent : contactsColumnComponent
} }

View File

@ -28,9 +28,7 @@ SplitView {
LeftTab { LeftTab {
id: leftTab id: leftTab
SplitView.preferredWidth: Style.current.leftTabPrefferedSize SplitView.preferredWidth: Style.current.leftTabPreferredSize
SplitView.minimumWidth: Style.current.leftTabMinimumWidth
SplitView.maximumWidth: Style.current.leftTabMaximumWidth
} }
StackLayout { StackLayout {

View File

@ -38,9 +38,7 @@ ColumnLayout {
LeftTab { LeftTab {
id: leftTab id: leftTab
SplitView.preferredWidth: Style.current.leftTabPrefferedSize SplitView.preferredWidth: Style.current.leftTabPreferredSize
SplitView.minimumWidth: Style.current.leftTabMinimumWidth
SplitView.maximumWidth: Style.current.leftTabMaximumWidth
} }
Item { Item {

View File

@ -1,40 +0,0 @@
pragma Singleton
import QtQuick 2.13
QtObject {
property QtObject fontMedium: FontLoader { id: _fontMedium; source: "../fonts/InterStatus/InterStatus-Medium.otf"; }
property QtObject fontBold: FontLoader { id: _fontBold; source: "../fonts/InterStatus/InterStatus-Bold.otf"; }
property QtObject fontLight: FontLoader { id: _fontLight; source: "../fonts/InterStatus/InterStatus-Light.otf"; }
property QtObject fontRegular: FontLoader { id: _fontRegular; source: "../fonts/InterStatus/InterStatus-Regular.otf"; }
readonly property color white: "#FFFFFF"
readonly property color white2: "#FCFCFC"
readonly property color black: "#000000"
readonly property color grey: "#EEF2F5"
readonly property color lightBlue: "#ECEFFC"
readonly property color cyan: "#00FFFF"
readonly property color blue: "#4360DF"
readonly property color transparent: "#00000000"
readonly property color darkGrey: "#939BA1"
readonly property color darkerGrey: "#717171"
readonly property color evenDarkerGrey: "#4C4C4C"
readonly property color lightBlueText: "#8f9fec"
readonly property color darkBlue: "#3c55c9"
readonly property color darkBlueBtn: "#5a70dd"
readonly property color red: "#FF2D55"
readonly property color lightRed: "#FFEAEE"
readonly property color green: "#4EBC60"
readonly property color turquoise: "#007b7d"
readonly property int xlPadding: 32
readonly property int bigPadding: 24
readonly property int padding: 16
readonly property int smallPadding: 10
readonly property int radius: 8
readonly property int leftTabPrefferedSize: 340
readonly property int leftTabMinimumWidth: 300
readonly property int leftTabMaximumWidth: 500
}

View File

@ -77,9 +77,7 @@ QtObject {
property int smallPadding: 10 property int smallPadding: 10
property int radius: 8 property int radius: 8
property int leftTabPrefferedSize: 304 property int leftTabPreferredSize: 304
property int leftTabMinimumWidth: 300
property int leftTabMaximumWidth: 425
property int primaryTextFontSize: 15 property int primaryTextFontSize: 15
property int secondaryTextFontSize: 14 property int secondaryTextFontSize: 14