A couple of nits.

This commit is contained in:
Martín Lucas Golini
2026-04-13 15:42:27 -03:00
parent 9a6733e52b
commit e2b9b47b21
2 changed files with 27 additions and 10 deletions

View File

@@ -529,6 +529,16 @@
"enabled": true,
"command": "pi-acp",
"args": []
},
"codex-acp": {
"enabled": true,
"command": "codex-acp",
"args": []
},
"qwen-code": {
"enabled": true,
"command": "qwen",
"args": ["--acp"]
}
}
}

View File

@@ -1420,19 +1420,25 @@ UIWindow* UIWindow::setMinWindowSize( Sizef size ) {
Sizef UIWindow::getMinWindowSizeWithDecoration() {
Sizef size( getMinWindowSize() );
if ( NULL != mWindowDecoration ) {
if ( mBorderLeft && mBorderRight )
size.x += mBorderLeft->getSize().getWidth() + mBorderRight->getSize().getWidth();
if ( mWindowDecoration && mBorderBottom )
size.y += mWindowDecoration->getSize().getHeight() + mBorderBottom->getSize().getHeight();
}
return size;
}
Sizef UIWindow::getSizeWithoutDecoration() {
Sizef size( getSize() );
if ( NULL != mWindowDecoration ) {
if ( mBorderLeft && mBorderRight )
size.x -= mBorderLeft->getSize().getWidth() + mBorderRight->getSize().getWidth();
if ( mWindowDecoration && mBorderBottom )
size.y -= mWindowDecoration->getSize().getHeight() + mBorderBottom->getSize().getHeight();
}
return size;
}
@@ -1443,18 +1449,19 @@ Sizef UIWindow::getMinWindowTitleSizeRequired() {
mPadding.Left + mPadding.Right,
0 );
if ( NULL != mWindowDecoration ) {
if ( mBorderLeft && mBorderRight )
size.x += mBorderLeft->getSize().getWidth() + mBorderRight->getSize().getWidth();
size.y += mWindowDecoration->getSize().getHeight();
}
if ( NULL != mButtonClose )
if ( mWindowDecoration )
size.y += mWindowDecoration->getSize().getHeight();
if ( mButtonClose )
size.x += mButtonClose->getSize().getWidth();
if ( NULL != mButtonMaximize )
if ( mButtonMaximize )
size.x += mButtonMaximize->getSize().getWidth();
if ( NULL != mButtonMinimize )
if ( mButtonMinimize )
size.x += mButtonMinimize->getSize().getWidth();
return size;