-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(config): have overridable defaults
Defaults: - `save_dir` - `line_size` - `text_font` - `text_size` Closes #1
- Loading branch information
Showing
10 changed files
with
269 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[Default] | ||
save_dir=$HOME/Desktop | ||
line_size=5 | ||
text_size=20 | ||
text_font=sans-serif |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
#include "swappy.h" | ||
|
||
bool config_get_storage_path(struct swappy_state *state); | ||
#define CONFIG_LINE_SIZE_DEFAULT 5 | ||
#define CONFIG_TEXT_FONT_DEFAULT "sans-serif" | ||
#define CONFIG_TEXT_SIZE_DEFAULT 20 | ||
|
||
void config_load(struct swappy_state *state); | ||
void config_free(struct swappy_state *state); |
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
Oops, something went wrong.