Code Monkey home page Code Monkey logo

velox-plugin--theos-'s Introduction

#Velox plugin template

This is a plugin tempate for a Velox plugin. Use it with theos (-> nic.pl)

###How do the plugins work?

The plugins are placed into /Library/Velox/Plugins/. When Velox loads (at respring), it loads all plugins and checks if they are valid.

###How do i specify for which app my plugin is?

There's a key in the plugins Info.plist called 'VeloxAppIDs'. The value is an array of bundle identifiers. Add the bundle identifier of the app you pugin is meant for to that array. Because it's an array, you can also make your folder work with multiple apps.

###Can my folder have a dynamic height?

Yes! There's a method called -(float)realHeight which you can implement in your plugin view. This method gets called right after -initWithFrame, return the height of your folder there. For example, for a plugin showing a tableView, tableView.contentSize.height would be the right thing to return in -realHeight. Please mind that you can notchaneg the folders height while it's visible, only when the plugin gets initalized.

###Are there some example folders?

Yes, there are! Take a look at this stopwatch folder by Max katzmann or that 'Carrox' folder by thekirbylover

###What is the Velox.h file for?

This is the header of the velox manager. You can use the methods to set custom options for your folder plugin like the folder arrow background image, or dim the notch shadow. Example usage: [[objc_getClass("Velox") sharedManager] setCustomNotchImage:myUIImage];

Without the notch background vs. with notch background:

Without With

Don't forget to #import "Velox.h" and #import <objc/runtime.h>

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.