Use Qt.alpha in ThemeRadioButton

This was newly added in Qt6 and simplifies a Qt.rgba call we used here.

(cherry picked from commit 8a8c745d77)
This commit is contained in:
Joshua Goins
2024-06-08 10:01:01 -04:00
parent f344a8d690
commit c8c26a0b23

View File

@@ -40,7 +40,7 @@ QQC2.RadioButton {
return Kirigami.Theme.highlightColor;
} else if (root.hovered) {
// Match appearance of hovered list items
return Qt.rgba(Kirigami.Theme.highlightColor.r, Kirigami.Theme.highlightColor.g, Kirigami.Theme.highlightColor.b, 0.5);
return Qt.alpha(Kirigami.Theme.highlightColor, 0.5);
} else {
return Kirigami.Theme.backgroundColor;
}