* cmake: allow passing commit and version commit
* nix: don't set HYPRLOCK_VERSION_COMMIT
(Nix) Makes it so `--version` always prints the short commit hash, instead of not printing it.
* input-field: fixup dynamic width
- Instead of not rendering placeholder text,
if it does not fit into the input-field width,
render it up until the input field size.
- Improve updateWidth.
* input-field: make sure dots center does not change during width anim
When numlock is enabled but numlock_color is fallback, `targetGrad`
remains nullptr. This causes Hyprlock to crash in updateColors().
This commit aligns the condition check for assigning `targetGrad` with
later usages.
src/renderer/widgets/IWidget.cpp:123:11: error: no type named 'time_zone' in namespace 'std::__1::chrono'; did you mean 'date::time_zone'?
123 | const std::chrono::time_zone* pCurrentTz = nullptr;
| ^~~~~~~~~~~~~~~~~~~~~~
| date::time_zone
/usr/include/date/tz.h:785:7: note: 'date::time_zone' declared here
785 | class time_zone
| ^
src/renderer/widgets/IWidget.cpp:127:39: error: no member named 'locate_zone' in namespace 'std::__1::chrono'
127 | pCurrentTz = std::chrono::locate_zone(name);
| ~~~~~~~~~~~~~^
This was done, so that we can
wl_display_prepare_read -> poll -> wl_display_read_events
That fixes synchronization issues on nvidia proprietary drivers.
BREAKING:
- Removed $PROMPT variable. Either use $PAMPROMPT or $FPRINTPROMPT.
- Removed $FPRINTMESSAGE. Use $FPRINTPROMPT instead. There is also
$FPRINTFAIL.
Relative path was not handled if input started with tilde.
Examples:
~/./test
~/weird/../test
No reason to do something like this imho, but users you never know.
BREAKING:
- Removed `input-field:dots_fade_time`. Now configured via
`animation=inputFieldDots,...`
- Removed `input-field:fail_transition`. Now configured via
`animation=inputFieldColors,...`
- Removed `general:no_fade_in` and `general:no_fade_out`. Now configured
globally via `animations:enabled` or via `animation=fadeIn,...` and
`animation=fadeOut,...`
* widget: add utility functions to calculate borders and make em static
* image: use the rounding util functions
* input-field: use the rounding util functions
* shape: use the rounding util functions
* image: use absolutePath to get last_write_time and ignore when no reloadTime
* background: use absolutePath to get last_write_time and ignore when no reloadTime