@@ -181,12 +181,28 @@ + (void)initialize
181181 CFPreferencesSetAppValue (CFSTR (" NSRepeatCountBinding" ),
182182 CFSTR (" " ),
183183 kCFPreferencesCurrentApplication );
184-
184+
185+ int tabMinWidthKey;
186+ int tabMaxWidthKey;
187+ int tabOptimumWidthKey;
188+ if (shouldUseYosemiteTabBarStyle ()) {
189+ tabMinWidthKey = 120 ;
190+ tabMaxWidthKey = 0 ;
191+ tabOptimumWidthKey = 0 ;
192+ } else {
193+ tabMinWidthKey = 64 ;
194+ tabMaxWidthKey = 6 *64 ;
195+ tabOptimumWidthKey = 132 ;
196+ }
197+
185198 NSDictionary *dict = [NSDictionary dictionaryWithObjectsAndKeys:
186199 [NSNumber numberWithBool: NO ], MMNoWindowKey,
187- [NSNumber numberWithInt: 64 ], MMTabMinWidthKey,
188- [NSNumber numberWithInt: 6 *64 ], MMTabMaxWidthKey,
189- [NSNumber numberWithInt: 132 ], MMTabOptimumWidthKey,
200+ [NSNumber numberWithInt: tabMinWidthKey],
201+ MMTabMinWidthKey,
202+ [NSNumber numberWithInt: tabMaxWidthKey],
203+ MMTabMaxWidthKey,
204+ [NSNumber numberWithInt: tabOptimumWidthKey],
205+ MMTabOptimumWidthKey,
190206 [NSNumber numberWithBool: YES ], MMShowAddTabButtonKey,
191207 [NSNumber numberWithInt: 2 ], MMTextInsetLeftKey,
192208 [NSNumber numberWithInt: 1 ], MMTextInsetRightKey,
0 commit comments