Commit graph

1422 commits

Author SHA1 Message Date
Adam Cosner
160070c1b5 Added more mouse interaction options 2025-01-11 15:46:05 -08:00
Adam Cosner
d4bce76213 Fixed warnings 2025-01-10 22:50:05 -08:00
Adam Cosner
1e28f39771 Ran cargo fmt 2025-01-10 22:46:20 -08:00
Adam Cosner
ea4e6c6cde Added item contexts and changed the context menu functions to take builder functions 2025-01-10 22:44:42 -08:00
Adam Cosner
0b0e143fe4 Merge branch 'master' of https://github.com/Adam-Cosner/libcosmic 2025-01-10 22:37:40 -08:00
Adam Cosner
9f2e554847
Merge branch 'pop-os:master' into master 2025-01-10 22:36:24 -08:00
Adam Cosner
68fdd8fbe4 Added category context menus 2025-01-06 12:15:44 -08:00
Jason Rodney Hansen
aaa2ba3ad4 Fix entering text with compose key
Previously entering text in text inputs with the compose key would insert one
or more NUL bytes before the inserted character.
2025-01-05 17:51:44 -07:00
Adam Cosner
4111fcbd05 Added doc inline to widget 2025-01-05 15:56:35 -08:00
Adam Cosner
91c35e88ad Made compact and standard table view into separate widgets 2025-01-04 12:42:34 -08:00
Adam Cosner
2305e25fa8 Use derive_setters for TableView 2025-01-04 12:16:08 -08:00
Adam Cosner
2401c2a4ec Added table function for generic table view creation 2025-01-04 11:57:33 -08:00
Michael Aaron Murphy
e162c59160
perf: reduce memory usage by dropping ustr dependency
The string cache used by ustr pre-allocates 12 MB, even if we're
only using it for a few font family names. We can therefore
manage our own set of leaked strings to reduce memory usage by 12 MB.
2025-01-03 21:58:04 +01:00
Adam Cosner
dd9d1c0c2f Revert "Added custom widget version of table"
This reverts commit 825792e367.
2025-01-02 22:29:00 -08:00
Michael Aaron Murphy
fdefc5860b
perf: avoid duplicate Ustr for default font names 2025-01-03 01:18:47 +01:00
Adam Cosner
825792e367 Added custom widget version of table
Currently does not have mouse interaction, in the demo the normal one is right and custom is left
2025-01-01 18:04:12 -08:00
Adam Cosner
5c96696f9c
Merge branch 'pop-os:master' into master 2025-01-01 16:08:19 -05:00
Jason Hansen
51ede4bce6
fix(segmented_button): close context menu when clicked outside 2025-01-01 00:37:04 +01:00
Ashley Wulber
3f2ba11d56 refactor: send initial config after watching for changes 2024-12-31 11:23:28 -05:00
Adam Cosner
ad4ed38538 Fixed table view issues with selection on compact view and some spacing problems 2024-12-30 14:37:27 -05:00
Adam Cosner
e608192030 Merge branch 'master' of https://github.com/Adam-Cosner/libcosmic 2024-12-30 14:17:45 -05:00
Adam Cosner
fc531b58c9 Added table view example 2024-12-30 14:17:35 -05:00
Adam Cosner
19dfbcbe5c
Merge branch 'pop-os:master' into master 2024-12-29 22:33:50 -05:00
Adam Cosner
8132f8f3e8 Compact view implemented 2024-12-29 22:32:11 -05:00
Adam Cosner
8021271524 Merge branch 'master' of https://github.com/Adam-Cosner/libcosmic 2024-12-26 19:23:40 -05:00
Adam Cosner
949a31855d Implemented rudimentary table widget, currently not interactible 2024-12-26 19:16:22 -05:00
Eduardo Flores
b2ce4ccea2 fix: add cfg for unix only packages 2024-12-26 15:31:54 +01:00
Vukašin Vojinović
58fc034459 fix(dropdown): styling 2024-12-25 04:42:24 +01:00
Vukašin Vojinović
2d06ec4226 fix(style): use radius_s for nav bar toggle 2024-12-25 04:42:24 +01:00
Ian Douglas Scott
75a11b3c84 Don't require 'static child in dnd_destination_for_data
Matches `dnd_destination`.
2024-12-20 08:30:18 -07:00
Ashley Wulber
aeb87f8886 refactor: backup non-cosmic gtk css files 2024-12-13 15:34:31 -05:00
Ashley Wulber
2c29a7b158 update iced 2024-12-12 16:44:06 +01:00
Michael Aaron Murphy
5422ab3130
feat(list_column): configurable list item and divider padding 2024-12-10 16:35:57 +01:00
Michael Aaron Murphy
a02fa21d36
feat(button): add ListItem style 2024-12-10 16:35:24 +01:00
Michael Aaron Murphy
43e7213b70 fix: switch to cosmic fork of freedesktop-icons
Switch to a fork that we maintain, which containss a few fixes
that haven't been merged upstream yet.
2024-12-05 14:41:16 +01:00
Ashley Wulber
ff0ba4860c fix: autosize layout limits 2024-12-03 16:59:04 -05:00
Ashley Wulber
b524ccb0a4 chore: update cctk 2024-12-03 05:35:56 +01:00
Tony4dev
d536341234
fix(segmented_button): model index out of bounds when setting position 2024-12-03 05:14:33 +01:00
wiiznokes
b80d90e5ce
fix: compile for markdown feature 2024-12-03 05:13:54 +01:00
Ashley Wulber
931165050d
chore: update iced 2024-12-03 05:13:27 +01:00
Vukašin Vojinović
de0c1921f7 fix(list_column): match padding/spacing to designs 2024-12-02 17:43:19 +01:00
Vukašin Vojinović
a6c08d68f9 fix(toggler): remove extra padding 2024-12-02 17:43:19 +01:00
Vukašin Vojinović
a6db807c1b fix 2024-11-26 15:24:25 -05:00
wiiznokes
96c67e29a4
fix(iced): correct event types for Windows 2024-11-26 16:30:56 +01:00
Vukašin Vojinović
8e823f622f fix(header_bar): match spacing to designs 2024-11-26 16:29:53 +01:00
Vukašin Vojinović
af7157b45a improv: window border corner appearance 2024-11-26 16:29:53 +01:00
Ashley Wulber
a9c7c3cdbf
fix(iced): a11y tree focus 2024-11-25 06:52:32 +01:00
Michael Aaron Murphy
9a8a56952d
feat(dropdown): optional icons for dropdowns 2024-11-25 06:51:16 +01:00
Michael Aaron Murphy
52ab37c1eb
feat(icon): add draw method for renderer 2024-11-25 06:50:59 +01:00
Michael Aaron Murphy
637d932669
fix: revert change of cosmic::Task to cosmic::app::Task
This change caused all uses of `cosmic::Task` to be coerced into a
message type specific to `cosmic::app`. Thus, users were forced to
create messages that are wrapped in `cosmic::app::Message` enums.
2024-11-25 06:47:06 +01:00