Commit graph

83 commits

Author SHA1 Message Date
Ashley Wulber
2e87bd7c41 fix(segmented_button): ensure modifier state exact match for tab 2025-10-21 19:29:48 +02:00
Cheong Lau
a27bb5e05d chore: apply clippy suggestions 2025-10-05 04:40:51 +02:00
Michael Aaron Murphy
6e7a634398
fix(segmented_button): draw all indent levels 2025-08-19 16:31:19 +02:00
Michael Aaron Murphy
c10695600b
feat(segmented_button): add FileNav style with related widget improvements 2025-08-19 11:13:28 +02:00
Michael Aaron Murphy
95ebabf149
improv(segmented_button): hide focus state until tabbed 2025-08-13 12:20:22 +02:00
Michael Aaron Murphy
5434dc95d5
feat(segmented_button): pressed state style 2025-08-13 12:13:05 +02:00
Michael Aaron Murphy
4f423349a2
fix(segmented_button): duplicate focus fix 2025-08-13 11:18:58 +02:00
Michael Aaron Murphy
8badf73383
improv(segmented_button): nav bar, tab, and segmented control theme improvements 2025-08-12 17:52:59 +02:00
Ashley Wulber
5be9611c8a fix(segmented-button): context menu state management 2025-06-19 08:02:54 -06:00
Michael Aaron Murphy
3f4a50ee2c
chore: remove eprintln logs 2025-06-11 11:49:32 +02:00
Michael Aaron Murphy
f835afa59c
fix(segmented_button): unfocus when clicking out of bounds 2025-06-11 09:26:18 +02:00
Ashley Wulber
92ec78ba29
feat: menu bar popups 2025-06-10 18:22:07 +02:00
Ashley Wulber
ce56237ab9 fix(dnd): leave event handlers should expect None as the drag Id 2025-05-22 17:18:56 +02:00
Michael Aaron Murphy
c955c8400f
fix(segmented_button): fix widget focus not being applied on click 2025-03-24 04:36:53 +01:00
Michael Aaron Murphy
8cf372c9b9
perf: inline public getters/setters, and use non-generic inner functions
To reduce compile-times and avoid some overhead to binary size, this will modify some of our
generic functions to use non-generic inner functions where possible. The inner functions are
marked carefully with `#[inline(never)]` to prevent being inlined by LLVM at their callsites

