mirror of
https://github.com/transmission/transmission
synced 2025-03-10 06:02:57 +00:00
Better center text in filter buttons.
This commit is contained in:
parent
0f851c5fd1
commit
b16f93fb6d
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@
|
||||||
NSSize textSize = [text sizeWithAttributes: normalAttributes],
|
NSSize textSize = [text sizeWithAttributes: normalAttributes],
|
||||||
buttonSize = [self frame].size;
|
buttonSize = [self frame].size;
|
||||||
NSRect textRect = NSMakeRect((buttonSize.width - textSize.width) * 0.5,
|
NSRect textRect = NSMakeRect((buttonSize.width - textSize.width) * 0.5,
|
||||||
(buttonSize.height - textSize.height) * 0.5, textSize.width, textSize.height);
|
(buttonSize.height - textSize.height) * 0.5 + 1.5, textSize.width, textSize.height);
|
||||||
|
|
||||||
//create normal button
|
//create normal button
|
||||||
[fButtonNormal lockFocus];
|
[fButtonNormal lockFocus];
|
||||||
|
|
Loading…
Add table
Reference in a new issue