Commit graph

407 commits

Author SHA1 Message Date
Felix Salcher
4c45cda296
update internal structure of dots and password 2025-07-11 00:50:27 +02:00
Felix Salcher
fbc419dfcb
remove pngs as they are not needed anymore 2025-07-07 18:22:58 +02:00
Felix Salcher
8e9d08c98c
add config option to allow toggling the password 2025-07-07 18:00:24 +02:00
Felix Salcher
31a365d585
update hyprgraphics 2025-07-07 12:26:13 +02:00
Felix Salcher
36743940f1
update doc strings 2025-07-01 21:53:09 +02:00
Felix Salcher
d7ac370d9e
directly embed the eye icons 2025-07-01 21:47:04 +02:00
Felix Salcher
d56543e513
pull changes from upstream 2025-06-29 17:59:21 +02:00
Felix Salcher
71d62edd61
increase the default margin of the eye 2025-06-29 14:32:09 +02:00
Felix Salcher
a39c2af9c1
add the option to place the eye either left or right 2025-06-29 14:31:59 +02:00
Felix Salcher
e0fdafb1bb
render two different eye images, depending on if the password is shown or not 2025-06-29 14:07:07 +02:00
Karun Sandhu
fee04f6406 flake.lock: update 2025-06-28 22:44:09 +03:00
Felix Salcher
5fc0c69065
only set password asset when not already set 2025-06-28 12:05:26 +02:00
Maximilian Seidler
d84b44e695
core: use hyprutils atomic pointers (#808)
* widgets: move references to hyprutils atomic shared

* core: move std::shared_pointers to hyprutils atomic shared pointers

* Nix: bump hyprutils input

* clang-format

* cmake: bump hyprutils to v0.8.0

* and bump nix again
2025-06-28 11:01:28 +02:00
Felix Salcher
559415f285
remove redundant forceReload 2025-06-28 01:00:44 +02:00
Felix Salcher
11da1e7f13
update eye size to be the same as password and dots 2025-06-28 00:58:41 +02:00
Felix Salcher
8089bb23d8
correctly align dots when centered 2025-06-28 00:28:58 +02:00
Felix Salcher
116789b19a
don't show eye when password is empty 2025-06-27 22:55:09 +02:00
Felix Salcher
b1dc5df422
add eye to toggle visibility 2025-06-27 22:45:04 +02:00
davc0n
7999f448d7
core: replace grace option with --grace cli argument (#802)
* core: replace grace option with --grace cli argument

* core: remove --immediate option

not necessary anymore, grace is not a configuration option

* Revert "core: remove --immediate option"

This reverts commit 0c99899157.

* core: add --immediate and grace option deprecation warnings

* core: review fixes for --immediate and --grace

* core: review fixes for grace deprecation
2025-06-26 09:35:25 +02:00
Felix Salcher
4d6b766e3a
only render password i it's length exceeds one 2025-06-24 11:03:36 +02:00
Felix Salcher
00c39a8e55
tidy up the asyncresourcegatherer functions 2025-06-24 09:41:54 +02:00
Felix Salcher
bfe23c6ee7
directly query the length of the password and change it accordingly 2025-06-24 09:41:51 +02:00
Maximilian Seidler
a9638986c3
core: use a screenshot for fade in/out (#726) 2025-06-22 09:24:39 +02:00
e67036e8cc
CI/Nix: add cache-nix-action
Use nixbuild/nix-quick-install-action which pairs well with
nix-community/cache-nix-action.

Should help with build times by reducing the number of packages needing
to be re-downloaded on each run.

Parameters are taken from https://github.com/nix-community/cache-nix-action
and may be tweaked later.
2025-06-20 01:25:18 +03:00
Friday
f9d8dfab7a nix: use gcc15
also updated dependencies
2025-06-06 01:26:31 +03:00
TioBill
1303bb4b7e
cmake: Add check for libpam using pkg_check_modules (#795) 2025-06-05 21:22:14 +01:00
Felix Salcher
5fdd752df4
make if condition easier 2025-06-04 15:38:56 +02:00
Felix Salcher
50b4cdad48
remove constant setting password size 2025-06-04 15:35:12 +02:00
Felix Salcher
2766182e62
change timer to 10 ms as delay can be very noticable in password input field 2025-06-04 15:31:59 +02:00
Felix Salcher
63457409ce
reorder functions 2025-06-04 15:31:33 +02:00
ojafuenf
8455fc8ca6
core: interpret touch as click (#788) 2025-06-04 08:14:11 +02:00
Felix Salcher
f32a885f75
when hitting enter, remove trip 2025-06-04 08:00:34 +02:00
Felix Salcher
895c7a3a22
when password becomes too long, trim it at the front 2025-06-03 23:53:44 +02:00
Felix Salcher
3e8a2d0cde
when hitting tab, it shows and hides the password 2025-06-03 17:49:32 +02:00
Felix Salcher
8ccdf6131b
add config options for password_size and password_center 2025-06-03 15:54:36 +02:00
Felix Salcher
190bd64c8d
add pendingResourceID to enable smoother input
copied from Label
2025-06-03 12:34:04 +02:00
Felix Salcher
1ab3582ec7
use password size 2025-06-03 11:51:59 +02:00
Felix Salcher
801491a190
add show and center options 2025-06-03 11:37:01 +02:00
Felix Salcher
8bd246c397
first iteration 2025-06-03 11:24:15 +02:00
Maximilian Seidler
da1d076d84
core: fix variable substitution for LAYOUT (#778) 2025-05-19 06:23:50 +00:00
Max Woolf
f7f0c9c6b0
example: Add config location hint to help new users (#771) 2025-05-09 18:54:54 +02:00
nyx
c12cf8e509
core: disable fade in when using --immediate (#763) 2025-05-07 07:13:41 +00:00
Virt
0c5fd97d61
renderer: properly treat monitor desc: prefix (#765) 2025-05-07 07:12:58 +00:00
Maximilian Seidler
fae1c4f6fe
misc: readme cleanup, remove deps required by hyprgraphics (#762) 2025-05-05 23:45:32 +02:00
Maximilian Seidler
e3bd47e177
widgets: add onclick feature (#736)
* widget: add click handling and point containment methods to IWidget interface

* core: add onClick method to handle mouse click events

- renderer: move getOrCreateWidgetsFor method declaration to public section

* core: update mouse event handling to track mouse location and button clicks

* widget: add onclick command handling and point containment to CLabel

- config: add onclick special config value to label

* assets: add label configuration for keyboard layout switching

* config: add onclick configuration for label widgets

 - add CLICKABLE macro for onclick configuration
 - replace direct onclick assignment with CLICKABLE macro

* core: fix cursor shape initialization and pointer handling

 - ensure pointer is available before setting cursor shape
 - initialize cursor shape device if not already done

* core: add hover handling and cursor shape updates

 - implement onHover method to manage widget hover states
 - update cursor shape based on hover status
 - ensure all outputs are redrawn after state changes

* widgets: add hover state management and bounding box calculations

 - add setHover and isHovered methods to manage hover state
 - implement containsPoint method for hit testing
 - override getBoundingBox in CLabel for accurate positioning
 - add onHover method in CLabel to change cursor shape

* core: add hover handling in pointer motion

 - invoke onHover method with current mouse location

* widgets: add hover handling and bounding box for password input field

 - add getBoundingBox method to calculate the widget's bounding box
 - implement onHover method to update cursor shape on hover

* widgets: update hover behavior for label widget

 - modify cursor shape setting to only apply when onclickCommand is not empty

* core: optimize hover handling and rendering for lock surfaces

 - Improve hover state tracking for widgets
 - reduce unnecessary redraw calls by tracking hover changes
 - remove redundant renderAllOutputs() call

* widgets: add onclick and hover to shape and image

* core: trigger hover and onclick only for the currently focused surface

* core: handle fractionalScale in onclick and hover

* core: don't trigger onclick or hover when hide_cursor is set

* misc: remove braces

* core: run onclick commands asnychronously

---------

Co-authored-by: Memoraike <memoraike@gmail.com>
2025-05-05 15:11:24 +00:00
6c64630df8
version: bump to 0.8.2 2025-05-03 15:04:47 +01:00
Maximilian Seidler
0e3e7206bc
core: use enqueueUnlock for unlocks via SIGUSR1 (#756) 2025-04-30 07:12:40 +00:00
Maximilian Seidler
867a71dd78
core: avoid calling wl_display_read_events after poll returned due to EINTR (#757) 2025-04-30 06:11:57 +00:00
Maximilian Seidler
82808290d9
core: correct $LAYOUT replacement (#755)
* core: remove fake declaration in header

* widgets: fix layout rendering

* core: remove CSeatManager::getActiveKbLayoutName

---------

Co-authored-by: Heorhi Valakhanovich <code@mail.geov.name>
2025-04-25 13:01:34 +00:00
Honkazel
eb28a71756
clang-tidy: fix some errors (#751)
I did c+p .clang-tidy from Hyprland and didn't check it for any errors, lol. Still works though
Thanks to hyprwm/Hyprland#9543
2025-04-21 20:17:15 +02:00