diff --git a/lib_source/qml/Qt5/RibbonCheckBox.qml b/lib_source/qml/Qt5/RibbonCheckBox.qml index dc32d53..58390a0 100644 --- a/lib_source/qml/Qt5/RibbonCheckBox.qml +++ b/lib_source/qml/Qt5/RibbonCheckBox.qml @@ -12,13 +12,13 @@ Button { checkable: true property bool isDarkMode: RibbonTheme.isDarkMode - property int btnSize: 20 + property int btnSize: 16 property string borderColor: isDarkMode ? "white" : "black" property real borderWidth: 1.4 property string iconColor: "white" property string iconFilledBgColor: "#2143AB" property string textColor: isDarkMode ? "white" : "black" - property int textSize: 11 + property int textSize: 12 property bool textBold: false property bool textOnLeft: false property bool showTooltip: false @@ -43,12 +43,12 @@ Button { color: control.borderColor width: control.borderWidth } - radius: 4.5 + radius: 0.225 * btnSize Rectangle{ id: bg_fill anchors.fill: parent scale: control.hovered || control.pressed ? 0.6 : 1.05 - radius: 4.5 + radius: 0.225 * btnSize color: !control.pressed?control.iconFilledBgColor:Qt.darker(control.iconFilledBgColor) visible: control.hovered || control.pressed || control.checked Behavior on scale{ diff --git a/lib_source/qml/Qt5/RibbonSwitchButton.qml b/lib_source/qml/Qt5/RibbonSwitchButton.qml index d8e6e06..ed8be93 100644 --- a/lib_source/qml/Qt5/RibbonSwitchButton.qml +++ b/lib_source/qml/Qt5/RibbonSwitchButton.qml @@ -15,7 +15,7 @@ Button { property bool showGrabberText: true property string grabberText: control.checked ? qsTr("Open") : qsTr("Close") property string textColor: isDarkMode ? "white" : "black" - property int textSize: 11 + property int textSize: 12 property string grabberCheckedColor: isDarkMode ? "#8AAAEB" : "#2850A4" property string grabberUncheckedColor: isDarkMode ? "#292929" : "white" property string grabberTextCheckedColor: isDarkMode ? "black" : "white" diff --git a/lib_source/qml/Qt6/RibbonCheckBox.qml b/lib_source/qml/Qt6/RibbonCheckBox.qml index 1a709d8..0ecf762 100644 --- a/lib_source/qml/Qt6/RibbonCheckBox.qml +++ b/lib_source/qml/Qt6/RibbonCheckBox.qml @@ -12,13 +12,13 @@ Button { checkable: true property bool isDarkMode: RibbonTheme.isDarkMode - property int btnSize: 20 + property int btnSize: 16 property string borderColor: isDarkMode ? "white" : "black" property real borderWidth: 1.4 property string iconColor: "white" property string iconFilledBgColor: "#2143AB" property string textColor: isDarkMode ? "white" : "black" - property int textSize: 11 + property int textSize: 12 property bool textBold: false property bool textOnLeft: false property bool showTooltip: false @@ -43,12 +43,12 @@ Button { color: control.borderColor width: control.borderWidth } - radius: 4.5 + radius: 0.225 * btnSize Rectangle{ id: bg_fill anchors.fill: parent scale: control.hovered || control.pressed ? 0.6 : 1.05 - radius: 4.5 + radius: 0.225 * btnSize color: !control.pressed?control.iconFilledBgColor:Qt.darker(control.iconFilledBgColor) visible: control.hovered || control.pressed || control.checked Behavior on scale{ diff --git a/lib_source/qml/Qt6/RibbonSwitchButton.qml b/lib_source/qml/Qt6/RibbonSwitchButton.qml index 6163739..e46bc40 100644 --- a/lib_source/qml/Qt6/RibbonSwitchButton.qml +++ b/lib_source/qml/Qt6/RibbonSwitchButton.qml @@ -15,7 +15,7 @@ Button { property bool showGrabberText: true property string grabberText: control.checked ? qsTr("Open") : qsTr("Close") property string textColor: isDarkMode ? "white" : "black" - property int textSize: 11 + property int textSize: 12 property string grabberCheckedColor: isDarkMode ? "#8AAAEB" : "#2850A4" property string grabberUncheckedColor: isDarkMode ? "#292929" : "white" property string grabberTextCheckedColor: isDarkMode ? "black" : "white"