Go to file
Stephen Michel 2bb14f8965 add initial android tv support 2017-10-29 15:10:29 -04:00
.github add issue template 2017-09-17 14:01:27 -04:00
app add initial android tv support 2017-10-29 15:10:29 -04:00
art fix gitter badge icon 2017-09-29 10:10:41 -04:00
gradle/wrapper upgrade to gradle 2.3 2017-04-02 04:41:42 -04:00
.gitignore ignore NDK files 2017-08-28 12:01:15 -04:00
.travis.yml update .travis.yml 2017-09-29 10:40:49 -04:00
COPYING Add detailed license information 2016-04-03 12:53:40 +02:00
COPYING.GPL Add detailed license information 2016-04-03 12:53:40 +02:00
COPYING.MIT Add detailed license information 2016-04-03 12:53:40 +02:00
LICENSE.spdx change to spdx identifiers 2017-08-10 18:37:10 -04:00
README.md Update README.md 2017-09-29 11:23:41 -04:00
build.gradle upgrade build tools and support library to v26, fragment cleanup 2017-09-09 14:21:16 -04:00
gradle.properties Created empty project. 2015-06-19 11:15:21 -06:00
gradlew Rebrand from "Shades" to "Red moon" 2016-03-14 21:51:55 +01:00
gradlew.bat Created empty project. 2015-06-19 11:15:21 -06:00
settings.gradle Created empty project. 2015-06-19 11:15:21 -06:00

README.md

Red Moon Icon

Red Moon Translation status License Average time to resolve an issue

Blue light may suppress the production of melatonin, the sleep hormone. Red Moon filters out blue light and dims your screen below the normal minimum, so you can use your phone comfortably at night.

  • Schedule Red Moon to run from sunset to sunrise, or at custom times.
  • Use the default color profiles, or set custom color, intensity, and dim levels.
  • Automatically pause in apps secured against overlays, or those you choose.
  • Quickly start, stop, and switch profiles via notification, tile (Android 7.0+), or widget.

Get it on F-Droid Download from Google Play Direct download

Join the community

Communities keep software projects alive. Without them, projects usually fade into obscurity when the primary developer loses interest or becomes busy in other parts of their life. That's where you come in! You can:

Screenshots & translation stats

Translation status

Screenshots are slightly out of date.

Development Build Status

Building

To build the app on GNU+Linux, clone the repository, then, from the root directory, run

./gradlew build

To install the app on a connected device or running emulator, run

./gradlew installFdroidDebug or ./gradlew installPlaystoreDebug

Pull requests

  • We're happy to answer questions if you reach out via an issue, the chat room(s), or email.
  • If your change makes the UI more complicated, we suggest checking if we're interested before you implement it.
  • Please keep code and translations in separate PRs.

Style

Prioritize legibility over dogmatism. That said, consistency is nice, so here's a short list of what I've been doing.

  • 100 characters per line; 80 if you can.
  • Indent 4 spaces, or 8 spaces if the previous line ends with =.
  • CONSTANTS and ENUMS use all caps, variableNames use camelCase.
  • Form suggests function: Group and align similar actions, and don't align dissimmilar ones, even if you could.
  • Good comments explain why something is done; if you find yourself describing what the code does, consider:
    • Refactoring into smaller functions with descriptive names
    • Converting comments to logs. Code that requires comments probably also requires good logs to debug.
  • Don't omit the curly braces from if statements except short variable assignment (val x = if (a) b else c)

License

GNU GPLv3 Image

Red Moon is a derivative of Shades by Chris Nguyen, used under the MIT License. Red Moon is licensed under the GNU General Public License version 3, or (at your option) any later version by the contributors.

All used artwork is released into the public domain. Some of the icons use cliparts from openclipart.org, which are all released in the public domain, namely:


* Google Play and the Google Play logo are trademarks of Google Inc.