11 Commits
Author SHA1 Message Date
Illusion 1c9d084113 fix(zephr/ui): color picker and small mouse event fixes
- reset pressed state at the end of the frame
- correctly place the color picker regardless of window size
- make color picker popup border radius consistent regardless of window
  size
- don't draw the color picker popup if it's parent is not visible
2024-01-09 03:27:54 +02:00
Illusion 12626a513e zephr/ui: dynamically determine color picker buttons' text color and crosshairs selection's color 2024-01-09 01:13:01 +02:00
Illusion 0b89bf2390 zephr/ui: introduce IDs to ui elements to track the active element 2024-01-08 05:55:58 +02:00
Illusion 7068f399f4 fix(zephr): change window type hint to be normal and fix fullscreen on WMs that use _NET_WM_ALLOWED_ACTIONS 2024-01-06 01:54:36 +02:00
Illusion 66be747922 fix(zephr): correct window name in gnome's sidebar 2024-01-05 23:59:35 +02:00
Illusion bba2f8a189 WIP: settings, color picker and stuff 2024-01-05 22:19:31 +02:00
Illusion e543b5f882 zephr/game: various fixes and improvements
- zephr: handle newlines in text
- fix(zephr): don't overflow color channels bytes when multiplying
  colors
- fix(zephr): don't fallback to UI_CONSTRAINT_FIXED when setting the x
  or y constraint to UI_CONSTRAINT_RELATIVE_PIXELS
- game: added how to play dialog
- game: ability to start a new game
2023-12-29 15:12:43 +02:00
Illusion 31f22a4ba7 zephr/game: disabled and inactive buttons. quit confirmation dialog 2023-12-28 01:43:06 +02:00
Illusion 2f88c53a07 zephr/game: textures, icons, and buttons
- zephr: correctly set cursor when hovering button
- zephr: added texture loading and displaying
- zephr: added icon button
- game: added help and settings icon buttons
2023-12-27 22:42:35 +02:00
Illusion 2fc8ac6456 WIP(zephr): window icon. basic ui button
- zephr: added ability to assign an icon to a window
- zephr: added a basic ui button with hover and click states and cursor
  change
2023-12-17 03:52:35 +02:00
Illusion 9620e12681 basic game logic with simple translation animation 2023-12-13 06:58:08 +02:00