Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 5 commits
  • 74 files changed
  • 0 commit comments
  • 1 contributor
Showing with 435 additions and 245 deletions.
  1. +28 −8 Gitos-iPad.xcodeproj/project.pbxproj
  2. BIN ...iPad.xcodeproj/project.xcworkspace/xcuserdata/trivuong.xcuserdatad/UserInterfaceState.xcuserstate
  3. +9 −9 Gitos-iPad.xcodeproj/xcuserdata/trivuong.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
  4. +0 −1 Gitos-iPad/Cells/CommitCell.h
  5. +0 −1 Gitos-iPad/Cells/IssueCell.m
  6. +1 −50 Gitos-iPad/Cells/RepoCell.xib
  7. +6 −1 Gitos-iPad/Cells/RepoDetailsCell.m
  8. +3 −2 Gitos-iPad/Cells/RepoDetailsCell.xib
  9. +0 −2 Gitos-iPad/Classes/AppConfig.m
  10. +0 −1 Gitos-iPad/Classes/Branch.h
  11. +0 −1 Gitos-iPad/Classes/Branch.m
  12. +0 −1 Gitos-iPad/Classes/Comment.h
  13. +0 −1 Gitos-iPad/Classes/Comment.m
  14. +0 −1 Gitos-iPad/Classes/Commit.h
  15. +1 −0 Gitos-iPad/Classes/GitosConstants.h
  16. +1 −0 Gitos-iPad/Classes/GitosConstants.m
  17. +0 −1 Gitos-iPad/Classes/Issue.h
  18. +0 −1 Gitos-iPad/Classes/Organization.h
  19. +0 −1 Gitos-iPad/Classes/Repo.h
  20. +0 −1 Gitos-iPad/Classes/Repo.m
  21. +0 −1 Gitos-iPad/Classes/User.m
  22. +0 −1 Gitos-iPad/Controllers/CommitViewController.h
  23. +0 −3 Gitos-iPad/Controllers/CommitViewController.m
  24. +0 −1 Gitos-iPad/Controllers/CommitsViewController.h
  25. +0 −3 Gitos-iPad/Controllers/CommitsViewController.m
  26. +1 −1 Gitos-iPad/Controllers/FeedbackViewController.m
  27. +6 −2 Gitos-iPad/Controllers/GistRawFileViewController.h
  28. +37 −10 Gitos-iPad/Controllers/GistRawFileViewController.m
  29. +0 −1 Gitos-iPad/Controllers/GistViewController.h
  30. +1 −1 Gitos-iPad/Controllers/GistViewController.m
  31. +0 −2 Gitos-iPad/Controllers/GistsViewController.h
  32. +1 −9 Gitos-iPad/Controllers/GistsViewController.m
  33. +0 −1 Gitos-iPad/Controllers/IssueDetailsViewController.h
  34. +0 −3 Gitos-iPad/Controllers/IssueDetailsViewController.m
  35. +0 −1 Gitos-iPad/Controllers/IssuesViewController.h
  36. +0 −3 Gitos-iPad/Controllers/IssuesViewController.m
  37. +2 −3 Gitos-iPad/Controllers/LoginViewController.m
  38. +9 −7 Gitos-iPad/Controllers/LoginViewController.xib
  39. +0 −1 Gitos-iPad/Controllers/NewsfeedDetailsViewController.h
  40. +0 −2 Gitos-iPad/Controllers/NewsfeedDetailsViewController.m
  41. +0 −1 Gitos-iPad/Controllers/NotificationsViewController.h
  42. +0 −2 Gitos-iPad/Controllers/OrganizationViewController.h
  43. +5 −7 Gitos-iPad/Controllers/OrganizationViewController.m
  44. +2 −3 Gitos-iPad/Controllers/OrganizationViewController.xib
  45. +0 −2 Gitos-iPad/Controllers/OrganizationsViewController.h
  46. +0 −4 Gitos-iPad/Controllers/OrganizationsViewController.m
  47. +0 −1 Gitos-iPad/Controllers/OthersViewController.h
  48. +0 −1 Gitos-iPad/Controllers/OthersViewController.m
  49. +0 −2 Gitos-iPad/Controllers/ProfileViewController.h
  50. +1 −1 Gitos-iPad/Controllers/ProfileViewController.m
  51. +5 −3 Gitos-iPad/Controllers/RawFileViewController.h
  52. +28 −8 Gitos-iPad/Controllers/RawFileViewController.m
  53. +0 −2 Gitos-iPad/Controllers/RecentActivityViewController.h
  54. +0 −6 Gitos-iPad/Controllers/RecentActivityViewController.m
  55. +0 −3 Gitos-iPad/Controllers/RepoSearchViewController.h
  56. +0 −4 Gitos-iPad/Controllers/RepoSearchViewController.m
  57. +0 −1 Gitos-iPad/Controllers/RepoTreeViewController.h
  58. +0 −2 Gitos-iPad/Controllers/RepoViewController.h
  59. +1 −1 Gitos-iPad/Controllers/RepoViewController.m
  60. +0 −2 Gitos-iPad/Controllers/ReposViewController.h
  61. +1 −1 Gitos-iPad/Controllers/ReposViewController.m
  62. +0 −3 Gitos-iPad/Controllers/SearchViewController.h
  63. +0 −3 Gitos-iPad/Controllers/StarredViewController.h
  64. +1 −2 Gitos-iPad/Controllers/StarredViewController.m
  65. +0 −3 Gitos-iPad/Controllers/WebsiteViewController.h
  66. +0 −1 Gitos-iPad/Controllers/WebsiteViewController.m
  67. +1 −0 Gitos-iPad/Gitos-iPad-Prefix.pch
  68. +0 −30 Gitos-iPad/Html/prettify.css
  69. +40 −0 Gitos-iPad/Html/prettify_themes/desert.css
  70. +58 −0 Gitos-iPad/Html/prettify_themes/doxy.css
  71. +57 −0 Gitos-iPad/Html/prettify_themes/prettify.css
  72. +121 −0 Gitos-iPad/Html/prettify_themes/sons-of-obsidian.css
  73. +7 −6 Gitos-iPad/Html/{ → prettify_themes}/sunburst.css
  74. +1 −1 Gitos-iPad/Html/raw_file.html
