Commit Graph

118 Commits

Author SHA1 Message Date
6d071bd1d3 ContainerBox uses slices.Remove correctly 2024-09-12 03:04:45 -04:00
dfc5c4514a Fix window type for tear-off menus 2024-09-12 02:53:12 -04:00
51afca6a3f Fix menu windows not being override redirect 2024-09-12 02:51:20 -04:00
b58932f02b Fix x/window.go 2024-09-12 02:07:57 -04:00
ee64650c19 Fix x/event.go 2024-09-12 02:06:16 -04:00
55215dedc2 Select all in textBox uses the length of the rune slice 2024-09-12 01:15:17 -04:00
eb98d143db Fix textBox 2024-09-12 01:15:01 -04:00
42deb40c2d internal/system/event.go uses key chords in tomo/config 2024-09-12 01:10:52 -04:00
b6850ee702 Update Tomo API 2024-09-12 01:05:32 -04:00
9d67013e33 Replace most functionality in internal/util with goutil and slices 2024-09-11 00:08:21 -04:00
0a8bb39265 Fix unreachable code in textBox 2024-09-10 23:55:38 -04:00
b92308fc80 Textbox does not trigger a DotChange event when using Select
The convention within Tomo is that On*Change events only fire when
the user interacts with something
2024-09-05 23:56:11 -04:00
6f9eca99e7 Text cursor is now an I beam 2024-09-05 16:46:49 -04:00
381f5f88bd Ctrl+Home/End go to the start and end of the box respectively 2024-09-04 12:55:37 -04:00
1c38ed2d87 Add soft line home 2024-09-04 12:40:46 -04:00
9079aca993 Fix segfault in lineHome 2024-09-04 12:30:36 -04:00
70d6759884 Add basic line home/end 2024-09-04 12:27:20 -04:00
2f828b1ae8 Add up/down keynav
Paragraph jumping could be better, but that can be refined later.
Progress on #10
2024-09-04 01:36:31 -04:00
c1c0d2125d Update TypeSet 2024-09-03 21:49:57 -04:00
3b4ab56914 Fix child boxes rendering on top of borders
Closes #4
2024-08-23 15:57:53 -04:00
e7f16645eb Unset all attributes when the style changes
Progress on #4
2024-08-23 12:32:46 -04:00
ccbbb735fd Update Tomo API 2024-08-16 17:58:38 -04:00
ab6bdeaba3 Add Bounds, InnerBounds to x.Window 2024-08-16 17:25:17 -04:00
93d7eed21f Update Tomo API 2024-08-16 17:15:01 -04:00
b18f747f0c Fix tag setting not invalidating style 2024-08-14 19:59:53 -04:00
fa2ef954b2 Backend unsets style attributes if they are no longer specified 2024-08-12 20:36:19 -04:00
e4fdde3da1 Use premultiplied alpha for X canvas 2024-08-12 18:15:15 -04:00
d166d88388 Remove AttrIcon from Box implementation 2024-08-11 22:29:08 -04:00
74025aac97 Update Tomo API 2024-08-11 22:29:01 -04:00
e1cf524c57 TextBox tries to get a type face when parented if its face is nil 2024-08-11 11:55:13 -04:00
919f000073 Update Tomo API 2024-08-10 21:14:06 -04:00
8aa8dc9570 Add support for AttrIcon 2024-08-10 21:07:31 -04:00
a60a729ad9 Update X backend 2024-08-10 20:47:36 -04:00
2af42a3568 Update internal system 2024-08-10 20:24:25 -04:00
e2b3b84993 Add Exists method to Optional 2024-08-10 01:55:24 -04:00
925e011465 Add IconSet, FaceSet to style package 2024-08-10 01:39:23 -04:00
d4c08a0f8c Add an Optional type to util 2024-08-09 23:41:38 -04:00
38054a95bb Update Tomo API 2024-08-09 23:27:40 -04:00
2ae5e2e30f Move style into this repostiory 2024-08-09 23:27:12 -04:00
bacdd81f60 Propagate mouse motion events to boxes 2024-07-27 15:13:49 -04:00
d944f6016f Update Tomo API to v0.41.1 2024-07-27 15:04:11 -04:00
01582d4ad1 Same for TextBox 2024-07-27 13:47:22 -04:00
3941dae44a Invalidate container minimum size when overflow is changed 2024-07-27 13:46:52 -04:00
85b8536925 Propagate keyboard events to root if nothing is focused
This makes window-level keybinds possible. Exciting!
2024-07-27 02:20:06 -04:00
6ff5dea308 ContainerBox correctly checks for overflow when reporting recommended size 2024-07-27 02:18:52 -04:00
33969f45e9 BoxQuerier returns box minimum size as a fallback for reccomended sizes 2024-07-27 02:17:56 -04:00
832d7e02ef TextBox can be selected with left, middle, and right buttons 2024-07-26 21:17:30 -04:00
fd6297b4fb And arrow keys! Because, why not! 2024-07-26 20:55:34 -04:00
4deb581667 Use tab for keynav instead of alt-tab 2024-07-26 20:52:49 -04:00
192e6c6235 Keynav skips masked boxes 2024-07-26 20:49:10 -04:00