58 Commits

Author SHA1 Message Date
26ed82fdbc Make "Root Folder" translatable
It was earlier duplicated all over the place.
2020-05-18 00:26:00 +02:00
ef57e263ba ProSettingsOverlay -> ProOverlay
Also move it to its own file
2020-05-14 16:10:09 +02:00
faf561f104 Allow configuring the Home Screen
It can either be the Folders view or the All Notes view.
2020-05-08 19:30:53 +02:00
b2d0cf44ab Stop using deprecated TextStyle properties 2020-05-08 10:55:00 +02:00
ea733aacb5 Add a very simple Debug screen
This will show all the debug messages, which include when a file is
being ignored and not loaded, and hopefully all the exceptions. So the
user should be able to better understand why a file has been ignored.

It's not an ideal solution, but it's a quick fix.

Fixes #122
2020-05-06 01:09:57 +02:00
99a3d6214f Settings: Make some of the strings translatable
Man, this is going to be exhausting. There are some 165 Text instances.
So this mean probably around 200+ strings.
2020-05-05 17:29:04 +02:00
efec0500f3 Add basic scaffolding for translations
I still need to go through all the public string and document them.
2020-05-05 17:16:07 +02:00
e5cd9ddec2 Email Regexp: Allow dashes 2020-04-21 20:49:26 +02:00
d03213178c Settings: Move Editor Settings to their own screen
It just has the default settings right now, but we need to expose some
settings in the Markdown Editor.
2020-04-16 13:06:11 +02:00
37909c84f8 Make sure widgets are mounted
Might solve some of the crashes
2020-04-10 12:12:17 +02:00
610c4ea8a7 Allow the default folder for new notes to be configured
In the "All Notes" screen
2020-03-21 00:14:38 +01:00
b252f037b3 Rename NotesFolder -> NotesFolderFS
And NotesFolderReadOnly to NotesFolder. It just makes more sense this
way as we're now getting more and more different "types" of
NotesFolders.
2020-03-15 02:01:07 +01:00
59d379ab62 Allow the default editor to be configured
This doesn't solve #41, but it does provide a good workaround.
2020-02-18 16:26:12 +01:00
3a3ec76529 StateContainer: Use Provider
This way we can avoid listening for changes in many places.
2020-02-11 19:10:34 +01:00
1d0cf3ab6d Save the selected sorting mode 2020-02-09 22:41:16 +01:00
95dce61479 Allow the new folder for notes to be configurable
This is currently disabled as it requires a substantial change in the
JournalList.
2020-01-31 16:16:12 +01:00
5d0054fd7e Remove FontSize configuration
Ever since we had a proper markdown renderer, this option has been
broken as it only scales the body text and not the headers, and other
text in code-blocks. Additionally it only modifies the viewing text size
and not the editing text size. Fixing this feature is way too much work,
and barely any users are using this feature.

