Commit Graph

144 Commits (master)

Author SHA1 Message Date
Randy Heydon 04f3475dff bwclk: Wrap one-line clockinfo text.
Previously, one line of text would use a large font if the text
fits in the clock info space, and a smaller text if the one line
is too long to fit when large.  This commit also adds string
wrapping to those long lines, so more of the line can be shown.
Note wrapping is only applied when the text starts as one line; any
text with more than one line is left unwrapped, meaning some text
may extend outside of the clockinfo area.
2025-05-13 21:11:26 -04:00
Randy Heydon 83bedcdb57 bwclk: Adjust clkinfo positions for long text.
Previously, all text in a clock info entry was centered.  This caused
long lines to spill off both sides of the screen, and entries with
more than two lines to cover the time.  With this change, clock info
text is arranged so it only ever spills off the right and bottom.
This allows the start of any text to always be visible, and the time
to never be covered, regardless of the amount of text.  To achieve
this, multiple lines are now left-aligned instead of center-aligned.
2025-05-06 20:18:14 -04:00
Randy Heydon fe2ccfb108 bwclk & bwclklite: Support 12-hour time format.
This modifies how the time string is generated so it respects the system's
locale settings, specifically for 12-hour time.  This is done with the
locale package, which also simplifies some of the string handling since the
package creates a complete time string.  Note this does not add any display of
AM/PM, but neither do any other clock faces.
2025-01-31 22:03:27 -05:00
Rob Pilling b5b65406c0 Update apps to remove default boolean formatters 2024-01-08 21:53:11 +00:00
Rob Pilling 76b7a1194a Add data:[...] entries to apps using storage 2023-06-20 22:07:17 +01:00
Gordon Williams de79b0a39e Fix issue rendering ClockInfos with for fg+bg color set to the same (#2749) 2023-05-15 09:21:41 +01:00
thyttan 6830e5ed16 make clock_info border one pixel wider 2023-04-19 19:13:33 +02:00
David Peer 9645b287b5 Added styles 2023-01-30 17:38:18 +01:00
Gordon Williams de40f314c7 Moved clock_info to a module 2023-01-27 13:33:46 +00:00
thyttan e333f3cfcd widget_utils.show() in remove, cleanups 2023-01-12 11:01:00 +01:00
thyttan 97bae5422f use widget_utils 2023-01-11 19:24:22 +01:00
BartS23 c5d6b24815 use setItem of clock_info 2023-01-09 14:34:08 +01:00
David Peer 37a7a0d740 Memory leak fixes 2023-01-09 07:06:15 +01:00
David Peer c3de9fa59e Minor fix 2023-01-08 17:18:10 +01:00
David Peer 031278bd88 Design fixes 2023-01-08 17:14:47 +01:00
David Peer b7cce10e0e Minor improvements 2023-01-08 17:09:38 +01:00
David Peer e9eec03915 Show charging clkinfo in case the charger is connected 2023-01-08 16:59:36 +01:00
David Peer 2165941e1b Minor changes 2023-01-08 16:55:37 +01:00
David Peer 856ca654fa Performance improvements 2023-01-08 16:55:02 +01:00
David Peer a3c5a723bc Added option to only show the time as well as the week number. This also fixes issue #2459 2023-01-08 10:53:16 +01:00
thyttan a681d5415a remove some leftovers that caused ReferenceError on fast loading 2023-01-06 11:55:32 +01:00
David Peer 3c1465ae46 AI Clock - Use clock_info.addInteractive instead of a custom implementation 2023-01-05 22:05:52 +01:00
David Peer bdefe4217c Minor changes 2023-01-05 21:02:55 +01:00
David Peer 270539ce39 Minor changes 2023-01-05 20:56:05 +01:00
David Peer 239038d58d Removed one old Screenshot 2023-01-05 19:55:12 +01:00
David Peer 85f7d3e739 Updated readme 2023-01-05 19:50:35 +01:00
David Peer 7b5f6e10c5 Use clock_info.addInteractive instead of a custom implementation 2023-01-05 19:39:02 +01:00
Gordon Williams df653552ed
Merge branch 'master' into bwclock 2023-01-05 09:54:25 +00:00
David Peer 6a6690ae21 Fixed BW Clock 2023-01-04 16:07:32 +01:00
thyttan a9b9e5cc71 add remove-functionality to setUI
reset theme on fastload exit
2022-12-28 14:24:21 +01:00
Gordon Williams 8425f0b50a Update clock_info to avoid a redraw/general tidyups 2022-12-16 15:40:58 +00:00
Gordon Williams c4e1fd01be Added clkinfosunrise to allow clocks to display sunrise and sunset if they use clock_info 2022-11-21 16:37:04 +00:00
David Peer c362881de1 Added clockinfo to simple timer and improved the clkinfo module (run with optional feedback). 2022-09-23 16:08:16 +02:00
David Peer be4e289191 Updated readme 2022-09-20 18:50:57 +02:00
David Peer 96ae6140f0 Minor refactorings 2022-09-20 18:45:01 +02:00
David Peer af315be712 Fix: On charge should show battery... 2022-09-20 18:38:17 +02:00
David Peer bdb695c17f Minor changes 2022-09-19 17:46:13 +02:00
David Peer 00783857ba Minor change 2022-09-19 17:44:46 +02:00
David Peer d5ccb4919c Updated readme 2022-09-19 17:43:55 +02:00
David Peer 99999cbc88 Minor changes 2022-09-19 17:37:43 +02:00
David Peer 24972e3128 Refactored into clkinfo.js files 2022-09-19 17:23:37 +02:00
David Peer 2c1b29eb53 Added action to HA 2022-09-18 12:10:14 +02:00
David Peer aeb2ec5002 Fix build 2022-09-18 12:01:53 +02:00
David Peer 1d8008c127 Added home assistant 2022-09-18 12:00:58 +02:00
David Peer 3696cff42a Minor fix -- otherwise clock works not properly 2022-09-18 11:46:25 +02:00
David Peer b06f3a9cc2 Added weather 2022-09-17 18:21:54 +02:00
David Peer b60f0c4687 Added basic version of agenda 2022-09-17 18:07:43 +02:00
David Peer 37ff21b7fa Improved input through locking 2022-09-17 17:26:43 +02:00
David Peer 274544ec0f Several improvements 2022-09-17 17:14:20 +02:00
David Peer 77e1821cf4 Minor changes 2022-09-15 21:44:47 +02:00