While looking for generic functions to optimize, I have also taken the opportunity to annotate
public non-generic getters and setters with `#[inline]` to ensure that LLVM will inline them
across crate boundaries. By default, only generic functions are automatically inlined, and
only when enabling fat LTO are constant functions reliably inlined across crate boundaries.
2025-03-21 13:31:34 +01:00
Michael Aaron Murphy
2afa192573
fix: Rust 2024 errors 2025-03-21 13:20:45 +01:00
Ashley Wulber
337b80d4ca
feat: Tooltips and Better Surface Management 2025-03-14 16:56:21 +01:00
ellieplayswow
a234a45ea6
fix(segmented_button): ignore button release / finger lifted events when dragged out of target 2025-03-10 16:21:34 +01:00
Jason Hansen
51ede4bce6
fix(segmented_button): close context menu when clicked outside 2025-01-01 00:37:04 +01:00
Ashley Wulber
0491c4baaa libcosmic updates 2024-10-18 14:04:39 -04:00
Jeremy Soller
dc97166f91
fix(segmented_button): diff the context menu 2024-10-14 11:21:40 -06:00
Michael Aaron Murphy
9f11239ea5
fix(segmented_button): update text on font changes 2024-10-10 18:52:18 +02:00
Michael Aaron Murphy
9e064e7fa0 feat: configurable fonts 2024-10-05 01:47:37 +02:00
Jeremy Soller
c497c227ce
fix(segmented_button): use correct divider color when vertical 2024-09-11 14:29:36 -06:00
Victoria Brekenfeld
b40839638a fix: Use globals instead of thread-locals
Better support for multi-threaded applications,
especially cosmic-comp rendering in parallel on
multiple threads, each potentially accessing
global configurations such as the active theme,
icon_theme and more...
2024-08-02 20:27:08 +02:00
Jeremy Soller
c9a2265ab1 Make text wrap configurable 2024-07-09 11:14:49 -06:00
Jason Hansen
41d1f4a7cd
feat(segmented_button): add on_middle_press 2024-07-02 02:53:45 +02:00
Jason Hansen
bfbff0773a
fix(button): Closing tab with middle-click
Only close on middle button release if the middle button press event was on the same tab.
2024-07-01 21:18:48 +02:00
Ashley Wulber
d2b3531984 fix: persist selected action on entity change 2024-06-12 14:54:45 -04:00
Ashley Wulber
98231fa99a fix: avoid completely clearing DnD state.
Motion sometimes will make the dnd miss a target entity, so instead we track that no entity is hovered for the ongoing DnD, instead of clearing the DnD state.
2024-06-12 13:06:04 -04:00
Ashley Wulber
173ddca60f fix: refactor dnd impl to support responsive widget 2024-05-31 19:14:58 -04:00
Michael Aaron Murphy
9ffb87d21f feat(context_menu): add a context menu widget as menu tree alternative to the popover widget 2024-04-22 17:25:05 +02:00
Michael Aaron Murphy
c0b653f506
fix(segmented-button): crash when context menu is unassigned 2024-04-19 11:20:20 +02:00
Michael Aaron Murphy
59a913c15d feat!(segmented_button): Add context menu support and integrations 2024-04-18 17:18:53 +02:00
Michael Aaron Murphy
78e331d5ed fix(segmented-button): misaligned icon when text is empty 2024-04-09 21:22:17 +02:00
Ashley Wulber
d625291266 feat: dnd for segmented buttons and nav 2024-04-09 21:21:38 +02:00
Michael Aaron Murphy
2ccd3682b4 feat(segmented-button): add maximum_button_width property 2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
d704d90e92 fix(segmented_button): adjust layout and drawing to designs 2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
b3915a9bbc perf(segmented_button): recreate paragraph only when text changes 2024-03-08 15:18:47 +01:00
Michael Aaron Murphy
9eeaf816dc
chore(semgented_button): fix linter warnings 2024-02-27 18:31:28 +01:00
Michael Aaron Murphy
bfc84c4759 refactor!(widget): rename segmented_selection to segmented_control to match Figma docs 2024-02-26 19:17:49 +01:00
Michael Aaron Murphy
366a450977 improv(segmented_button): rework layout, drawing, and styling to fix visual flaws 2024-02-26 19:17:49 +01:00
Michael Aaron Murphy
6adc037f40 feat(segmented_button): add scrollable_focus to toggle focus scrolling 2024-02-12 18:16:54 +01:00
Ashley Wulber
072a3d5ca0 feat: lower the opacity of colors used in the segmented button when disabled
This is needed for the new tiling applet. Transparent text only seems to be working with the wgpu feature at the moment
2024-02-12 11:55:27 +01:00
Ashley Wulber
dbcd927d4b various fixes 2024-02-06 11:28:27 -05:00
Ashley Wulber
f4ad098647 wip: update to use latest iced 2024-02-06 11:28:27 -05:00
Jeremy Soller
1291a48d4d
Set MSRV to 1.71 2024-01-29 09:43:06 -07:00
Michael Aaron Murphy
213ede371b
fix(segmented_button): misaligned next tab button 2024-01-27 02:38:33 +01:00
Michael Aaron Murphy
135770a16d fix(segmented_button): hoverable tab pagination buttons; fixed padding 2024-01-26 23:34:07 +01:00
Michael Aaron Murphy
d5b2a2e87c feat(segmented_button): variable-width horizontal button when width is Shrink 2024-01-26 16:39:48 +01:00