-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: attempt to upgrade fluentui to 1.7.5
- Loading branch information
1 parent
f969987
commit 55ae05a
Showing
32 changed files
with
624 additions
and
554 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import FluentUI | ||
import QtQuick | ||
import QtQuick.Controls | ||
import QtQuick.Layouts | ||
import QtQuick.Window | ||
|
||
FluPage { | ||
id: control | ||
|
||
default property alias content: container.data | ||
property alias color: status_view.color | ||
property alias statusMode: status_view.statusMode | ||
property alias loadingText: status_view.loadingText | ||
property alias emptyText: status_view.emptyText | ||
property alias errorText: status_view.errorText | ||
property alias errorButtonText: status_view.errorButtonText | ||
property alias loadingItem: status_view.loadingItem | ||
property alias emptyItem: status_view.emptyItem | ||
property alias errorItem: status_view.errorItem | ||
|
||
signal errorClicked() | ||
|
||
FluStatusLayout { | ||
id: status_view | ||
|
||
color: "#00000000" | ||
statusMode: FluStatusLayoutType.Success | ||
onErrorClicked: control.errorClicked() | ||
|
||
anchors { | ||
left: parent.left | ||
right: parent.right | ||
top: parent.top | ||
bottom: parent.bottom | ||
leftMargin: control.leftPadding | ||
rightMargin: control.rightPadding | ||
bottomMargin: control.bottomPadding | ||
} | ||
|
||
Item { | ||
id: container | ||
|
||
clip: true | ||
anchors.fill: parent | ||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import FluentUI | ||
import QtQuick | ||
import QtQuick.Controls | ||
import QtQuick.Layouts | ||
import QtQuick.Window | ||
|
||
FluPage { | ||
id: control | ||
|
||
default property alias content: container.data | ||
property alias color: status_view.color | ||
property alias statusMode: status_view.statusMode | ||
property alias loadingText: status_view.loadingText | ||
property alias emptyText: status_view.emptyText | ||
property alias errorText: status_view.errorText | ||
property alias errorButtonText: status_view.errorButtonText | ||
property alias loadingItem: status_view.loadingItem | ||
property alias emptyItem: status_view.emptyItem | ||
property alias errorItem: status_view.errorItem | ||
|
||
signal errorClicked() | ||
|
||
FluStatusLayout { | ||
id: status_view | ||
|
||
color: "#00000000" | ||
statusMode: FluStatusLayoutType.Success | ||
onErrorClicked: control.errorClicked() | ||
|
||
anchors { | ||
left: parent.left | ||
right: parent.right | ||
top: parent.top | ||
bottom: parent.bottom | ||
bottomMargin: control.bottomPadding | ||
} | ||
|
||
Flickable { | ||
id: flickview | ||
|
||
clip: true | ||
anchors.fill: parent | ||
contentWidth: parent.width | ||
contentHeight: container.height | ||
boundsBehavior: Flickable.StopAtBounds | ||
|
||
ColumnLayout { | ||
id: container | ||
|
||
spacing: control.spacing | ||
clip: true | ||
width: parent.width | ||
|
||
anchors { | ||
left: parent.left | ||
right: parent.right | ||
top: parent.top | ||
leftMargin: control.leftPadding | ||
rightMargin: control.rightPadding | ||
} | ||
|
||
} | ||
|
||
ScrollBar.vertical: FluScrollBar { | ||
anchors.right: flickview.right | ||
anchors.rightMargin: 2 | ||
} | ||
|
||
} | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.