This commit is contained in:
zhuzichu 2023-04-22 18:18:13 +08:00
parent 9e0050be63
commit e16a8d6b09
14 changed files with 42 additions and 33 deletions

View File

@ -19,8 +19,6 @@ Rectangle{
property color maximizeHoverColor: FluTheme.dark ? Qt.rgba(1,1,1,0.1) : Qt.rgba(0,0,0,0.06)
property color closeNormalColor: Qt.rgba(0,0,0,0)
property color closeHoverColor: Qt.rgba(251/255,115/255,115/255,1)
property bool showDark: false
property color borerlessColor : FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark

View File

@ -3,20 +3,25 @@ import QtQuick.Controls
import FluentUI
FluTextBox{
property var items:[]
property string emptyText: "没有找到结果"
property int autoSuggestBoxReplacement: FluentIcons.Search
signal itemClicked(var data)
signal handleClicked
id:control
width: 300
Component.onCompleted: {
loadData()
}
QtObject{
id:d
property bool flagVisible: true
}
id:control
width: 300
Component.onCompleted: {
loadData()
}
Popup{
id:control_popup
y:control.height

View File

@ -12,9 +12,11 @@ Item {
id:control
width: 400
height: 300
ListModel{
id:content_model
}
FluRectangle{
anchors.fill: parent
radius: [control.radius,control.radius,control.radius,control.radius]

View File

@ -14,7 +14,6 @@ Rectangle {
property bool changeFlag: true
readonly property var rowData: ["","",""]
id:root
color: {
if(mouse_area.containsMouse){

View File

@ -4,13 +4,12 @@ import FluentUI
Item {
id:control
default property alias content: d.children
property alias currentIndex: nav_list.currentIndex
property color normalColor: FluTheme.dark ? FluColors.Grey120 : FluColors.Grey120
property color hoverColor: FluTheme.dark ? FluColors.Grey10 : FluColors.Black
id:control
width: 400
height: 300
implicitHeight: height

View File

@ -3,12 +3,14 @@ import QtQuick.Controls
import Qt5Compat.GraphicalEffects
Item{
id:control
property var radius:[0,0,0,0]
property color color : "#FFFFFF"
property bool shadow: true
default property alias contentItem: container.data
id:control
FluShadow{
anchors.fill: container
radius: control.radius[0]

View File

@ -3,13 +3,13 @@ import QtQuick.Controls
import FluentUI
ScrollBar {
id: control
property color handleNormalColor: Qt.rgba(134/255,134/255,134/255,1)
property color handleHoverColor: Qt.lighter(handleNormalColor)
property color handlePressColor: Qt.darker(handleNormalColor)
property bool expand: false
id: control
implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset,
implicitContentWidth + leftPadding + rightPadding)
implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset,

View File

@ -5,21 +5,6 @@ import FluentUI
Item {
id:control
anchors.fill: {
if(parent)
return parent
return undefined
}
implicitHeight: height
implicitWidth: width
MouseArea{
anchors.fill: parent
preventStealing: true
}
enum TabWidthBehavior {
Equal,
SizeToContent,
@ -38,6 +23,15 @@ Item {
property bool addButtonVisibility: true
signal newPressed
id:control
implicitHeight: height
implicitWidth: width
anchors.fill: {
if(parent)
return parent
return undefined
}
QtObject {
id: d
property int dragIndex: -1
@ -46,6 +40,11 @@ Item {
property int maxEqualWidth: 240
}
MouseArea{
anchors.fill: parent
preventStealing: true
}
ListModel{
id:tab_model
}

View File

@ -5,7 +5,6 @@ import FluentUI
Item {
id:control
property var columns : []
property var dataSource : []
property int pageCurrent: 1
@ -14,6 +13,7 @@ Item {
property int itemHeight: 56
signal requestPage(int page,int count)
id:control
implicitHeight: layout_coumns.height + layout_table.height
MouseArea{

View File

@ -3,10 +3,6 @@ import FluentUI
Text {
property int fontStyle: FluText.Body
property color textColor: FluTheme.dark ? FluColors.White : FluColors.Grey220
property int pixelSize : FluTheme.textSize
enum FontStyle {
Display,
TitleLarge,
@ -17,6 +13,10 @@ Text {
Caption
}
property int fontStyle: FluText.Body
property color textColor: FluTheme.dark ? FluColors.White : FluColors.Grey220
property int pixelSize : FluTheme.textSize
id:text
color: textColor
renderType: FluTheme.nativeText ? Text.NativeRendering : Text.QtRendering

View File

@ -2,10 +2,10 @@
import Qt5Compat.GraphicalEffects
Rectangle{
id:content
property Item inputItem
id:content
radius: 4
layer.enabled: true
color: {

View File

@ -1,12 +1,15 @@
import QtQuick
import QtQuick.Controls
import FluentUI
FluMenu{
property string cutText : "剪切"
property string copyText : "复制"
property string pasteText : "粘贴"
property string selectAllText : "全选"
property var inputItem
id:menu
focus: false
FluMenuItem{

View File

@ -3,6 +3,7 @@ import QtQuick.Controls
import FluentUI
ToolTip {
id:tool_tip
contentItem: FluText {

View File

@ -11,6 +11,7 @@ Item {
Single,
Multiple
}
property int selectionMode: FluTreeView.None
property var currentElement
property var currentParentElement