Commit graph

199 commits

Author SHA1 Message Date
Dave Davenport
067544120f Make function declaration match function prototype.
- Extra NULL check.
2017-06-09 09:18:17 +02:00
Dave Davenport
ad91f9a124 [TextBox] Calculate yalign based on actual side, not estimated size. 2017-06-08 08:46:16 +02:00
Dave Davenport
9fe67c1822 [TextBox] Remove TB_LEFT/CENTER/RIGHT replace with xalign/yalign. 2017-06-07 20:16:14 +02:00
Dave Davenport
07076d154a Load theme-str after loading fallback themes.
* If no theme loaded, try converting old theme.
 * If still no theme loaded, try default theme.
 * Then load modifications (theme-str option)
2017-06-07 07:53:33 +02:00
Dave Davenport
a399adfa38 [TextBox] Fix centering with large padding 2017-06-06 09:28:36 +02:00
Dave Davenport
27d1da76b1 [TextBox] Fix yalign for cursor and icon. 2017-06-06 09:09:57 +02:00
Dave Davenport
1efb4dab6c Fix rendering of icons with single font size. 2017-06-04 16:08:34 +02:00
Dave Davenport
e12cf40e54 Change Listview::barview to Listview::layout 2017-06-03 21:46:21 +02:00
Dave Davenport
9a62bfd172 Run indenter. 2017-06-03 20:35:50 +02:00
Quentin Glidic
0adc0d7c08
view: Always create textbox with type
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-03 20:04:21 +02:00
Dave Davenport
5bc8ea29a5 Fix converting x,y to cursor position. 2017-06-03 18:39:37 +02:00
Dave Davenport
7c4709a43f Fix icon sizing, use font size. 2017-06-03 15:36:21 +02:00
Dave Davenport
044c55dd2f Fix icon offset.
- Always add more ()
2017-06-03 14:10:07 +02:00
Dave Davenport
4bd9828aa7 Remove index from box_add. 2017-06-02 16:53:39 +02:00
Dave Davenport
3e46228074 Change Padding to RofiPadding 2017-06-02 16:44:16 +02:00
Dave Davenport
ea7d20d150 Change Orientation enum to RofiOrientation. 2017-06-02 16:34:52 +02:00
Dave Davenport
9915857a2e Change Distance struct to RofiDistance. 2017-06-02 16:25:47 +02:00
Dave Davenport
7352f1c2ba Change PixelWidth to RofiPixelUnit. 2017-06-02 16:21:05 +02:00
Dave Davenport
48bf1709b6 Rename HL_ to ROFI_HL_ and fix box test. 2017-06-02 16:09:20 +02:00
Dave Davenport
eec5c6eadc Add orientation property. 2017-06-02 14:05:19 +02:00
Dave Davenport
cdc8e462b8 Merge remote-tracking branch 'origin/master' into barview 2017-06-01 14:20:36 +02:00
Quentin Glidic
2b6c084f32
textbox: Fix appending more than one character
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 13:26:19 +02:00
Quentin Glidic
46dee2671d
x11-helper: Rename xcb.c
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 00:12:58 +02:00
Quentin Glidic
ac8868f3b1
Indent icon code rework
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-31 20:21:58 +02:00
Dave Davenport
45e76b781e Merge remote-tracking branch 'origin/master' into barview 2017-05-31 17:52:25 +02:00
Dave Davenport
4e3830a519 [TextBox] Fix icon alignment issue when scaling icon. 2017-05-31 17:52:09 +02:00
Dave Davenport
2c0b398e78 Merge remote-tracking branch 'origin/master' into barview 2017-05-31 11:46:20 +02:00
Dave Davenport
939495f00b [TextBox] Fix icon offset. 2017-05-31 11:46:02 +02:00
Dave Davenport
f53e58ad95 Merge remote-tracking branch 'origin/master' into barview 2017-05-31 11:25:14 +02:00
Dave Davenport
59e012e85b [Textbox] fix wrong flag check for icon. 2017-05-31 11:23:24 +02:00
Dave Davenport
d8b0e24b09 Merge remote-tracking branch 'origin/master' into barview 2017-05-31 11:18:30 +02:00
Dave Davenport
4d8784cf85 Port fixes from icon-cleanup branch.
- Thread for fetching icons for drun.
- Fixed placing of icons instead of adding place-holder token that can
  mis-render.
- Give textbox TB_ICON flag.
2017-05-31 11:05:45 +02:00
Aaron Ash
43053cdfc3
view: Add icon (basic) support 2017-05-30 19:00:57 +02:00
Dave Davenport
9a6fd1c6c3 Merge in master 2017-05-30 16:23:19 +02:00
Quentin Glidic
4e448eac45
widget.test: Add NULL tests for trigger_action functions
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:20 +02:00
Quentin Glidic
acc1fa45b9
widget: Add motion grab support
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
0555d15c46
scrollbar: Make it scroll again
On click for now, will add motion grab in the following commit

Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
823a45f711
scrollbar: Rework scrollbar_scroll_get_line to work on relative y
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +02:00
Quentin Glidic
685d4f0e13
widget: Rely on find_mouse_target to send motion events
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:17 +02:00
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
a5e5493d6b Add extra NULL checks. 2017-05-28 18:19:59 +02:00
Dave Davenport
28f116b4a2 Allow textbox to be added in theme 2017-05-28 18:05:02 +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
Dave Davenport
0fdb1068da Allow layout to be overwritten 2017-05-27 17:08:46 +02:00
Dave Davenport
b73f938a82 Set box orientation in theme. 2017-05-26 20:23:46 +02:00
Dave Davenport
c23df70aeb Allow interface to be dynamically changed. 2017-05-25 23:41:15 +02:00