Riku Isokoski
6dc49e5bdb
clang-format: Always break template declarations
...
I find this format easier to read, because the definitions are at the
expected indentation, making it easier to find what I'm looking for.
2023-02-16 09:13:58 +02:00
Riku Isokoski
8e2dcda14f
files-needed-by-factory: Adjust headers
2023-02-13 11:03:14 +02:00
Riku Isokoski
dddca33d2f
files-needed-by-factory: Move to separate document
...
These are instructions for maintainers, and should be in a separate
document.
2023-02-13 11:03:14 +02:00
Riku Isokoski
27c241c7ee
SettingSteps: Update UI
...
Bigger buttons, use new color.
2023-02-12 17:07:45 +02:00
Riku Isokoski
d4eb24b7f8
SettingSteps: Improve goal setting
...
Long pressing will change the value by 1000, whereas clicks will change
it by 500. This allows setting more precise values, while also making it
easier to set any value.
2023-02-12 17:07:45 +02:00
Riku Isokoski
4e1a2aff47
contribute.md: Add commit format section
...
Inspired by:
https://www.klipper3d.org/CONTRIBUTING.html#format-of-commit-messages
2023-02-12 14:36:04 +02:00
Riku Isokoski
f9d03cc396
contribute.md: Improve contributing instructions
...
Denser instructions for absolute beginners. Links to GitHub docs.
Add PR checklist and commit conventions sections based on the
maintainer's guide.
2023-02-12 14:36:04 +02:00
Riku Isokoski
049fbba516
Steps: Update UI
2023-02-01 10:13:57 +02:00
Riku Isokoski
822f857d9e
stopwatch: Update UI
...
The time used to be yellow while paused. Changing it to white made the
paused state less distinct. Blinking the time while paused makes the
state distinct again.
2023-02-01 09:52:04 +02:00
Riku Isokoski
81bc16fd92
workflow: Buildsize comment when simulator fails
...
The workflow checks that the buildsize comparison succeeds. The download
artifact step also checks that all of the main workflow succeeds. This
isn't necessary, and causes the comment not to be created when the
simulator build fails. This change disabled the success conclusion
requirement.
2023-01-31 22:38:17 +02:00
Riku Isokoski
cb91943f12
workflow: Updated workflow comment for all
...
The previous version failed, because it looked for the check from the
branch in the fork, but looked for it in the main repo. Now uses the sha
to get the commit on which checks were run.
Previous description
This works by uploading the data from the main workflow with low
permissions as an artifact, then downloading the data in a workflow with
higher permissions to post the comment.
Third party actions are fixed at a commit, in case they get compromised.
Also set the build-firmware VM to ubuntu-22.04, which was missed when
updating workflow deps earlier.
2023-01-31 21:56:24 +02:00
Riku Isokoski
3e964e20ac
Revert "workflow: Comment build size on all PRs"
...
This reverts commit 012c3d25f3 .
2023-01-31 09:33:56 +02:00
Riku Isokoski
012c3d25f3
workflow: Comment build size on all PRs
...
This works by uploading the data from the main workflow with low
permissions as an artifact, then downloading the data in a workflow with
higher permissions to post the comment.
Third party actions are fixed at a commit, in case they get compromised.
Also set the build-firmware VM to ubuntu-22.04, which was missed when
updating workflow deps earlier.
2023-01-31 09:21:02 +02:00
Riku Isokoski
97123d99c9
SettingChimes: Use CheckboxList
2023-01-29 09:55:54 +02:00
Riku Isokoski
32875944f9
SettingBluetooth: Use CheckboxList
2023-01-29 09:55:54 +02:00
Riku Isokoski
4b2a61ea4a
LittleVgl: Small cleanup
2023-01-29 08:51:37 +02:00
Riku Isokoski
8e8215d360
theme: Replace LV_DPX with a constexpr variant
2023-01-29 08:51:37 +02:00
Riku Isokoski
547c46a588
theme: Cleanup unused styles
...
Condensed paddings with pad_all
No visual changes
2023-01-29 08:51:37 +02:00
Riku Isokoski
7aa215fcfa
theme: Remove unused parameters
2023-01-29 08:51:37 +02:00
Riku Isokoski
056b0f5b3f
build-size-workflow: Fix when base gets updated
...
The github.event.pull_request.base.sha in the workflow doesn't get
updated when there are new commits in the base branch. Instead always
checkout the branch to check the sha manually and cache only the build.
The ownership fix seems to still be necessary
2023-01-28 17:58:43 +02:00
Riku Isokoski
5feccb382a
infineat: Fix 12-hour time
...
Missing characters
2023-01-26 10:58:47 +02:00
Riku Isokoski
7bd215bc06
infineat: Remove use with builtin fonts
...
The watchface cannot be enabled without the correct font anyway.
2023-01-26 10:58:47 +02:00
Riku Isokoski
52bc0cd623
infineat: Battery display simplification
2023-01-26 10:58:47 +02:00
Riku Isokoski
a3a4091e03
infineat: Use set_text_static where applicable
2023-01-26 10:58:47 +02:00
Riku Isokoski
eae60b6a3d
infineat: Remove batterystyle
...
Setting local style is more efficient
2023-01-26 10:58:47 +02:00
Riku Isokoski
a7a1dcbf23
infineat: Remove unnecessary background colorization
2023-01-26 10:58:47 +02:00
Riku Isokoski
1feb01b25f
infineat: Optimize lv_lines
...
Reduce code duplication massively
2023-01-26 10:58:47 +02:00
Riku Isokoski
a3e14c012d
src: Enable unused parameter warning
...
Fix warnings.
Some clang-formatting was necessary.
DebugPins is unused and was removed.
2023-01-24 10:43:17 +02:00
Riku Isokoski
4b75605412
contribute.md: Update
...
Cleaned up the list of things you can help with.
Added a few points
2023-01-22 09:02:47 +02:00
Riku Isokoski
aed37dd74d
readme: Add Project management section
...
The list of development docs was getting long, so move docs more
intended for maintainers to a separate section.
2023-01-22 09:00:14 +02:00
Riku Isokoski
ee8349a676
doc: Add maintainer guide
2023-01-22 09:00:14 +02:00
Riku Isokoski
61698b6e19
Tweaked issue forms ( #1267 )
...
When people suggest a solution to a generic issue they encounter, they have to open a feature request, which is not optimal. Submitting an issue through this new form will require writing about the issue that led to the idea, which will make it easier to discuss different solutions.
2023-01-12 22:46:30 +02:00
Riku Isokoski
c5fb41beb7
List: Update list style and make it gray
2023-01-12 22:39:38 +02:00
Riku Isokoski
7508dd74ee
Update workflow dependencies ( #1504 )
...
* Update workflow dependencies
ubuntu-latest vm has been updated from 20.04 to 22.04.
To avoid sudden issues, use 22.04 explicitly.
CMake doesn't need to be updated on 22.04, but ninja must be installed separately in the simulator workflow.
actions/checkout@v2 uses deprecated Node.js 12.
Update to v3 which uses 16
2023-01-12 22:04:25 +02:00
Riku Isokoski
3c9b3435a5
SetingTimeFormat use CheckboxList, reduce duplication
2023-01-12 22:02:32 +02:00
Riku Isokoski
09db67e003
workflow: echo build diffs for viewing without the comment
2023-01-07 20:58:18 +02:00
Riku Isokoski
dca11812c2
workflows: Disable build size comment in fork PRs
...
Due to a security concern, comments can only be created in the context
of branches in the repo. PRs from forks can't get the comment.
https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#restrictions-on-repository-forks
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
2023-01-07 20:58:18 +02:00
Riku Isokoski
028d40860d
workflows: Add build size comparison workflow
...
Add .github/workflows/getSize.sh to extract sizes of sections from the
objfile
build-firmware uses getSize.sh to output the section sizes.
get-base-ref-size job added, which builds the base branch of the PR and
outputs the section sizes. Caches are used to avoid unnecessary builds
when the base branch hasn't been updated.
leave-build-size-comment job added, which creates or updates a comment
on the PR with the build size information from other jobs.
2023-01-07 18:56:15 +02:00
Riku Isokoski
499f0875d3
workflows: Update workflow dependency
...
The workaround is no longer necessary
2023-01-07 18:56:15 +02:00
Riku Isokoski
bd8e6d8c15
docker: Make build.sh more portable
2023-01-07 18:56:15 +02:00
Riku Isokoski
fb19c491b6
Fix returning to the same screen
2023-01-05 15:13:05 +01:00
Riku Isokoski
5ef3c0d3be
Implement a return app stack
...
Each opened app (screen) is pushed on a stack, which is then popped from
when returning instead of hard coded "previous apps". Return swipe and
refresh directions are automatically determined from the app transition.
2023-01-05 15:13:05 +01:00
Riku Isokoski
318a243df1
Revert "prepare cmake unity build"
...
This reverts commit 21f3bd7082 .
2022-12-31 12:41:45 +01:00
Riku Isokoski
419d8413c6
Revert "enable CMake unity build in build.sh"
...
This reverts commit 35654fbd98 .
2022-12-31 12:41:45 +01:00
Riku Isokoski
2b62eaf65f
Revert "Update docker/build.sh"
...
This reverts commit 7103f9d806 .
2022-12-31 12:41:45 +01:00
Riku Isokoski
b071422f91
Small fixup for cmake cleanup
2022-12-26 20:46:39 +01:00
Riku Isokoski
afea7ca0d1
Update clang-tidy configuration and fix some warnings ( #1474 )
...
Don't enable coding conventions from unrelated projects. Only enable
generic checks.
2022-12-18 18:14:36 +01:00
Riku Isokoski
bfedf47d1a
Optimize SettingWatchFace
2022-12-18 16:39:34 +01:00
Riku Isokoski
99b5b49993
Optimize SettingWakeUp
2022-12-18 16:39:34 +01:00
Riku Isokoski
9c5b1437ec
Optimize SettingTimeFormat
2022-12-18 16:39:34 +01:00
Riku Isokoski
9b2221173c
Use PageIndicator in CheckboxList
2022-10-16 10:31:41 +02:00
Riku Isokoski
964f065de4
Fix clang-tidy warnings
2022-10-10 17:52:36 +02:00
Riku Isokoski
318a97c218
Fix docker issue
2022-10-10 17:52:36 +02:00
Riku Isokoski
73918ce8af
Add clang-tidy check to display warnings on GitHub
2022-10-10 17:52:36 +02:00
Riku Isokoski
b9224c1ace
Disable value_str
...
value_str is a way to add text on a button without a separate label.
This saves having an extra label object, but uses more memory and is
removed in LVGL8
2022-09-17 21:27:32 +02:00
Riku Isokoski
bf90e07a28
Improve status icon visibility
2022-09-17 21:26:51 +02:00
Riku Isokoski
c853681d75
Reduce duplication in Twos ( #1274 )
2022-09-11 20:57:49 +02:00
Riku Isokoski
f53e75063b
Merge CI to deduplicate events ( #1279 )
2022-08-25 08:32:46 +03:00
Riku Isokoski
69563ed031
Add sleep mode which disables notifications, touch- and motion wakeup ( #1261 )
2022-08-21 14:52:38 +03:00
Riku Isokoski
62c4ff9c2d
Determine the number of digits from the max value. ( #1271 )
2022-08-21 14:52:14 +03:00
Riku Isokoski
c2b6a8de3e
Fix markdown format with autoformatter ( #1284 )
2022-08-21 14:50:09 +03:00
Riku Isokoski
c495db8a71
Simplify coding style ( #1280 )
2022-08-21 14:44:05 +03:00
Riku Isokoski
093a66c8f8
Simplify contribute.md ( #1281 )
2022-08-21 14:43:56 +03:00
Riku Isokoski
e02b58bf1b
Move all images to doc. Remove old images. ( #1282 )
2022-08-21 14:42:53 +03:00
Riku Isokoski
ef6ed5d26e
Improve checkbox visibility ( #1266 )
2022-08-16 08:29:26 +03:00
Riku Isokoski
78fc1682da
Centralize most color definitions ( #1258 )
2022-08-16 08:21:23 +03:00
Riku Isokoski
eb487c71be
Use Counter in SettingsSetDate
2022-08-10 08:37:52 +03:00
Riku Isokoski
3eebe02448
Add support for months and variable digit count to Counter
2022-08-10 08:37:52 +03:00
Riku Isokoski
8e72cf380f
Notification swap text colors for visibility and reduce duplication ( #1252 )
2022-08-08 18:01:40 +03:00
Riku Isokoski
b768829c63
More timeout options and improved checkbox alignment
2022-08-02 22:53:10 +02:00
Riku Isokoski
67e0cad573
Simplified stopwatch lap buffer
...
Overriding the earlier laps doesn't seem like a good idea.
2022-08-02 22:51:59 +02:00
Riku Isokoski
1467324c50
Bring back separate info button, move color to a variable.
2022-08-02 22:51:04 +02:00
Riku Isokoski
7a6ede112e
Remove clockType variable by checking for nullptr instead.
...
Saves a few bytes
2022-08-02 22:51:04 +02:00
Riku Isokoski
97048121b0
Use Counter widget in Alarm
2022-08-02 22:51:04 +02:00
Riku Isokoski
9f851f6321
Automatic alignment with containers
2022-08-02 22:49:12 +02:00
Riku Isokoski
28a528761f
Remove leftover change
2022-08-02 22:49:12 +02:00
Riku Isokoski
edba1d9ccf
Add status icons widget
2022-08-02 22:49:12 +02:00
Riku Isokoski
77d3239866
Use submodule for date lib
...
A directory has been renamed
2022-08-02 22:43:22 +02:00
Riku Isokoski
e75b89bbc6
Remove copy of date lib
2022-08-02 22:43:22 +02:00
Riku Isokoski
80c1a5a0a4
Theme cleanup ( #1256 )
...
Remove unnecessary comments, styles, colors, overrides. Fix arc colors
2022-07-31 08:19:20 +03:00
Riku Isokoski
93477e25cf
Docs reorganization ( #1236 )
...
* Docs reorganization
Removed broken link
* README.md relative link consistency
2022-07-21 23:02:33 +03:00
Riku Isokoski
d6165e72b7
Replace icomoon system font with material design icons ( #1228 )
2022-07-21 22:56:34 +03:00
Riku Isokoski
9ee1160578
Reset timer by long pressing on the button ( #1214 )
...
* Reset timer by long pressing on the button
* Consider press_lost as released
Otherwise the bar would keep increasing if the finger slid off the
button
2022-07-21 22:53:36 +03:00
Riku Isokoski
411f2d19e1
Use Counter widget in SettingSetTime plus optimizations
2022-07-21 22:23:15 +03:00
Riku Isokoski
df6557dd31
Extend Counter functionality
...
Custom fonts, twelve hour mode and Value changed callback.
2022-07-21 22:23:15 +03:00
Riku Isokoski
0f4233003e
Limit backlight when flashlight is off ( #1212 )
2022-07-21 22:22:14 +03:00
Riku Isokoski
cea81fea9c
Always restore brightness on app switch ( #1213 )
2022-07-21 22:16:55 +03:00
Riku Isokoski
9b92861753
Twos code cleanup ( #1220 )
2022-07-06 11:29:23 +03:00
Riku Isokoski
b9f5a0745d
Don't build the firmware when only docs were modified ( #1198 )
2022-07-05 09:22:29 +03:00
Riku Isokoski
ec8a845052
Add PageIndicator widget to reduce code duplication ( #1218 )
...
* Move PageIndicator widget to its own files to reduce code duplication
* Use uint8_t in PageIndicator
2022-07-05 07:41:09 +02:00
Riku Isokoski
c0770cde8a
Add InfiniTime Vision document ( #1196 )
2022-06-29 22:31:35 +03:00
Riku Isokoski
61c2d8dbc7
Flashlight default to max brightness and code cleanup
2022-06-19 18:24:36 +02:00
Riku Isokoski
2b2aefcf6a
Fix InfiniTime compiler warnings
2022-06-19 13:41:33 +03:00
Riku Isokoski
95ff285991
Remove backup brightness feature ( #1180 )
...
This feature is not needed and is probably more likely to cause issues. It's better to just use brightnessController.Set(settingsController.GetBrightness());
2022-06-18 12:54:41 +03:00
Riku Isokoski
9b775c6a91
Automatically create screens for applist and settings ( #1153 )
...
Apps and settings are now stored in a single array (two arrays in total).
Replace magic values with appsPerScreen and entriesPerScreen.
2022-06-16 21:41:54 +02:00
Riku Isokoski
10ca036ffb
Patch hole in the letter M in jetbrains_mono_bold_20 ( #1175 )
2022-06-16 17:05:55 +02:00
Riku Isokoski
d55ec42b17
Simplify SettingChimes code
2022-06-11 22:46:38 +03:00
Riku Isokoski
955dda60c5
Use lambda to reduce code duplication
2022-06-06 21:28:03 +02:00
Riku Isokoski
6cfb45e280
Move event handlers to unnamed namespace
2022-06-06 21:28:03 +02:00
Riku Isokoski
c6026aa617
Use static constexpr to force compile time initialization
2022-06-06 21:28:03 +02:00