1
3
I'm on OSX 10.7, can I have rectangular tabs on Google Chrome?
1
3
I'm on OSX 10.7, can I have rectangular tabs on Google Chrome?
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 – 2012-06-08T16:34:24.193
3@datatoo It's not that hard to search through source code :P – slhck – 2012-06-08T18:49:27.723
2@slhck Shhhh. Don't spill my secrets! – Daniel Beck – 2012-06-08T21:08:29.813
Thank you Daniel Beck, I'll try to compile chrome and see if I can tweak those corners ;) – a--m – 2012-06-12T15:08:58.037
@dome Any progress? – Daniel Beck – 2012-08-05T21:11:11.377
5What's a square tab? – Daniel Beck – 2012-06-08T15:24:22.970
1@DanielBeck: I must assume rectangular is requested here (instead of the default, trapezoid shape). – Der Hochstapler – 2012-06-08T15:28:34.040
Thank you for the comments, I've edited the question. Oliver Salzburg understood well my zenglish ;) – a--m – 2012-06-12T14:20:39.390