Skip to content

Style Guide

Security: Pwned edited this page Dec 22, 2015 · 19 revisions

This is our Style Guide to reflect our Corporate Design within our App.

Index of Contents

Mindset: Simple and intuitive, data is more important than looks.


Logo

AIMSICD-Banner

Our main App Icon is the red Status Icon indicating threat status DANGER. You can either take it directly from our Apps drawable-xxxhdpi folder by clicking here, or by manually extracting it from our Banner SVG or Status Icons SVG file.


Fonts

No final decision yet. We prefer open source fonts on GitHub. Some inspiration:

Want to identify your favorite font? Use WhatTheFont!


Icons

No final decision on in-app icons yet. Some inspiration:


Forms

  • No rounded corners
  • Round Icons without outline (except Status Icons)
  • Square Buttons if text is used
  • Round Buttons if Icons or signs are used

Forms


Colors

Device_Details

COLOR #HEX DESCRIPTION
111111 #111111 Background color: Screen and Navigation
333333 #333333 Outline of boxes, background of box header, background of Navigation Drawer, form fields (text input, select box)
ffec5a #ffec5a Akzent Color, text of box headlines, buttons
929292 #929292 Describing text of values, "unimportant" text (for better overview)
f9f9f9 #f9f9f9 "Important" values (good readability)
ab2424 #ab2424 Map Marker (single tower), text color for alerts of all kind (or as box background color)
35b838 #35b838 Map Marker (more towers)
2668a0 #2668a0 Neutral color, use for small objects (own position in the map)

Layout

  • Careful use of space, don't leave great spaces

Coding

As much as we enjoy your contributions, please keep a high code-quality!

  • No column limit to 100 char. (As we all know, our screens are 1 kilometer wide and about 2 centimeters high, so why should we read code 2 cm wide and have to scroll downwards paging through 1 kilometer?)
  • No line wrapping. Nobody likes line-wrapping, unless there's a bunch of consecutive objects wit the same name/structure that can be nicely aligned.
  • Skip point 4.6.3 - Horizontal alignment. E:V:A loves horizontal alignment, and as long as we use spaces and not tabs, its perfectly great for readability.
  • Another good thing to know: Class and member modifiers, when present, appear in the order recommended by the Java Language Specification:
public protected private abstract static final transient volatile synchronized native strictfp

Thoughts about some parts of the (javadoc-) comments:

  • Description:
    • Don't prefix the description with Description: in order to be more javadoc-like
  • Issues: and Todos:
    • Don't track this in comments
    • Better track them here at github (or another bugtracker)
  • Changelog:
    • Don't track this in comments
    • We have git log -- <file> and git blame <file> for that
  • In general the javadoc comments should be more javadoc like:
    • Use HTML tags like <p> and <a>
    • Use things like:
      • @see
      • @author
      • {@link <method|class|field>}

About discussions:

  • Don't keep discussion in source code comments
  • Use line comments at github for that

About source code comments vs wiki:

  • Use source code comments for (technical) information/documentation about a particular class/method/field
  • Use the wiki for overviews, manuals and so on

Formats

  • Flat Design (no shadows, no bevel, no shining edges)
  • Rectangular prisms (if possible), 100% width for boxes and tables

Elements

  • Thin lines color #333333 between text blocks and in the Navigation Drawer

Navigation

Easy, intuitive and self-explaining. Preferably giving a unique look and feel to our app.


Illustrations

  • 1 Color Icons, flat and minimalistic

Clone this wiki locally