1

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

  • 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). – Der Hochstapler Jun 8 '12 at 15:28
  • Thank you for the comments, I've edited the question. Oliver Salzburg understood well my zenglish ;) – a--m Jun 12 '12 at 14:20
14

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;
  • 4
    +1 I am amazed someone happens to just know this – datatoo Jun 8 '12 at 16:34
  • 3
    @datatoo It's not that hard to search through source code :P – slhck Jun 8 '12 at 18:49
  • 2
    @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 ;) – a--m Jun 12 '12 at 15:08
  • @dome Any progress? – Daniel Beck Aug 5 '12 at 21:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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