1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2025-04-07 17:33:14 -04:00
Commit graph

354 commits

Author SHA1 Message Date
Qball
f0ccf4c186 [Widget] Add 2 workaround for error in corner radius drawing
* Disable AA (works on nvidia)
* Disable nvidia workaround.
2025-03-30 15:04:22 +02:00
J0hannes101
56fd08ed58
[scrollbar] Add theming for rounded corners ()
* [scrollbar] Add theming for rounded corners

* rename "rounded-corners" to "handle-rounded-corners"
2025-03-08 18:34:39 +01:00
J0hannes101
e70e3906cc
Add theming to hide text cursor if no text is put in ()
* Add theming to hide text cursor if no text is put in

* rename "hide-empty-cursor" to "hide-cursor-on-empty"

* update docs
2025-02-25 18:50:25 +01:00
Qball Cow
5d77a9bb33 [Helper] Add a rofi_fallthrough macro to tell compiler fallthrough is intentional 2025-02-20 09:59:53 +01:00
Qball Cow
995cd3c048 Fix wrong pointer -replace and small cleanup. 2025-02-09 11:00:59 +01:00
Qball Cow
f43d578264 [Textbox] Small signedness fixes for password mask code. 2025-02-08 21:37:20 +01:00
Zebra2711
1c144cc901
[dmenu] Modified textbox password masking ()
* Modified textbox password masking

Use Unicode Character “●” (U+25CF) inteads '*'

* [dmenu] change password mask via theme config file

* revert wrong delete lib

* Fix cursor position

* Correct cursor positioning for UTF-8 paste in textboxes, remove unused variables.

* [Revert] Fix pasting UTF-8 characters. It causes the cursor position to move incorrectly.

* Make everything work again

* fix memory leak
2025-02-08 17:01:35 +01:00
Qball
60181710dc [Widget] Actually remove ADD operator from border drawing.
Issue: 
2025-01-06 18:38:55 +01:00
Qball
3b1e483a6c [Widget] Don't use cairo_push/pop_group as it causes issues.
Seems to happen on nvidia systems, rendering to PNG surface is fine,
problem is with rendering to screen.
Hopefully this patch fixes it.

Issue: 
2025-01-03 22:28:49 +01:00
Dave Davenport
9d785b5ce1
Add -Wshadow to build system. ()
* Add -Wshadow to build system.

Issue: 

* Take out unintended change

* [Icon] Add more descriptive variable name.
2024-10-20 12:54:13 +02:00
Dave Davenport
df7d8b65f0 [textbox] Fix aliasing variable name. (thanks to xsy420)
Issue: 
2024-10-18 22:01:09 +02:00
Dave Davenport
186b0e7be0 [Textbox] Use FontMetrics font height (if available) to get height 2024-10-03 17:32:53 +02:00
giomatfois62
75ae2a41f0
[WIP] xdg thumbnails fetching with fallback on mimetype icons ()
* implemented xdg thumbnails fetching with fallback on mimetype icons for menu entries in filebrowser mode

* included original license text

* added md5 header and source file

* implemented xdg compatible thumbnail's creation

* added -preview-cmd string option to program settings

* support custom command to create images for entries with thumbnail:// prefix

* fix custom thumbnailer command crash caused by null uri when entry is not a valid filename

* check entry_name is not NULL or empty when generating thumbnails;
use snprintf to avoid static analyzer complains

* avoid using gstrvbuilder to build thumbnailer command args

* fixed static analyzer complain about always wrong condition

* use g_spawn_check_exit_status to avoid bump to glib 2.70

* removed md5-c dependency and use glib checksum implementation

* fixed meson build after md5-c library removal

* support thumbnail generation in recursivebrowser mode

* restored check rofi_icon_fetcher_file_is_image

* create thumbnail directories if not existing

* use g_malloc0, g_strdup and g_strdup_printf

* fixed formatting with clang-format

* don't wait for jobs in execution when finalizing the icon fetcher worker threadpool

* destroy and rebuild the icon fetcher worker threadpool when the current page is changed

* added query_started boolean member to IconFetcherEntry;
check if an icon fetcher query was started on an IconFetcherEntry and submit the query again otherwise

* force icon cache lookup even if the item has a valid icon_fetch_uid (the fetching job could have been discarded before starting)

* search binaries in PATH when executing thumbnailer command

* mark icon query as not started in threadpool item free_func

* added listview page_changed_callback; rebuild icon fetcher threadpool in page_changed_callback

* [listview] Add missing code documentation param

* Create rofi-thumbnails.5.markdown

* Updated documentation with apparmor issues and workaround

* [Doc] Ship rofi-thumbnails.5

With some formatting fixes

* use a more compact thumbnailer example

---------

Co-authored-by: giomatfois62 <giomatfois62@yahoo.it>
Co-authored-by: Dave Davenport <DaveDavenport@users.noreply.github.com>
Co-authored-by: lbonn <github@lbonnans.net>
2024-06-21 18:47:38 +02:00
Nikita Zlobin
bd0ba45db8 Fix scrolling for vertical layout with horizontal packing
Current scrolling effect looks interesting, but impractical, when with
multiple columns.

Signed-off-by: Dave Davenport <qball@gmpclient.org>
2024-06-06 18:42:55 +02:00
Nikita Zlobin
753cd1e9e1 Place continuous scroll center in middle column
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2024-06-06 18:42:55 +02:00
Dave Davenport
831bddc68b [Box] When estimating height, set correct width on children
Issue: 
2024-02-15 09:13:37 +01:00
vE5li
05327773d9
Fix text color when cursor-color is set ()
* Fix text color when cursor color is set

