Dave Davenport
b3b01b1973
(re-implement) Do lazy loading for icons.
...
- Fetch only when requested
- Fetch the right size, instead of estimation.
2017-06-02 17:36:06 +02:00
Dave Davenport
2578817db7
Don´t always fetch icon size 32, but estimated based on character height
2017-06-02 17:03:45 +02:00
Dave Davenport
4bd9828aa7
Remove index from box_add.
2017-06-02 16:53:39 +02:00
Dave Davenport
1d622aa59c
Change ThemeHighlight to RofiHighlightColorStyle
2017-06-02 16:46:28 +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
Quentin Glidic
76a6e312fe
xcb: Add startup notification support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:57:51 +02:00
Quentin Glidic
a6f51393d3
ssh: Add startup notification support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:57:28 +02:00
Quentin Glidic
3f8af0d7c5
run: Add startup notification support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:57:19 +02:00
Quentin Glidic
0644f99b64
drun: Add startup notification support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:56:59 +02:00
Quentin Glidic
22fbaa0b50
drun: Keep the app_id around
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:55:36 +02:00
Quentin Glidic
51d34b662e
helper: Add API to support startup notification
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:54:21 +02:00
Quentin Glidic
6fefbbf8ab
drun: Keep the icon name around
...
We don’t need to use it as the “we’ve search already” value since we
know just look icons up in a single pass.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:28:24 +02:00
Quentin Glidic
dc1417ba72
drun: Fix thread function signature
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 14:27:47 +02:00
Dave Davenport
eec5c6eadc
Add orientation property.
2017-06-02 14:05:19 +02:00
Quentin Glidic
0daab1844e
helper: Add execute helper
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-02 12:50:32 +02:00
Dave Davenport
85b6e32158
Merge remote-tracking branch 'origin/master' into barview
2017-06-01 18:54:30 +02:00
Quentin Glidic
dbac6fba5c
rofi: Make sure we parsed the config before parsing bindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 17:46:53 +02:00
Quentin Glidic
e576bc441c
xcb: Hide WM discover function
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 15:08:20 +02:00
Quentin Glidic
48a80e3f82
display: Introduce display.h
...
The API is meant to be neutral to fit any display backend.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 15:06:57 +02:00
Dave Davenport
cdc8e462b8
Merge remote-tracking branch 'origin/master' into barview
2017-06-01 14:20:36 +02:00
Quentin Glidic
1d99363ce9
helper: Move cairo_image_surface_create_from_svg to helper.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 13:36:11 +02:00
Quentin Glidic
93cb04e30f
xcb: Move (most) event handling to xcb.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 13:30:29 +02:00
Quentin Glidic
4792a16593
xcb: Hide release details
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 13:26:31 +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
711d97b66d
xcb: Fix normal window mode
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 12:47:11 +02:00
Quentin Glidic
2586cc926a
rofi: Remove some leftovers ticks
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 12:03:23 +02:00
Quentin Glidic
000dce1083
xcb: Hide grab details
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 11:57:57 +02:00
Quentin Glidic
f042851add
xcb: Hide some internal details
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 11:57:17 +02:00
Quentin Glidic
93cf26414e
xcb: Reorder and hide events callbacks
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 11:50:26 +02:00
Quentin Glidic
a8aac87bb0
xcb: Move GWater source in xcb.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 11:44:21 +02:00
Quentin Glidic
9b58a9bc31
xcb: Move more stuff to xcb.c
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 00:39:11 +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
4c8e9247ad
rofi: Fix NkBindings calls order
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-06-01 00:00:09 +02:00
Quentin Glidic
087acb1028
gitmodules: Update libnkutils
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-31 22:42:33 +02:00
Quentin Glidic
52aac6d3b6
gitmodules: Update libnkutils
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-31 20:26:12 +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
Quentin Glidic
8a6bdd827d
config: Add a setting to disable icons loading
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 19:08:33 +02:00
Dave Davenport
f3b4af1da0
window: Add icons support (quick and dirty)
2017-05-30 19:08:20 +02:00
Quentin Glidic
03eb4a3abb
drun: Implement icon support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 19:01:01 +02:00
Quentin Glidic
fb37aaa70d
view: Use \uFFFC character as icon placeholder
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 19:01:01 +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
4891bcd7eb
bindings: Use a wrapper around rofi_view_trigger_action
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 14:14:59 +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
a24af6e64c
mode/keys: Display all bindings
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:20 +02:00
Quentin Glidic
6d27a89b99
bindings: Drop unused (and buggy) sentinel
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 13:45:19 +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
d514cf4c26
view: Remove some more leftovers
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-30 12:06:18 +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
5ea9a93cac
view: Drop leftover g_print
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-29 16:57:49 +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
5e946b8383
Fix sidebar mode
2017-05-28 17:19:34 +02:00
Dave Davenport
84473f6f96
Merge remote-tracking branch 'origin/master' into barview
2017-05-28 17:16:25 +02:00
Dave Davenport
89e9c2d0a5
G_MODULE_EXPORT config_path
2017-05-28 17:15:59 +02:00
Dave Davenport
141b46aae0
Add extra error message when failed to open plugin
2017-05-28 17:12:10 +02:00
Dave Davenport
fa0380057b
[Widget] Add desired width option.
2017-05-28 16:10:11 +02:00
Dave Davenport
b82e1c7a78
Merge remote-tracking branch 'origin/master' into barview
2017-05-28 10:17:12 +02:00
Quentin Glidic
04faad945a
Merge branch 'master' into wip/meson
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-28 00:21:57 +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
Dave Davenport
e387105091
[TextBox] Add 'vertical-align' option
2017-05-24 19:57:35 +02:00
Dave Davenport
da092c53ac
[BarView] Use exact match for entry width.
2017-05-24 08:50:45 +02:00
Dave Davenport
7639153ad6
Change page-up/page-down behaviour for barview mode.
2017-05-24 08:10:03 +02:00
Dave Davenport
a4694cf808
Merge remote-tracking branch 'origin/master' into barview
2017-05-23 17:20:17 +02:00
Dave Davenport
f1261e181c
Revert changes to script.
2017-05-23 17:19:04 +02:00
Dave Davenport
a0df3b37c7
[Barview] Small cleanups.
2017-05-23 10:48:02 +02:00
Dave Davenport
d592a59252
[ListView] Add bar mode.
2017-05-23 09:45:42 +02:00
Dave Davenport
f5c57ff821
[TextBox] Add get_desired_width function.
2017-05-23 09:12:04 +02:00
Dave Davenport
dca5caaa47
[Theme] Add small caps options (not working?)
2017-05-22 09:24:05 +02:00
Dave Davenport
72afc7b039
Add strikethrough highlight method.
2017-05-18 07:59:37 +02:00
Dave Davenport
30fb8c514e
Change ARGB to RGBA, fix in theme converter
2017-05-16 21:55:52 +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
Dave Davenport
aaea2b2c8a
Add hsl and cmyk test, add extra error checking
2017-05-10 20:54:16 +02:00
Quentin Glidic
bb5d839f9c
xkb: Allow binding modifiers
...
And modified modifiers too.
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 23:53:52 +02:00
Quentin Glidic
6f117c3589
xkb: Use consumed2 API when available
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 23:42:01 +02:00
Quentin Glidic
7fd8ce4c0a
Add Meson build system support
...
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2017-05-04 21:50:07 +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