This commit is contained in:
朱子楚\zhuzi
2024-03-09 15:35:48 +08:00
parent 2a03f24941
commit 7c0c4cc451
167 changed files with 7567 additions and 1816 deletions

View File

@ -7,7 +7,7 @@ import "../component"
FluContentPage{
title:"Watermark"
title: qsTr("Watermark")
FluArea{
anchors.fill: parent
@ -23,12 +23,12 @@ FluContentPage{
spacing: 10
Layout.topMargin: 14
FluText{
text:"text:"
text: "text:"
Layout.alignment: Qt.AlignVCenter
}
FluTextBox{
id:text_box
text:"会磨刀的小猪"
id: text_box
text: "会磨刀的小猪"
Layout.preferredWidth: 240
}
}
@ -36,11 +36,11 @@ FluContentPage{
RowLayout{
spacing: 10
FluText{
text:"textSize:"
text: "textSize:"
Layout.alignment: Qt.AlignVCenter
}
FluSlider{
id:slider_text_size
id: slider_text_size
value: 20
from: 13
to:50
@ -49,7 +49,7 @@ FluContentPage{
RowLayout{
spacing: 10
FluText{
text:"gapX:"
text: "gapX:"
Layout.alignment: Qt.AlignVCenter
}
FluSlider{
@ -60,18 +60,18 @@ FluContentPage{
RowLayout{
spacing: 10
FluText{
text:"gapY:"
text: "gapY:"
Layout.alignment: Qt.AlignVCenter
}
FluSlider{
id:slider_gap_y
id: slider_gap_y
value: 100
}
}
RowLayout{
spacing: 10
FluText{
text:"offsetX:"
text: "offsetX:"
Layout.alignment: Qt.AlignVCenter
}
FluSlider{
@ -82,22 +82,22 @@ FluContentPage{
RowLayout{
spacing: 10
FluText{
text:"offsetY:"
text: "offsetY:"
Layout.alignment: Qt.AlignVCenter
}
FluSlider{
id:slider_offset_y
id: slider_offset_y
value: 50
}
}
RowLayout{
spacing: 10
FluText{
text:"rotate:"
text: "rotate:"
Layout.alignment: Qt.AlignVCenter
}
FluSlider{
id:slider_rotate
id: slider_rotate
value: 22
from: 0
to:360
@ -106,18 +106,18 @@ FluContentPage{
RowLayout{
spacing: 10
FluText{
text:"textColor:"
text: "textColor:"
Layout.alignment: Qt.AlignVCenter
}
FluColorPicker{
id:color_picker
id: color_picker
current: Qt.rgba(0,0,0,0.1)
}
}
}
FluWatermark{
id:water_mark
id: water_mark
anchors.fill: parent
text:text_box.text
textColor: color_picker.current