forked from Shinonome/dots-hyprland
sidebar: ai: make loading indicator transition smoother, disable text fade by default
This commit is contained in:
@@ -415,7 +415,7 @@ Singleton {
|
||||
property int delay: 300 // Delay before sending request. Reduces (potential) rate limits and lag.
|
||||
}
|
||||
property JsonObject ai: JsonObject {
|
||||
property bool textFadeIn: true
|
||||
property bool textFadeIn: false
|
||||
}
|
||||
property JsonObject booru: JsonObject {
|
||||
property bool allowNsfw: false
|
||||
|
||||
@@ -269,9 +269,13 @@ Rectangle {
|
||||
|
||||
Item {
|
||||
Layout.fillWidth: true
|
||||
implicitHeight: loadingIndicatorLoader.implicitHeight
|
||||
implicitHeight: loadingIndicatorLoader.shown ? loadingIndicatorLoader.implicitHeight : 0
|
||||
implicitWidth: loadingIndicatorLoader.implicitWidth
|
||||
visible: loadingIndicatorLoader.visible
|
||||
visible: implicitHeight > 0
|
||||
|
||||
Behavior on implicitHeight {
|
||||
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
|
||||
}
|
||||
FadeLoader {
|
||||
id: loadingIndicatorLoader
|
||||
anchors.centerIn: parent
|
||||
|
||||
Reference in New Issue
Block a user