This commit is contained in:
end-4
2025-05-05 01:13:41 +02:00
parent e02875890b
commit 94ef226b92
8 changed files with 620 additions and 19 deletions
@@ -2,6 +2,7 @@ import "root:/"
import "root:/services"
import "root:/modules/common"
import "root:/modules/common/widgets"
import "../"
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
@@ -21,10 +22,6 @@ Rectangle {
property string downloadPath
property string nsfwPath
onResponseDataChanged: {
console.log("Response data changed:", responseData)
}
property real availableWidth: parent.width ?? 0
property real rowTooShortThreshold: 185
property real imageSpacing: 5
@@ -126,7 +123,7 @@ Rectangle {
id: tagRepeater
model: root.responseData.tags
BooruTagButton {
ApiCommandButton {
Layout.fillWidth: false
buttonText: modelData
onClicked: {
@@ -1,32 +0,0 @@
import "root:/modules/common"
import "root:/modules/common/widgets"
import "root:/services"
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
import Quickshell
import Quickshell.Services.Notifications
Button {
id: button
property string buttonText
implicitHeight: 30
leftPadding: 10
rightPadding: 10
PointingHandInteraction {}
background: Rectangle {
radius: Appearance.rounding.small
color: (button.down ? Appearance.colors.colSurfaceContainerHighestActive :
button.hovered ? Appearance.colors.colSurfaceContainerHighestHover :
Appearance.m3colors.m3surfaceContainerHighest)
}
contentItem: StyledText {
horizontalAlignment: Text.AlignHCenter
text: buttonText
color: Appearance.m3colors.m3onSurface
}
}