mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-03 00:25:25 +08:00
update
This commit is contained in:
@ -8,6 +8,10 @@ FluContentPage {
|
||||
|
||||
title:"Awesome"
|
||||
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluTextBox{
|
||||
id:text_box
|
||||
placeholderText: "请输入关键字"
|
||||
|
@ -9,6 +9,9 @@ FluScrollablePage{
|
||||
|
||||
title:"Badge"
|
||||
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluArea{
|
||||
width: parent.width
|
||||
|
@ -9,6 +9,10 @@ FluScrollablePage{
|
||||
|
||||
spacing: 20
|
||||
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluText{
|
||||
Layout.topMargin: 20
|
||||
text:"支持Tab键切换焦点,空格键执行点击事件"
|
||||
|
@ -7,6 +7,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"CalendarPicker"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluArea{
|
||||
width: parent.width
|
||||
|
@ -8,6 +8,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"Carousel"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluArea{
|
||||
width: parent.width
|
||||
|
@ -8,6 +8,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"ColorPicker"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluArea{
|
||||
width: parent.width
|
||||
|
@ -7,7 +7,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"TimePicker"
|
||||
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluArea{
|
||||
width: parent.width
|
||||
|
@ -6,7 +6,11 @@ import QtGraphicalEffects 1.15
|
||||
import FluentUI 1.0
|
||||
|
||||
FluScrollablePage{
|
||||
|
||||
title:"Dialog"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluContentDialog{
|
||||
id:dialog
|
||||
|
@ -6,7 +6,11 @@ import QtGraphicalEffects 1.15
|
||||
import FluentUI 1.0
|
||||
|
||||
FluScrollablePage{
|
||||
|
||||
title:"Expander"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluExpander{
|
||||
headerText:"打开一个单选框"
|
||||
|
@ -6,7 +6,11 @@ import QtGraphicalEffects 1.15
|
||||
import FluentUI 1.0
|
||||
|
||||
FluScrollablePage{
|
||||
|
||||
title:"InfoBar"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluButton{
|
||||
text:"Info"
|
||||
|
@ -8,6 +8,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"MediaPlayer"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
onVisibleChanged: {
|
||||
if(visible){
|
||||
|
@ -8,11 +8,13 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"Menu"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluButton{
|
||||
text:"左击菜单"
|
||||
Layout.topMargin: 20
|
||||
Layout.leftMargin: 15
|
||||
onClicked:{
|
||||
menu.popup()
|
||||
}
|
||||
@ -22,7 +24,6 @@ FluScrollablePage{
|
||||
FluButton{
|
||||
text:"右击菜单"
|
||||
Layout.topMargin: 20
|
||||
Layout.leftMargin: 15
|
||||
onClicked: {
|
||||
showSuccess("请按鼠标右击")
|
||||
}
|
||||
|
@ -7,6 +7,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"MultiWindow"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
property string password: ""
|
||||
|
||||
|
@ -6,7 +6,11 @@ import QtGraphicalEffects 1.15
|
||||
import FluentUI 1.0
|
||||
|
||||
FluScrollablePage{
|
||||
|
||||
title:"Progress"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluProgressBar{
|
||||
Layout.topMargin: 20
|
||||
|
@ -6,7 +6,11 @@ import QtGraphicalEffects 1.15
|
||||
import FluentUI 1.0
|
||||
|
||||
FluScrollablePage{
|
||||
|
||||
title:"Rectangle"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
RowLayout{
|
||||
Layout.topMargin: 20
|
||||
|
@ -8,16 +8,20 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"Slider"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluSlider{
|
||||
Layout.topMargin: 20
|
||||
Layout.leftMargin: 15
|
||||
value: 50
|
||||
Layout.leftMargin: 10
|
||||
}
|
||||
FluSlider{
|
||||
orientation:FluSlider.Vertical
|
||||
Layout.topMargin: 20
|
||||
Layout.leftMargin: 15
|
||||
Layout.leftMargin: 10
|
||||
Layout.bottomMargin: 20
|
||||
value: 50
|
||||
}
|
||||
}
|
||||
|
@ -7,6 +7,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"TabView"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
Component{
|
||||
id:com_page
|
||||
|
@ -8,6 +8,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"TextBox"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluTextBox{
|
||||
Layout.topMargin: 20
|
||||
|
@ -8,6 +8,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"Theme"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
RowLayout{
|
||||
Layout.topMargin: 20
|
||||
|
@ -7,7 +7,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"TimePicker"
|
||||
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluArea{
|
||||
width: parent.width
|
||||
|
@ -8,6 +8,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"ToggleSwitch"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluToggleSwitch{
|
||||
Layout.topMargin: 20
|
||||
|
@ -8,6 +8,9 @@ import FluentUI 1.0
|
||||
FluScrollablePage{
|
||||
|
||||
title:"Tooltip"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
FluText{
|
||||
Layout.topMargin: 20
|
||||
|
@ -7,6 +7,9 @@ import FluentUI 1.0
|
||||
FluContentPage {
|
||||
|
||||
title:"TreeView"
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
function randomName() {
|
||||
var names = ["张三", "李四", "王五", "赵六", "钱七", "孙八", "周九", "吴十"]
|
||||
|
@ -7,6 +7,9 @@ FluContentPage {
|
||||
|
||||
title: "Typography"
|
||||
property int textSize: 13
|
||||
leftPadding:10
|
||||
rightPadding:10
|
||||
bottomPadding:20
|
||||
|
||||
Component.onCompleted: {
|
||||
slider.seek(31)
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 272 KiB After Width: | Height: | Size: 116 KiB |
@ -9,14 +9,14 @@ import FluentUI 1.0
|
||||
FluWindow {
|
||||
id:rootwindow
|
||||
width: 860
|
||||
height: 600
|
||||
height: 640
|
||||
title: "FluentUI"
|
||||
minimumWidth: 520
|
||||
minimumHeight: 400
|
||||
|
||||
FluAppBar{
|
||||
id:appbar
|
||||
title: "FluentUI"
|
||||
z:10
|
||||
}
|
||||
|
||||
FluObject{
|
||||
@ -237,47 +237,13 @@ FluWindow {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
FluNavigationView{
|
||||
id:nav_view
|
||||
anchors{
|
||||
top: appbar.bottom
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
bottom: parent.bottom
|
||||
}
|
||||
items:original_items
|
||||
anchors.fill: parent
|
||||
items: original_items
|
||||
footerItems:footer_items
|
||||
|
||||
actions:[
|
||||
Image {
|
||||
width: 30
|
||||
height: 30
|
||||
Layout.preferredWidth: 30
|
||||
Layout.preferredHeight: 30
|
||||
sourceSize: Qt.size(60,60)
|
||||
source: "qrc:/res/image/logo_openai.png"
|
||||
Layout.rightMargin: 5
|
||||
MouseArea{
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
FluApp.navigate("/chat")
|
||||
}
|
||||
}
|
||||
},
|
||||
FluText{
|
||||
text:"夜间模式"
|
||||
fontStyle: FluText.Body
|
||||
},
|
||||
FluToggleSwitch{
|
||||
selected: FluTheme.isDark
|
||||
clickFunc:function(){
|
||||
FluTheme.isDark = !FluTheme.isDark
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
logo: "qrc:/res/image/favicon.ico"
|
||||
z: 11
|
||||
Component.onCompleted: {
|
||||
nav_view.setCurrentIndex(1)
|
||||
nav_view.push("qrc:/T_Buttons.qml")
|
||||
|
@ -46,5 +46,6 @@
|
||||
<file>T_Carousel.qml</file>
|
||||
<file>T_MediaPlayer.qml</file>
|
||||
<file>T_TabView.qml</file>
|
||||
<file>res/image/favicon.ico</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
BIN
example/res/image/favicon.ico
Normal file
BIN
example/res/image/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 116 KiB |
Reference in New Issue
Block a user