This commit is contained in:
朱子楚\zhuzi
2023-11-05 17:24:08 +08:00
parent 661529f1f4
commit 35921ed900
13 changed files with 44 additions and 36 deletions

View File

@ -35,10 +35,9 @@ TextArea{
return placeholderNormalColor
}
selectByMouse: true
width: background.implicitWidth
width: 240
background: FluTextBoxBackground{
inputItem: control
implicitWidth: 240
}
Keys.onEnterPressed: (event)=> d.handleCommit(event)
Keys.onReturnPressed:(event)=> d.handleCommit(event)

View File

@ -37,9 +37,9 @@ TextField{
return placeholderNormalColor
}
selectByMouse: true
width: 240
background: FluTextBoxBackground{
inputItem: control
implicitWidth: 240
}
Keys.onEnterPressed: (event)=> d.handleCommit(event)
Keys.onReturnPressed:(event)=> d.handleCommit(event)

View File

@ -46,9 +46,9 @@ TextField{
w = 0
return icon_end.visible ? w+36 : w+10
}
width: 240
background: FluTextBoxBackground{
inputItem: control
implicitWidth: 240
}
Keys.onEnterPressed: (event)=> d.handleCommit(event)
Keys.onReturnPressed:(event)=> d.handleCommit(event)

View File

@ -46,8 +46,8 @@ Button {
layoutDirection:control.textRight ? Qt.LeftToRight : Qt.RightToLeft
Rectangle {
id:control_backgound
width: background.width
height: background.height
implicitWidth: background.implicitWidth
implicitHeight: background.implicitHeight
radius: height / 2
FluFocusRectangle{
visible: control.activeFocus

View File

@ -38,7 +38,6 @@ Window {
}
signal initArgument(var argument)
id:window
flags: Qt.Window | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint | Qt.WindowMinMaxButtonsHint | Qt.WindowCloseButtonHint
color:"transparent"
onStayTopChanged: {
d.changedStayTop()
@ -201,6 +200,7 @@ Window {
FramelessHelper{
id:framless_helper
onReady: {
flags = flags | Qt.Window | Qt.CustomizeWindowHint | Qt.WindowTitleHint | Qt.WindowSystemMenuHint | Qt.WindowMinMaxButtonsHint | Qt.WindowCloseButtonHint
if(appBar){
var title_bar = loader_title_bar.item
setTitleBarItem(title_bar)
@ -222,6 +222,19 @@ Window {
}
WindowBorder{
z:999
visible: !FluTools.isLinux()
}
Rectangle{
anchors.fill: parent
color: "#00000000"
border.width: 1
visible: FluTools.isLinux()
border.color: {
if(window.active){
return "#333333"
}
return "#999999"
}
}
function destoryOnClose(){
lifecycle.onDestoryOnClose()