This commit is contained in:
zhuzihcu
2023-06-08 14:23:00 +08:00
parent a37e4e3b9f
commit c25e2362c4
7 changed files with 21 additions and 4 deletions

View File

@ -8,7 +8,6 @@ FluExpander{
id:control
property string code: ""
headerText: "Source"
contentHeight:content.height
focus: false
@ -16,10 +15,12 @@ FluExpander{
FluMultilineTextBox{
id:content
width:parent.width
activeFocusOnTab: false
activeFocusOnPress: false
readOnly: true
text:highlightQmlCode(code)
textFormat: FluMultilineTextBox.RichText
KeyNavigation.priority: KeyNavigation.BeforeItem
enabled: false
background:Rectangle{
radius: 4
color:FluTheme.dark ? Qt.rgba(50/255,50/255,50/255,1) : Qt.rgba(247/255,247/255,247/255,1)

View File

@ -64,8 +64,8 @@ CustomWindow {
negativeText:"最小化"
buttonFlags: FluContentDialog.NeutralButton | FluContentDialog.NegativeButton | FluContentDialog.PositiveButton
onNegativeClicked:{
system_tray.showMessage("友情提示","FluentUI已隐藏至托盘,点击托盘可再次激活窗口");
window.hide()
system_tray.showMessage("友情提示","FluentUI已隐藏至托盘,点击托盘可再次激活窗口");
}
positiveText:"退出"
neutralText:"取消"