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