Skip to content

Commit 9fff83a

Browse files
nrileypieter
authored andcommitted
Reduce font size of staged/unstaged changes lists.
This is better for smaller screens and deeply nested paths.
1 parent ad2213c commit 9fff83a

File tree

2 files changed

+35
-25
lines changed

2 files changed

+35
-25
lines changed

PBGitCommitView.xib

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.02">
2+
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.03">
33
<data>
44
<int key="IBDocument.SystemTarget">1050</int>
55
<string key="IBDocument.SystemVersion">9J61</string>
6-
<string key="IBDocument.InterfaceBuilderVersion">672</string>
6+
<string key="IBDocument.InterfaceBuilderVersion">677</string>
77
<string key="IBDocument.AppKitVersion">949.46</string>
88
<string key="IBDocument.HIToolboxVersion">353.00</string>
99
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
1010
<bool key="EncodedWithXMLCoder">YES</bool>
11-
<integer value="207"/>
12-
<integer value="226"/>
11+
<integer value="225"/>
12+
<integer value="113"/>
13+
<integer value="1" id="9"/>
1314
</object>
1415
<object class="NSArray" key="IBDocument.PluginDependencies">
1516
<bool key="EncodedWithXMLCoder">YES</bool>
1617
<string>com.apple.WebKitIBPlugin</string>
1718
<string>com.apple.InterfaceBuilderKit</string>
1819
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
1920
</object>
21+
<object class="NSMutableDictionary" key="IBDocument.Metadata">
22+
<bool key="EncodedWithXMLCoder">YES</bool>
23+
<object class="NSArray" key="dict.sortedKeys">
24+
<bool key="EncodedWithXMLCoder">YES</bool>
25+
</object>
26+
<object class="NSMutableArray" key="dict.values">
27+
<bool key="EncodedWithXMLCoder">YES</bool>
28+
</object>
29+
</object>
2030
<object class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
2131
<bool key="EncodedWithXMLCoder">YES</bool>
2232
<object class="NSCustomObject" id="1001">
@@ -117,7 +127,7 @@
117127
<bool key="EncodedWithXMLCoder">YES</bool>
118128
<integer value="12" id="777559147"/>
119129
<reference ref="777559147"/>
120-
<integer value="1" id="9"/>
130+
<reference ref="9"/>
121131
</object>
122132
</object>
123133
</object>
@@ -152,7 +162,7 @@
152162
<object class="NSTableView" id="588180404">
153163
<reference key="NSNextResponder" ref="614437325"/>
154164
<int key="NSvFlags">4352</int>
155-
<string key="NSFrameSize">{188, 193}</string>
165+
<string key="NSFrameSize">{189, 194}</string>
156166
<reference key="NSSuperview" ref="614437325"/>
157167
<bool key="NSEnabled">YES</bool>
158168
<object class="_NSCornerView" key="NSCornerView">
@@ -163,7 +173,7 @@
163173
<object class="NSMutableArray" key="NSTableColumns">
164174
<bool key="EncodedWithXMLCoder">YES</bool>
165175
<object class="NSTableColumn" id="746911078">
166-
<double key="NSWidth">1.850000e+02</double>
176+
<double key="NSWidth">1.860000e+02</double>
167177
<double key="NSMinWidth">1.000000e+01</double>
168178
<double key="NSMaxWidth">3.402823e+38</double>
169179
<object class="NSTableHeaderCell" key="NSHeaderCell">
@@ -193,9 +203,9 @@
193203
</object>
194204
<object class="NSTextFieldCell" key="NSDataCell" id="45690317">
195205
<int key="NSCellFlags">337772096</int>
196-
<int key="NSCellFlags2">2048</int>
206+
<int key="NSCellFlags2">133120</int>
197207
<string key="NSContents">Text Cell</string>
198-
<reference key="NSSupport" ref="554612341"/>
208+
<reference key="NSSupport" ref="26"/>
199209
<reference key="NSControlView" ref="588180404"/>
200210
<object class="NSColor" key="NSBackgroundColor" id="520920468">
201211
<int key="NSColorSpace">6</int>
@@ -222,15 +232,15 @@
222232
<bytes key="NSWhite">MC41AA</bytes>
223233
</object>
224234
</object>
225-
<double key="NSRowHeight">1.700000e+01</double>
235+
<double key="NSRowHeight">1.500000e+01</double>
226236
<int key="NSTvFlags">-566231040</int>
227237
<int key="NSColumnAutoresizingStyle">4</int>
228238
<int key="NSDraggingSourceMaskForLocal">15</int>
229239
<int key="NSDraggingSourceMaskForNonLocal">0</int>
230240
<bool key="NSAllowsTypeSelect">YES</bool>
231241
</object>
232242
</object>
233-
<string key="NSFrame">{{1, 1}, {188, 193}}</string>
243+
<string key="NSFrame">{{1, 1}, {189, 194}}</string>
234244
<reference key="NSSuperview" ref="563607114"/>
235245
<reference key="NSNextKeyView" ref="588180404"/>
236246
<reference key="NSDocView" ref="588180404"/>
@@ -240,7 +250,7 @@
240250
<object class="NSScroller" id="187271467">
241251
<reference key="NSNextResponder" ref="563607114"/>
242252
<int key="NSvFlags">-2147483392</int>
243-
<string key="NSFrame">{{244, 0}, {15, 150}}</string>
253+
<string key="NSFrame">{{174, 1}, {15, 178}}</string>
244254
<reference key="NSSuperview" ref="563607114"/>
245255
<reference key="NSTarget" ref="563607114"/>
246256
<string key="NSAction">_doScroller:</string>
@@ -249,22 +259,22 @@
249259
<object class="NSScroller" id="588638971">
250260
<reference key="NSNextResponder" ref="563607114"/>
251261
<int key="NSvFlags">-2147483392</int>
252-
<string key="NSFrame">{{1, 150}, {243, 15}}</string>
262+
<string key="NSFrame">{{1, 179}, {173, 15}}</string>
253263
<reference key="NSSuperview" ref="563607114"/>
254264
<int key="NSsFlags">1</int>
255265
<reference key="NSTarget" ref="563607114"/>
256266
<string key="NSAction">_doScroller:</string>
257-
<double key="NSPercent">9.959016e-01</double>
267+
<double key="NSPercent">9.947090e-01</double>
258268
</object>
259269
</object>
260-
<string key="NSFrameSize">{190, 195}</string>
270+
<string key="NSFrame">{{-1, -1}, {191, 196}}</string>
261271
<reference key="NSSuperview" ref="663963274"/>
262272
<reference key="NSNextKeyView" ref="614437325"/>
263273
<int key="NSsFlags">562</int>
264274
<reference key="NSVScroller" ref="187271467"/>
265275
<reference key="NSHScroller" ref="588638971"/>
266276
<reference key="NSContentView" ref="614437325"/>
267-
<bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
277+
<bytes key="NSScrollAmts">QSAAAEEgAABBiAAAQYgAAA</bytes>
268278
</object>
269279
</object>
270280
<string key="NSFrameSize">{190, 200}</string>
@@ -570,7 +580,7 @@
570580
<object class="NSTableView" id="638535043">
571581
<reference key="NSNextResponder" ref="551030904"/>
572582
<int key="NSvFlags">4352</int>
573-
<string key="NSFrameSize">{213, 193}</string>
583+
<string key="NSFrameSize">{214, 194}</string>
574584
<reference key="NSSuperview" ref="551030904"/>
575585
<int key="NSTag">1</int>
576586
<bool key="NSEnabled">YES</bool>
@@ -582,7 +592,7 @@
582592
<object class="NSMutableArray" key="NSTableColumns">
583593
<bool key="EncodedWithXMLCoder">YES</bool>
584594
<object class="NSTableColumn" id="79177434">
585-
<double key="NSWidth">2.100000e+02</double>
595+
<double key="NSWidth">2.110000e+02</double>
586596
<double key="NSMinWidth">1.000000e+01</double>
587597
<double key="NSMaxWidth">3.402823e+38</double>
588598
<object class="NSTableHeaderCell" key="NSHeaderCell">
@@ -595,9 +605,9 @@
595605
</object>
596606
<object class="NSTextFieldCell" key="NSDataCell" id="39450212">
597607
<int key="NSCellFlags">67239488</int>
598-
<int key="NSCellFlags2">2048</int>
608+
<int key="NSCellFlags2">133120</int>
599609
<string key="NSContents">Text Cell</string>
600-
<reference key="NSSupport" ref="554612341"/>
610+
<reference key="NSSupport" ref="26"/>
601611
<reference key="NSControlView" ref="638535043"/>
602612
<reference key="NSBackgroundColor" ref="520920468"/>
603613
<reference key="NSTextColor" ref="132492410"/>
@@ -612,15 +622,15 @@
612622
<double key="NSIntercellSpacingHeight">2.000000e+00</double>
613623
<reference key="NSBackgroundColor" ref="818038086"/>
614624
<reference key="NSGridColor" ref="974303383"/>
615-
<double key="NSRowHeight">1.700000e+01</double>
625+
<double key="NSRowHeight">1.500000e+01</double>
616626
<int key="NSTvFlags">-566231040</int>
617627
<int key="NSColumnAutoresizingStyle">4</int>
618628
<int key="NSDraggingSourceMaskForLocal">15</int>
619629
<int key="NSDraggingSourceMaskForNonLocal">0</int>
620630
<bool key="NSAllowsTypeSelect">YES</bool>
621631
</object>
622632
</object>
623-
<string key="NSFrame">{{1, 1}, {213, 193}}</string>
633+
<string key="NSFrame">{{1, 1}, {214, 194}}</string>
624634
<reference key="NSSuperview" ref="617511385"/>
625635
<reference key="NSNextKeyView" ref="638535043"/>
626636
<reference key="NSDocView" ref="638535043"/>
@@ -647,14 +657,14 @@
647657
<double key="NSPercent">9.003322e-01</double>
648658
</object>
649659
</object>
650-
<string key="NSFrameSize">{215, 195}</string>
660+
<string key="NSFrame">{{0, -1}, {216, 196}}</string>
651661
<reference key="NSSuperview" ref="559277910"/>
652662
<reference key="NSNextKeyView" ref="551030904"/>
653663
<int key="NSsFlags">562</int>
654664
<reference key="NSVScroller" ref="64334438"/>
655665
<reference key="NSHScroller" ref="831852936"/>
656666
<reference key="NSContentView" ref="551030904"/>
657-
<bytes key="NSScrollAmts">QSAAAEEgAABBmAAAQZgAAA</bytes>
667+
<bytes key="NSScrollAmts">QSAAAEEgAABBiAAAQYgAAA</bytes>
658668
</object>
659669
</object>
660670
<string key="NSFrameSize">{215, 200}</string>

PBIconAndTextCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ - (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
4949
imageFrame.size = imageSize;
5050

5151
if ([controlView isFlipped])
52-
imageFrame.origin.y += ceil((cellFrame.size.height + imageFrame.size.height) / 2);
52+
imageFrame.origin.y += floor((cellFrame.size.height + imageFrame.size.height) / 2);
5353
else
5454
imageFrame.origin.y += ceil((cellFrame.size.height - imageFrame.size.height) / 2);
5555

0 commit comments

Comments
 (0)