mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-26 13:27:05 +08:00
update CodeExpander.qml
This commit is contained in:
parent
84b3a367b2
commit
5c1e67f3b6
@ -12,21 +12,16 @@ FluExpander{
|
|||||||
contentHeight:content.height
|
contentHeight:content.height
|
||||||
focus: false
|
focus: false
|
||||||
|
|
||||||
FluMultilineTextBox{
|
FluCopyableText{
|
||||||
id:content
|
id:content
|
||||||
width:parent.width
|
width:parent.width
|
||||||
activeFocusOnTab: false
|
|
||||||
activeFocusOnPress: false
|
|
||||||
readOnly: true
|
|
||||||
text:highlightQmlCode(code)
|
text:highlightQmlCode(code)
|
||||||
textFormat: FluMultilineTextBox.RichText
|
textFormat: FluMultilineTextBox.RichText
|
||||||
KeyNavigation.priority: KeyNavigation.BeforeItem
|
padding: 10
|
||||||
background:Rectangle{
|
topPadding: 10
|
||||||
radius: 4
|
leftPadding: 10
|
||||||
color:FluTheme.dark ? Qt.rgba(50/255,50/255,50/255,1) : Qt.rgba(247/255,247/255,247/255,1)
|
rightPadding: 10
|
||||||
border.color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
|
bottomPadding: 10
|
||||||
border.width: 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FluIconButton{
|
FluIconButton{
|
||||||
|
@ -12,21 +12,16 @@ FluExpander{
|
|||||||
contentHeight:content.height
|
contentHeight:content.height
|
||||||
focus: false
|
focus: false
|
||||||
|
|
||||||
FluMultilineTextBox{
|
FluCopyableText{
|
||||||
id:content
|
id:content
|
||||||
width:parent.width
|
width:parent.width
|
||||||
activeFocusOnTab: false
|
|
||||||
activeFocusOnPress: false
|
|
||||||
readOnly: true
|
|
||||||
text:highlightQmlCode(code)
|
text:highlightQmlCode(code)
|
||||||
textFormat: FluMultilineTextBox.RichText
|
textFormat: FluMultilineTextBox.RichText
|
||||||
KeyNavigation.priority: KeyNavigation.BeforeItem
|
padding: 10
|
||||||
background:Rectangle{
|
topPadding: 10
|
||||||
radius: 4
|
leftPadding: 10
|
||||||
color:FluTheme.dark ? Qt.rgba(50/255,50/255,50/255,1) : Qt.rgba(247/255,247/255,247/255,1)
|
rightPadding: 10
|
||||||
border.color: FluTheme.dark ? Qt.rgba(45/255,45/255,45/255,1) : Qt.rgba(226/255,229/255,234/255,1)
|
bottomPadding: 10
|
||||||
border.width: 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
FluIconButton{
|
FluIconButton{
|
||||||
|
Loading…
Reference in New Issue
Block a user