Repository navigation
1.9.0
User defined themes
This release adds initial support for user defined themes 🎨.
Themes are simple YAML files which can be added to the Posting theme directory. You can find the default location of this directory by running posting locate themes.
Here's the theme file for the theme above:
name: aurora
primary: '#4a90e2'
secondary: '#50e3c2'
accent: '#b8e986'
background: '#1c2331'
surface: '#2c3e50'
error: '#e74c3c'
warning: '#f39c12'
success: '#2ecc71'
panel: '#34495e'
dark: true
author: Darren Burns
description: An example theme.
homepage: https://github.com/darrenburns/postingCopy this file into your themes directory and you'll be able to set aurora as your theme using the config file (theme: aurora), environment variable (POSTING_THEME=aurora), or the command palette.
Share your themes!
Share your creations with the community at #60!
X Resources themes
There's also new support for themes loaded via X Resources.
New configuration options
There are a bunch of new configuration options for showing/hiding parts of the UI and enabling/disabling features.
Notably, themes will no longer automatically be previewed when you highlight them in the command palette by default. This can be re-enabled by setting command_palette.theme_preview to false in the config file, or POSTING_COMMAND_PALETTE__THEME_PREVIEW=0 as an environment variable.
See the README for the full list of options.
Fixes
There are a few fixes, including an important one for handling Unicode. .posting.yaml files are now always read and written as UTF-8.
Testing
I've added a snapshot testing which covers all sorts of user interactions. These now run in CI, and should help maintain stability going forward.
What's Changed
- Format request body that contains unicode as multi-line in .save_to_disk() (fix #48) by @devdanzin in #49
- Tests, continuous integration, new config, other improvements by @darrenburns in #53
- Theme system by @darrenburns in #57
- Add Xresources-based theme by @SqrtMinusOne in #35
New Contributors
- @devdanzin made their first contribution in #49
- @SqrtMinusOne made their first contribution in #35
Full Changelog: 1.8.0...1.9.0