-
- add an outline on the item that have the active focus - override only after a tab key press GitLab: #1082 Change-Id: Ib549052e0fa2fe6d781df6980ce662919925c473
- add an outline on the item that have the active focus - override only after a tab key press GitLab: #1082 Change-Id: Ib549052e0fa2fe6d781df6980ce662919925c473
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
MarkdownPopup.qml 2.65 KiB
/*
* Copyright (C) 2023 Savoir-faire Linux Inc.
* Author: Franck Laurent <nicolas.vengeon@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import Qt.labs.platform
import Qt5Compat.GraphicalEffects
import net.jami.Models 1.1
import net.jami.Adapters 1.1
import net.jami.Constants 1.1
import "../mainview/components"
Popup {
id: root
padding: 0
property list<Action> menuTypoActionsSecond
contentItem: ListView {
id: listViewTypoSecond
width: contentWidth + leftMargin
height: JamiTheme.chatViewFooterButtonSize
orientation: ListView.Horizontal
interactive: false
leftMargin: 10
spacing: 10
Rectangle {
anchors.fill: parent
color: JamiTheme.chatViewFooterListColor
radius: 5
z: -1
}
model: menuTypoActionsSecond
delegate: PushButton {
anchors.verticalCenter: parent.verticalCenter
preferredSize: JamiTheme.chatViewFooterRealButtonSize
imageContainerWidth: 20
imageContainerHeight: 20
radius: 5
toolTipText: modelData.toolTip
source: modelData.iconSrc
focusPolicy: Qt.TabFocus
normalColor: JamiTheme.chatViewFooterListColor
imageColor: JamiTheme.chatViewFooterImgColor
hoveredColor: JamiTheme.showMoreButtonOpenColor
pressedColor: hoveredColor
action: modelData
}
}
background: Rectangle {
anchors.fill: parent
color: JamiTheme.chatViewFooterListColor
radius: 5
z: -1
}
enter: Transition {
NumberAnimation {
properties: "opacity"
from: 0.0
to: 1.0
duration: JamiTheme.shortFadeDuration
}
}
exit: Transition {
NumberAnimation {
properties: "opacity"
from: 1.0
to: 0.0
duration: JamiTheme.shortFadeDuration
}
}
}