import QtQuick 2.15 import QtQuick.Controls 2.15 import Eduport 1.4 Button { id: button horizontalPadding: 12.8 verticalPadding: 6.4 font { family: Eduport.haveRoboto ? "Roboto" : Eduport.robotoMedium.name weight: Font.Medium pointSize: 13 } contentItem: Text { text: button.text font: button.font color: checked ? Eduport.bsGray800 : Eduport.bsBtnColor horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter } background: Rectangle { color: checked ? Eduport.bsBodyBg : Eduport.bsBtnBg radius: 3.2 } }