Git Product home page Git Product logo

firefox-dock-progress's Introduction

Dock Progress Extension    (C) 2009 Dave Vasilevsky
-----------------------

This Firefox extension displays a progress bar in the Mac OS X dock when files are being downloaded.

Building
--------

To build the extension for all supported platforms, you need the Mac OS X 10.4 and 10.6 SDKs, gcc 4.0 and clang. The easiest way to do get all of this is with a standard install of Xcode on 10.6 Snow Leopard.

On 10.7 Lion, you can use various hacks to install Xcode 3 with PPC support and the 10.4 SDK. Make sure to install it under /Xcode3, so the build scripts will detect it.

Licensing
---------

This software is available under the MIT License.

Thanks to Uli Kusterer (http://www.zathras.de) for the progress bar gradient, licensed under the MIT Licence.


Todo
----

* Multiple progress bars
* Throttle drawing?

firefox-dock-progress's People

Contributors

vasi avatar

Stargazers

gva1116 avatar Angus H. avatar  avatar Sebastian Moors avatar Frank Yan avatar Andrew avatar

Watchers

 avatar James Cloos avatar Michele Venturi avatar  avatar  avatar

firefox-dock-progress's Issues

Modifying the plugin to customise the dock icon

Firstly, thanks for sharing this code, I'm a big fan, glad to see it going into core.

I run multiple firefox profiles simultaneously. It gets hard to tell them apart because they all have the same dock icon. I suddenly had a brainwave and I realised that I could use this plugin as the basis of a plugin to customise the dock icon from within the firefox profile. There are alternate methods, but they all involved duplicating the entire Firefox app and don't handle updates well.

I'm a developer, but no experience with C, so I've dug into the code and it looks like the FDPDrawBar function does the magic. But I'm not sure how to go about triggering this function just once on application load, instead of from downloads, and so on.

Would you be willing to point me in the right direction?

One option I considered was writing the profile name on top of the dock icon. That could be a useful plugin for people who use multiple profiles, as it'd make it obvious which profile was currently running.

Otherwise, even something like the progress bar but different colours, or an option to load an image from the profile directory and use it as the dock icon, these approaches would work. Having zero experience with Firefox / C development, I'm struggling to see how to fit all these pieces together.

I'd be very grateful for any insight / advice you can offer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.