mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
* Normalize and correct linphone color * Add border when user focus using keyboard navigation * Correct some keyboard navigation * Add accessibility screen reading to interactive elements except chat and meeting
28 lines
929 B
QML
28 lines
929 B
QML
import QtQuick
|
|
import QtQml
|
|
import QtQuick.Layouts
|
|
import QtQuick.Effects
|
|
import QtQuick.Controls.Basic as Control
|
|
import Linphone
|
|
import 'qrc:/qt/qml/Linphone/view/Style/buttonStyle.js' as ButtonStyle
|
|
|
|
Button {
|
|
id: mainItem
|
|
property string iconUrl
|
|
property string checkedIconUrl
|
|
style: ButtonStyle.checkable
|
|
color: style?.color?.normal || DefaultStyle.grey_500
|
|
pressedColor: checkedIconUrl ? color : style?.color?.pressed || DefaultStyle.grey_500
|
|
hoveredColor: checked ? Qt.darker(pressedColor, 1.05) : style?.color?.hovered || DefaultStyle.grey_500
|
|
property color backgroundColor: hovered
|
|
? hoveredColor
|
|
: checked
|
|
? pressedColor
|
|
: color
|
|
checkable: true
|
|
Accessible.role: Accessible.Button
|
|
icon.source: checkedIconUrl && mainItem.checked ? checkedIconUrl : iconUrl
|
|
icon.width: Math.round(width * 0.58)
|
|
icon.height: Math.round(width * 0.58)
|
|
contentImageColor: style?.image?.normal || DefaultStyle.grey_0
|
|
}
|