Maybe we will introduce it again in the future.
2020-01-28 15:56:59 +01:00
bd0819c5be Settings: Disable the Git Remote Settings when no remote present 2020-01-27 19:01:47 +01:00
7e3cfb9e37 Allow the default yaml modified key to changed
Some people are using GitJournal to edit Hugo websites, this option is
for them as the Hugo front matter uses the 'lastmod' key to indicate
when the post was last modified.
2020-01-05 18:24:46 +01:00
dccd58c5f1 prefer_const_constructors 2020-01-04 15:44:34 +01:00
e0afa27b06 Expose Git Remote Settings
This way you can regenerate the SSH Key (if needed) and/or copy it
again. In the future one can add methods to reconfigure the git remote
and add / remove remotes.
2020-01-04 15:31:28 +01:00
bb564f1511 Settings: Use SwitchListTile instead of our custom widget
I didn't know this widget existed.
2019-11-02 10:56:28 +01:00
0d760348ce Settings: Split widgets into their own file 2019-11-02 10:40:03 +01:00
ffc0af12a3 Enable prefer_const_constructors 2019-10-20 01:11:53 +01:00
e8d8c58bff Setting Dialogs: Remove margins and add a Cancel button 2019-10-19 12:07:31 +01:00
c2247c26e9 Settings: Use Radio buttons in dialogs
Instead of highlighting the last selected option.
2019-10-19 12:02:13 +01:00
b4fd9d33f7 Settings: Make 'Dark Theme' a toggle
There are just two options. It doesn't make sense to open a dialog box
and then let the user choose.
2019-10-19 11:53:29 +01:00
fbb1b12cb2 Settings: Use a switch instead of a checkbox
Follows the Material Design scheme better
2019-10-11 02:30:45 +02:00
5b25fd56c1 Settings: Git Author Email: Mark keyboard type as email 2019-10-10 16:58:12 +02:00
678bf7b879 Fix warning 2019-10-08 14:55:00 +02:00
2238e8343f Remove preferences dependency
It doesn't follow the Material Design spec, and usually required a
PreferencesService to be running. It is easier to just create our own
widgets.
2019-10-08 14:52:09 +02:00
e331e76c4f Settings: Replace CheckboxPreference with BoolPreference
It's better to have our own small class for this as the one provided
with the library tries to contact the PreferencesService and that isn't
what we want.
2019-10-08 14:50:18 +02:00
d606e04ef0 NoteFileNameFormat: Improve the Settings
* Use a DialogBox instead of a drop-down - This conforms better to the
  Material design spec.

* Make the enum into a class. It makes managing it much easier. And
  avoids code duplication.
2019-10-08 14:37:57 +02:00
e0e90f3819 Settings: Change Theme dropDown to AlertBox
This follows the MaterialDesign guides and also looks way better
2019-10-08 14:22:38 +02:00
70cc57f89c FontSize Dialog: Highlight the prev font size 2019-10-08 14:08:45 +02:00
e65053e437 NoteFontSize: Simplify the code 2019-10-08 13:57:34 +02:00
276a3bf976 Setting Font Size: Improve the choosing dialog
Now show how big the font will be in a dialog. This way the user can
make a more informed decission, instead of just choosing "Small" vs
"Normal" and not knowing how big that actually would be.
2019-10-07 21:10:21 +02:00
05fb3da7c2 Settings: Align Header with text
It was weird that the rest of the text did not have the same margin.
2019-10-07 20:36:23 +02:00
a60de98e8f Settings: Rename section to 'Git Author'
Instead of 'Git Settings'
2019-10-07 19:33:23 +02:00
69003cf0ac Rename package from journal -> gitjournal
It's about time.
2019-10-07 19:30:50 +02:00
8d717cbaeb Allow Analytics collection and Crash report collection to be disabled
As the developer I really don't want users to disable these, but as
a User, I always want the option, so I should include it.
2019-10-06 12:40:49 +02:00
383acfeff9 Remove unused variable 2019-09-25 16:24:27 +02:00
957e493494 Add a basic dark theme
It's not that pretty, but this adds the scaffolding.
2019-09-25 15:54:37 +02:00
11a9023e99 Allow the Note FileName to be configured
This is super ugly, but it solves a real use case, and hopefully I'll
eventually get around to improving the UI of the Settings page.
2019-09-25 15:41:19 +02:00
1f88d4ddef SettingsUI: Allow the FontSize to be configured 2019-09-25 15:36:48 +02:00
2bfd05a532 Fix new flutter analyze problems
Flutter analyze seems to have gotten smarter
2019-07-18 01:13:39 +02:00
4029971a63 Fix null value
Text widget cannot accept a null value as the text value.
2019-02-23 02:11:43 +01:00
c085475d9b Feedback: Send us the version number of the app 2019-02-15 13:13:35 +01:00
f854baa3b1 Make the settings page a bit prettier 2019-02-15 12:40:02 +01:00
6aedcfce96 Settings Screen: Remove minor code duplication 2019-02-15 12:28:42 +01:00