Commit cd3a051d authored by akwizgran's avatar akwizgran
Browse files

Merge branch 'dark-theme' into 'master'

Add section for Settings a and Dark theme

See merge request !1
parents ba46c9df 82693088
/.idea
/html
/node_modules
/package-lock.json
\ No newline at end of file
To generate HTML, install [markdown-styles](https://github.com/mixu/markdown-styles) and run `generate-md --layout briar-manual/layout/mixu-radar-briar --input briar-manual/content --output briar-manual-html`.
\ No newline at end of file
To generate HTML, install [markdown-styles](https://github.com/mixu/markdown-styles) and run `generate-md --layout briar-manual/layout/mixu-radar-briar --input briar-manual/content --output briar-manual-html`.
......@@ -275,3 +275,23 @@ To delete a contact, tap the contact's name in the contact list and choose "Dele
> **Tip:** To protect your privacy, the contact won't be notified that you've deleted them. They'll just see you as offline from now on.
<div style="clear:both"></div>
## Settings ##
<img src="assets/img/manual_dark_theme_settings-cropped.png" alt="The list of settings">
To find the settings, open the main menu and choose "Settings".
Here, you can customize your Briar experience.
<div style="clear:both"></div>
### Dark Theme ###
<img src="assets/img/manual_dark_theme_nav_drawer-cropped.png" alt="The main menu in a dark theme">
You can change the color scheme that Briar uses.
These are the options:
* **Light** uses light colors.
* **Dark** uses dark colors.
* **Automatic** changes the theme based on the time of day.
* **System Default** sets the theme to whatever your system is set to.
#!/usr/bin/env python3
import os
from PIL import Image
IMAGE_PATH = "content/assets/img"
POSTFIX = '-cropped'
def main():
crop('introduction-5.png', 77, 47)
crop('manage-rss-feeds-2.png', 35)
crop('manual_dark_theme_settings.png', 45)
crop('manual_dark_theme_nav_drawer.png', 64)
def crop(file_name, bottom, top_offset=0, only_show=False):
file_path = os.path.join(IMAGE_PATH, file_name)
if not os.path.isfile(file_path):
print("Warning: File not found %s" % file_path)
return
with Image.open(file_path) as image:
left_c = 0
top_c = image.size[1] * top_offset / 100
right_c = image.size[0]
bottom_c = image.size[1] * bottom / 100
image_cropped = image.crop((left_c, top_c, right_c, bottom_c))
if only_show:
image_cropped.show()
else:
file_path_cropped = get_new_filename(file_path)
image_cropped.save(file_path_cropped)
def get_new_filename(file_path):
name, ext = os.path.splitext(file_path)
return name + POSTFIX + ext
if __name__ == "__main__":
main()
......@@ -306,9 +306,14 @@ footer {
.nav-list {
height: 50%;
padding-left: 1em;
margin: auto 0;
}
.sidebar-header-3 {
margin-left: 1em;
}
div.clear {
clear: both;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment