From d7e3be861f25b66b425587880171b4a7f7fd7eba Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 7 Aug 2025 17:05:45 +1000 Subject: internal: fix transparent transitions --- components/controls/StyledRadioButton.qml | 2 +- components/filedialog/FolderContents.qml | 2 +- components/filedialog/Sidebar.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'components') diff --git a/components/controls/StyledRadioButton.qml b/components/controls/StyledRadioButton.qml index 73fc836..7a44baa 100644 --- a/components/controls/StyledRadioButton.qml +++ b/components/controls/StyledRadioButton.qml @@ -36,7 +36,7 @@ RadioButton { implicitHeight: 8 radius: Appearance.rounding.full - color: root.checked ? Colours.palette.m3primary : "transparent" + color: Qt.alpha(Colours.palette.m3primary, root.checked ? 1 : 0) } Behavior on border.color { diff --git a/components/filedialog/FolderContents.qml b/components/filedialog/FolderContents.qml index 45930ba..57500c8 100644 --- a/components/filedialog/FolderContents.qml +++ b/components/filedialog/FolderContents.qml @@ -124,7 +124,7 @@ Item { implicitHeight: nonAnimHeight radius: Appearance.rounding.normal - color: GridView.isCurrentItem ? Colours.palette.m3surfaceContainerHighest : "transparent" + color: Qt.alpha(Colours.palette.m3surfaceContainerHighest, GridView.isCurrentItem ? 1 : 0) z: GridView.isCurrentItem || implicitHeight !== nonAnimHeight ? 1 : 0 clip: true diff --git a/components/filedialog/Sidebar.qml b/components/filedialog/Sidebar.qml index 82a1dd5..173b429 100644 --- a/components/filedialog/Sidebar.qml +++ b/components/filedialog/Sidebar.qml @@ -48,7 +48,7 @@ StyledRect { implicitHeight: placeInner.implicitHeight + Appearance.padding.normal * 2 radius: Appearance.rounding.full - color: selected ? Colours.palette.m3secondaryContainer : "transparent" + color: Qt.alpha(Colours.palette.m3secondaryContainer, selected ? 1 : 0) StateLayer { color: place.selected ? Colours.palette.m3onSecondaryContainer : Colours.palette.m3onSurface -- cgit v1.2.3-freya