Commit graph

96 commits

Author SHA1 Message Date
ada7ce8e56 renderer: various fixes to transformations and backgrounds
fixes #111
2024-03-03 02:19:31 +00:00
Maximilian Seidler
ac757cf7ab
input-field: show autentication failReason without additional input (#98)
This makes it so that
1. The renderer is triggered when the onPasswordCheckTimer callback is fired. Previously you had to give an
   additional input for the renderer to be triggered and the fail reason to show.
2. The updateDots function now sets dots.currentAmout to 0, when a failID is present.
   That leads to the draw function to return false and the failReason to be displayed until another input happens.
2024-02-29 14:34:27 +00:00
b8966fe05f asyncresourcegatherer: clarify callback thread safety 2024-02-26 18:27:27 +00:00
582e8c86b4 label: use a callback from asyncGatherer to render 2024-02-26 18:25:52 +00:00
1f268e0a39 core: create surface on monitor connect 2024-02-26 17:59:27 +00:00
bvr-yr
a7cffd0f77
render: remove alpha check for input-field (#90) 2024-02-26 17:37:19 +00:00
bvr-yr
94ac7fef1a
input-field: dots improvements (#84)
* input-field: dots improvements

* fix stuff
2024-02-26 00:33:19 +00:00
Maurice Kraus
0ad65916b8
renderer: restrict maximum dot amount w.r.t to input width (#56) 2024-02-24 14:14:10 +00:00
Jan Beich
8969351cba
core: Add libc++ compatibility (#73)
src/renderer/AsyncResourceGatherer.cpp:98:22: error: no viable overloaded '+='
   98 |             progress += 1.0 / (preloads + 1.0);
      |             ~~~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~
src/renderer/widgets/IWidget.cpp:41:44: error: no member named 'current_zone' in namespace 'std::chrono'
   41 |     const auto current_zone = std::chrono::current_zone();
      |                               ~~~~~~~~~~~~~^
2024-02-23 21:29:08 +00:00
4c68780143 format: sanitize username for null
ref #64
2024-02-23 13:04:13 +00:00
Jan Beich
f85287a523
core: Unbreak build on FreeBSD (#71)
* Add OpenPAM support (used by BSDs except OpenBSD)

--   Package 'pam', required by 'virtual:world', not found
CMake Error at /usr/local/share/cmake/Modules/FindPkgConfig.cmake:619 (message):
  The following required packages were not found:

   - pam

src/core/Password.cpp:6:10: fatal error: 'security/pam_misc.h' file not found
    6 | #include <security/pam_misc.h>
      |          ^~~~~~~~~~~~~~~~~~~~~

* Add missing headers

src/renderer/widgets/IWidget.cpp: In member function 'virtual IWidget::SFormatResult IWidget::formatString(std::string)':
src/renderer/widgets/IWidget.cpp:51:41: error: 'getlogin' was not declared in this scope
   51 |     replaceAll(in, "$USER", std::string{getlogin()});
      |                                         ^~~~~~~~
src/renderer/widgets/IWidget.cpp:51:51: error: no matching function for call to 'std::__cxx11::basic_string<char>::basic_string(<brace-enclosed initializer list>)'
   51 |     replaceAll(in, "$USER", std::string{getlogin()});
      |                                                   ^
src/renderer/DMAFrame.cpp: In member function 'bool CDMAFrame::onBufferDone()':
src/renderer/DMAFrame.cpp:181:17: error: 'close' was not declared in this scope; did you mean 'pclose'?
  181 |                 close(fd[plane_tmp]);
      |                 ^~~~~
      |                 pclose
src/renderer/DMAFrame.cpp:196:13: error: 'close' was not declared in this scope; did you mean 'pclose'?
  196 |             close(fd[plane]);
      |             ^~~~~
      |             pclose
src/core/Password.cpp: In lambda function:
src/core/Password.cpp:44:31: error: 'strdup' was not declared in this scope
   44 |         reply->resp         = strdup(pass.c_str());
      |                               ^~~~~~
src/core/hyprlock.cpp: In member function 'void CHyprlock::spawnAsync(const std::string&)':
src/core/hyprlock.cpp:768:9: error: 'sigemptyset' was not declared in this scope
  768 |         sigemptyset(&set);
      |         ^~~~~~~~~~~
src/core/hyprlock.cpp:769:21: error: 'SIG_SETMASK' was not declared in this scope
  769 |         sigprocmask(SIG_SETMASK, &set, NULL);
      |                     ^~~~~~~~~~~
src/core/hyprlock.cpp:769:9: error: 'sigprocmask' was not declared in this scope
  769 |         sigprocmask(SIG_SETMASK, &set, NULL);
      |         ^~~~~~~~~~~
2024-02-23 12:54:14 +00:00
9ba88d0ace gbm: prefer linear modifiers
ref #62
2024-02-22 23:02:42 +00:00
272fc359ad gbm: pick only valid modifiers 2024-02-22 03:05:56 +00:00
57ce4f759c config: add no_fade_in
fixes #55
2024-02-22 00:36:01 +00:00
7ca13a801b renderer: fix misc blur shenanigans
fixes #58
2024-02-22 00:31:33 +00:00
3f8b6b5c95 framebuffer: ask for 2101010 by default 2024-02-21 22:30:37 +00:00
1b57d52179 background: add blurring 2024-02-21 22:21:16 +00:00
2836f02ded background: add screenshot 2024-02-21 21:39:14 +00:00
06b07c53e5 label: add executing commands 2024-02-21 14:12:20 +00:00
b1ffd73534 input-field: add dots_center 2024-02-21 11:42:18 +00:00
bvr-yr
d28e009c55
input-field: allow configure dots size (#24) 2024-02-20 17:12:43 +00:00
a92e3fbe36 input: fix outerColor alpha being nuked 2024-02-20 16:34:59 +00:00
40802b9672 renderer: minor alpha improvements 2024-02-20 16:29:23 +00:00
11a6213c36 background: fix typo in calcs 2024-02-20 16:02:40 +00:00
6ff808cebf input-field: add hide_input 2024-02-20 14:42:10 +00:00
Siavash Askari Nasr
1049ac9a0b
label: Use local time for $TIME variable (#17)
Before this change, system's time zone was not used to return the time
2024-02-20 11:29:39 +00:00
1b5b3e7df8 input-field: password rendering improvements 2024-02-20 02:47:03 +00:00
0bcdca6e7b core: more thread safety 2024-02-20 01:30:47 +00:00
cb81a977c4 widget: handle linebreaks 2024-02-20 01:12:06 +00:00
13124c6a96 renderer: add missing widget.cpp 2024-02-20 00:59:02 +00:00
9074ff702d core/input: add feedback for password verification 2024-02-20 00:53:49 +00:00
d45b0e35b1 background: properly contain 2024-02-20 00:26:13 +00:00
7370fc624f label: add time and dynamic timers 2024-02-20 00:11:19 +00:00
c60b7b8aef input-field: add placeholder 2024-02-19 22:58:59 +00:00
3585324e4f input-field: add halign valign and pos 2024-02-19 22:45:59 +00:00
80e6970e33 input-field: cleanup props in constructor 2024-02-19 22:39:13 +00:00
LOSEARDES77
05cd68e17d
input-field: add font color config option (#11) 2024-02-19 22:35:13 +00:00
debfe716e8 asyncResourceGatherer: reset pending flag on process
fixes #7
2024-02-19 21:10:31 +00:00
013dfadee7 inputField: minor cleanup
still anim sucks a bit
2024-02-19 21:09:00 +00:00
6a31b2f182 widgets: allow background to take a color 2024-02-19 20:50:58 +00:00
641563e5a9 label: support pango markup 2024-02-19 17:42:14 +00:00
e207d34b88 widgets: add label 2024-02-19 16:26:29 +00:00
0719ac671e renderer: fix constant re-renders 2024-02-19 01:24:35 +00:00
8287baca11 input-field: add fade_on_empty 2024-02-19 01:22:22 +00:00
80d6dff563 logging: move spammy logs to trace 2024-02-19 00:22:55 +00:00
a6ac79641a core: initial commit 2024-02-18 23:08:03 +00:00