diff --git a/src/controls/RoundImageButton.qml b/src/controls/RoundImageButton.qml index 275a127..5bbe9db 100644 --- a/src/controls/RoundImageButton.qml +++ b/src/controls/RoundImageButton.qml @@ -33,9 +33,9 @@ Item { property alias background: _background property color backgroundColor: "transparent" property color hoveredColor: FishUI.Theme.darkMode ? Qt.lighter(FishUI.Theme.backgroundColor, 2) - : Qt.darker(FishUI.Theme.backgroundColor, 1.2) + : Qt.darker(FishUI.Theme.backgroundColor, 1.1) property color pressedColor: FishUI.Theme.darkMode ? Qt.lighter(FishUI.Theme.backgroundColor, 1.5) - : Qt.darker(FishUI.Theme.backgroundColor, 1.3) + : Qt.darker(FishUI.Theme.backgroundColor, 1.2) property alias source: _image.source property alias image: _image signal clicked() diff --git a/src/fish-style/Button.qml b/src/fish-style/Button.qml index f65d03c..eaac97e 100644 --- a/src/fish-style/Button.qml +++ b/src/fish-style/Button.qml @@ -49,7 +49,7 @@ T.Button implicitHeight: FishUI.Units.iconSizes.medium + FishUI.Units.smallSpacing Rectangle { - id: _border + id: _background anchors.fill: parent radius: FishUI.Theme.mediumRadius border.width: 1 diff --git a/src/fish-style/SwitchIndicator.qml b/src/fish-style/SwitchIndicator.qml index 38f51bb..73df20b 100644 --- a/src/fish-style/SwitchIndicator.qml +++ b/src/fish-style/SwitchIndicator.qml @@ -33,11 +33,13 @@ Item { height: 16 radius: width / 2 color: control.enabled ? "white" : "transparent" + Behavior on x { enabled: !control.pressed - SmoothedAnimation { - duration: 300 - easing.type: Easing.InOutCubic + + NumberAnimation { + duration: 250 + easing.type: Easing.OutSine } } } diff --git a/src/fish-style/style.qrc b/src/fish-style/style.qrc index 297f81e..e46849a 100644 --- a/src/fish-style/style.qrc +++ b/src/fish-style/style.qrc @@ -12,6 +12,8 @@ RadioButton.qml RadioIndicator.qml Slider.qml + Switch.qml + SwitchIndicator.qml TabBar.qml TabButton.qml TextArea.qml