Skip to content

Commit

Permalink
1. Add images.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightonke committed Mar 10, 2017
1 parent 07754f7 commit fe526dc
Show file tree
Hide file tree
Showing 11 changed files with 72 additions and 47 deletions.
Binary file added Pictures/image_github_w1920.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions VHGithubNotifier.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@
373EAB411E712C0B005B5E86 /* AFImageDownloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 373EAB3F1E712C0B005B5E86 /* AFImageDownloader.m */; };
373EAB471E713E10005B5E86 /* NSImageView+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 373EAB461E713E10005B5E86 /* NSImageView+AFNetworking.m */; };
373EAB4D1E713EF7005B5E86 /* VHCursorButton+AFNetworking.m in Sources */ = {isa = PBXBuildFile; fileRef = 373EAB4C1E713EF7005B5E86 /* VHCursorButton+AFNetworking.m */; };
373EAB521E729CD7005B5E86 /* image_github_w1920.png in Resources */ = {isa = PBXBuildFile; fileRef = 373EAB511E729CD7005B5E86 /* image_github_w1920.png */; };
3748DF831E2CE3E900507D9C /* VHDateValueFormatter.m in Sources */ = {isa = PBXBuildFile; fileRef = 3748DF821E2CE3E900507D9C /* VHDateValueFormatter.m */; };
3748DF861E2CEA9800507D9C /* NSDate+Utils.m in Sources */ = {isa = PBXBuildFile; fileRef = 3748DF851E2CEA9800507D9C /* NSDate+Utils.m */; };
3749CDCE1E59B27C0083CEB1 /* VHPieVC.m in Sources */ = {isa = PBXBuildFile; fileRef = 3749CDCC1E59B27C0083CEB1 /* VHPieVC.m */; };
Expand Down Expand Up @@ -575,6 +576,7 @@
373EAB461E713E10005B5E86 /* NSImageView+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSImageView+AFNetworking.m"; sourceTree = "<group>"; };
373EAB4B1E713EF7005B5E86 /* VHCursorButton+AFNetworking.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "VHCursorButton+AFNetworking.h"; sourceTree = "<group>"; };
373EAB4C1E713EF7005B5E86 /* VHCursorButton+AFNetworking.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "VHCursorButton+AFNetworking.m"; sourceTree = "<group>"; };
373EAB511E729CD7005B5E86 /* image_github_w1920.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = image_github_w1920.png; sourceTree = "<group>"; };
3748DF811E2CE3E900507D9C /* VHDateValueFormatter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = VHDateValueFormatter.h; sourceTree = "<group>"; };
3748DF821E2CE3E900507D9C /* VHDateValueFormatter.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = VHDateValueFormatter.m; sourceTree = "<group>"; };
3748DF841E2CEA9800507D9C /* NSDate+Utils.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSDate+Utils.h"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1058,6 +1060,14 @@
path = UAGithubEngine;
sourceTree = "<group>";
};
373EAB501E729CD7005B5E86 /* Pictures */ = {
isa = PBXGroup;
children = (
373EAB511E729CD7005B5E86 /* image_github_w1920.png */,
);
path = Pictures;
sourceTree = "<group>";
};
3752DD161E12AAAE000AB94A /* Manager */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -1112,6 +1122,7 @@
378E0AD21E0ECD060033CBD5 = {
isa = PBXGroup;
children = (
373EAB501E729CD7005B5E86 /* Pictures */,
373BA7101E6AC9AC00653C92 /* Assets */,
378E0ADD1E0ECD070033CBD5 /* VHGithubNotifier */,
378E0ADC1E0ECD070033CBD5 /* Products */,
Expand Down Expand Up @@ -1445,6 +1456,7 @@
3749CDDB1E59B42A0083CEB1 /* VHNotificationVC.xib in Resources */,
373185F61E5DDB5B00926F4F /* VHTrendingRepositoryCellView.xib in Resources */,
373BA6F91E6993FA00653C92 /* VHNotificationHeaderCellView.xib in Resources */,
373EAB521E729CD7005B5E86 /* image_github_w1920.png in Resources */,
373BA6F41E6959C600653C92 /* Assets.xcassets in Resources */,
379E09BB1E659B240032EB7E /* VHNotificationGroupBodyCellView.xib in Resources */,
3731879B1E61D95200926F4F /* Info.plist in Resources */,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,62 +3,81 @@
version = "1.0">
<ContextStates>
<ContextState
contextName = "__48-[VHGithubNotifierManager innerLoadRepositories]_block_invoke.173:VHGithubNotifierManager.m">
</ContextState>
<ContextState
contextName = "-[VHGithubNotifierManager(Trending) trendingRepositoriesFromHtmlString:]:VHGithubNotifierManager+Trending.m">
contextName = "+[VHUtils scrollViewToTop:]:VHUtils.m">
<PersistentStrings>
<PersistentString
value = "childElement.children.count">
</PersistentString>
<PersistentString
value = "element.children">
value = "[scrollView.documentView bounds]">
</PersistentString>
<PersistentString
value = "childElement.children">
value = "scrollView.contentView">
</PersistentString>
<PersistentString
value = "self.repositories">
value = "scrollView.documentView">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "-[VHStatusBarButton onNotifyRepositoriesLoadedSuccessfully:]:VHStatusBarButton.m">
contextName = "-[VHWebLoginWC webView:didFinishNavigation:]:VHWebLoginWC.m">
</ContextState>
<ContextState
contextName = "__43-[VHGithubNotifierManager innerLoadProfile]_block_invoke_3:VHGithubNotifierManager.m">
contextName = "-[VHUser starNumber]:VHUser.m">
</ContextState>
<ContextState
contextName = "__41+[VHNotification dictionaryFromResponse:]_block_invoke:VHNotification.m">
contextName = "__52-[VHGithubNotifierManager(Language) updateLanguages]_block_invoke:VHGithubNotifierManager+Language.m">
</ContextState>
<ContextState
contextName = "+[VHUtils scrollViewToTop:]:VHUtils.m">
contextName = "__64-[VHGithubNotifierManager(Notification) innerUpdateNotification]_block_invoke_2:VHGithubNotifierManager+Notification.m">
<PersistentStrings>
<PersistentString
value = "[scrollView.documentView bounds]">
value = "notificationDic">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "-[VHTabVCBackgroundView drawRect:]:VHTabVCBackgroundView.m">
<PersistentStrings>
<PersistentString
value = "scrollView.contentView">
value = "self.window.frame">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "__60-[VHGithubNotifierManager(Profile) innerUpdateContributions]_block_invoke:VHGithubNotifierManager+Profile.m">
</ContextState>
<ContextState
contextName = "-[VHStatusBarButton onNotifyWindowDidMove:]:VHStatusBarButton.m">
<PersistentStrings>
<PersistentString
value = "scrollView.documentView">
value = "self.window">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "__52-[VHGithubNotifierManager(Language) updateLanguages]_block_invoke:VHGithubNotifierManager+Language.m">
contextName = "-[VHGithubNotifierManager innerLoadRepositories]:VHGithubNotifierManager.m">
</ContextState>
<ContextState
contextName = "-[VHGithubNotifierManager innerLoadRepositories]:VHGithubNotifierManager.m">
contextName = "__52-[VHGithubNotifierManager(Language) updateLanguages]_block_invoke_2:VHGithubNotifierManager+Language.m">
</ContextState>
<ContextState
contextName = "-[VHTrendingRepositoryCellView setTrendingRepository:]:VHTrendingRepositoryCellView.m">
contextName = "-[VHSettingsWC onStatusBarContentChanged:]:VHSettingsWC.m">
<PersistentStrings>
<PersistentString
value = "[self.languageDot getTop]">
value = "self.followersNumberButton.state &amp; VHStatusBarButtonContentTypeFollowers">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "-[VHStatusBarButton onNotifyRepositoriesLoadedSuccessfully:]:VHStatusBarButton.m">
</ContextState>
<ContextState
contextName = "+[VHNotification dictionaryFromResponse:]:VHNotification.m">
</ContextState>
<ContextState
contextName = "__48-[VHGithubNotifierManager innerLoadRepositories]_block_invoke.173:VHGithubNotifierManager.m">
</ContextState>
<ContextState
contextName = "__43-[VHGithubNotifierManager innerLoadProfile]_block_invoke_3:VHGithubNotifierManager.m">
</ContextState>
<ContextState
contextName = "-[VHGithubNotifierManager(UserDefault) innerInitializeProperties]:VHGithubNotifierManager+UserDefault.m">
<PersistentStrings>
Expand All @@ -68,43 +87,38 @@
</PersistentStrings>
</ContextState>
<ContextState
contextName = "-[VHTabVCBackgroundView drawRect:]:VHTabVCBackgroundView.m">
contextName = "-[VHTrendingRepositoryCellView setTrendingRepository:]:VHTrendingRepositoryCellView.m">
<PersistentStrings>
<PersistentString
value = "self.window.frame">
value = "[self.languageDot getTop]">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "+[VHNotification dictionaryFromResponse:]:VHNotification.m">
contextName = "__41+[VHNotification dictionaryFromResponse:]_block_invoke:VHNotification.m">
</ContextState>
<ContextState
contextName = "__64-[VHGithubNotifierManager(Notification) innerUpdateNotification]_block_invoke_2:VHGithubNotifierManager+Notification.m">
contextName = "-[VHTextField performKeyEquivalent:]:VHTextField.m">
<PersistentStrings>
<PersistentString
value = "notificationDic">
value = "[event charactersIgnoringModifiers]">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "-[VHSettingsWC onStatusBarContentChanged:]:VHSettingsWC.m">
contextName = "-[VHGithubNotifierManager(Trending) trendingRepositoriesFromHtmlString:]:VHGithubNotifierManager+Trending.m">
<PersistentStrings>
<PersistentString
value = "self.followersNumberButton.state &amp; VHStatusBarButtonContentTypeFollowers">
value = "childElement.children.count">
</PersistentString>
</PersistentStrings>
</ContextState>
<ContextState
contextName = "-[VHUser starNumber]:VHUser.m">
</ContextState>
<ContextState
contextName = "__52-[VHGithubNotifierManager(Language) updateLanguages]_block_invoke_2:VHGithubNotifierManager+Language.m">
</ContextState>
<ContextState
contextName = "-[VHTextField performKeyEquivalent:]:VHTextField.m">
<PersistentStrings>
<PersistentString
value = "[event charactersIgnoringModifiers]">
value = "element.children">
</PersistentString>
<PersistentString
value = "childElement.children">
</PersistentString>
<PersistentString
value = "self.repositories">
</PersistentString>
</PersistentStrings>
</ContextState>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"images" : [
{
"idiom" : "universal",
"filename" : "background_account_info_window.jpg",
"filename" : "image_account_info_window.png",
"scale" : "1x"
},
{
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion VHGithubNotifier/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleVersion</key>
<string>1003</string>
<string>1004</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
Expand Down
3 changes: 1 addition & 2 deletions VHGithubNotifier/Model/Manager/VHGithubNotifierManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,7 @@ - (void)recoverUser
- (void)resetFromWakeNotification
{
SystemLog(@"Wake up");
[self stopTimerOfBasicInfo];
[self startTimerOfBasicInfo];
[self updateAllTimer];
}

- (NSURL *)logFileURL
Expand Down
2 changes: 1 addition & 1 deletion VHGithubNotifier/Window/VHAccountInfoWC.m
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ - (void)windowDidLoad

[self.window.contentView setWantsLayer:YES];
self.window.contentView.layer.contentsGravity = kCAGravityResizeAspectFill;
self.window.contentView.layer.contents = [NSImage imageNamed:@"background_account_info_window"];
self.window.contentView.layer.contents = [NSImage imageNamed:@"image_account_info_window"];

self.window.titlebarAppearsTransparent = YES;
self.window.titleVisibility = NSWindowTitleHidden;
Expand Down
2 changes: 1 addition & 1 deletion VHGithubNotifier/Window/VHAccountInfoWC.xib
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<constraint firstAttribute="width" constant="340" id="TjD-2b-ZyF"/>
<constraint firstAttribute="height" constant="43" id="pmU-DW-Pbc"/>
</constraints>
<textFieldCell key="cell" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" placeholderString="Username or email address" id="VO6-wV-gNF" customClass="VHTextFieldCell">
<textFieldCell key="cell" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" borderStyle="bezel" placeholderString="Github username" id="VO6-wV-gNF" customClass="VHTextFieldCell">
<font key="font" metaFont="system" size="19"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
Expand Down
2 changes: 1 addition & 1 deletion VHGithubNotifier/Window/VHWindow.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (instancetype)initWithStatusItem:(NSStatusItem *)statusBarButton withDelegate:

_windowDelegate = delegate;
[self setHasShadow:YES];
[self setLevel:NSPopUpMenuWindowLevel];
[self setLevel:NSStatusWindowLevel];
[self setOpaque:NO];
[self setBackgroundColor:[NSColor clearColor]];
[self setCollectionBehavior:NSWindowCollectionBehaviorStationary];
Expand Down

0 comments on commit fe526dc

Please sign in to comment.