Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
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:
Here a Tiger style dock !

If you want to modify the separator just modify the vertical.png in dock.app resources
 

Attachments

  • Capture d’écran 2014-04-20 à 12.30.17.png
    Capture d’écran 2014-04-20 à 12.30.17.png
    65.3 KB · Views: 284
  • Resources Dock.zip
    2 MB · Views: 306
  • Resources cDock.zip
    10.8 KB · Views: 325
Okay finally got around to building the first beta for v4.

http://sourceforge.net/projects/cdock/files/cDock Beta/cDock_v4.0.b1.zip/download

At this point it's pretty much only for mildly advanced users but here's the changes:

----------------------------------------------------------------------------------------------------

v4.0.b1

New: Customizable Picture Background
( ~/Library/Application Support/cDock/background.jpg )

New: Customizable Separator
( ~/Library/Application Support/cDock/separator.jpg )

New: Customizable Dock Settings
( ~/Library/Application Support/cDock/dock_settings.txt )

  • Background Color
    • red 0-255
    • green 0-255
    • blue 0-255
    • alpha 0-100
  • Border Color
    • red 0-255
    • green 0-255
    • blue 0-255
    • alpha 0-100
  • Corner radius
  • Border width
  • Shadow radius
  • Shadow opacity
  • Picture 1 - Color 0 (background)
  • Picture Opacity 0-100

Fixed: Misc bugs
Fixed: Positioning of side dock if border or corner radius where above 0

Removed: Most pre-made docks

----------------------------------------------------------------------------------------------------

Attached is an example of using a picture background.
 

Attachments

  • Screen Shot 2014-04-27 at 2.14.27 PM.png
    Screen Shot 2014-04-27 at 2.14.27 PM.png
    77.1 KB · Views: 283
Last edited:
Works great!

Yeah, man! You did a great job! finally my mavericks dock looks flat.

This configuration looks clean:
255
255
255
85
180
180
180
0
5
0
0
0
0
0

rzcS2LC.png


the dark one:

0
0
0
80
180
180
180
0
5
0
0
0
0
0

yja0nIt.png


And my 2 cents:
– my 1 pix width separator actually looks 2 pix. I can't make it transparent like in png format (so i removed it from the folder)
– when killing dock (i.e. for specific terminal command), everything rolls back to 3d dock. So i should run cdock script again.
 
Last edited:
Good work!

Here's mine:

47
47
46
64
180
180
180
67
4
1
0
60
0
0
 

Attachments

  • Screen Shot 2014-04-28 at 22.24.36.png
    Screen Shot 2014-04-28 at 22.24.36.png
    279.5 KB · Views: 411
I’m trying to recreate the original mountain lion 2d dock that looks similar to the current stack folder, which has a dark blurred background and a translucent border. However cDock draws border on top of the background, so if i set the border to translucent, the colours would mix up.

To help to get my point across:

Screenshot 2014-04-30 08.05.58.png
Translucent blue border turns purple on top of sold red background

Screenshot 2014-04-30 08.15.43.png
Comparison between my recreated 2d dock and the stack

Screenshot 2014-04-30 08.34.03.png
The original 2d dock in mountain lion

since cDock is still in beta, can you please fix the border issue and maybe add blur options in the final release? Very much appreciated :)
 
Last edited:
To make cdock look more accurate like original, I think there is a reason to make background side borders 4-5 pix thinner and pull icons 2pix down. (not exact, cuz must be in percents)

like it looks in 10.7:
smallest
rMuCKNu.png

medium:
apJ3dEm.png

Largest:
63Nip3y.png
 
Last edited:
v4.0-b2

http://sourceforge.net/projects/cdock/files/cDock Beta/current.zip/download

Now you can adjust the dimension and positioning of the dock.

Still trying to figure out if blur is possible and how to fix the border issue.

----------------------------------------------------------------------------------------------------

v4.0-b2

New: More Customizable Dock Settings
( ~/Library/Application Support/cDock/dock_settings.txt )

  • +width
  • +height
  • x adjustment (+/-) negative true - positive false
  • +x position
  • y adjustment (+/-) negative true - positive false
  • +y position
Fixed: Some positioning issues

----------------------------------------------------------------------------------------------------
 
Having an issue in which if I set my dock to the bottom location the original Mavericks dock still shows (see attached image). The only way it'll disappear is if I set the dock to either side (which defeats the point) or use Dock Mod and change the transparency, but disables cDock.

Am I doing something wrong?
 

Attachments

  • 139971793593153.png
    139971793593153.png
    4.6 KB · Views: 1,581
Spare the noob here but how the the hell do i change all these values? i hit custom dock in cdock, edit the values and save and nothing happens?
 
thx for the update! :D
but the option to reload dock is gone... how do you apply the changes in this version?

Error on my part. I have a terrible workflow for this project.

Having an issue in which if I set my dock to the bottom location the original Mavericks dock still shows (see attached image). The only way it'll disappear is if I set the dock to either side (which defeats the point) or use Dock Mod and change the transparency, but disables cDock.

Am I doing something wrong?

Hmmm cDock should disable Dock Mod but if it's not then just turn it off manually and re-run cDock.

Spare the noob here but how the the hell do i change all these values? i hit custom dock in cdock, edit the values and save and nothing happens?

Nope it's not noobness this version is just 'not user friendly'. After you save the settings document you have to run cDock again and use the restart dock option which I somehow left out of b2.

