linphone-desktop/Linphone/view/Item/CheckableButton.qml
Gaelle Braud eb5b3b5141 FIXES :
conf creation loading+error; fix info popup layout
move contact edition in contact page (switch to contact tab if creation requested)
fix contact creation + select new contact on creation
conference info list : creation signal (to finish when conference scheduler is updated, see comment)
fix crash if no vcard
fix calendar ui
+spacings
layout polish (! on string in meetinglist)
2024-04-26 18:27:19 +02:00

28 lines
790 B
QML

import QtQuick 2.15
import QtQuick.Layouts
import QtQuick.Effects
import QtQuick.Controls as Control
import Linphone
Button {
id: mainItem
property string iconUrl
property string checkedIconUrl
property color color: DefaultStyle.grey_500
property color checkedColor: color
property color backgroundColor: mainItem.enabled
? mainItem.pressed || mainItem.checked
? mainItem.checkedColor
: mainItem.color
: DefaultStyle.grey_600
checkable: true
background: Rectangle {
anchors.fill: parent
color: mainItem.backgroundColor
radius: mainItem.width /2
}
icon.source: checkedIconUrl && mainItem.checked ? checkedIconUrl : iconUrl
icon.width: width * 0.58
icon.height: width * 0.58
contentImageColor: enabled ? DefaultStyle.grey_0 : DefaultStyle.grey_500
}