small layout change
This commit is contained in:
parent
1f08d0ce52
commit
89fc445266
|
@ -730,7 +730,7 @@
|
|||
NSRect frame = [window frame];
|
||||
NSView * view = [[fTabView selectedTabViewItem] view];
|
||||
|
||||
float difference = height - [view frame].size.height;
|
||||
float difference = (height - [view frame].size.height) * [window userSpaceScaleFactor];;
|
||||
frame.origin.y -= difference;
|
||||
frame.size.height += difference;
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
#define HEIGHT_STATUS 12.0
|
||||
|
||||
#define PADDING_HORIZONAL 2.0
|
||||
#define PADDING_ABOVE_IMAGE_REG 9.0
|
||||
#define PADDING_BETWEEN_IMAGE_AND_TITLE 4.0
|
||||
#define PADDING_ABOVE_TITLE 2.0
|
||||
#define PADDING_ABOVE_MIN_STATUS 4.0
|
||||
|
@ -138,7 +139,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
else
|
||||
{
|
||||
imageSize = IMAGE_SIZE_REG;
|
||||
result.origin.y += (result.size.height - (imageSize + ACTION_BUTTON_HEIGHT)) * 0.5;
|
||||
result.origin.y += PADDING_ABOVE_IMAGE_REG;
|
||||
}
|
||||
|
||||
result.size = NSMakeSize(imageSize, imageSize);
|
||||
|
|
Loading…
Reference in New Issue