mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Use system fonts, not explicit names.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@8171 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dd30b76aec
commit
c46694c404
1 changed files with 7 additions and 9 deletions
|
@ -74,7 +74,7 @@ _new_label (NSString *value)
|
|||
{
|
||||
NSTextField *t;
|
||||
|
||||
t = [[NSTextField new] autorelease];
|
||||
t = AUTORELEASE([NSTextField new]);
|
||||
[t setStringValue: value];
|
||||
[t setDrawsBackground: NO];
|
||||
[t setEditable: NO];
|
||||
|
@ -332,26 +332,24 @@ _new_label (NSString *value)
|
|||
*/
|
||||
f = NSZeroRect;
|
||||
f.size = [icon size];
|
||||
iconButton = [[[NSButton alloc] initWithFrame: f] autorelease];
|
||||
iconButton = AUTORELEASE([[NSButton alloc] initWithFrame: f]);
|
||||
[iconButton setImage: icon];
|
||||
[iconButton setBordered: NO];
|
||||
[iconButton setEnabled: NO];
|
||||
[iconButton setImagePosition: NSImageOnly];
|
||||
|
||||
nameLabel = _new_label (name);
|
||||
[nameLabel setFont: [NSFont fontWithName: @"Helvetica-Bold" size: 32]];
|
||||
[nameLabel setFont: [NSFont boldSystemFontOfSize: 32]];
|
||||
[nameLabel sizeToFit];
|
||||
|
||||
if (description)
|
||||
{
|
||||
descriptionLabel = _new_label (description);
|
||||
[descriptionLabel setFont: [NSFont fontWithName: @"Helvetica-Bold"
|
||||
size: 14]];
|
||||
[descriptionLabel setFont: [NSFont boldSystemFontOfSize: 14]];
|
||||
[descriptionLabel sizeToFit];
|
||||
}
|
||||
|
||||
//smallFont = [NSFont fontWithName: @"Helvetica-Narrow" size: 14];
|
||||
smallFont = [NSFont fontWithName: @"Helvetica" size: 12];
|
||||
smallFont = [NSFont systemFontOfSize: 12];
|
||||
|
||||
versionLabel = _new_label (release);
|
||||
[versionLabel setFont: smallFont];
|
||||
|
@ -368,8 +366,8 @@ _new_label (NSString *value)
|
|||
[authorTitleLabel setFont: smallFont];
|
||||
[authorTitleLabel sizeToFit];
|
||||
|
||||
authorsList = [[[_GSLabelListView alloc] initWithStringArray: authors
|
||||
font: smallFont] autorelease];
|
||||
authorsList = AUTORELEASE([[_GSLabelListView alloc] initWithStringArray: authors
|
||||
font: smallFont]);
|
||||
|
||||
if (url)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue