diff --git a/resources/icons/content_copy_24dp.svg b/resources/icons/content_copy_24dp.svg index 844a4f99e3b029e42c2d8b4ce4055d1ca55a5fb2..d220c32c9a570271c84a2c40b4c8e3af16089f1c 100644 --- a/resources/icons/content_copy_24dp.svg +++ b/resources/icons/content_copy_24dp.svg @@ -1 +1,9 @@ -<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg> \ No newline at end of file +<?xml version="1.0" encoding="utf-8"?> +<!-- Generator: Adobe Illustrator 24.3.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> +<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" + viewBox="0 0 24 24" style="enable-background:new 0 0 24 24;" xml:space="preserve"> +<path d="M20.4,2.2H8.5c-0.9,0-1.6,0.7-1.6,1.6v2.9H3.6C2.7,6.7,2,7.4,2,8.3v11.9c0,0.9,0.7,1.6,1.6,1.6h11.9c0.9,0,1.6-0.7,1.6-1.6 + v-2.9h3.3c0.9,0,1.6-0.7,1.6-1.6V3.8C22,2.9,21.3,2.2,20.4,2.2z M15.8,20.2c0,0.2-0.1,0.3-0.3,0.3H3.6c-0.2,0-0.3-0.1-0.3-0.3V8.3 + C3.3,8.2,3.4,8,3.6,8h11.9c0.2,0,0.3,0.1,0.3,0.3V20.2z M20.7,15.7c0,0.2-0.1,0.3-0.3,0.3h-3.3V8.3c0-0.9-0.7-1.6-1.6-1.6H8.2V3.8 + c0-0.2,0.1-0.3,0.3-0.3h11.9c0.2,0,0.3,0.1,0.3,0.3V15.7z"/> +</svg> \ No newline at end of file diff --git a/src/app/commoncomponents/EditableLineEdit.qml b/src/app/commoncomponents/EditableLineEdit.qml index 5bcca2eb77d23eb05b3b64421c9eb637a1a2da3e..ed99f1a4ef0c46f934a270a08e57b863229acb29 100644 --- a/src/app/commoncomponents/EditableLineEdit.qml +++ b/src/app/commoncomponents/EditableLineEdit.qml @@ -37,8 +37,6 @@ Item { property alias underlined: lineEdit.underlined property alias wrapMode: lineEdit.wrapMode property alias padding: lineEdit.padding - property alias fieldLayoutWidth: lineEdit.fieldLayoutWidth - property alias fieldLayoutHeight: lineEdit.fieldLayoutHeight property alias echoMode: lineEdit.echoMode property string inactiveColor: JamiTheme.tintedBlue property string hoveredColor: "#03B9E9" @@ -161,16 +159,14 @@ Item { id: lineEdit anchors.horizontalCenter: row.horizontalCenter width: row.width - firstIco_.width - thirdIco_.width - secIco_.width - thirdIco_.anchors.rightMargin - height: row.height readOnly: !editable || root.readOnly underlined: true verticalAlignment: Text.AlignBottom borderColor: root.editIconColor - fieldLayoutHeight: row.height placeholderText: readOnly? root.placeholderText : "" - wrapMode: Text.NoWrap + wrapMode: readOnly? TextEdit.WrapAnywhere : TextEdit.NoWrap horizontalAlignment: !readOnly || text !== "" ? Qt.AlignLeft : Qt.AlignHCenter onFocusChanged: function(focus) { diff --git a/src/app/commoncomponents/MaterialLineEdit.qml b/src/app/commoncomponents/MaterialLineEdit.qml index dce122c4fa1470676b83e3d0dd8ab19b6223d2d5..fa881a14793ac5987e6dd8d03de4284e854ba0dc 100644 --- a/src/app/commoncomponents/MaterialLineEdit.qml +++ b/src/app/commoncomponents/MaterialLineEdit.qml @@ -26,8 +26,6 @@ TextField { id: root property int fontSize: JamiTheme.materialLineEditPointSize - property int fieldLayoutWidth: 256 - property int fieldLayoutHeight: 48 property var backgroundColor: JamiTheme.secondaryBackgroundColor property var borderColor: JamiTheme.greyBorderColor diff --git a/src/app/commoncomponents/UsernameLineEdit.qml b/src/app/commoncomponents/UsernameLineEdit.qml index f2553c2d7b31a3b55e993a102f68b2246213639c..3f3afbe35805706f4e7df4fecb7702accaa6b585 100644 --- a/src/app/commoncomponents/UsernameLineEdit.qml +++ b/src/app/commoncomponents/UsernameLineEdit.qml @@ -35,9 +35,6 @@ EditableLineEdit { informationToolTip: JamiStrings.usernameToolTip - fieldLayoutWidth: 200 - fieldLayoutHeight: 50 - enum NameRegistrationState { BLANK, INVALID, diff --git a/src/app/mainview/components/JamiIdentifier.qml b/src/app/mainview/components/JamiIdentifier.qml index 6c2426ab1cb45febedd8943f501d2bf048fe4a56..2cd177284322ef8cfe4d8de1975f161a693cdf22 100644 --- a/src/app/mainview/components/JamiIdentifier.qml +++ b/src/app/mainview/components/JamiIdentifier.qml @@ -46,12 +46,10 @@ Rectangle { Layout.leftMargin: JamiTheme.jamiIdMargins property var minWidth: mainRectangle.width + secondLine.implicitWidth width: Math.max(minWidth, jamiRegisteredNameText.width + 2 * JamiTheme.preferredMarginSize) - height: component.implicitHeight + height: firstLine.implicitHeight + jamiRegisteredNameText.height + 12 color: JamiTheme.secondaryBackgroundColor ColumnLayout { - id: component - RowLayout { id: firstLine Layout.alignment: Qt.AlignTop diff --git a/src/app/mainview/components/NewSwarmPage.qml b/src/app/mainview/components/NewSwarmPage.qml index 1a00870c4c347d0be22ee7b13e855b15aa4fdb3b..1533ad1c37ed909cd6d1a3026679fd85318a7df5 100644 --- a/src/app/mainview/components/NewSwarmPage.qml +++ b/src/app/mainview/components/NewSwarmPage.qml @@ -128,8 +128,6 @@ Rectangle { verticalAlignment: Text.AlignVCenter - fieldLayoutWidth: 10 - placeholderText: JamiStrings.swarmName tooltipText: JamiStrings.swarmName backgroundColor: root.color diff --git a/src/app/mainview/components/SwarmDetailsPanel.qml b/src/app/mainview/components/SwarmDetailsPanel.qml index f8c5b9f308479337cbc00429b6555f0e0d07a433..03f023fe786b18c3fcb23cb41d272d80cbee69a7 100644 --- a/src/app/mainview/components/SwarmDetailsPanel.qml +++ b/src/app/mainview/components/SwarmDetailsPanel.qml @@ -72,9 +72,6 @@ Rectangle { firstIco: JamiResources.round_edit_24dp_svg secondIco: editable ? JamiResources.close_black_24dp_svg : "" - fieldLayoutWidth: 15 - fieldLayoutHeight: 30 - fontSize: 20 borderColor: "transparent" @@ -121,9 +118,6 @@ Rectangle { verticalAlignment: Text.AlignVCenter Layout.preferredWidth: JamiTheme.preferredFieldWidth - fieldLayoutWidth: 15 - fieldLayoutHeight: 30 - fontSize: 16 firstIco: JamiResources.round_edit_24dp_svg diff --git a/src/app/settingsview/components/AccountProfile.qml b/src/app/settingsview/components/AccountProfile.qml index 01283264baa724ea9f1ec7d569b0215bf9039f37..2e9f5a06a594a2fba383d3d1f8664bc10dd269c7 100644 --- a/src/app/settingsview/components/AccountProfile.qml +++ b/src/app/settingsview/components/AccountProfile.qml @@ -76,6 +76,7 @@ ColumnLayout { font.pointSize: JamiTheme.textFontSize font.kerning: true text: CurrentAccount.alias + placeholderText: JamiStrings.enterNickname horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter diff --git a/src/app/settingsview/components/JamiUserIdentity.qml b/src/app/settingsview/components/JamiUserIdentity.qml index 49b718486291026debbbac1614965175e27a341f..9234ca7405a243d3cde5e5d76772b08e6ac3bc7e 100644 --- a/src/app/settingsview/components/JamiUserIdentity.qml +++ b/src/app/settingsview/components/JamiUserIdentity.qml @@ -122,12 +122,7 @@ ColumnLayout { anchors.verticalCenter: parent.verticalCenter height: JamiTheme.preferredFieldHeight - width: { - var maximumWidth = parent.width - lblRegisteredName.width - - JamiTheme.preferredMarginSize - return fieldLayoutWidth < maximumWidth ? - fieldLayoutWidth : maximumWidth - } + width: JamiTheme.preferredFieldWidth padding: 8 horizontalAlignment: CurrentAccount.registeredName === "" ? Text.AlignLeft : diff --git a/src/app/wizardview/components/ProfilePage.qml b/src/app/wizardview/components/ProfilePage.qml index d623cb0255f891f15c92e09f173bc23de58bfc47..d0e013ce3bc01f9335f70bfa17b9780fd896a791 100644 --- a/src/app/wizardview/components/ProfilePage.qml +++ b/src/app/wizardview/components/ProfilePage.qml @@ -129,8 +129,6 @@ Rectangle { property string lastFirstChar - Layout.preferredHeight: fieldLayoutHeight - Layout.preferredWidth: fieldLayoutWidth Layout.alignment: Qt.AlignCenter focus: visible @@ -147,8 +145,6 @@ Rectangle { font.pointSize: JamiTheme.textFontSize font.kerning: true - fieldLayoutWidth: saveProfileBtn.width - KeyNavigation.tab: saveProfileBtn KeyNavigation.down: KeyNavigation.tab