* Add comment
2023-09-27 18:23:18 +02:00
Nikita Zlobin
a53daa68c4 [View|Textbox] cleanups to drawing code 2023-08-29 21:36:03 +02:00
Nikita Zlobin
9b2b52b13e Clip text with extents rectangle
Fonts are not ideal, some characters have mismatch between reported and
painted size.
2023-08-27 21:10:00 +02:00
Nikita Zlobin
82f9605c30 widget_draw: clean useless calls in corner drawing
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-24 22:56:00 +02:00
Nikita Zlobin
45688b0a53 Fix border segments stitch
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-24 22:56:00 +02:00
Dave Davenport
b68f64ccee Small memory leaks fixed and other cleanups. 2023-04-21 12:50:55 +02:00
Dave Davenport
c1f63350f4 Fix to pointless or's. 2023-03-26 23:37:44 +02:00
Dave Davenport
bb5868199f Re-indent the code using clang-format 2023-03-26 13:19:58 +02:00
notuxic
c870d512ff
Add support for adding textbox widgets to listview elements ()
* Add support for adding textbox-widgets to listview entries

* Add support for adding icons and buttons to listview elements
2023-03-05 11:17:25 +01:00
Dave Davenport
a5bd8bc630 [Textbox] cairo_save/restore does not store path.
Fix by moving cairo_move_to to after blink.
Also fix drawing outline.
2023-02-23 15:14:49 +01:00
Dave Davenport
6caece77d4
I785 ()
* [Textbox] Add history to the entrybox.
* [Textbox] Add comments and move into sub functions.
* [doc] Add conflicting constraint section to manpage.
* [Script] Some small memory leak fixes.
* [Entry History] Add documentation.

fixes: 
2023-01-22 17:25:17 +01:00
Dave Davenport
a20f8280a7 [Textbox] Replace 'space' with a space
Issue: 
2023-01-18 09:25:39 +01:00
vE5li
8155b2c476
draw text after cursor () 2023-01-16 18:59:37 +01:00
Dave Davenport
727d7c579d Update copyright dates. 2023-01-14 13:02:35 +01:00
Dave Davenport
d47b1515b5 [listview] Don't calculate infinite rows on empty height.
Issue: 
2022-12-29 18:41:51 +01:00
Dave Davenport
09b9039718 [Theme] Move some definitions header around for plugin. 2022-12-24 11:46:03 +01:00
Dave Davenport
3d73cf2554 [Textbox] Cursor goes over, not under. allow cursor outline. 2022-12-23 22:11:22 +01:00
Dave Davenport
0ff6ff21c3 [Textbox] Add text-outline to style 2022-12-23 13:38:09 +01:00
vE5li
23de9e9d2c
make cursor more customizable by adding cursor-width and cursor-color ()
* make cursor more customizable by adding cursor-width and cursor-color to the theme

* fix placeholder color

* add doc entry

* more documentation
2022-11-25 10:28:34 +01:00
Dave Davenport
063195922f [DMenu] Add -ellipsize-mode option. 2022-11-19 21:03:22 +01:00
Dave Davenport
66d782e0e7 Move config.h
small updates

Tweak header a bit

[CI] Add lto build to sh ci.

[CI] Fix artifact upload

[CI] no wildcard for artifact
2022-11-19 20:35:52 +01:00
Dave Davenport
c6ba962673 [listview] Set ellipsize mode on creation of textbox
So if rows are added, they behave correctily.

Issue: 
2022-11-18 08:46:16 +01:00
Dave Davenport
62ebb863ed [Textbox] Add a 'get_cursor_x_pos' function. 2022-10-27 22:22:11 +02:00
Dave Davenport
858d6c030c [listview] Add extra checks before resolving pointer.
Issue: 
2022-09-10 17:42:49 +02:00
Dave Davenport
fce721a105 [Textbox] Add 'placeholder-markup' flag.
Fixes: 
2022-08-28 21:47:05 +02:00
Dave Davenport
77af850200 [textbox] Implement text-transform add upper/lower/capitalize transform
fixes: 
2022-07-30 14:50:05 +02:00
Dave Davenport
be6fe8ac61 [Textbox] Remove the dot indicator.
Weird hack from dmenu that dripped through rofi code-base for multi-select.
Change it so it is just a prefix to the string of ☐ and ☑.
2022-07-23 20:21:00 +02:00
Dave Davenport
7bd77684db [Textbox] Fix multi-select dot placement. 2022-07-23 00:55:59 +02:00
Dave Davenport
0e90fb065f [Build] Fix some compile warnings. 2022-07-23 00:28:55 +02:00
Dave Davenport
8ee05a718e [View] Add textbox-current-entry widget. 2022-06-27 16:56:59 +02:00
Dave Davenport
b891ffa2b3 [Textbox] Try to fix pango alignment 2022-05-30 19:21:31 +02:00
Dave Davenport
69387d6336 [Textbox] Set pango align based on horizontal-align 2022-05-27 11:10:13 +02:00
Dave Davenport
f5fce95330
[]: Option to hide listview elements when not filtered ()
* [listview] Optional don't show elements when not filtered ()

* [Listview] Fix auto-complete error.
2022-04-20 23:24:52 +02:00
Dave Davenport
e2a7cfdd52
[DMenu] Huge list speedups ()
* Don´t refilter on each key-press.

* Make sure refiltering is not completely starved.

* Force refilter before accepting entry

* Go into 'timeout' refilter mode only after certain # elements.

* [DMenu] threading with getdelim to speed up reading.

* [View] Remove debug output.

* [dmenu] Fix pre-read.

* [DMenu] Make sure that async mode cannot block

* Remove mutex for IPC via pipes.

* [Dmenu] Small cleanup.

* [Scrollbar] Fix scrollbar overflowing on big lists.

* Fix stack overflow by creating to many filter jobs.

* [Doc] Add new option to manpage
2022-04-20 21:53:44 +02:00