Commit Graph

331 Commits

Author SHA1 Message Date
Alinson Xavier
2dc4fcbc46 Fix transparency on widgets 2016-04-25 22:22:37 -04:00
Alinson Xavier
7977d5247c Tweak transparency and colors 2016-04-25 21:03:23 -04:00
Alinson Xavier
8b18e32a16 Create color palette for widgets 2016-04-24 06:42:14 -04:00
Alinson Xavier
dbcad9a5f4 Use dark theme for widget colors 2016-04-24 06:42:14 -04:00
Alinson Xavier
3bba75ff50 Add ripple effect to check mark widget 2016-04-24 06:42:14 -04:00
Alinson Xavier
c6e76f4cfd Show multiple lines on check mark widget 2016-04-24 06:42:14 -04:00
Alinson Xavier
980db1d171 Add ring to check mark widget 2016-04-24 06:42:14 -04:00
Alinson Xavier
aee5d975db Replace star by ring 2016-04-24 06:42:14 -04:00
Alinson Xavier
fcee8552f0 Switch to compat ActionMode; fix tests 2016-04-24 05:55:42 -04:00
Alinson Xavier
0c1e8d5131 Switch to AppCompatDialogFragment and compat Fragment 2016-04-19 22:10:25 -04:00
Alinson Xavier
b354a0765b Use grey toolbar on pre-Lollipop 2016-04-19 21:02:05 -04:00
Alinson Xavier
bbd959dfda Fix borders on HistoryEditorDialog 2016-04-19 09:01:36 -04:00
Alinson Xavier
d05d404c55 Show toolbar shadow on pre-Lollipop 2016-04-19 08:27:45 -04:00
Alinson Xavier
8938b0c9a6 Improve settings screen 2016-04-19 07:50:05 -04:00
Alinson Xavier
bd6fcd066c Fix dialog borders 2016-04-19 05:36:34 -04:00
Alinson Xavier
6a5f2abb76 Switch to AppCompatActivity 2016-04-18 07:59:41 -04:00
Alinson Xavier
767ec1b6de Minor layout improvements for HabitScoreView 2016-04-16 09:16:39 -04:00
Alinson Xavier
9e5f3d8f58 Fix blinking when updating widgets 2016-04-16 09:03:45 -04:00
Alinson Xavier
4bfb839370 Draw separate widgets for landscape and portrait modes
Fixes #76
2016-04-16 08:51:20 -04:00
Alinson Xavier
8f64b696d8 Remove debug messages 2016-04-16 08:10:12 -04:00
Alinson Xavier
c4bf31e778 Adjust text size and position on HistoryView and StreakView 2016-04-16 08:06:01 -04:00
Alinson Xavier
c757ce6548 Enforce min text size on HabitScoreView 2016-04-16 07:36:39 -04:00
Alinson Xavier
b601a643dd Merge branch 'feature/dark-theme' into dev 2016-04-15 18:29:39 -04:00
Alinson Xavier
90e513e778 Remove warning when palette cannot be found 2016-04-15 18:26:01 -04:00
Alinson Xavier
728c9557f0 Migrate DB to new color format 2016-04-15 18:25:30 -04:00
Alinson Xavier
97711087f9 Fix invisible text on widgets 2016-04-15 17:49:10 -04:00
Alinson Xavier
b42565b770 Backport dark theme to pre-lollipop devices 2016-04-13 11:54:24 -04:00
Alinson Xavier
3de702ced2 Fix colors in About screen 2016-04-13 10:44:11 -04:00
Alinson Xavier
42f7f4042d Add option for AMOLED night mode 2016-04-13 10:38:20 -04:00
Alinson Xavier
2115a590f2 Add fade transition when switching themes 2016-04-13 09:53:37 -04:00
Alinson Xavier
6d5a8f5753 Merge branch 'sciamano-day-of-week' into dev 2016-04-12 23:29:10 -04:00
Alinson Xavier
06fc04092b Code cleanup 2016-04-12 23:21:00 -04:00
Denis
24c02605d1 Select first day of week according to the current locale 2016-04-12 23:11:32 -04:00
Alinson Xavier
11fcb67624 Improve custom views' colors 2016-04-11 18:11:18 -04:00
Alinson Xavier
52c07660b1 Implement menu item to switch between themes 2016-04-10 10:41:52 -04:00
Alinson Xavier
35f778c376 Do not use habit color as primary color on dark themes 2016-04-10 08:32:01 -04:00
Alinson Xavier
5c683a77c2 Fix ripple on ListHabitsFragment 2016-04-10 08:13:05 -04:00
Alinson Xavier
dd1f6c9efc Change habit.color palette according to current theme 2016-04-09 20:01:35 -04:00
Alinson Xavier
04e8432522 Widgets: show error message instead of crashing 2016-04-09 05:27:39 -04:00
Alinson Xavier
38fc7650b9 Update translations 2016-04-09 05:08:02 -04:00
Alinson Xavier
cf06ec0a4b Fix chart colors 2016-04-09 04:58:26 -04:00
Alinson Xavier
f0701f7b35 First version of dark theme 2016-04-08 17:15:14 -04:00
Alinson Xavier
ac885e1503 Refactor ListHabitsFragment layouts and styles 2016-04-08 15:50:51 -04:00
Alinson Xavier
c08702341a Update Spanish translations 2016-04-07 17:23:01 -04:00
Alinson Xavier
abb8c09bc9 Update widgets after executing command 2016-04-07 17:15:33 -04:00
Alinson Xavier
87255ceb25 RingView: invalidate after updating percentage and color
Fixes #79
2016-04-07 17:02:02 -04:00
Alinson Xavier
aedbfded0f Show POEditor link if language is not fully translated 2016-04-06 06:33:52 -04:00
Alinson Xavier
7bba6a887f Increase width of chart labels as needed 2016-04-05 08:11:37 -04:00
Alinson Xavier
b29c7e695a Save failed views to SD card root if writable 2016-04-05 05:47:09 -04:00
Alinson Xavier
af3b18f518 Fix incorrect date format for some languages 2016-04-04 19:05:24 -04:00
Alinson Xavier
50a8aece6f Move expensive call to background thread 2016-04-04 08:18:59 -04:00
Alinson Xavier
132ce36a57 More detailed logs in case getFilesDir fails 2016-04-04 07:58:07 -04:00
Alinson Xavier
e2e9e2e27a Remove debug code 2016-04-04 06:54:12 -04:00
Alinson Xavier
83db9fe2f2 Hide progress bar on startup 2016-04-04 06:46:16 -04:00
Alinson Xavier
9891139b5a Fix tests on ICS 2016-04-04 06:43:42 -04:00
Alinson Xavier
cbc8cbfea3 Fix scores with null habit 2016-04-04 06:02:56 -04:00
Alinson Xavier
96c46b655d Minor refactoring 2016-04-04 05:43:07 -04:00
Alinson Xavier
0de52d4fa3 BaseTask: move register/unregister to onPre/PostExecute 2016-04-04 05:42:27 -04:00
Alinson Xavier
c51b1fd399 Remove progress bar; switch to BaseTask 2016-04-03 07:51:54 -04:00
Alinson Xavier
eb8dd1d450 Simplify and optimize loading time of ShowHabitFragment 2016-04-03 07:46:08 -04:00
Alinson Xavier
357646152f Use postInvalidate instead of invalidate 2016-04-03 07:27:37 -04:00
Alinson Xavier
ae5be202b2 Add convenience methods for tracing 2016-04-03 07:27:16 -04:00
Alinson Xavier
cc3e2153d0 Allow BaseTask to publish integer progress 2016-04-03 07:26:40 -04:00
Alinson Xavier
7433a2413d Refactor BaseTask interface 2016-04-03 06:45:10 -04:00
Alinson Xavier
1cd8eb6849 NumberView: do not request layout on setNumber 2016-04-03 05:11:45 -04:00
Alinson Xavier
2d2bb8b4ed Render widgets in background 2016-04-02 13:32:04 -04:00
Alinson Xavier
e476096ae1 Fix view tests 2016-04-02 11:47:28 -04:00
Alinson Xavier
e2c814a982 Fix ShowHabitFragment and HistoryEditorDialog 2016-04-02 10:48:33 -04:00
Alinson Xavier
4fcaa68baf Throw exception when slow methods are executed on the main thread 2016-04-02 10:27:45 -04:00
Alinson Xavier
02e45dbe27 Rename DialogHelper to UIHelper 2016-04-02 10:14:21 -04:00
Alinson Xavier
bf6562f854 Update views on background thread 2016-04-01 17:50:14 -04:00
Alinson Xavier
3c927e009a Improve performance of Score computation 2016-04-01 17:49:17 -04:00
Alinson Xavier
a9bcae0f2f Clean up CheckmarkView 2016-04-01 17:24:12 -04:00
Alinson Xavier
bc54f3f916 Improve performance of toggleCheckmark 2016-04-01 16:21:22 -04:00
Alinson Xavier
5e0422848b Add tests for EditHabitCommand 2016-03-31 07:54:00 -04:00
Alinson Xavier
b2f2d4ad28 Add tests for UnarchiveHabitsCommand 2016-03-31 07:24:43 -04:00
Alinson Xavier
4dc8201dcb Add tests for CreateHabitCommand 2016-03-31 07:20:20 -04:00
Alinson Xavier
f24e300b40 Implement tests for Archive and ChangeColor commands 2016-03-31 07:11:24 -04:00
Alinson Xavier
72f5ca5531 Add tests for NumberView 2016-03-31 06:03:16 -04:00
Alinson Xavier
f9da90a93a Add tests for HabitStreakView 2016-03-30 21:02:05 -04:00
Alinson Xavier
96c6a97ad0 Add tests for HabitScoreView 2016-03-30 19:46:37 -04:00
Alinson Xavier
20469789ea Add tests for HabitFrequencyView 2016-03-30 18:41:00 -04:00
Alinson Xavier
d45a4445cc Minor changes to HabitHistoryView rendering; enable haptic feedback 2016-03-30 12:25:24 -04:00
Alinson Xavier
bc331d0a4d Write tests for HabitHistoryView 2016-03-30 08:28:21 -04:00
Alinson Xavier
2ba7246e5f Refactor Tasks for better testability 2016-03-30 08:28:06 -04:00
Alinson Xavier
c091116105 Compute padding/margins more precisely on CheckmarkView 2016-03-28 20:06:32 -04:00
Alinson Xavier
285f79ed95 Add tests for CheckmarkView 2016-03-26 20:11:17 -04:00
Alinson Xavier
2c62e1578a Create base test class for custom views 2016-03-26 19:25:50 -04:00
Alinson Xavier
b4c2d2237a Draw month name on the following column.
This reverts commit f9377e17. See #55 for reason.
2016-03-26 08:57:18 -04:00
Alinson Xavier
d14fbbd130 Make streak colors consistent 2016-03-26 08:49:02 -04:00
Alinson Xavier
e2c99d745e Improve visualization of streaks
Closes #20
2016-03-26 08:27:23 -04:00
Alinson Xavier
1ef4f8d456 Use system haptic feedback instead of custom vibration; enable on short press
Closes #66
2016-03-25 14:39:57 -04:00
Alinson Xavier
6c810ee7a3 Allow user to send bug report from settings screen 2016-03-25 14:39:57 -04:00
Alinson Xavier
62df660079 Implement UI tests for import/export and help 2016-03-25 08:10:10 -04:00
Alinson Xavier
790beb185a Do not save backup when importing Loop DB 2016-03-25 08:09:33 -04:00
Alinson Xavier
59c0af17d7 Use application context to initialize ActiveAndroid 2016-03-25 07:09:41 -04:00
Alinson Xavier
28dad560a6 Write tests for CSV exporter 2016-03-25 07:09:06 -04:00
Alinson Xavier
9e410f8395 Refactor and write tests for IO tasks 2016-03-25 06:18:07 -04:00
Alinson Xavier
3c595bc79d Add null check on DatabaseHelper 2016-03-24 21:51:02 -04:00
Alinson Xavier
1120f56dd4 Write tests for CSV export 2016-03-24 21:36:41 -04:00