At this point it would be nice if I knew someone who could just write a cocoa interface for me so I could make the app more like I envision it.
 
v4.0-b4

http://sourceforge.net/projects/cdock/files/cDock Beta/current.zip/download

> Still trying to figure out if blur is possible and how to fix the border overlap issue.

----------------------------------------------------------------------------------------------------

v4.0-b3

New: Automatic updates (beta)
New: More preset docks
New: Dock Reload (menubar) app
  • Click black cube in menubar to reload cDock (only loaded when you select customizable dock)

Fixed: Missing reload dock option
Fixed: Minor bugs

----------------------------------------------------------------------------------------------------

.

----------------------------------------------------------------------------------------------------

v4.0-b4

Fixed: Automatic updates saving log to desktop
Fixed: Automatic updates checking to frequently
Fixed: Misc bugs

----------------------------------------------------------------------------------------------------
.
----------------------------------------------------------------------------------------------------

v4.0-b5

Fixed: Update issues

----------------------------------------------------------------------------------------------------
.
----------------------------------------------------------------------------------------------------

v4.0-b6

Fixed: Update issues
Fixed: Improved logging

Updates >
  • ~/Library/Preferences/wUpdater/logs/"${applicationName}"_update.log
  • ~/Library/Preferences/wUpdater/logs/"${applicationName}"_install.log

cDock >
  • ~/Library/Preferences/cDock/logs/application.log

----------------------------------------------------------------------------------------------------

:apple:
 
Last edited:
That's the issue. Dock Mod is turned off and uninstalled. I'm at a loss as to what could be causing this.

Well maybe try re-enabling DockMod then running cDock.


Oh also just in general I'd love it if more people posted their own dock creations. Just post a reasonable dock settings text file and I'll start including them on a semi-regular basis. I think I'm close to moving v4 to a regular release and I'd like to have a bunch of pre-made dock variants to go along with it.
 
Last edited:
Fixed my issue with the persistent Mavericks dock behind the cDock. Had to reset my PRAM which also increased my boot time drastically.

Thanks for your work.
 
v4.0

https://sourceforge.net/projects/cdock/files/latest/download

> Still trying to figure out if blur is possible and how to fix the border overlap issue.

----------------------------------------------------------------------------------------------------

v4.0

New: Automatic updates (beta)

New: Dock monitor (Re-applies cDock if dock crashes or quits)

New: Dock Reload (menubar) app
Click black cube in menubar to reload cDock (and apply changes to custom dock)

New: Customizable Picture Background
( ~/Library/Application Support/cDock/background.jpg )

New: Customizable Separator
( ~/Library/Application Support/cDock/separator.jpg )

New: Customizable Dock Settings
( ~/Library/Application Support/cDock/dock_settings.txt )

  • Background Color
    • red 0-255
    • green 0-255
    • blue 0-255
    • alpha 0-100
  • Border Color
    • red 0-255
    • green 0-255
    • blue 0-255
    • alpha 0-100
  • Corner radius
  • Border width
  • Shadow radius
  • Shadow opacity
  • Picture 1 - Color 0 (background)
  • Picture Opacity 0-100
  • Width
  • Height
  • X Position
  • Y Position
Fixed: Misc bugs
Fixed: Reloading dock
Fixed: Positioning of side dock if border or corner radius where above 0
Fixed: Trimmed unnecessary code
Fixed: Updates uninstalling custom dock if nothing new was installed
Fixed: Improved update dialog
Fixed: Improved logging

Updates > ~/Library/Preferences/wUpdater/logs/"${applicationName}"_update.log
~/Library/Preferences/wUpdater/logs/"${applicationName}"_install.log

cDock (cycles 5 log files) > ~/Library/Preferences/cDock/logs/(1-5).log​

updated: launchagent from com.w0lf.cDock to org.w0lf.cDock
updated: Credit now include donators

Removed: Some pre-made docks

***

If you make a custom dock that you think is interesting and isn't already one
of the pre-made docks, feel free to send me the dock_settings you made to include
in future versions. My e-mail is located in the about page.

***

----------------------------------------------------------------------------------------------------
 
Not sure if anyone posted before me about this (if so, I apologize)

But.............................

It's weird. I just downloaded cDock and ran it to install the transparent dock... but instead, loaded my regular 3D dock. I clicked on the dock refresh button that appeared in the Finder bar upon the launching of cDock about 7 times to no avail (maybe I didn't do it enough?:confused:)

Then, I had a random brain blast, which led me to launching the SIMBL Agent app, which ultimately did the trick without killing the Dock (the terminal command in particular).

So, in short, the process for me to do this is to launch cDock, install the transparent (or whatever) dock, then run the SIMBL Agent. I have Alfred, so it isn't really a hassle, but... I'd love to just be able to run cDock and let it do its thing, without me having to run the SIMBL Agent. Maybe there's something I did wrong, idk.

Insight please? Lol.

Nonetheless, have a look at my desktop via the screenshot below! After months and months of procrastination, I decided to recreate the demo desktop for GeekTool just for kicks. Also, if you're wondering, my "dock" is simply a transparent dock (courtesy of cDock) and a Geeklet that's just a shell @ 1280x70px with a black background @ 23% opacity. :D
 

Attachments

  • Screen Shot 2014-05-19 at 6.28.56 PM.png
    Screen Shot 2014-05-19 at 6.28.56 PM.png
    1.1 MB · Views: 306
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.