Quentin Glidic
a9199e3e17
Use libnkutils for keybindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-29 16:51:06 +02:00
Dave Davenport
fff06fc880
Don't keep pointer to inputbar/main_box
2017-05-28 17:34:53 +02:00
Dave Davenport
fa0380057b
[Widget] Add desired width option.
2017-05-28 16:10:11 +02:00
Quentin Glidic
7f78031bda
widgets: Use G_PI and G_PI_2 instead of M_PI
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 13:40:16 +02:00
Quentin Glidic
9a68b22009
Fix licenses headers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-04-15 12:32:05 +02:00
Dave Davenport
50477a0b99
[Keys] Cleanup view a bit.
2017-03-17 14:07:11 +01:00
Dave Davenport
25678d7a59
Floor the result, so we do not get 1/2 pixel gaps.
2017-03-09 19:00:26 +01:00
Dave Davenport
87251a991c
Indent
2017-02-09 08:27:26 +01:00
Dave Davenport
ef4d09be1f
Tweaking corner case when box is small
2017-02-08 19:48:15 +01:00
Dave Davenport
1d6b1494e9
Fiddle with the corners again.. less complecated is good
2017-02-08 10:15:38 +01:00
Dave Davenport
7b3e0918cf
Reduce amount of paths created
2017-02-06 23:45:46 +01:00
Dave Davenport
d3b050e1f1
First draw widget, then draw border around it.. extend clipmask by 0.5 a pixel in the corner.
2017-02-06 23:30:39 +01:00
Dave Davenport
3056064e68
Fix missing - in clip mask
2017-02-06 23:02:19 +01:00
Dave Davenport
b51a20c433
limit radius when height/weight gets to small
2017-02-06 21:31:13 +01:00
Dave Davenport
db92ff1f41
Add border radius to border around widget.
2017-02-06 21:17:56 +01:00
Dave Davenport
8ef7b4b794
Don't recreate every string everytime.
2017-02-03 20:49:16 +01:00
Dave Davenport
2fe22cb7e2
Return to default border when nothing set after state update
2017-02-03 15:44:52 +01:00
Dave Davenport
954288ab81
Give overlay widget a parent, queue widget redraw on enable/disable
2017-01-31 08:09:55 +01:00
Dave Davenport
cf1940f8cb
Reset theme if parsing fails, so we don't display using 1/2 parsed theme
2017-01-09 23:01:09 +01:00
Dave Davenport
25dff63006
Improve error handling string.
2017-01-09 22:40:11 +01:00
Dave Davenport
ca01af6338
Try to improve error handling and messages
2017-01-09 22:29:31 +01:00
Dave Davenport
854aa55453
Better error reporting (1)
2017-01-09 18:32:26 +01:00
Dave Davenport
5188e36147
Remove unused functions and other small fixes
2017-01-09 08:39:02 +01:00
Dave Davenport
baab2047ad
Indent magic, rework makefile so lexer and yacc file are not passed.
2017-01-08 21:36:06 +01:00
Dave Davenport
02dafeeccc
Fix percentual margin.
2017-01-06 20:36:06 +01:00
Dave Davenport
0e037237f8
Only queue redraw when state actually changes
2017-01-06 13:26:26 +01:00
Dave Davenport
f45e910a1b
Q'nD: Update border and force redraw on state change
2017-01-06 13:24:35 +01:00
Dave Davenport
5d70985bb9
Reset line style, reset state after drawing border.
2017-01-04 22:46:46 +01:00
Dave Davenport
9dd3cb312e
Support linestyle on border
2017-01-04 22:27:27 +01:00
Dave Davenport
85a0e1a57e
Remove class system from new theme format. Fix theme converter.
2017-01-04 15:05:39 +01:00
Dave Davenport
645fe24890
Add debug output to themer that indicates unset properties.
2017-01-04 14:01:28 +01:00
Dave Davenport
8bbf1b36d5
Don't draw widget when size is 0 or less.
2017-01-04 10:47:37 +01:00
Dave Davenport
6305bbbf39
Fix border with margin. take 2.
2017-01-04 00:36:33 +01:00
Dave Davenport
c96e95c766
Hopefully fix border with margin setting
2017-01-04 00:06:13 +01:00
Dave Davenport
495dfb4c20
Add support for margin.
2017-01-03 23:51:15 +01:00
Dave Davenport
f9fc01b176
Add percentage option to border,padding
2017-01-03 19:23:09 +01:00
Dave Davenport
861b52a523
Add support for borders around widgets.
2017-01-03 15:39:19 +01:00
Dave Davenport
ccf3f23d9b
Update comments, rename Widget to ThemeWidget.
2017-01-01 18:08:49 +01:00
Dave Davenport
0a8bdb6a98
Always queue a redraw on a resize event.
2017-01-01 02:27:51 +01:00
Dave Davenport
7b0e0643c8
Make spacing be of type distance.
2016-12-31 23:27:17 +01:00
Dave Davenport
52e850dc33
Fix EM support, use char height
2016-12-31 23:00:06 +01:00
Dave Davenport
068592414e
Support em format in padding
2016-12-31 22:47:22 +01:00
Dave Davenport
2bfbb464e6
Fix more sizing issues
2016-12-30 19:59:45 +01:00
Dave Davenport
eafd4697a2
Fix some of the sizing issues.
2016-12-30 18:31:30 +01:00
Dave Davenport
a2001d1b9c
Add window widget, play with logic for sizing (broken)
2016-12-28 19:42:14 +01:00
Dave Davenport
5dfddf8840
Support padding in listview
2016-12-28 13:17:02 +01:00
Dave Davenport
843ccc1e41
Update drawing, background per widget.
2016-12-28 12:21:42 +01:00
Dave Davenport
1c611b0eec
First start at adding 4 sided padding
2016-12-27 22:19:15 +01:00
Dave Davenport
1dfac3c4da
Update to new theme
2016-12-11 12:19:46 +01:00
Dave Davenport
0da5737cee
If widget is disabled, don't check redraw flag as it wont be cleared.
...
This reduces a lot of false redraws caused by overlay widget.
Issue: #496
2016-11-10 12:17:27 +01:00
Dave Davenport
a38ac9caf3
Update scrollbar behaviour, so dragging is more natural. (limit range from hw/2 to h-hw/2)
2016-10-25 21:19:39 +02:00
Dave Davenport
7b3b68462e
Fix memory leak in box and listview widget, add coverage make target. (ggcov and lcov)
2016-10-18 13:49:24 +02:00
Dave Davenport
0e176199fc
Fix some possible null pointer dereference. (clang-check)
2016-10-17 18:21:03 +02:00
Dave Davenport
ce341f6885
Document more headers.
2016-10-14 16:46:54 +02:00
Dave Davenport
306eeac3fe
Add some NULL tests to widget test
2016-10-13 17:54:52 +02:00
Dave Davenport
1cd94c27c7
Update documentation, tests for widget
2016-10-13 09:22:08 +02:00
Dave Davenport
07425fd10a
Always refilter when switching modi.
2016-10-11 08:11:14 +02:00
Dave Davenport
f3298801f3
Split internal widget into separate file
2016-10-09 10:13:15 +02:00
Dave Davenport
3c64507f02
Qtk widgets ( #478 )
...
* Initial support for using boxes for packing widgets.
* Make CapiTalIzation more consistent
* Move widgets to subdirectory
* Removed nolonger needed resize function.
* Small cleanup
* When switching mode, reuse view, don't rebuild it. Reduces artifacts.
* Needs cleaning up.
* Remove separate prompt argument, use display_name
* Simplify run-switcher code.
* Add notion of parents, and trigger parent update on resize.
* Use widget_get_height wrapper, avoid crash
* Size separator width based on height. (indent)
* TODO add margin to box.
* First draft version of listview.
* Add scrollbar to listview widget
* Add padding option to box
* Move access to global config out of widget. (1/2 done)
* Remove printf
* Make listview not access global config
* Add click support, implement on mode buttons.
* Re-introduce mouse handling on list-view.
* TODO draggin on scrollbar.
* Fix multi-select
* Fix warnings
* Fix include
2016-10-08 18:57:59 +02:00