mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 20:08:28 +00:00
* Fix focus on first relevant element after changing page with navbar #LINQT-2202 * Improve focus navigation on call history list #LINQT-2201 * Fix missing accessible button name in dialer #LINQT-2221 * Switch from ScrollView to Flickable in parameters * Add auto scroll on keyboard navigation in settings #LINQT-2219 * Correct back button in settings #LINQT-2209 * Fix focus when open settings page #LINQT-2208 * Arrow in vertical tab bar now change button focus instead of changing page #LINQT-2194 * Fix focus and accessibility label in magic search bar #LINQT-2205
42 lines
1.5 KiB
QML
42 lines
1.5 KiB
QML
import QtQuick
|
|
import QtQuick.Effects
|
|
import QtQuick.Layouts
|
|
import Linphone
|
|
import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
|
|
import "qrc:/qt/qml/Linphone/view/Control/Tool/Helper/utils.js" as Utils
|
|
|
|
Button {
|
|
id: mainItem
|
|
icon.width: Utils.getSizeWithScreenRatio(24)
|
|
icon.height: Utils.getSizeWithScreenRatio(24)
|
|
textSize: Typography.p1.pixelSize
|
|
textWeight: Typography.p1.weight
|
|
radius: Utils.getSizeWithScreenRatio(5)
|
|
shadowEnabled: mainItem.activeFocus || hovered
|
|
style: ButtonStyle.hoveredBackground
|
|
|
|
background: Rectangle {
|
|
anchors.fill: parent
|
|
radius: mainItem.radius
|
|
color: mainItem.pressed
|
|
? mainItem.pressedColor
|
|
: mainItem.hovered || mainItem.hasNavigationFocus
|
|
? mainItem.hoveredColor
|
|
: mainItem.color
|
|
border.color: mainItem.keyboardFocus ? mainItem.keyboardFocusedBorderColor : mainItem.borderColor
|
|
border.width: mainItem.keyboardFocus ? mainItem.keyboardFocusedBorderWidth : mainItem.borderWidth
|
|
}
|
|
|
|
contentItem: EffectImage {
|
|
imageSource: mainItem.icon.source
|
|
imageWidth: mainItem.icon.width
|
|
imageHeight: mainItem.icon.height
|
|
colorizationColor: mainItem.pressed
|
|
? mainItem.pressedImageColor
|
|
: mainItem.hovered
|
|
? mainItem.hoveredImageColor
|
|
: mainItem.contentImageColor
|
|
Layout.preferredWidth: mainItem.icon.width
|
|
Layout.preferredHeight: mainItem.icon.height
|
|
}
|
|
}
|