Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
朱子楚\zhuzi committed Feb 23, 2024
1 parent c330dc8 commit a02ee68
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/Qt5/imports/FluentUI/Controls/FluContentDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.NeutralButton
FluButton{
id:neutral_btn
visible: control.buttonFlags&FluContentDialogType.NeutralButton
text: neutralText
width: parent.width
anchors.centerIn: parent
Expand All @@ -121,9 +121,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.NegativeButton
FluButton{
id:negative_btn
visible: control.buttonFlags&FluContentDialogType.NegativeButton
width: parent.width
anchors.centerIn: parent
text: negativeText
Expand All @@ -140,9 +140,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.PositiveButton
FluFilledButton{
id:positive_btn
visible: control.buttonFlags&FluContentDialogType.PositiveButton
text: positiveText
width: parent.width
anchors.centerIn: parent
Expand Down
4 changes: 3 additions & 1 deletion src/Qt5/imports/FluentUI/Controls/FluPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Popup {
id: popup
padding: 0
modal:true
anchors.centerIn: Overlay.overlay
parent: Overlay.overlay
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height - height) / 2)
closePolicy: Popup.CloseOnEscape
enter: Transition {
NumberAnimation {
Expand Down
6 changes: 3 additions & 3 deletions src/Qt6/imports/FluentUI/Controls/FluContentDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.NeutralButton
FluButton{
id:neutral_btn
visible: control.buttonFlags&FluContentDialogType.NeutralButton
text: neutralText
width: parent.width
anchors.centerIn: parent
Expand All @@ -121,9 +121,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.NegativeButton
FluButton{
id:negative_btn
visible: control.buttonFlags&FluContentDialogType.NegativeButton
width: parent.width
anchors.centerIn: parent
text: negativeText
Expand All @@ -140,9 +140,9 @@ FluPopup {
Item{
Layout.fillWidth: true
Layout.fillHeight: true
visible: control.buttonFlags&FluContentDialogType.PositiveButton
FluFilledButton{
id:positive_btn
visible: control.buttonFlags&FluContentDialogType.PositiveButton
text: positiveText
width: parent.width
anchors.centerIn: parent
Expand Down
4 changes: 3 additions & 1 deletion src/Qt6/imports/FluentUI/Controls/FluPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Popup {
id: popup
padding: 0
modal:true
anchors.centerIn: Overlay.overlay
parent: Overlay.overlay
x: Math.round((parent.width - width) / 2)
y: Math.round((parent.height - height) / 2)
closePolicy: Popup.CloseOnEscape
enter: Transition {
NumberAnimation {
Expand Down

0 comments on commit a02ee68

Please sign in to comment.