Has anyone modified or tried to modify the side dock?
Yes.
In BlackDock.m the bolded part is where you can alter the shape/position of the side docks.
Code:
[B][I]- (void)resizeWithOldSuperlayerSize:(CGSize)size[/I][/B]
{
CALayer *layer = self.superlayer;
if (layer) {
NSInteger orientation;
if (object_getInstanceVariable(layer, "_orientation", (void **)&orientation)) {
[b][i]// 0:bottom, 1:left, 2:right[/b][/i]
CGRect rect = layer.bounds;
if (orientation == 0) {
rect.size.height *= 1.75; //1.65
rect.size.height += self.cornerRadius;
rect.size.height += self.borderWidth * 2;
if (self.cornerRadius == 0) {
rect.size.height += 2;
}
//rect.size.width += -18.00;
rect.size.width += self.borderWidth * 2;
rect.origin.y -= self.borderWidth;
rect.origin.y -= self.cornerRadius;
rect.origin.x -= self.borderWidth;
rect.origin.x += 2;
//rect.origin.x += 10;
} [B][I]else {
rect.size.width += self.cornerRadius;
if (orientation == 1) {
rect.origin.x -= self.cornerRadius;
}
}[/I][/B]
self.frame = rect;
}
}
}
Last edited: