mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
- button style + icons - try to fix mac text edition error - disabled color considering lightness - fix #LINQT-1524 avatar secured border - fix #LINQT-1525 padding add participant form - fix #LINQT-1537 more options menu in call - fix #LINQT-1538 floating header in parameters - fix #LINQT-1539 display name in conf info participants list - fix #LINQT-1462 rm waiting time
37 lines
1 KiB
QML
37 lines
1 KiB
QML
import QtQuick
|
|
import QtQml
|
|
import QtQuick.Layouts
|
|
import QtQuick.Effects
|
|
import QtQuick.Controls.Basic as Control
|
|
import Linphone
|
|
|
|
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
|
|
background: Rectangle {
|
|
anchors.fill: parent
|
|
color: mainItem.backgroundColor
|
|
radius: mainItem.width /2
|
|
Rectangle {
|
|
anchors.fill: parent
|
|
visible: !mainItem.enabled
|
|
opacity: 0.2
|
|
color: DefaultStyle.grey_600
|
|
}
|
|
}
|
|
icon.source: checkedIconUrl && mainItem.checked ? checkedIconUrl : iconUrl
|
|
icon.width: width * 0.58
|
|
icon.height: width * 0.58
|
|
contentImageColor: style?.image?.normal || DefaultStyle.grey_0
|
|
}
|