Commit graph

149 commits

Author SHA1 Message Date
Quentin Glidic
30da7e587a
widget: Add widget_xy_to_relative helper
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:44:05 +02:00
Quentin Glidic
6a750669d7
scrollbar: Drop unused variable
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 12:11:17 +02:00
Quentin Glidic
b314a90f1d
widget: Remove some more leftovers
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-29 21:03:52 +02:00
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
f5c57ff821 [TextBox] Add get_desired_width function. 2017-05-23 09:12:04 +02:00
Dave Davenport
494550d38d [ThemeParser] Add CSS color names support
* [ThemeParser] Add css color names

* Add CSS color support (WIP)

* Parse color names in the lexer.

* Add test for css color names

* Indent and fix ordering
2017-05-15 22:46:33 +02:00
Dave Davenport
c54a817555 If we hit edge of entry box, make left/right move forward to listview. 2017-05-12 16:08:49 +02:00
Dave Davenport
67e38cde40 Fix some clang compiler warnings 2017-05-11 18:30:44 +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
Dave Davenport
cc714f8f91 Fix more compiler warning 2017-05-04 07:56:40 +02:00
Dave Davenport
9afa7682f6 Fix some small warning because get_string returns const. 2017-04-28 09:15:01 +02:00
Dave Davenport
ce4b1b23b4 Re-Indent code 2017-04-27 22:59:14 +02:00
Dave Davenport
4157b5d825 [Theme] Allow default enabled state of widget to be set in theme 2017-04-18 08:47:48 +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
Quentin Glidic
cfbe4027bc
Consolidate logging
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-04-15 12:07:29 +02:00
Dave Davenport
ba9e1fb92a Switch to g_{debug,warning} instead of g_log 2017-04-15 11:37:50 +02:00
Dave Davenport
a754815d14 Add converter back for old theme format. 2017-04-02 12:32:11 +02:00
Dave Davenport
eeee200d8f Remove old theme support. (part 1) 2017-03-29 20:18:41 +02:00
Dave Davenport
50477a0b99 [Keys] Cleanup view a bit. 2017-03-17 14:07:11 +01:00
Dave Davenport
dfeb5940d4 Reduce scope and unneeded check. 2017-03-17 13:33:47 +01:00
Dave Davenport
ee931f5480 [Textbox] Remove unneeded calls to pango_layout_get_baseline.
Now bulk time is spend in drawing, not calculating.
2017-03-14 17:12:22 +01:00
Dave Davenport
d52c80d76f [Textbox] Remove unneeded calls to pango_layout_get_pixel_size.
This was 21% of the widget update time.
2017-03-14 17:02:03 +01:00
Dave Davenport
652749081a Fix missing doxygen documentation 2017-03-11 13:20:46 +01:00
Dave Davenport
cee753bd3c Zeltakmadness (#572)
* Allow modi to set extra pango attributes on displayed rows

* Fix some documentation, only highlight the mode name with color.

* Small rename.
2017-03-10 23:39:29 +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
3f4d58ef53 Indent code. 2017-03-04 19:41:06 +01:00
Dave Davenport
3d2491556e Fix small issue positioning top of text in entrybox. (I hope) 2017-02-24 09:54:11 +01:00
Dave Davenport
dc7e4aa96e Install some headers for use in plugins 2017-02-17 14:06:31 +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
8f4a4d51c6 Don't apply fonts that don't result in family name or have size 0.
Issue: 554
2017-02-03 09:54:18 +01:00
Dave Davenport
42a1eba275 Remove the extra layer each textbox keeps for drawing its text. (#553) 2017-02-02 20:31:47 +01:00
Dave Davenport
cc0ab10833 Fix malloc in textbox 2017-02-02 08:36:55 +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
b63e417e38 Add configurable fonts for testing. #544 2017-01-24 08:40:37 +01:00
Dave Davenport
a5d2db256e Clear theme memory on close, free temporary widget 2017-01-09 23:08:11 +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
f42e4ffbd7 Remove old cairo color set functions 2017-01-09 08:32:16 +01:00