Skip to content
This repository has been archived by the owner on Nov 3, 2020. It is now read-only.

Commit

Permalink
Changed assets to @mennenia's. Changed text colour to match assets. I…
Browse files Browse the repository at this point in the history
…ncreased space between elements. Changed button contraints so that it can fit longer texts (translations).
  • Loading branch information
wrutkowski committed Jan 13, 2016
1 parent b1bbdd9 commit 15db573
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions app/CocoaPods/Base.lproj/CPHomeWindowController.xib
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" fullSizeContentView="YES"/>
<windowPositionMask key="initialPositionMask" topStrut="YES" bottomStrut="YES"/>
<rect key="contentRect" x="196" y="240" width="665" height="490"/>
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1057"/>
<rect key="screenRect" x="0.0" y="0.0" width="1920" height="1177"/>
<view key="contentView" id="se5-gp-TjO">
<rect key="frame" x="0.0" y="0.0" width="665" height="490"/>
<autoresizingMask key="autoresizingMask"/>
Expand Down Expand Up @@ -139,12 +139,11 @@
<rect key="frame" x="432" y="0.0" width="233" height="490"/>
<subviews>
<button translatesAutoresizingMaskIntoConstraints="NO" id="o1v-Y5-7bX">
<rect key="frame" x="61" y="185" width="110" height="120"/>
<rect key="frame" x="16" y="175" width="201" height="140"/>
<constraints>
<constraint firstAttribute="height" constant="120" id="Pyn-Xc-2H8"/>
<constraint firstAttribute="width" constant="110" id="t7d-cU-7oV"/>
<constraint firstAttribute="height" constant="140" id="Pyn-Xc-2H8"/>
</constraints>
<buttonCell key="cell" type="square" title="Open an existing Podfile" alternateTitle="Open an existing Podfile" bezelStyle="shadowlessSquare" image="OpenDocument" imagePosition="above" alignment="center" alternateImage="OpenDocumentSelected" imageScaling="proportionallyDown" inset="2" id="40v-7y-tY1">
<buttonCell key="cell" type="square" title="Open an existing Podfile" alternateTitle="Open an existing Podfile" bezelStyle="shadowlessSquare" image="OpenDocument" imagePosition="above" alignment="center" alternateImage="OpenDocumentSelected" inset="2" id="40v-7y-tY1">
<behavior key="behavior" lightByContents="YES"/>
<font key="font" metaFont="miniSystem"/>
</buttonCell>
Expand All @@ -154,7 +153,8 @@
</button>
</subviews>
<constraints>
<constraint firstItem="o1v-Y5-7bX" firstAttribute="centerX" secondItem="9pW-mq-gji" secondAttribute="centerX" id="6jQ-oV-0SS"/>
<constraint firstItem="o1v-Y5-7bX" firstAttribute="leading" secondItem="9pW-mq-gji" secondAttribute="leading" constant="16" id="Ryc-0C-Yz3"/>
<constraint firstAttribute="trailing" secondItem="o1v-Y5-7bX" secondAttribute="trailing" constant="16" id="cNe-SU-0Ug"/>
<constraint firstItem="o1v-Y5-7bX" firstAttribute="centerY" secondItem="9pW-mq-gji" secondAttribute="centerY" id="rWx-BF-7pm"/>
</constraints>
</customView>
Expand Down
9 changes: 6 additions & 3 deletions app/CocoaPods/CPRecentDocumentsController.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,14 @@ - (void)awakeFromNib
[[NSMutableAttributedString alloc] initWithString:NSLocalizedString(@"MAIN_WINDOW_OPEN_DOCUMENT_BUTTON_TITLE", nil)];
NSUInteger len = [attrTitle length];
NSRange range = NSMakeRange(0, len);
[attrTitle addAttribute:NSForegroundColorAttributeName value:[NSColor lightGrayColor] range:range];
[attrTitle addAttribute:NSFontAttributeName value:[NSFont systemFontOfSize:9.0] range:range];
[attrTitle addAttribute:NSForegroundColorAttributeName value:[NSColor colorWithRed:217.0/255.0 green:217.0/255.0 blue:217.0/255.0 alpha:1.0] range:range];
[attrTitle addAttribute:NSFontAttributeName value:[NSFont systemFontOfSize:10.0] range:range];
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
paragraphStyle.alignment = NSTextAlignmentCenter;
[attrTitle addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:range];
[attrTitle fixAttributesInRange:range];
[self.openDocumentButton setAttributedTitle:attrTitle];
[attrTitle addAttribute:NSForegroundColorAttributeName value:[NSColor darkGrayColor] range:range];
[attrTitle addAttribute:NSForegroundColorAttributeName value:[NSColor colorWithRed:192.0/255.0 green:192.0/255.0 blue:192.0/255.0 alpha:1.0] range:range];
[self.openDocumentButton setAttributedAlternateTitle:attrTitle];

[self setupRecentDocuments];
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 15db573

Please sign in to comment.