Skip to content

patrickissa/SwipePad-Theme-Example

 
 

Repository files navigation

SwipePad Theme Example

From version 0.9.16, SwipePad becomes themeable. To demonstrate how to make your own theme, we made this example theme for you.

Play

How to make a custom theme

Prerequisites

At the end of the day, your theme would be distributed as an Android app. If you have developed an icon pack before, you'll find most parts familiar.

Customizable Elements

SwipePad will try to read following resources from your app, if they are not presented, the corresponding elements in the default theme will be used.

Drawables (res/drawables-*/*)

  • swipepad_icon_allapps

  • swipepad_icon_contextpanel

  • swipepad_icon_home

  • swipepad_icon_quickpost

  • swipepad_group_background

  • swipepad_group_icon_add

  • swipepad_pad_background

  • swipepad_pad_cursor

  • swipepad_pad_grid_background

  • swipepad_portal_rect

  • swipepad_portal_rect_empty

  • swipepad_portal_rect_hold

  • swipepad_portal_rect_hover

  • swipepad_portal_rect_selector

  • swipepad_portal_ring

  • swipepad_portal_ring_empty

  • swipepad_portal_ring_hold

  • swipepad_portal_ring_hover

  • swipepad_portal_ring_selector

Colors (res/values/colors.xml)

  • swipepad_group_item_text_color

  • swipepad_group_title_color

  • swipepad_pad_empty_item_text_color

  • swipepad_pad_item_text_color

  • swipepad_pad_title_color

Dimensions (res/values/dimens.xml)

  • swipepad_pad_cursor_radius

  • swipepad_pad_grid_spacing

  • swipepad_portal_rect_padding_top

  • swipepad_portal_rect_padding_bottom

Integers (res/values/integers.xml)

  • swipepad_pad_cursor_period

Boolean

  • swipepad_pad_cursor_rotate_clockwise

Preview

To be recognized as a theme by SwipePad, you need to provide a drawable called swipepad_theme_preview. This drawable will be presented to users as how your theme would finally look like.

About

An example demonstrating how to make custom theme for SwipePad http://calciumion.com/swipepad/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published