Git Product home page Git Product logo

android_packages_apps_omnistyle's Introduction

Daylight header images

Activity activity name is used to defined name of the config file

<action android:name="org.omnirom.DaylightHeaderPack1" />
		<activity
			android:name=".<tag>"
			android:label="<label>" >
			<intent-filter>
				<action android:name="org.omnirom.DaylightHeaderPack1" />

				<category android:name="android.intent.category.DEFAULT" />
			</intent-filter>
		</activity>

Config file

assets/<tag>.xml

hour_header - display image if hour is larger then value

day_header - display image on this day and hour - will overrule hour header

random_header - choose a random image from the image list

list_header - sequential iterate over the image list

change_interval - change interval in minutes - default interval is one hour only valid in random or sequential mode

meta-data - additional optional information about the header pack creator text will be displayed in BrowseHeaderActivity

<daylight_headers>
    <hour_header hour="21" image="night" />
    <day_header day="25" month="12" image="christmas" />
    <day_header day="1" month="1" hour="0" image="new_year_1" />
    <day_header day="1" month="1" hour="12" image="new_year_2" />
</daylight_headers>

<daylight_headers>
    <random_header image="nature01" />
    <random_header image="nature02" />
    <random_header image="nature03" />
</daylight_headers>

<daylight_headers>
    <meta-data creator="maxwen" />
    <change_interval minutes="10" />
    <list_header image="nature01" />
    <list_header image="nature02" />
    <list_header image="nature03" />
</daylight_headers>

Label will be the name your pack will appear when selecting

Images size should have a 4:1 ratio. Images will be resized to fit and cropped as necessary.

Images are drawn behind quickbar in collapsed state so you should avoid to use too bright colors in that area else the quickbar images will become hard to see.

Contributors

  • Travis Hall
  • Syed Sajid

TODO

Show pack properties like type (random, list, time context) and change interval when selecting

Omni wallpapers

Using Picasso http://square.github.io/picasso/

Contributors

  • JP Kenji
  • PartimusPrime

Contributing wallpapers

Put images files into drawable-nodpi

assets/wallpaper.xml
    <wallpaper image="wall_name" creator="optional creator name" />

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.