From 8a8c745d7738b17aa202fc93af0d9cbfc023c2e3 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 8 Jun 2024 10:01:01 -0400 Subject: [PATCH] Use Qt.alpha in ThemeRadioButton This was newly added in Qt6 and simplifies a Qt.rgba call we used here. --- src/settings/ThemeRadioButton.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/ThemeRadioButton.qml b/src/settings/ThemeRadioButton.qml index 09a137ddc..059454f53 100644 --- a/src/settings/ThemeRadioButton.qml +++ b/src/settings/ThemeRadioButton.qml @@ -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; }