Skip to content

Commit

Permalink
Merge pull request #2 from cHoco/padding
Browse files Browse the repository at this point in the history
Big code refactor + added padding + other fixes
  • Loading branch information
choco committed May 14, 2016
2 parents c3afc31 + d0a2f5a commit 8188d12
Show file tree
Hide file tree
Showing 7 changed files with 341 additions and 45 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
noTitleBar-Terminal.bundle
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[submodule "JRSwizzle"]
path = JRSwizzle
url = git://github.com/rentzsch/jrswizzle.git
ignore = dirty
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

Simple SIMBL plugin that removes the Titlebar (and Toolbar) from Terminal.app.


![Screenshot 1](/screen1.png?raw=true)

Why and how
-----------

Expand All @@ -13,6 +16,12 @@ the title bar, and since I thought it was pretty cool I decided to add the same
option in Terminal.app
The basic change is removing the NSTitledWindowMask during the window creation,
the other hooked functions are needed to keep all Terminal features working.
Now it also supports padding and active tab color personalization!
The background color of the padding area is taken from the current tab
background color, to have the best integration possible.


![Screenshot 2](/screen2.png?raw=true)

Download
--------
Expand Down
27 changes: 27 additions & 0 deletions noTitleBar-Terminal.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,31 @@

@interface noTitleBarTerminal : NSObject

+ (void)setUpWindow:(NSWindow *)terminalWindow;
+ (void)hideTitleBar:(NSWindow *)terminalWindow;
+ (void)showTitleBar:(NSWindow *)terminalWindow;
+ (void)setUpPadding:(NSWindow *)terminalWindow;
+ (void)resetPadding:(NSWindow *)terminalWindow;
+ (void)restoreSize:(NSWindow *)terminalWindow fromFullScreen:(BOOL)fullscreen;

@end

@interface TTView : NSView
- (id)profile;
@end

@interface TTPane : NSView
- (id)view;
@end

@interface TTTabController : NSObject
- (id)activePane;
- (id)windowController;
@end

@interface TTTabViewItem : NSTabViewItem
- (BOOL)tabState;
- (TTTabController *)tabController;
- (NSView *)tabView;
- (void)_drawLabel:(struct CGRect)rect;
@end
Loading

0 comments on commit 8188d12

Please sign in to comment.