mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
small layout adjustment
This commit is contained in:
parent
271badba8b
commit
0a48921e19
2 changed files with 4 additions and 2 deletions
|
@ -43,7 +43,7 @@
|
||||||
paragraphStyle, NSParagraphStyleAttributeName, nil];
|
paragraphStyle, NSParagraphStyleAttributeName, nil];
|
||||||
|
|
||||||
float textHeight = [(NSTableView *)controlView rowHeight];
|
float textHeight = [(NSTableView *)controlView rowHeight];
|
||||||
NSRect textRect = NSMakeRect(NSMaxX(imageRect) + SPACE, cellFrame.origin.y + 2.0,
|
NSRect textRect = NSMakeRect(NSMaxX(imageRect) + SPACE, cellFrame.origin.y + 1.0,
|
||||||
NSMaxX(cellFrame) - NSMaxX(imageRect) - 2.0 * SPACE, textHeight);
|
NSMaxX(cellFrame) - NSMaxX(imageRect) - 2.0 * SPACE, textHeight);
|
||||||
|
|
||||||
NSAttributedString * text = [[NSAttributedString alloc] initWithString: [strings objectAtIndex: 0]
|
NSAttributedString * text = [[NSAttributedString alloc] initWithString: [strings objectAtIndex: 0]
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
#define MIN_WINDOW_WIDTH 300
|
#define MIN_WINDOW_WIDTH 300
|
||||||
#define MAX_WINDOW_WIDTH 5000
|
#define MAX_WINDOW_WIDTH 5000
|
||||||
|
|
||||||
|
#define FILE_ROW_LARGE_HEIGHT 34.0
|
||||||
|
|
||||||
#define TAB_INFO_IDENT @"Info"
|
#define TAB_INFO_IDENT @"Info"
|
||||||
#define TAB_ACTIVITY_IDENT @"Activity"
|
#define TAB_ACTIVITY_IDENT @"Activity"
|
||||||
#define TAB_PEERS_IDENT @"Peers"
|
#define TAB_PEERS_IDENT @"Peers"
|
||||||
|
@ -784,7 +786,7 @@
|
||||||
{
|
{
|
||||||
float height = [outlineView rowHeight];
|
float height = [outlineView rowHeight];
|
||||||
if (![[item objectForKey: @"IsFolder"] boolValue])
|
if (![[item objectForKey: @"IsFolder"] boolValue])
|
||||||
height = 34.0;
|
height = FILE_ROW_LARGE_HEIGHT;
|
||||||
return height;
|
return height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue