mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
A couple of nits.
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user