make compact mode the default
This commit is contained in:
parent
e8c169aace
commit
7b5a1660f8
|
@ -35,7 +35,7 @@ ScrollView {
|
||||||
id: chatLogView
|
id: chatLogView
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
anchors.bottomMargin: Style.current.bigPadding
|
anchors.bottomMargin: Style.current.bigPadding
|
||||||
spacing: appSettings.compactMode ? 0 : 4
|
spacing: appSettings.useCompactMode ? 0 : 4
|
||||||
boundsBehavior: Flickable.StopAtBounds
|
boundsBehavior: Flickable.StopAtBounds
|
||||||
flickDeceleration: 10000
|
flickDeceleration: 10000
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
|
@ -154,7 +154,7 @@ Item {
|
||||||
return invitationBubble
|
return invitationBubble
|
||||||
default:
|
default:
|
||||||
return isStatusUpdate ? statusUpdateComponent :
|
return isStatusUpdate ? statusUpdateComponent :
|
||||||
(appSettings.compactMode ? compactMessageComponent : messageComponent)
|
(appSettings.useCompactMode ? compactMessageComponent : messageComponent)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,7 @@ Loader {
|
||||||
anchors.topMargin: 5
|
anchors.topMargin: 5
|
||||||
text: `<style type="text/css">`+
|
text: `<style type="text/css">`+
|
||||||
`a {`+
|
`a {`+
|
||||||
`color: ${isCurrentUser && !appSettings.compactMode ? Style.current.white : Style.current.textColor};`+
|
`color: ${isCurrentUser && !appSettings.useCompactMode ? Style.current.white : Style.current.textColor};`+
|
||||||
`}`+
|
`}`+
|
||||||
`a.mention {`+
|
`a.mention {`+
|
||||||
`color: ${isCurrentUser ? Style.current.cyan : Style.current.turquoise};`+
|
`color: ${isCurrentUser ? Style.current.cyan : Style.current.turquoise};`+
|
||||||
|
|
|
@ -6,7 +6,7 @@ import QtGraphicalEffects 1.0
|
||||||
Item {
|
Item {
|
||||||
property bool longChatText: true
|
property bool longChatText: true
|
||||||
property bool veryLongChatText: chatsModel.plainText(message).length >
|
property bool veryLongChatText: chatsModel.plainText(message).length >
|
||||||
(appSettings.compactMode ? Constants.limitLongChatTextCompactMode : Constants.limitLongChatText)
|
(appSettings.useCompactMode ? Constants.limitLongChatTextCompactMode : Constants.limitLongChatText)
|
||||||
property bool readMore: false
|
property bool readMore: false
|
||||||
property alias textField: chatText
|
property alias textField: chatText
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ Item {
|
||||||
`line-height: 22px;` +
|
`line-height: 22px;` +
|
||||||
`}` +
|
`}` +
|
||||||
`a {` +
|
`a {` +
|
||||||
`color: ${isCurrentUser && !appSettings.compactMode ? Style.current.white : Style.current.textColor};` +
|
`color: ${isCurrentUser && !appSettings.useCompactMode ? Style.current.white : Style.current.textColor};` +
|
||||||
`}` +
|
`}` +
|
||||||
`a.mention {` +
|
`a.mention {` +
|
||||||
`color: ${Style.current.mentionColor};` +
|
`color: ${Style.current.mentionColor};` +
|
||||||
|
|
|
@ -86,9 +86,9 @@ Item {
|
||||||
width: 10
|
width: 10
|
||||||
height: 10
|
height: 10
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: !isCurrentUser || appSettings.compactMode ? parent.left : undefined
|
anchors.left: !isCurrentUser || appSettings.useCompactMode ? parent.left : undefined
|
||||||
anchors.leftMargin: 0
|
anchors.leftMargin: 0
|
||||||
anchors.right: !isCurrentUser || appSettings.compactMode ? undefined : parent.right
|
anchors.right: !isCurrentUser || appSettings.useCompactMode ? undefined : parent.right
|
||||||
anchors.rightMargin: 0
|
anchors.rightMargin: 0
|
||||||
radius: 2
|
radius: 2
|
||||||
z: -1
|
z: -1
|
||||||
|
@ -115,9 +115,9 @@ Item {
|
||||||
width: 10
|
width: 10
|
||||||
height: 10
|
height: 10
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.left: !isCurrentUser || appSettings.compactMode ? parent.left : undefined
|
anchors.left: !isCurrentUser || appSettings.useCompactMode ? parent.left : undefined
|
||||||
anchors.leftMargin: 0
|
anchors.leftMargin: 0
|
||||||
anchors.right: !isCurrentUser || appSettings.compactMode ? undefined : parent.right
|
anchors.right: !isCurrentUser || appSettings.useCompactMode ? undefined : parent.right
|
||||||
anchors.rightMargin: 0
|
anchors.rightMargin: 0
|
||||||
radius: 2
|
radius: 2
|
||||||
z: -1
|
z: -1
|
||||||
|
|
|
@ -140,7 +140,7 @@ Item {
|
||||||
anchors.rightMargin: chatBox.longChatText ? chatBox.chatHorizontalPadding : 0
|
anchors.rightMargin: chatBox.longChatText ? chatBox.chatHorizontalPadding : 0
|
||||||
textField.color: !root.isCurrentUser ? Style.current.textColor : Style.current.currentUserTextColor
|
textField.color: !root.isCurrentUser ? Style.current.textColor : Style.current.currentUserTextColor
|
||||||
Connections {
|
Connections {
|
||||||
target: appSettings.compactMode ? null : chatBox
|
target: appSettings.useCompactMode ? null : chatBox
|
||||||
onLongChatTextChanged: {
|
onLongChatTextChanged: {
|
||||||
chatText.setWidths()
|
chatText.setWidths()
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ Rectangle {
|
||||||
property string image: "../../../img/ens-header-dark@2x.png"
|
property string image: "../../../img/ens-header-dark@2x.png"
|
||||||
property bool hasMentions: false
|
property bool hasMentions: false
|
||||||
property string searchStr: ""
|
property string searchStr: ""
|
||||||
property bool isCompact: appSettings.compactMode
|
property bool isCompact: appSettings.useCompactMode
|
||||||
property bool hovered: false
|
property bool hovered: false
|
||||||
|
|
||||||
id: communityButton
|
id: communityButton
|
||||||
|
|
|
@ -15,7 +15,7 @@ Rectangle {
|
||||||
property bool hasMentions: false
|
property bool hasMentions: false
|
||||||
property int chatType: Constants.chatTypePublic
|
property int chatType: Constants.chatTypePublic
|
||||||
property string searchStr: ""
|
property string searchStr: ""
|
||||||
property bool isCompact: appSettings.compactMode
|
property bool isCompact: appSettings.useCompactMode
|
||||||
property int contentType: 1
|
property int contentType: 1
|
||||||
property bool muted: false
|
property bool muted: false
|
||||||
property bool hovered: false
|
property bool hovered: false
|
||||||
|
|
|
@ -20,10 +20,10 @@ Item {
|
||||||
|
|
||||||
ListView {
|
ListView {
|
||||||
id: chatGroupsListView
|
id: chatGroupsListView
|
||||||
spacing: appSettings.compactMode ? 4 : Style.current.halfPadding
|
spacing: appSettings.useCompactMode ? 4 : Style.current.halfPadding
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
height: childrenRect.height
|
height: childrenRect.height
|
||||||
visible: height > (appSettings.compactMode ? 30 : 50)
|
visible: height > (appSettings.useCompactMode ? 30 : 50)
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
interactive: false
|
interactive: false
|
||||||
|
|
|
@ -192,10 +192,10 @@ ScrollView {
|
||||||
image.source: "../../../img/appearance-normal-light.svg"
|
image.source: "../../../img/appearance-normal-light.svg"
|
||||||
image.height: 186
|
image.height: 186
|
||||||
control.text: qsTr("Normal")
|
control.text: qsTr("Normal")
|
||||||
control.checked: !appSettings.compactMode
|
control.checked: !appSettings.useCompactMode
|
||||||
onRadioCheckedChanged: {
|
onRadioCheckedChanged: {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
appSettings.compactMode = false
|
appSettings.useCompactMode = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -205,10 +205,10 @@ ScrollView {
|
||||||
image.source: "../../../img/appearance-compact-light.svg"
|
image.source: "../../../img/appearance-compact-light.svg"
|
||||||
image.height: 186
|
image.height: 186
|
||||||
control.text: qsTr("Compact")
|
control.text: qsTr("Compact")
|
||||||
control.checked: appSettings.compactMode
|
control.checked: appSettings.useCompactMode
|
||||||
onRadioCheckedChanged: {
|
onRadioCheckedChanged: {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
appSettings.compactMode = true
|
appSettings.useCompactMode = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -99,7 +99,7 @@ ApplicationWindow {
|
||||||
property bool browserEnabled: false
|
property bool browserEnabled: false
|
||||||
property bool displayChatImages: false
|
property bool displayChatImages: false
|
||||||
property bool timelineEnabled: true
|
property bool timelineEnabled: true
|
||||||
property bool compactMode
|
property bool useCompactMode
|
||||||
property string locale: "en"
|
property string locale: "en"
|
||||||
property var recentEmojis: []
|
property var recentEmojis: []
|
||||||
property real volume: 0.2
|
property real volume: 0.2
|
||||||
|
@ -147,7 +147,7 @@ ApplicationWindow {
|
||||||
property bool nodeManagementEnabled: defaultAppSettings.nodeManagementEnabled
|
property bool nodeManagementEnabled: defaultAppSettings.nodeManagementEnabled
|
||||||
property bool browserEnabled: defaultAppSettings.browserEnabled
|
property bool browserEnabled: defaultAppSettings.browserEnabled
|
||||||
property bool displayChatImages: defaultAppSettings.displayChatImages
|
property bool displayChatImages: defaultAppSettings.displayChatImages
|
||||||
property bool compactMode: defaultAppSettings.compactMode
|
property bool useCompactMode: defaultAppSettings.useCompactMode
|
||||||
property bool timelineEnabled: defaultAppSettings.timelineEnabled
|
property bool timelineEnabled: defaultAppSettings.timelineEnabled
|
||||||
property string locale: defaultAppSettings.locale
|
property string locale: defaultAppSettings.locale
|
||||||
property var recentEmojis: defaultAppSettings.recentEmojis
|
property var recentEmojis: defaultAppSettings.recentEmojis
|
||||||
|
|
Loading…
Reference in New Issue