Skip to content

Commit

Permalink
high resolution images #54
Browse files Browse the repository at this point in the history
  • Loading branch information
Jérôme Lebel committed Oct 4, 2014
1 parent 77174b5 commit 13e1393
Show file tree
Hide file tree
Showing 43 changed files with 103 additions and 23 deletions.
108 changes: 94 additions & 14 deletions MongoHub.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Just build it, it should work (but let me know if you have an errors or warnings

**Beta**

- Update some png to be retina [issue #54](https://github.com/jeromelebel/MongoHub-Mac/issues/54)

## History

**2.7 beta 14 - october 4, 2014**
Expand Down
Binary file modified Resources/images/editicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/findmenu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/indexmenu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/insertmenu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/mapreducemenu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/removemenu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/tabs/background-grey_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/tabs/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/tabs/background-grey_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/tabs/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/tabs/background-grey_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/tabs/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/tabs/background_blue_arrow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/tabs/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/tabs/background_blue_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/tabs/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/tabs/background_blue_left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/tabs/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Resources/images/tabs/background_blue_right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Resources/images/tabs/[email protected]
Binary file modified Resources/images/tabs/button_ArrowRight_default.png
Binary file added Resources/images/tabs/[email protected]
Binary file modified Resources/images/tabs/button_ArrowRight_overlay.png
Binary file added Resources/images/tabs/[email protected]
Binary file modified Resources/images/tabs/close_button.png
Binary file added Resources/images/tabs/[email protected]
Binary file modified Resources/images/tabs/grip_button.png
Binary file added Resources/images/tabs/[email protected]
Binary file modified Resources/images/tabs/overlay_close_button.png
Binary file added Resources/images/tabs/[email protected]
Binary file modified Resources/images/tabs/unselected-tab-background.png
Binary file added Resources/images/tabs/[email protected]
Binary file modified Resources/images/tabs/unselected-tab-border.png
Binary file added Resources/images/tabs/[email protected]
16 changes: 7 additions & 9 deletions Sources/TabViews/MHTabTitleView.m
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,15 @@ - (void)drawRect:(NSRect)dirtyRect
}
[_titleAttributes setObject:[NSColor whiteColor] forKey:NSForegroundColorAttributeName];
} else {
image = [_drawingObjects objectForKey:@"unselected-tab-border"];
NSRect rect1, rect2;

rect1 = NSMakeRect(1, self.bounds.size.height - image.size.height, self.bounds.size.width - 2, image.size.height);
rect2 = NSMakeRect(1, 0, 1, image.size.height);

image = [_drawingObjects objectForKey:@"unselected-tab-background"];
[image drawInRect:NSMakeRect(0, self.bounds.size.height - image.size.height, self.bounds.size.width, image.size.height) fromRect:NSMakeRect(0, 0, 1, image.size.height) operation:NSCompositeCopy fraction:1.0];
[image drawInRect:NSMakeRect(0, self.bounds.size.height - image.size.height, 1, image.size.height) fromRect:NSMakeRect(0, 0, 1, image.size.height) operation:NSCompositeCopy fraction:1.0];
[image drawInRect:NSMakeRect(self.bounds.size.width - 1, self.bounds.size.height - image.size.height, 1, image.size.height) fromRect:NSMakeRect(1, 0, 1, image.size.height) operation:NSCompositeCopy fraction:1.0];
[image drawInRect:NSMakeRect(0, self.bounds.size.height - image.size.height, self.bounds.size.width, image.size.height) fromRect:NSMakeRect(0, 0, image.size.width, image.size.height) operation:NSCompositeCopy fraction:1.0];

image = [_drawingObjects objectForKey:@"unselected-tab-border"];
[image drawInRect:NSMakeRect(0, self.bounds.size.height - image.size.height, 1, image.size.height) fromRect:NSMakeRect(1, 0, 1, image.size.height) operation:NSCompositeCopy fraction:1.0];
[image drawInRect:NSMakeRect(self.bounds.size.width - 1, self.bounds.size.height - image.size.height, 1, image.size.height) fromRect:NSMakeRect(0, 0, 1, image.size.height) operation:NSCompositeCopy fraction:1.0];

[_titleAttributes setObject:[NSColor blackColor] forKey:NSForegroundColorAttributeName];

}
[_attributedTitle setAttributes:_titleAttributes range:NSMakeRange(0, _attributedTitle.length)];
_titleCell.attributedStringValue = _attributedTitle;
Expand Down

0 comments on commit 13e1393

Please sign in to comment.