From cd249d4bab1345d601ad2407a5b8829eb7cf1796 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frans-Lukas=20L=C3=B6venvald?= Date: Thu, 2 Jul 2020 09:27:20 +0200 Subject: [PATCH] Update DESIGN.md --- DESIGN.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index 69a357bd0..06e13bd1a 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -22,8 +22,8 @@ Kiwix uses themes to apply styles to views. This means that instead of adding a Themes are defined in res/values/themes.xml or res/values-night/themes.xml depending on night/day. The following steps should be followed to set a color or style of a view. 1. Define the color or style: - a. Define the color in core/colors.xml. Use good naming (denim_blue, min_shaft_gray etc..). - b. Define the style in core/styles.xml. Follow the naming convention. TODO: (what is the naming convention for styles?) + * Define the color in core/colors.xml. Use good naming (denim_blue, min_shaft_gray etc..). + * Define the style in core/styles.xml. Follow the naming convention. TODO: (what is the naming convention for styles?) 2. Add the color or style to a specific theme item in themes.xml 3. Make sure that the color or style works in both day and night mode. If it does not, add a night compatible color/style to values-night/themes.xml. @@ -39,7 +39,7 @@ Following is a list of resources that can and should be used to support a design 1. [Material Design](https://material.io/) - Googles design guide that should be followed to keep Android applications consistent. 2. [Design for Android](https://developer.android.com/design) - Another design guide by Google, this one is specifically for Android while Material Design is more general. 3. [Figma](https://www.figma.com) - A tool that can be used to mock design ideas. -4. [Themes Vs. Styles](google io link) +4. [Developing Themes with Style (Android Dev Summit '19)](https://www.youtube.com/watch?v=Owkf8DhAOSo) ## Accessibility Accessibility is an important part of Android applications. Especially applications that are as widely used as Kiwix. As such, accessibility should be part of design decisions. This can include choices such as: