All Projects → fennifith → Palettegetter

fennifith / Palettegetter

Licence: apache-2.0
A library that can get the color scheme of any app.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Palettegetter

Sakurairo
一个多彩,轻松上手,体验完善,具有强大自定义功能的WordPress主题(基于Sakura主题)A Colorful, Easy-to-use, Perfect Experience, and Powerful Customizable WordPress Theme (Based on Theme Sakura)
Stars: ✭ 456 (+2300%)
Mutual labels:  color-scheme
Gogh
Color Scheme for Gnome Terminal and Pantheon Terminal
Stars: ✭ 6,503 (+34126.32%)
Mutual labels:  color-scheme
Arc Kde
Arc KDE customization
Stars: ✭ 738 (+3784.21%)
Mutual labels:  color-scheme
Color Mode Module
Dark and Light mode with auto detection made easy with NuxtJS
Stars: ✭ 497 (+2515.79%)
Mutual labels:  color-scheme
Nord Iterm2
An arctic, north-bluish clean and elegant iTerm2 color scheme.
Stars: ✭ 651 (+3326.32%)
Mutual labels:  color-scheme
Matlab Schemer
Apply and save color schemes in MATLAB with ease.
Stars: ✭ 708 (+3626.32%)
Mutual labels:  color-scheme
Vim
FlatColor vim colorscheme
Stars: ✭ 449 (+2263.16%)
Mutual labels:  color-scheme
Welpe.vim
vim colorscheme, inspired by jellybeans and badwolf
Stars: ✭ 7 (-63.16%)
Mutual labels:  color-scheme
Powerline Shell
A beautiful and useful prompt for your shell
Stars: ✭ 5,743 (+30126.32%)
Mutual labels:  color-scheme
Conemu Color Themes
Manually ported color themes for ConEmu
Stars: ✭ 728 (+3731.58%)
Mutual labels:  color-scheme
Srcery Vim
Dark colorscheme for gvim and vim
Stars: ✭ 518 (+2626.32%)
Mutual labels:  color-scheme
Cmder
Lovely console emulator package for Windows
Stars: ✭ 23,148 (+121731.58%)
Mutual labels:  color-scheme
Lucario
The best flat theme for Vim, Atom, Sublime Text, Jetbrains Editors, Terminal.app, iTerm, Xcode and XTerm
Stars: ✭ 711 (+3642.11%)
Mutual labels:  color-scheme
Vim Deus
🌙 A better color scheme for the late night coder
Stars: ✭ 466 (+2352.63%)
Mutual labels:  color-scheme
Nord Visual Studio Code
An arctic, north-bluish clean and elegant Visual Studio Code theme.
Stars: ✭ 749 (+3842.11%)
Mutual labels:  color-scheme
Nord
An arctic, north-bluish color palette.
Stars: ✭ 4,816 (+25247.37%)
Mutual labels:  color-scheme
Colorful
A curated list of awesome resources to choose your next color scheme
Stars: ✭ 702 (+3594.74%)
Mutual labels:  color-scheme
Lightline foobar.vim
lightline color schemes
Stars: ✭ 16 (-15.79%)
Mutual labels:  color-scheme
Darkage
🎮 Darkage mod for Minetest
Stars: ✭ 6 (-68.42%)
Mutual labels:  color-scheme
Vim Solarized8
Optimized Solarized colorschemes. Best served with true-color terminals!
Stars: ✭ 718 (+3678.95%)
Mutual labels:  color-scheme

PaletteGetter is a library that attempts to reliably obtain the color scheme of any app from just the package or component name.

For testing and experimentation purposes, a sample apk can be downloaded here.

Usage

Setup

The Gradle dependency is available through jCenter, which is used by default in Android Studio. To add the module to your project, copy this line into the dependencies section of your build.gradle file.

compile 'james.palettegetter:palettegetter:0.0.1'

Getting a Single Color

From Package Name

To get a color from the package name of an app, use the method below.

Integer color = PaletteGetter.get(context, packageName);

If the package name isn't valid, the method will return null.

From Component Name

Getting a color from a component name is sometimes more accurate than a package name because it specifies which part of an app you want the color from. To get the color from a component name, use the method below.

Integer color = PaletteGetter.get(context, componentName);

Getting Multiple Colors

To get all the colors in an application, use the method below. This will return a List of all the known colors in that application, and may contain a few duplicates. If the package name is invalid, it will return an empty List.

List<Integer> colors = PaletteGetter.getPalette(context, packageName);
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].