Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm on OSX 10.7, can I have rectangular tabs on Google Chrome?

share|improve this question
5  
What's a square tab? –  Daniel Beck Jun 8 '12 at 15:24
1  
@DanielBeck: I must assume rectangular is requested here (instead of the default, trapezoid shape). –  Oliver Salzburg Jun 8 '12 at 15:28
    
Thank you for the comments, I've edited the question. Oliver Salzburg understood well my zenglish ;) –  dome Jun 12 '12 at 14:20

1 Answer 1

up vote 13 down vote accepted

If Oliver Salzburg is correct, and you want differently shaped tabs:

It's hardcoded in (NSBezierPath*)bezierPathForRect:(NSRect)rect of chrome/browser/ui/cocoa/tabs/tab_view.mm.

You could try to play around with the constants used there, and compile Chrome/Chromium yourself:

// Constants for inset and control points for tab shape.
const CGFloat kInsetMultiplier = 2.0/3.0;
const CGFloat kControlPoint1Multiplier = 1.0/3.0;
const CGFloat kControlPoint2Multiplier = 3.0/8.0;
share|improve this answer
3  
+1 I am amazed someone happens to just know this –  datatoo Jun 8 '12 at 16:34
2  
@datatoo It's not that hard to search through source code :P –  slhck Jun 8 '12 at 18:49
1  
@slhck Shhhh. Don't spill my secrets! –  Daniel Beck Jun 8 '12 at 21:08
    
Thank you Daniel Beck, I'll try to compile chrome and see if I can tweak those corners ;) –  dome Jun 12 '12 at 15:08
    
@dome Any progress? –  Daniel Beck Aug 5 '12 at 21:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.