This commit is contained in:
朱子楚\zhuzi
2023-08-12 11:01:40 +08:00
parent 855305f197
commit 0b17d03f23
6 changed files with 29 additions and 34 deletions

View File

@ -25,7 +25,7 @@ FluItem {
}
Rectangle{
anchors.fill: parent
color: Qt.rgba(255, 255, 255, luminosity)
color: Qt.rgba(1, 1, 1, luminosity)
}
Rectangle{
anchors.fill: parent

View File

@ -66,10 +66,6 @@ Item {
}
return data
}
function refreshWindow(){
Window.window.height = Window.window.height-1
Window.window.height = Window.window.height+1
}
}
Component.onCompleted: {
d.displayMode = Qt.binding(function(){
@ -713,11 +709,6 @@ Item {
NumberAnimation{
duration: 167
easing.type: Easing.OutCubic
onRunningChanged: {
if(!running){
d.refreshWindow()
}
}
}
}
Behavior on x {
@ -725,11 +716,6 @@ Item {
NumberAnimation{
duration: 167
easing.type: Easing.OutCubic
onRunningChanged: {
if(!running){
d.refreshWindow()
}
}
}
}
visible: {

View File

@ -90,7 +90,7 @@ Item{
id:com_lable
FluText{
wrapMode: Text.WrapAnywhere
horizontalAlignment: textAlignment
horizontalAlignment: isRight ? Qt.AlignRight : Qt.AlignLeft
text: modelData.lable
color: FluTheme.primaryColor.dark
}
@ -98,13 +98,11 @@ Item{
Component{
id:com_text
FluText{
wrapMode: Text.WrapAnywhere
horizontalAlignment: textAlignment
horizontalAlignment: isRight ? Qt.AlignRight : Qt.AlignLeft
text: modelData.text
}
}
Column{
@ -152,7 +150,7 @@ Item{
Loader{
property var modelData: control.model.get(index)
property int textAlignment: state === "Right" ? Qt.AlignRight : Qt.AlignLeft
property bool isRight: state === "Right"
id:loader_lable
sourceComponent: {
if(!modelData){
@ -223,7 +221,7 @@ Item{
Loader{
id:loader_text
property var modelData: control.model.get(index)
property int textAlignment: state === "Right" ? Qt.AlignRight : Qt.AlignLeft
property bool isRight: state === "Right"
state: {
if(d.isRight){
return "Right"

View File

@ -58,9 +58,18 @@ Popup{
target: d.window
function onWidthChanged(){
canvas.requestPaint()
timer_delay.restart()
}
function onHeightChanged(){
canvas.requestPaint()
timer_delay.restart()
}
}
Timer{
id:timer_delay
interval: 200
onTriggered: {
canvas.requestPaint()
}
}
Canvas{