diff --git a/applets/notes/package/contents/ui/main.qml b/applets/notes/package/contents/ui/main.qml --- a/applets/notes/package/contents/ui/main.qml +++ b/applets/notes/package/contents/ui/main.qml @@ -348,16 +348,16 @@ right: parent.right } + opacity: focusScope.activeFocus ? 1 : 0 + Behavior on opacity { NumberAnimation { duration: units.longDuration } } + readonly property int requiredWidth: formatButtonsRow.width + spacing + settingsButton.width readonly property bool showFormatButtons: width > requiredWidth Row { id: formatButtonsRow spacing: units.smallSpacing // show format buttons if TextField or any of the buttons have focus - opacity: fontButtons.showFormatButtons && focusScope.activeFocus ? 1 : 0 - - Behavior on opacity { NumberAnimation { duration: units.longDuration } } enabled: opacity > 0 visible: fontButtons.showFormatButtons