View
36 Gitos-iPad.xcodeproj/project.pbxproj
@@ -279,9 +279,12 @@
B569D0C716FE6496002216DD /* glyphicons_198_ok@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B569D0C316FE6496002216DD /* glyphicons_198_ok@2x.png */; };
B569D0D216FE6F0F002216DD /* Authorization.m in Sources */ = {isa = PBXBuildFile; fileRef = B569D0D116FE6F0F002216DD /* Authorization.m */; };
B569D0D516FE7923002216DD /* GitosConstants.m in Sources */ = {isa = PBXBuildFile; fileRef = B569D0D416FE7923002216DD /* GitosConstants.m */; };
+ B574CF3416FFAAA00077D353 /* desert.css in Resources */ = {isa = PBXBuildFile; fileRef = B574CF3016FFAAA00077D353 /* desert.css */; };
+ B574CF3516FFAAA00077D353 /* prettify.css in Resources */ = {isa = PBXBuildFile; fileRef = B574CF3116FFAAA00077D353 /* prettify.css */; };
+ B574CF3616FFAAA00077D353 /* sons-of-obsidian.css in Resources */ = {isa = PBXBuildFile; fileRef = B574CF3216FFAAA00077D353 /* sons-of-obsidian.css */; };
+ B574CF3716FFAAA00077D353 /* sunburst.css in Resources */ = {isa = PBXBuildFile; fileRef = B574CF3316FFAAA00077D353 /* sunburst.css */; };
+ B574CF3916FFB28C0077D353 /* doxy.css in Resources */ = {isa = PBXBuildFile; fileRef = B574CF3816FFB28C0077D353 /* doxy.css */; };
B57E39AA16FE5CBB006C2BD1 /* YRDropdownView.m in Sources */ = {isa = PBXBuildFile; fileRef = B57E39A916FE5CBB006C2BD1 /* YRDropdownView.m */; };
- B5BC451E16BA5DFD00434848 /* prettify.css in Resources */ = {isa = PBXBuildFile; fileRef = B5BC451B16BA5DFD00434848 /* prettify.css */; };
- B5BC452016BA5DFD00434848 /* sunburst.css in Resources */ = {isa = PBXBuildFile; fileRef = B5BC451D16BA5DFD00434848 /* sunburst.css */; };
B5BC452116BA5E3F00434848 /* prettify.js in Resources */ = {isa = PBXBuildFile; fileRef = B5BC451C16BA5DFD00434848 /* prettify.js */; };
B5BC452516BCEE7100434848 /* MasterViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = B5BC452316BCEE7000434848 /* MasterViewController.m */; };
B5BC452616BCEE7100434848 /* MasterViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = B5BC452416BCEE7000434848 /* MasterViewController.xib */; };
@@ -675,11 +678,14 @@
B569D0D116FE6F0F002216DD /* Authorization.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Authorization.m; sourceTree = "<group>"; };
B569D0D316FE7923002216DD /* GitosConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GitosConstants.h; sourceTree = "<group>"; };
B569D0D416FE7923002216DD /* GitosConstants.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GitosConstants.m; sourceTree = "<group>"; };
+ B574CF3016FFAAA00077D353 /* desert.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = desert.css; sourceTree = "<group>"; };
+ B574CF3116FFAAA00077D353 /* prettify.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = prettify.css; sourceTree = "<group>"; };
+ B574CF3216FFAAA00077D353 /* sons-of-obsidian.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = "sons-of-obsidian.css"; sourceTree = "<group>"; };
+ B574CF3316FFAAA00077D353 /* sunburst.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = sunburst.css; sourceTree = "<group>"; };
+ B574CF3816FFB28C0077D353 /* doxy.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = doxy.css; sourceTree = "<group>"; };
B57E39A816FE5CBB006C2BD1 /* YRDropdownView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = YRDropdownView.h; sourceTree = "<group>"; };
B57E39A916FE5CBB006C2BD1 /* YRDropdownView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = YRDropdownView.m; sourceTree = "<group>"; };
- B5BC451B16BA5DFD00434848 /* prettify.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = prettify.css; sourceTree = "<group>"; };
B5BC451C16BA5DFD00434848 /* prettify.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = prettify.js; sourceTree = "<group>"; };
- B5BC451D16BA5DFD00434848 /* sunburst.css */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.css; path = sunburst.css; sourceTree = "<group>"; };
B5BC452216BCEE6F00434848 /* MasterViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MasterViewController.h; sourceTree = "<group>"; };
B5BC452316BCEE7000434848 /* MasterViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MasterViewController.m; sourceTree = "<group>"; };
B5BC452416BCEE7000434848 /* MasterViewController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = MasterViewController.xib; sourceTree = "<group>"; };
@@ -1216,6 +1222,18 @@
path = Cells;
sourceTree = "<group>";
};
+ B574CF2F16FFAAA00077D353 /* prettify_themes */ = {
+ isa = PBXGroup;
+ children = (
+ B574CF3016FFAAA00077D353 /* desert.css */,
+ B574CF3116FFAAA00077D353 /* prettify.css */,
+ B574CF3216FFAAA00077D353 /* sons-of-obsidian.css */,
+ B574CF3316FFAAA00077D353 /* sunburst.css */,
+ B574CF3816FFB28C0077D353 /* doxy.css */,
+ );
+ path = prettify_themes;
+ sourceTree = "<group>";
+ };
B57E39A716FE5CBB006C2BD1 /* YRDropdownView */ = {
isa = PBXGroup;
children = (
@@ -1228,13 +1246,12 @@
B5BC451A16BA5DFC00434848 /* Html */ = {
isa = PBXGroup;
children = (
- B5BC451B16BA5DFD00434848 /* prettify.css */,
+ B574CF2F16FFAAA00077D353 /* prettify_themes */,
B5BC457A16BEE21700434848 /* FontAwesome.ttf */,
B5BC451C16BA5DFD00434848 /* prettify.js */,
B542275916CDF86E0020F300 /* diff.js */,
B511D43816D9C6A600DD0ED5 /* underscore.js */,
B542275A16CDF86E0020F300 /* highlight.js */,
- B5BC451D16BA5DFD00434848 /* sunburst.css */,
B552949316C85FEB0010D56A /* bootstrap.css */,
B552949816C866380010D56A /* issue_details.html */,
B552949A16C8705B0010D56A /* gitos.css */,
@@ -1425,8 +1442,6 @@
B516545816B7C1B9003F0DFA /* barButtonPressed.svg in Resources */,
B516545916B7C1B9003F0DFA /* Untitled-2.png in Resources */,
B516545B16B7C558003F0DFA /* AppConfig.plist in Resources */,
- B5BC451E16BA5DFD00434848 /* prettify.css in Resources */,
- B5BC452016BA5DFD00434848 /* sunburst.css in Resources */,
B5BC452616BCEE7100434848 /* MasterViewController.xib in Resources */,
B5BC456D16BD996200434848 /* DetailsViewController.xib in Resources */,
B5BC457516BE6C1A00434848 /* magma_border.png in Resources */,
@@ -1472,6 +1487,11 @@
B569D0C516FE6496002216DD /* glyphicons_078_warning_sign@2x.png in Resources */,
B569D0C616FE6496002216DD /* glyphicons_198_ok.png in Resources */,
B569D0C716FE6496002216DD /* glyphicons_198_ok@2x.png in Resources */,
+ B574CF3416FFAAA00077D353 /* desert.css in Resources */,
+ B574CF3516FFAAA00077D353 /* prettify.css in Resources */,
+ B574CF3616FFAAA00077D353 /* sons-of-obsidian.css in Resources */,
+ B574CF3716FFAAA00077D353 /* sunburst.css in Resources */,
+ B574CF3916FFB28C0077D353 /* doxy.css in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
BIN ...deproj/project.xcworkspace/xcuserdata/trivuong.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
18 Gitos-iPad.xcodeproj/xcuserdata/trivuong.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
@@ -21,11 +21,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Gitos-iPad/Classes/User.m"
- timestampString = "381820504.190669"
+ timestampString = "385873978.487842"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
- startingLineNumber = "12"
- endingLineNumber = "12"
+ startingLineNumber = "11"
+ endingLineNumber = "11"
landmarkName = "@implementation User"
landmarkType = "3">
</FileBreakpoint>
@@ -34,11 +34,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Gitos-iPad/Controllers/OrganizationViewController.m"
- timestampString = "381999526.401674"
+ timestampString = "385851007.934553"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
- startingLineNumber = "111"
- endingLineNumber = "111"
+ startingLineNumber = "107"
+ endingLineNumber = "107"
landmarkName = "-tableView:cellForRowAtIndexPath:"
landmarkType = "5">
</FileBreakpoint>
@@ -47,11 +47,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Gitos-iPad/Controllers/OrganizationViewController.m"
- timestampString = "381999526.401674"
+ timestampString = "385851007.934553"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
- startingLineNumber = "133"
- endingLineNumber = "133"
+ startingLineNumber = "129"
+ endingLineNumber = "129"
landmarkName = "-tableView:cellForRowAtIndexPath:"
landmarkType = "5">
</FileBreakpoint>
View
1 Gitos-iPad/Cells/CommitCell.h
@@ -7,7 +7,6 @@
//
#import <UIKit/UIKit.h>
-#import "RelativeDateDescriptor.h"
#import "Commit.h"
@interface CommitCell : UITableViewCell
View
1 Gitos-iPad/Cells/IssueCell.m
@@ -7,7 +7,6 @@
//
#import "IssueCell.h"
-#import "NSString+FontAwesome.h"
@implementation IssueCell
View
51 Gitos-iPad/Cells/RepoCell.xib
@@ -45,7 +45,6 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{41, 9}, {426, 21}}</string>
<reference key="NSSuperview" ref="390018270"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="552696292"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
@@ -81,7 +80,6 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{594, 27}, {21, 14}}</string>
<reference key="NSSuperview" ref="390018270"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="36814808"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIUserInteractionEnabled">NO</bool>
@@ -96,7 +94,6 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{619, 23}, {49, 21}}</string>
<reference key="NSSuperview" ref="390018270"/>
- <reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
@@ -128,7 +125,6 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{509, 25}, {16, 16}}</string>
<reference key="NSSuperview" ref="390018270"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="619633788"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIUserInteractionEnabled">NO</bool>
@@ -143,7 +139,6 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{530, 23}, {49, 21}}</string>
<reference key="NSSuperview" ref="390018270"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="680195919"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
@@ -167,7 +162,6 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{41, 34}, {426, 21}}</string>
<reference key="NSSuperview" ref="390018270"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="843529923"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
@@ -200,7 +194,6 @@
<int key="NSvFlags">292</int>
<string key="NSFrame">{{6, 9}, {30, 21}}</string>
<reference key="NSSuperview" ref="390018270"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="370891270"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
@@ -231,7 +224,6 @@
</array>
<string key="NSFrameSize">{703, 66}</string>
<reference key="NSSuperview" ref="792805460"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="636978850"/>
<string key="NSReuseIdentifierKey">_NS:11</string>
<object class="NSColor" key="IBUIBackgroundColor">
@@ -247,7 +239,6 @@
</array>
<string key="NSFrameSize">{703, 67}</string>
<reference key="NSSuperview"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="390018270"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
@@ -390,47 +381,7 @@
<nil key="sourceID"/>
<int key="maxID">21</int>
</object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <array class="NSMutableArray" key="referencedPartialClassDescriptions">
- <object class="IBPartialClassDescription">
- <string key="className">RepoCell</string>
- <string key="superclassName">UITableViewCell</string>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="descriptionLabel">UILabel</string>
- <string key="fontAwesomeLabel">UILabel</string>
- <string key="forkLabel">UILabel</string>
- <string key="repoNameLabel">UILabel</string>
- <string key="starLabel">UILabel</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="descriptionLabel">
- <string key="name">descriptionLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- <object class="IBToOneOutletInfo" key="fontAwesomeLabel">
- <string key="name">fontAwesomeLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- <object class="IBToOneOutletInfo" key="forkLabel">
- <string key="name">forkLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- <object class="IBToOneOutletInfo" key="repoNameLabel">
- <string key="name">repoNameLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- <object class="IBToOneOutletInfo" key="starLabel">
- <string key="name">starLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/RepoCell.h</string>
- </object>
- </object>
- </array>
- </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
View
7 Gitos-iPad/Cells/RepoDetailsCell.m
@@ -29,6 +29,11 @@ - (void)setSelected:(BOOL)selected animated:(BOOL)animated
- (void)renderForIndexPath:(NSIndexPath *)indexPath
{
NSString *fieldLabelText = @"", *fieldValueText = @"";
+ NSString *homepage = [self.repo getHomepage];
+
+ if (homepage.length >= REPO_DETAILS_MAX_CHARS) {
+ homepage = [[homepage substringToIndex:REPO_DETAILS_MAX_CHARS] stringByAppendingString:@"..."];
+ }
switch (indexPath.row) {
case 0:
@@ -37,7 +42,7 @@ - (void)renderForIndexPath:(NSIndexPath *)indexPath
break;
case 1:
fieldLabelText = @"Website";
- fieldValueText = [self.repo getHomepage];
+ fieldValueText = homepage;
break;
case 2:
fieldLabelText = @"Watchers";
View
5 Gitos-iPad/Cells/RepoDetailsCell.xib
@@ -42,7 +42,7 @@
<object class="IBUILabel" id="153751941">
<reference key="NSNextResponder" ref="1030391321"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{20, 11}, {128, 21}}</string>
+ <string key="NSFrame">{{20, 11}, {97, 21}}</string>
<reference key="NSSuperview" ref="1030391321"/>
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="491140852"/>
@@ -80,7 +80,7 @@
<object class="IBUILabel" id="491140852">
<reference key="NSNextResponder" ref="1030391321"/>
<int key="NSvFlags">292</int>
- <string key="NSFrame">{{203, 11}, {784, 21}}</string>
+ <string key="NSFrame">{{156, 11}, {507, 21}}</string>
<reference key="NSSuperview" ref="1030391321"/>
<reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
@@ -96,6 +96,7 @@
</object>
<reference key="IBUIHighlightedColor" ref="589319003"/>
<int key="IBUIBaselineAdjustment">0</int>
+ <int key="IBUILineBreakMode">1</int>
<object class="IBUIFontDescription" key="IBUIFontDescription">
<string key="name">ArialMT</string>
<string key="family">Arial</string>
View
2 Gitos-iPad/Classes/AppConfig.m
@@ -8,8 +8,6 @@
#import <Foundation/Foundation.h>
-#import "AppConfig.h"
-
@implementation AppConfig
+ (NSString *)getConfigValue:(NSString *)valueName
View
1 Gitos-iPad/Classes/Branch.h
@@ -7,7 +7,6 @@
//
#import <Foundation/Foundation.h>
-#import "AppConfig.h"
@interface Branch : NSObject
View
1 Gitos-iPad/Classes/Branch.m
@@ -7,7 +7,6 @@
//
#import "Branch.h"
-#import "AppConfig.h"
@implementation Branch
View
1 Gitos-iPad/Classes/Comment.h
@@ -8,7 +8,6 @@
#import <Foundation/Foundation.h>
#import "User.h"
-#import "RelativeDateDescriptor.h"
@interface Comment : NSObject
View
1 Gitos-iPad/Classes/Comment.m
@@ -7,7 +7,6 @@
//
#import "Comment.h"
-#import "User.h"
@implementation Comment
View
1 Gitos-iPad/Classes/Commit.h
@@ -7,7 +7,6 @@
//
#import <Foundation/Foundation.h>
-#import "RelativeDateDescriptor.h"
#import "User.h"
@interface Commit : NSObject
View
1 Gitos-iPad/Classes/GitosConstants.h
@@ -14,5 +14,6 @@ extern const NSString *CLIENT_ID;
extern const NSString *CLIENT_SECRET;
extern NSString * const LOADING_MESSAGE;
extern const float HIDE_AFTER;
+extern const int REPO_DETAILS_MAX_CHARS;
@end
View
1 Gitos-iPad/Classes/GitosConstants.m
@@ -14,5 +14,6 @@ @implementation GitosConstants
const NSString *CLIENT_SECRET = @"07d3e053d06132245799f4afe45b90d2780a89a8";
NSString * const LOADING_MESSAGE = @"Loading";
const float HIDE_AFTER = 2.0f;
+const int REPO_DETAILS_MAX_CHARS = 65;
@end
View
1 Gitos-iPad/Classes/Issue.h
@@ -8,7 +8,6 @@
#import <Foundation/Foundation.h>
#import "User.h"
-#import "RelativeDateDescriptor.h"
@interface Issue : NSObject
View
1 Gitos-iPad/Classes/Organization.h
@@ -7,7 +7,6 @@
//
#import <Foundation/Foundation.h>
-#import "RelativeDateDescriptor.h"
@interface Organization : NSObject
View
1 Gitos-iPad/Classes/Repo.h
@@ -7,7 +7,6 @@
//
#import <Foundation/Foundation.h>
-#import "RelativeDateDescriptor.h"
@interface Repo : NSObject
View
1 Gitos-iPad/Classes/Repo.m
@@ -7,7 +7,6 @@
//
#import "Repo.h"
-#import "RelativeDateDescriptor.h"
@implementation Repo
View
1 Gitos-iPad/Classes/User.m
@@ -7,7 +7,6 @@
//
#import "User.h"
-#import "RelativeDateDescriptor.h"
@implementation User
View
1 Gitos-iPad/Controllers/CommitViewController.h
@@ -8,7 +8,6 @@
#import <UIKit/UIKit.h>
#import "Commit.h"
-#import "MBProgressHUD.h"
@interface CommitViewController : UIViewController <UIWebViewDelegate>
View
3 Gitos-iPad/Controllers/CommitViewController.m
@@ -7,9 +7,6 @@
//
#import "CommitViewController.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
-#import "SSKeychain.h"
#import "CommitFile.h"
#import "User.h"
View
1 Gitos-iPad/Controllers/CommitsViewController.h
@@ -8,7 +8,6 @@
#import <UIKit/UIKit.h>
#import "Repo.h"
-#import "MBProgressHUD.h"
#import "Branch.h"
@interface CommitsViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UIScrollViewDelegate>
View
3 Gitos-iPad/Controllers/CommitsViewController.m
@@ -8,9 +8,6 @@
#import "CommitsViewController.h"
#import "CommitViewController.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
-#import "SSKeychain.h"
#import "CommitCell.h"
@interface CommitsViewController ()
View
2 Gitos-iPad/Controllers/FeedbackViewController.m
@@ -48,7 +48,7 @@ - (void)performHouseKeepingTasks
[feedbackTable setBackgroundView:nil];
[feedbackTable setScrollEnabled:NO];
[feedbackTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
- [feedbackTable setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
+ [feedbackTable setSeparatorColor:[UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]];
}
- (void)sendFeedback
View
8 Gitos-iPad/Controllers/GistRawFileViewController.h
@@ -7,16 +7,20 @@
//
#import <UIKit/UIKit.h>
-#import "MBProgressHUD.h"
#import "GistFile.h"
-@interface GistRawFileViewController : UIViewController <UIWebViewDelegate, NSURLConnectionDelegate>
+@interface GistRawFileViewController : UIViewController <UIWebViewDelegate, NSURLConnectionDelegate, UIActionSheetDelegate>
@property (nonatomic, weak) IBOutlet UIWebView *fileWebView;
@property (nonatomic, strong) MBProgressHUD *hud;
@property (nonatomic, strong) GistFile *gistFile;
+@property (nonatomic, strong) NSString *theme;
+@property (nonatomic, strong) NSArray *themes;
+@property (nonatomic, strong) UIActionSheet *themesOptions;
- (void)performHouseKeepingTasks;
+- (void)fetchRawFile;
+- (void)switchTheme;
- (NSString *)encodeHtmlEntities:(NSString *)rawHtmlString;
@end
View
47 Gitos-iPad/Controllers/GistRawFileViewController.m
@@ -14,13 +14,15 @@ @interface GistRawFileViewController ()
@implementation GistRawFileViewController
-@synthesize fileWebView;
+@synthesize fileWebView, theme, themes, themesOptions, hud;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
+ themes = @[@"prettify.css", @"desert.css", @"sunburst.css", @"sons-of-obsidian.css", @"doxy.css"];
+ theme = [themes objectAtIndex:0];
}
return self;
}
@@ -30,30 +32,40 @@ - (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
[self performHouseKeepingTasks];
- NSURL *fileUrl = [NSURL URLWithString:[self.gistFile getRawUrl]];
- NSURLRequest *fileRequest = [NSURLRequest requestWithURL:fileUrl];
- NSURLConnection *fileConnection = [NSURLConnection connectionWithRequest:fileRequest delegate:self];
- [fileConnection start];
+ [self fetchRawFile];
}
- (void)performHouseKeepingTasks
{
[self.navigationItem setTitle:[self.gistFile getName]];
- self.hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
- self.hud.mode = MBProgressHUDAnimationFade;
- self.hud.labelText = @"Loading";
+
+ hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
+ hud.mode = MBProgressHUDAnimationFade;
+ hud.labelText = LOADING_MESSAGE;
+}
+
+- (void)fetchRawFile
+{
+ NSURL *fileUrl = [NSURL URLWithString:[self.gistFile getRawUrl]];
+ NSURLRequest *fileRequest = [NSURLRequest requestWithURL:fileUrl];
+ NSURLConnection *fileConnection = [NSURLConnection connectionWithRequest:fileRequest delegate:self];
+ [fileConnection start];
}
- (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
{
+ UIBarButtonItem *switchThemeButton = [[UIBarButtonItem alloc] initWithTitle:@"Switch Theme" style:UIBarButtonItemStyleBordered target:self action:@selector(switchTheme)];
+
+ self.navigationItem.rightBarButtonItem = switchThemeButton;
+
NSString *rawFilePath = [[NSBundle mainBundle] pathForResource:@"raw_file" ofType:@"html"];
NSString *rawFileContent = [NSString stringWithContentsOfFile:rawFilePath encoding:NSUTF8StringEncoding error:nil];
NSString *content = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSURL *baseURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];
- NSString *htmlString = [NSString stringWithFormat:rawFileContent, [self encodeHtmlEntities:content]];
+ NSString *htmlString = [NSString stringWithFormat:rawFileContent, theme, [self encodeHtmlEntities:content]];
[fileWebView loadHTMLString:htmlString baseURL:baseURL];
[fileWebView loadHTMLString:htmlString baseURL:baseURL];
- [self.hud hide:YES];
+ [hud hide:YES];
}
- (NSString *)encodeHtmlEntities:(NSString *)rawHtmlString
@@ -68,6 +80,21 @@ - (void)webViewDidFinishLoad:(UIWebView *)webView
[self.hud hide:YES];
}
+- (void)switchTheme
+{
+ themesOptions = [[UIActionSheet alloc] initWithTitle:@"Choose Themes" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Default", @"Desert", @"Sunburst", @"Sons Of Obsidian", @"Doxy", nil];
+ themesOptions.actionSheetStyle = UIActionSheetStyleBlackOpaque;
+ [themesOptions showInView:[UIApplication sharedApplication].keyWindow];
+}
+
+- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
+{
+ if (buttonIndex != themesOptions.cancelButtonIndex) {
+ theme = [themes objectAtIndex:buttonIndex];
+ [self fetchRawFile];
+ }
+}
+
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
View
1 Gitos-iPad/Controllers/GistViewController.h
@@ -9,7 +9,6 @@
#import <UIKit/UIKit.h>
#import "Gist.h"
#import "User.h"
-#import "MBProgressHUD.h"
@interface GistViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
View
2 Gitos-iPad/Controllers/GistViewController.m
@@ -64,7 +64,7 @@ - (void)registerNib
[table registerNib:nib forCellReuseIdentifier:@"GistDetailsCell"];
[table setBackgroundView:nil];
[table setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
- [table setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
+ [table setSeparatorColor:[UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]];
[table setScrollEnabled:NO];
}
}
View
2 Gitos-iPad/Controllers/GistsViewController.h
@@ -7,9 +7,7 @@
//
#import <UIKit/UIKit.h>
-#import "MBProgressHUD.h"
#import "User.h"
-#import "RelativeDateDescriptor.h"
@interface GistsViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
View
10 Gitos-iPad/Controllers/GistsViewController.m
@@ -7,15 +7,8 @@
//
#import "GistsViewController.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
-#import "SSKeychain.h"
#import "GistCell.h"
-#import "RelativeDateDescriptor.h"
-#import "SVPullToRefresh.h"
#import "Gist.h"
-#import "SSKeychain.h"
-#import "AppConfig.h"
#import "GistViewController.h"
@interface GistsViewController ()
@@ -71,8 +64,7 @@ - (void)registerNib
[gistsTable setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
[gistsTable setBackgroundView:nil];
[gistsTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
- [gistsTable setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
- [self.view setBackgroundColor:[UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:1.0]];
+ [gistsTable setSeparatorColor:[UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]];
}
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
View
1 Gitos-iPad/Controllers/IssueDetailsViewController.h
@@ -8,7 +8,6 @@
#import <UIKit/UIKit.h>
#import "Issue.h"
-#import "MBProgressHUD.h"
@interface IssueDetailsViewController : UIViewController <UIWebViewDelegate>
View
3 Gitos-iPad/Controllers/IssueDetailsViewController.m
@@ -7,9 +7,6 @@
//
#import "IssueDetailsViewController.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
-#import "SSKeychain.h"
#import "Comment.h"
@interface UILabel (BPExtensions)
View
1 Gitos-iPad/Controllers/IssuesViewController.h
@@ -7,7 +7,6 @@
//
#import <UIKit/UIKit.h>
-#import "MBProgressHUD.h"
#import "Repo.h"
#import "User.h"
View
3 Gitos-iPad/Controllers/IssuesViewController.m
@@ -9,9 +9,6 @@
#import "IssuesViewController.h"
#import "IssueDetailsViewController.h"
#import "Issue.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
-#import "SSKeychain.h"
#import "IssueCell.h"
@interface IssuesViewController ()
View
5 Gitos-iPad/Controllers/LoginViewController.m
@@ -50,7 +50,7 @@ - (void)performHousekeepingTasks
{
hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
hud.mode = MBProgressHUDAnimationFade;
- hud.labelText = @"Loading";
+ hud.labelText = LOADING_MESSAGE;
hud.hidden = YES;
[self.navigationItem setTitle:@"Login to Github"];
@@ -62,8 +62,7 @@ - (void)performHousekeepingTasks
[loginTable setBackgroundView:nil];
[loginTable setScrollEnabled:NO];
[loginTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
- [loginTable setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
- [self.view setBackgroundColor:[UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:1.0]];
+ [loginTable setSeparatorColor:[UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]];
}
- (void)setDelegates
View
16 Gitos-iPad/Controllers/LoginViewController.xib
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<archive type="com.apple.InterfaceBuilder3.CocoaTouch.iPad.XIB" version="8.00">
<data>
- <int key="IBDocument.SystemTarget">1536</int>
+ <int key="IBDocument.SystemTarget">1552</int>
<string key="IBDocument.SystemVersion">11G63</string>
- <string key="IBDocument.InterfaceBuilderVersion">2843</string>
+ <string key="IBDocument.InterfaceBuilderVersion">3084</string>
<string key="IBDocument.AppKitVersion">1138.51</string>
<string key="IBDocument.HIToolboxVersion">569.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
- <string key="NS.object.0">1929</string>
+ <string key="NS.object.0">2083</string>
</object>
<array key="IBDocument.IntegratedClassDependencies">
<string>IBProxyObject</string>
@@ -43,7 +43,6 @@
<string key="NSFrameSize">{1024, 748}</string>
<reference key="NSSuperview" ref="766721923"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor">
<int key="NSColorSpace">1</int>
@@ -97,7 +96,6 @@
<string key="NSFrame">{{20, 7}, {984, 30}}</string>
<reference key="NSSuperview" ref="229234598"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
@@ -148,6 +146,10 @@
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="229234598"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
+ <object class="NSColor" key="IBUIBackgroundColor" id="802888400">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
<int key="IBUISelectionStyle">0</int>
<reference key="IBUIContentView" ref="229234598"/>
@@ -166,7 +168,6 @@
<string key="NSFrame">{{20, 7}, {984, 30}}</string>
<reference key="NSSuperview" ref="311892694"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
@@ -208,6 +209,7 @@
<reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="311892694"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
+ <reference key="IBUIBackgroundColor" ref="802888400"/>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
<int key="IBUISelectionStyle">0</int>
<reference key="IBUIContentView" ref="311892694"/>
@@ -403,6 +405,6 @@
<string key="IBDocument.TargetRuntimeIdentifier">IBIPadFramework</string>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<int key="IBDocument.defaultPropertyAccessControl">3</int>
- <string key="IBCocoaTouchPluginVersion">1929</string>
+ <string key="IBCocoaTouchPluginVersion">2083</string>
</data>
</archive>
View
1 Gitos-iPad/Controllers/NewsfeedDetailsViewController.h
@@ -8,7 +8,6 @@
#import <UIKit/UIKit.h>
#import "TimelineEvent.h"
-#import "MBProgressHUD.h"
@interface NewsfeedDetailsViewController : UIViewController <UIWebViewDelegate>
View
2 Gitos-iPad/Controllers/NewsfeedDetailsViewController.m
@@ -7,8 +7,6 @@
//
#import "NewsfeedDetailsViewController.h"
-#import "AppConfig.h"
-#import "SSKeychain.h"
@interface NewsfeedDetailsViewController ()
View
1 Gitos-iPad/Controllers/NotificationsViewController.h
@@ -6,7 +6,6 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
#import "Notification.h"
@interface NotificationsViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
View
2 Gitos-iPad/Controllers/OrganizationViewController.h
@@ -6,9 +6,7 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
#import "Organization.h"
-#import "MBProgressHUD.h"
@interface OrganizationViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
View
12 Gitos-iPad/Controllers/OrganizationViewController.m
@@ -7,9 +7,6 @@
//
#import "OrganizationViewController.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
-#import "SSKeychain.h"
#import "WebsiteViewController.h"
@interface OrganizationViewController ()
@@ -46,8 +43,7 @@ - (void)performHouseKeepingTasks
[organizationTable setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
[organizationTable setBackgroundView:nil];
[organizationTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
- [organizationTable setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
- [self.view setBackgroundColor:[UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:1.0]];
+ [organizationTable setSeparatorColor:[UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]];
}
- (void)fetchOrganizationInfo
@@ -140,10 +136,12 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
break;
}
- cell.textLabel.font = [UIFont fontWithName:@"Arial" size:14];
- cell.textLabel.text = textLabel;
+ cell.textLabel.font = [UIFont fontWithName:@"Arial" size:14];
+ cell.textLabel.text = textLabel;
cell.detailTextLabel.font = [UIFont fontWithName:@"Arial" size:14];
cell.detailTextLabel.text = textDetail;
+ cell.backgroundColor = [UIColor whiteColor];
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell;
}
View
5 Gitos-iPad/Controllers/OrganizationViewController.xib
@@ -43,9 +43,8 @@
<reference key="NSWindow"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<object class="NSColor" key="IBUIBackgroundColor">
- <int key="NSColorSpace">1</int>
- <bytes key="NSRGB">MCAwIDAgMAA</bytes>
- <string key="IBUIColorCocoaTouchKeyPath">groupTableViewBackgroundColor</string>
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
</object>
<bool key="IBUIClipsSubviews">YES</bool>
<string key="targetRuntimeIdentifier">IBIPadFramework</string>
View
2 Gitos-iPad/Controllers/OrganizationsViewController.h
@@ -6,8 +6,6 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
-#import "MBProgressHUD.h"
#import "User.h"
@interface OrganizationsViewController : UIViewController <UITableViewDelegate, UITableViewDataSource>
View
4 Gitos-iPad/Controllers/OrganizationsViewController.m
@@ -7,10 +7,6 @@
//
#import "OrganizationsViewController.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
-#import "AppConfig.h"
-#import "SSKeychain.h"
#import "Organization.h"
#import "OrganizationViewController.h"
View
1 Gitos-iPad/Controllers/OthersViewController.h
@@ -6,7 +6,6 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
#import "User.h"
@interface OthersViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UIActionSheetDelegate>
View
1 Gitos-iPad/Controllers/OthersViewController.m
@@ -8,7 +8,6 @@
#import "OthersViewController.h"
#import "ProfileViewController.h"
-#import "SSKeychain.h"
#import "LoginViewController.h"
#import "RepoSearchViewController.h"
View
2 Gitos-iPad/Controllers/ProfileViewController.h
@@ -6,8 +6,6 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
-#import <QuartzCore/QuartzCore.h>
#import "User.h"
@interface ProfileViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, MFMailComposeViewControllerDelegate, UIActionSheetDelegate>
View
2 Gitos-iPad/Controllers/ProfileViewController.m
@@ -75,7 +75,7 @@ - (void)prepareProfileTable
[profileTable registerNib:nib forCellReuseIdentifier:@"ProfileCell"];
[profileTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
- [profileTable setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
+ [profileTable setSeparatorColor:[UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]];
[profileTable setBackgroundView:nil];
[profileTable setScrollEnabled:NO];
}
View
8 Gitos-iPad/Controllers/RawFileViewController.h
@@ -6,12 +6,10 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
#import "Repo.h"
#import "Branch.h"
-#import "MBProgressHUD.h"
-@interface RawFileViewController : UIViewController <UIWebViewDelegate, NSURLConnectionDataDelegate>
+@interface RawFileViewController : UIViewController <UIWebViewDelegate, NSURLConnectionDataDelegate, UIActionSheetDelegate>
@property (nonatomic, weak) IBOutlet UIWebView *fileWebView;
@property (nonatomic, strong) Repo *repo;
@@ -21,8 +19,12 @@
@property (nonatomic, strong) NSString *mimeType;
@property (nonatomic, strong) NSURL *rawFileUrl;
@property (nonatomic, strong) NSURLRequest *rawFileRequest;
+@property (nonatomic, strong) NSString *theme;
+@property (nonatomic, strong) NSArray *themes;
+@property (nonatomic, strong) UIActionSheet *themesOptions;
- (void)fetchRawFile;
+- (void)switchTheme;
- (NSString *)encodeHtmlEntities:(NSString *)rawHtmlString;
@end
View
36 Gitos-iPad/Controllers/RawFileViewController.m
@@ -7,9 +7,6 @@
//
#import "RawFileViewController.h"
-#import "AppConfig.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
#import "RepoTreeNode.h"
#import "RepoTreeViewController.h"
@@ -19,13 +16,15 @@ @interface RawFileViewController ()
@implementation RawFileViewController
-@synthesize repo, branch, fileName, mimeType, rawFileUrl, rawFileRequest, fileWebView;
+@synthesize repo, branch, fileName, mimeType, rawFileUrl, rawFileRequest, fileWebView, hud, theme, themesOptions, themes;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
+ themes = @[@"prettify.css", @"desert.css", @"sunburst.css", @"sons-of-obsidian.css", @"doxy.css"];
+ theme = [themes objectAtIndex:0];
}
return self;
}
@@ -35,9 +34,11 @@ - (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
[self.navigationItem setTitle:self.fileName];
- self.hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
- self.hud.mode = MBProgressHUDAnimationFade;
- self.hud.labelText = @"Loading";
+
+ hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
+ hud.mode = MBProgressHUDAnimationFade;
+ hud.labelText = LOADING_MESSAGE;
+
[self fetchRawFile];
}
@@ -102,16 +103,35 @@ - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
// Raw file is an image
[fileWebView loadRequest:self.rawFileRequest];
} else if ([self.mimeType isEqualToString:@"text/plain"]) {
+ UIBarButtonItem *switchThemeButton = [[UIBarButtonItem alloc] initWithTitle:@"Switch Theme" style:UIBarButtonItemStyleBordered target:self action:@selector(switchTheme)];
+
+ self.navigationItem.rightBarButtonItem = switchThemeButton;
+
NSString *rawFilePath = [[NSBundle mainBundle] pathForResource:@"raw_file" ofType:@"html"];
NSString *rawFileContent = [NSString stringWithContentsOfFile:rawFilePath encoding:NSUTF8StringEncoding error:nil];
NSString *content = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
NSURL *baseURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] bundlePath]];
- NSString *htmlString = [NSString stringWithFormat:rawFileContent, [self encodeHtmlEntities:content]];
+ NSString *htmlString = [NSString stringWithFormat:rawFileContent, theme, [self encodeHtmlEntities:content]];
[fileWebView loadHTMLString:htmlString baseURL:baseURL];
}
[self.hud hide:YES];
}
+- (void)switchTheme
+{
+ themesOptions = [[UIActionSheet alloc] initWithTitle:@"Choose Themes" delegate:self cancelButtonTitle:@"Cancel" destructiveButtonTitle:nil otherButtonTitles:@"Default", @"Desert", @"Sunburst", @"Sons Of Obsidian", @"Doxy", nil];
+ themesOptions.actionSheetStyle = UIActionSheetStyleBlackOpaque;
+ [themesOptions showInView:[UIApplication sharedApplication].keyWindow];
+}
+
+- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex
+{
+ if (buttonIndex != themesOptions.cancelButtonIndex) {
+ theme = [themes objectAtIndex:buttonIndex];
+ [self fetchRawFile];
+ }
+}
+
- (NSString *)encodeHtmlEntities:(NSString *)rawHtmlString
{
return [[rawHtmlString
View
2 Gitos-iPad/Controllers/RecentActivityViewController.h
@@ -6,9 +6,7 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
#import "User.h"
-#import "MBProgressHUD.h"
@interface RecentActivityViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
View
6 Gitos-iPad/Controllers/RecentActivityViewController.m
@@ -7,14 +7,8 @@
//
#import "RecentActivityViewController.h"
-#import "AFHTTPClient.h"
-#import "AFHTTPRequestOperation.h"
#import "NewsFeedCell.h"
-#import "NSString+FontAwesome.h"
-#import "AppConfig.h"
-#import "SSKeychain.h"
#import "TimelineEvent.h"
-#import "SVPullToRefresh.h"
@interface RecentActivityViewController ()
View
3 Gitos-iPad/Controllers/RepoSearchViewController.h
@@ -6,10 +6,7 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
-#import <QuartzCore/QuartzCore.h>
#import "User.h"
-#import "MBProgressHUD.h"
@interface RepoSearchViewController : UIViewController <UISearchBarDelegate, UITableViewDataSource, UITableViewDelegate>
View
4 Gitos-iPad/Controllers/RepoSearchViewController.m
@@ -7,10 +7,6 @@
//
#import "RepoSearchViewController.h"
-#import "SSKeychain.h"
-#import "AFHTTPClient.h"
-#import "AFJSONRequestOperation.h"
-#import "AppConfig.h"
#import "Repo.h"
#import "RepoSearchResultCell.h"
#import "RepoViewController.h"
View
1 Gitos-iPad/Controllers/RepoTreeViewController.h
@@ -6,7 +6,6 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
#import "Branch.h"
#import "Repo.h"
#import "RepoTreeNode.h"
View
2 Gitos-iPad/Controllers/RepoViewController.h
@@ -6,9 +6,7 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
#import "Repo.h"
-#import "MBProgressHUD.h"
@interface RepoViewController : UIViewController
<UITableViewDataSource, UITableViewDelegate>
View
2 Gitos-iPad/Controllers/RepoViewController.m
@@ -82,7 +82,7 @@ - (void)registerNib
[table setScrollEnabled:NO];
[table setBackgroundView:nil];
[table setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
- [table setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
+ [table setSeparatorColor:[UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]];
}
}
View
2 Gitos-iPad/Controllers/ReposViewController.h
@@ -6,9 +6,7 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
#import "User.h"
-#import "MBProgressHUD.h"
@interface ReposViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
View
2 Gitos-iPad/Controllers/ReposViewController.m
@@ -65,7 +65,7 @@ - (void)registerNib
[reposTable setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
[reposTable setBackgroundView:nil];
[reposTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
- [reposTable setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
+ [reposTable setSeparatorColor:[UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]];
}
- (void)getUserInfoAndRepos
View
3 Gitos-iPad/Controllers/SearchViewController.h
@@ -6,9 +6,6 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
-#import <QuartzCore/QuartzCore.h>
-
@interface SearchViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate>
@property (nonatomic, strong) NSString *accessToken;
View
3 Gitos-iPad/Controllers/StarredViewController.h
@@ -6,10 +6,7 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-
-#import <UIKit/UIKit.h>
#import "User.h"
-#import "MBProgressHUD.h"
@interface StarredViewController : UIViewController <UITableViewDataSource, UITableViewDelegate>
View
3 Gitos-iPad/Controllers/StarredViewController.m
@@ -64,8 +64,7 @@ - (void)registerNib
[starredReposTable setAutoresizingMask:(UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight)];
[starredReposTable setBackgroundView:nil];
[starredReposTable setSeparatorStyle:UITableViewCellSeparatorStyleSingleLine];
- [starredReposTable setSeparatorColor:[UIColor colorWithRed:206/255.0 green:206/255.0 blue:206/255.0 alpha:0.8]];
- [self.view setBackgroundColor:[UIColor colorWithRed:229/255.0 green:229/255.0 blue:229/255.0 alpha:1.0]];
+ [starredReposTable setSeparatorColor:[UIColor colorWithRed:200/255.0 green:200/255.0 blue:200/255.0 alpha:1.0]];
}
- (void)getUserInfo
View
3 Gitos-iPad/Controllers/WebsiteViewController.h
@@ -6,9 +6,6 @@
// Copyright (c) 2013 Crafted By Tri. All rights reserved.
//
-#import <UIKit/UIKit.h>
-#import <QuartzCore/QuartzCore.h>
-
@interface WebsiteViewController : UIViewController <UIWebViewDelegate, UIActionSheetDelegate, MFMailComposeViewControllerDelegate>
@property (nonatomic, strong) NSString *requestedUrl;
View
1 Gitos-iPad/Controllers/WebsiteViewController.m
@@ -7,7 +7,6 @@
//
#import "WebsiteViewController.h"
-#import "NSString+FontAwesome.h"
@interface WebsiteViewController ()
View
1 Gitos-iPad/Gitos-iPad-Prefix.pch
@@ -13,6 +13,7 @@
#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
#import <MessageUI/MessageUI.h>
+ #import <QuartzCore/QuartzCore.h>
#import "GitosConstants.h"
#import "AFHTTPClient.h"
#import "AFHTTPRequestOperation.h"
View
30 Gitos-iPad/Html/prettify.css
@@ -1,30 +0,0 @@
-/* Pretty printing styles. Used with prettify.js. */
-html, body, div, p, ul, li { margin:0; padding: 0 }
-
-body { padding: 20px }
-
-.str { color: #080; }
-.kwd { color: #008; }
-.com { color: #800; }
-.typ { color: #606; }
-.lit { color: #066; }
-.pun { color: #660; }
-.pln { color: #000; }
-.tag { color: #008; }
-.atn { color: #606; }
-.atv { color: #080; }
-.dec { color: #606; }
-pre.prettyprint { padding: 2px }
-
-@media print {
- .str { color: #060; }
- .kwd { color: #006; font-weight: bold; }
- .com { color: #600; font-style: italic; }
- .typ { color: #404; font-weight: bold; }
- .lit { color: #044; }
- .pun { color: #440; }
- .pln { color: #000; }
- .tag { color: #006; font-weight: bold; }
- .atn { color: #404; }
- .atv { color: #060; }
-}
View
40 Gitos-iPad/Html/prettify_themes/desert.css
@@ -0,0 +1,40 @@
+/* desert scheme ported from vim to google prettify */
+html, body { margin:0; padding: 0; background: #333 }
+
+pre, code { display: block; margin: 0 }
+pre { padding: 10px }
+code { padding: 0 }
+
+pre.prettyprint { display: block; background-color: #333 }
+pre .nocode { background-color: none; color: #000 }
+pre .str { color: #ffa0a0 } /* string - pink */
+pre .kwd { color: #f0e68c; font-weight: bold }
+pre .com { color: #87ceeb } /* comment - skyblue */
+pre .typ { color: #98fb98 } /* type - lightgreen */
+pre .lit { color: #cd5c5c } /* literal - darkred */
+pre .pun { color: #fff } /* punctuation */
+pre .pln { color: #fff } /* plaintext */
+pre .tag { color: #f0e68c; font-weight: bold } /* html/xml tag - lightyellow */
+pre .atn { color: #bdb76b; font-weight: bold } /* attribute name - khaki */
+pre .atv { color: #ffa0a0 } /* attribute value - pink */
+pre .dec { color: #98fb98 } /* decimal - lightgreen */
+
+/* Specify class=linenums on a pre to get line numbering */
+ol.linenums { margin-top: 0; margin-bottom: 0; color: #AEAEAE } /* IE indents via margin-left */
+li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
+/* Alternate shading for lines */
+li.L1,li.L3,li.L5,li.L7,li.L9 { }
+
+@media print {
+ pre.prettyprint { background-color: none }
+ pre .str, code .str { color: #060 }
+ pre .kwd, code .kwd { color: #006; font-weight: bold }
+ pre .com, code .com { color: #600; font-style: italic }
+ pre .typ, code .typ { color: #404; font-weight: bold }
+ pre .lit, code .lit { color: #044 }
+ pre .pun, code .pun { color: #440 }
+ pre .pln, code .pln { color: #000 }
+ pre .tag, code .tag { color: #006; font-weight: bold }
+ pre .atn, code .atn { color: #404 }
+ pre .atv, code .atv { color: #060 }
+}
View
58 Gitos-iPad/Html/prettify_themes/doxy.css
@@ -0,0 +1,58 @@
+/* Doxy pretty-printing styles. Used with prettify.js. */
+
+html, body { margin: 0; padding: 0; background: #0f0f0f }
+
+pre, code { display: block; margin: 0 }
+pre { padding: 10px }
+code { padding: 0 }
+
+pre .str, code .str { color: #fec243; } /* string - eggyolk gold */
+pre .kwd, code .kwd { color: #8470FF; } /* keyword - light slate blue */
+pre .com, code .com { color: #32cd32; font-style: italic; } /* comment - green */
+pre .typ, code .typ { color: #6ecbcc; } /* type - turq green */
+pre .lit, code .lit { color: #d06; } /* literal - cherry red */
+pre .pun, code .pun { color: #8B8970; } /* punctuation - lemon chiffon4 */
+pre .pln, code .pln { color: #f0f0f0; } /* plaintext - white */
+pre .tag, code .tag { color: #9c9cff; } /* html/xml tag (bluey) */
+pre .htm, code .htm { color: #dda0dd; } /* html tag light purply*/
+pre .xsl, code .xsl { color: #d0a0d0; } /* xslt tag light purply*/
+pre .atn, code .atn { color: #46eeee; font-weight: normal;} /* html/xml attribute name - lt turquoise */
+pre .atv, code .atv { color: #EEB4B4; } /* html/xml attribute value - rosy brown2 */
+pre .dec, code .dec { color: #3387CC; } /* decimal - blue */
+
+a {
+ text-decoration: none;
+}
+pre.prettyprint, code.prettyprint {
+ font-family: 'monospace';
+} /* background is black (well, just a tad less dark ) */
+
+pre.prettyprint {
+ white-space: pre-wrap;
+}
+
+pre.prettyprint a, code.prettyprint a {
+ text-decoration:none;
+}
+/* Specify class=linenums on a pre to get line numbering; line numbers themselves are the same color as punctuation */
+ol.linenums { margin-top: 0; margin-bottom: 0; color: #8B8970; } /* IE indents via margin-left */
+li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8 { list-style-type: none }
+/* Alternate shading for lines */
+li.L1,li.L3,li.L5,li.L7,li.L9 { }
+
+/* print is mostly unchanged from default at present */
+@media print {
+ pre.prettyprint, code.prettyprint { background-color: #fff; }
+ pre .str, code .str { color: #088; }
+ pre .kwd, code .kwd { color: #006; font-weight: bold; }
+ pre .com, code .com { color: #oc3; font-style: italic; }
+ pre .typ, code .typ { color: #404; font-weight: bold; }
+ pre .lit, code .lit { color: #044; }
+ pre .pun, code .pun { color: #440; }
+ pre .pln, code .pln { color: #000; }
+ pre .tag, code .tag { color: #b66ff7; font-weight: bold; }
+ pre .htm, code .htm { color: #606; font-weight: bold; }
+ pre .xsl, code .xsl { color: #606; font-weight: bold; }
+ pre .atn, code .atn { color: #c71585; font-weight: normal; }
+ pre .atv, code .atv { color: #088; font-weight: normal; }
+}
View
57 Gitos-iPad/Html/prettify_themes/prettify.css
@@ -0,0 +1,57 @@
+/* Pretty printing styles. Used with prettify.js. */
+
+html, body { margin: 0; padding: 0 }
+
+pre, code { display: block; margin: 0 }
+pre { padding: 10px }
+code { padding: 0 }
+
+/* SPAN elements with the classes below are added by prettyprint. */
+.pln { color: #000 } /* plain text */
+
+@media screen {
+ .str { color: #080 } /* string content */
+ .kwd { color: #008 } /* a keyword */
+ .com { color: #800 } /* a comment */
+ .typ { color: #606 } /* a type name */
+ .lit { color: #066 } /* a literal value */
+ /* punctuation, lisp open bracket, lisp close bracket */
+ .pun, .opn, .clo { color: #660 }
+ .tag { color: #008 } /* a markup tag name */
+ .atn { color: #606 } /* a markup attribute name */
+ .atv { color: #080 } /* a markup attribute value */
+ .dec, .var { color: #606 } /* a declaration; a variable name */
+ .fun { color: red } /* a function name */
+}
+
+/* Use higher contrast and text-weight for printable form. */
+@media print, projection {
+ .str { color: #060 }
+ .kwd { color: #006; font-weight: bold }
+ .com { color: #600; font-style: italic }
+ .typ { color: #404; font-weight: bold }
+ .lit { color: #044 }
+ .pun, .opn, .clo { color: #440 }
+ .tag { color: #006; font-weight: bold }
+ .atn { color: #404 }
+ .atv { color: #060 }
+}
+
+/* Put a border around prettyprinted code snippets. */
+
+/* Specify class=linenums on a pre to get line numbering */
+ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */
+li.L0,
+li.L1,
+li.L2,
+li.L3,
+li.L5,
+li.L6,
+li.L7,
+li.L8 { list-style-type: none }
+/* Alternate shading for lines */
+li.L1,
+li.L3,
+li.L5,
+li.L7,
+li.L9 { background: #eee }
View
121 Gitos-iPad/Html/prettify_themes/sons-of-obsidian.css
@@ -0,0 +1,121 @@
+/*
+ * Derived from einaros's Sons of Obsidian theme at
+ * http://studiostyl.es/schemes/son-of-obsidian by
+ * Alex Ford of CodeTunnel:
+ * http://CodeTunnel.com/blog/post/71/google-code-prettify-obsidian-theme
+ */
+
+html, body { margin: 0; padding: 0; background: #444 }
+
+pre, code { display: block; margin: 0 }
+pre { padding: 10px }
+code { padding: 0 }
+
+.str
+{
+ color: #EC7600;
+}
+.kwd
+{
+ color: #93C763;
+}
+.com
+{
+ color: #66747B;
+}
+.typ
+{
+ color: #678CB1;
+}
+.lit
+{
+ color: #FACD22;
+}
+.pun
+{
+ color: #F1F2F3;
+}
+.pln
+{
+ color: #F1F2F3;
+}
+.tag
+{
+ color: #8AC763;
+}
+.atn
+{
+ color: #E0E2E4;
+}
+.atv
+{
+ color: #EC7600;
+}
+.dec
+{
+ color: purple;
+}
+pre.prettyprint
+{
+ border: 0px solid #888;
+}
+ol.linenums
+{
+ margin-top: 0;
+ margin-bottom: 0;
+}
+li.L0, li.L1, li.L2, li.L3, li.L4, li.L5, li.L6, li.L7, li.L8, li.L9
+{
+ color: #555;
+ list-style-type: decimal;
+}
+li.L1, li.L3, li.L5, li.L7, li.L9 {
+ background: #111;
+}
+@media print
+{
+ .str
+ {
+ color: #060;
+ }
+ .kwd
+ {
+ color: #006;
+ font-weight: bold;
+ }
+ .com
+ {
+ color: #600;
+ font-style: italic;
+ }
+ .typ
+ {
+ color: #404;
+ font-weight: bold;
+ }
+ .lit
+ {
+ color: #044;
+ }
+ .pun
+ {
+ color: #440;
+ }
+ .pln
+ {
+ color: #000;
+ }
+ .tag
+ {
+ color: #006;
+ font-weight: bold;
+ }
+ .atn
+ {
+ color: #404;
+ }
+ .atv
+ {
+ color: #060;
+ }
+}
View
13 Gitos-iPad/Html/sunburst.css → Gitos-iPad/Html/prettify_themes/sunburst.css