main
zhuzihcu 2023-03-24 14:15:06 +08:00
parent f20dc1edcb
commit a3fb672cc7
6 changed files with 28 additions and 11 deletions

View File

@ -92,3 +92,5 @@
## 多窗口路由跳转 ## 多窗口路由跳转
![](doc/preview/multiwindow.png) ![](doc/preview/multiwindow.png)
### ⚡ Visitor count ![](https://profile-counter.glitch.me/zhuzichu520-FluentUI/count.svg)

View File

@ -20,7 +20,7 @@ FluScrollablePage{
left:parent.left left:parent.left
} }
FluText{ FluText{
text:"此颜色组件是Github上大佬封装的" text:"此颜色组件是Github上开源项目"
} }
FluTextButton{ FluTextButton{
leftPadding: 0 leftPadding: 0

View File

@ -49,6 +49,8 @@ Rectangle{
} }
function toggleMaximized() { function toggleMaximized() {
if(!resizable)
return
if (window.visibility === Window.Maximized) { if (window.visibility === Window.Maximized) {
window.showNormal(); window.showNormal();
} else { } else {

View File

@ -46,6 +46,7 @@ Item {
Image { Image {
anchors.fill: parent anchors.fill: parent
source: model.url source: model.url
asynchronous: true
fillMode:Image.PreserveAspectCrop fillMode:Image.PreserveAspectCrop
} }
} }

View File

@ -8,21 +8,18 @@ import QtGraphicalEffects 1.15
Item { Item {
id:root id:root
property int selectionMode: FluTreeView.None
property var currentElement
property var currentParentElement
property var rootModel: tree_model.get(0).items
signal itemClicked(var item)
enum TreeViewSelectionMode { enum TreeViewSelectionMode {
None, None,
Single, Single,
Multiple Multiple
} }
property int selectionMode: FluTreeView.None
property var currentElement
property var currentParentElement
property var rootModel: tree_model.get(0).items
signal itemClicked(var item)
ListModel{ ListModel{
id:tree_model id:tree_model
ListElement{ ListElement{

View File

@ -74,7 +74,22 @@ Item {
} }
Component.onCompleted: { Component.onCompleted: {
updateWindowSize()
}
Connections{
target: FluTheme
function onIsFramelessChanged(){
updateWindowSize()
}
}
function updateWindowSize(){
if(FluTheme.isFrameless){
height = height + 34
}else{
height = height - 34
}
} }
Connections{ Connections{