Code Monkey home page Code Monkey logo

red-moon's Introduction

Red Moon Translation status

Blue light can 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. It is simple and flexible:

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

  • Set the timer to automatically turn on at night, or at custom times.
  • Use the default filters, or fine-tune your own with separate color, intensity and dim levels.
  • The notification, tile (Android 7.0+), and widget let you start, stop, and switch filters without opening the app.

Get involved

Translation status

All help is equally welcome!

The easiest way is to report bugs and give feedback in the issues section or the matrix chat room. If you're feeling adventurous, you can test new features before they're released!

Weblate is the simplest way for most people to translate. It's entirely in your browser, and your changes will be automatically merged. If you'd prefer to make a pull request, please keep code and translations in separate PRs.

Each string will only be used in one place.
This way, if you want to tweak the phrasing in one particular place, you don't need to worry about accidentally changing another place in the app.

PRs for issues tagged with bug or patches welcome are welcome at any time. Otherwise, please open a new issue or comment on the existing one first. We don't want to waste your time on something we might not merge! We have some loose coding style guidelines below.

Screenshots

Building

To build the app on GNU+Linux, clone the repository and run

./gradlew build

in the root directory.

Use

./gradlew installFdroidDebug or ./gradlew installPlaystoreDebug

to install the app on a connected device or running emulator.

Coding 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 normally; 8 spaces if a variable assignment needs to wrap.
  • Constants use ALL_CAPS, persistent vars use mCamelCase, everything else uses camelCase.
  • Form suggests function: Group and align similar actions, and don't do that for 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.
  • Always use brackets with if, with one exception: one-liners with an else branch (x = if (p) q else r)
    • note: I (@smichel17) used to prefer omitting parenthesis from one-liners; some code still uses that style.

Again, prioritize legibility over dogmatism.

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.

red-moon's People

Contributors

aablaablaa avatar aboshanab avatar cngu avatar coehill avatar comradekingu avatar danialbehzadi avatar di72nn avatar emintufan avatar espadav8 avatar fredrikaugust avatar javnik36 avatar jawnnypoo avatar kimjio avatar kjy00302 avatar kuoruan avatar leocadio94 avatar micoarcher avatar naofum avatar onuricen avatar raatmarien avatar rastikh avatar smichel17 avatar spiritcroc avatar swyter avatar techwebpd avatar thanass avatar twckr avatar vx-i avatar weblate avatar zoraver avatar

Watchers

 avatar

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.