-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load the configured theme at startup
Termshark will now look in termshark.toml for a main.theme key. If set to e.g. foobar, then termshark will attempt to load (1) ~/.config/termshark/themes/foobar.toml, and failing that (2) see if it has a built-in theme called /themes/foobar.toml via its statik filesystem. If it finds the toml, regardless of the contents, the theme will be active and called foobar. Then when loading its color palette, any config-file references to colors e.g. dark.progress-bar - will look up a key dark.progress bar in the toml loaded from foobar.toml. If, eventually, a value is found that can be parsed as a color, termshark will use it for that UI element.
- Loading branch information
Showing
3 changed files
with
90 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters