mirror of https://github.com/nextcloud/desktop
Remove commented out code
Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
This commit is contained in:
parent
99457e8c38
commit
f4bf4da44d
|
@ -24,10 +24,6 @@ ColumnLayout {
|
|||
spacing: 0
|
||||
property NC.UserStatusSelectorModel userStatusSelectorModel
|
||||
|
||||
FontMetrics {
|
||||
id: metrics
|
||||
}
|
||||
|
||||
Text {
|
||||
Layout.topMargin: 16
|
||||
Layout.leftMargin: 8
|
||||
|
@ -108,8 +104,8 @@ ColumnLayout {
|
|||
Layout.fillWidth: true
|
||||
|
||||
Button {
|
||||
Layout.preferredWidth: userStatusMessageTextField.height // metrics.height * 2
|
||||
Layout.preferredHeight: userStatusMessageTextField.height // metrics.height * 2
|
||||
Layout.preferredWidth: userStatusMessageTextField.height
|
||||
Layout.preferredHeight: userStatusMessageTextField.height
|
||||
text: userStatusSelectorModel.userStatusEmoji
|
||||
onClicked: emojiDialog.open()
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ import QtQuick 2.15
|
|||
|
||||
import com.nextcloud.desktopclient 1.0
|
||||
|
||||
Item {
|
||||
QtObject {
|
||||
readonly property int pixelSize: fontMetrics.font.pixelSize
|
||||
|
||||
// Colors
|
||||
|
@ -74,11 +74,9 @@ Item {
|
|||
readonly property string unifiedSearchResulTitleColor: "black"
|
||||
readonly property string unifiedSearchResulSublineColor: "grey"
|
||||
|
||||
readonly property var fontMetrics: FontMetrics {}
|
||||
|
||||
function variableSize(size) {
|
||||
return size * (1 + Math.min(pixelSize / 100, 1));
|
||||
}
|
||||
|
||||
FontMetrics {
|
||||
id: fontMetrics
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue