Commit graph

68 commits

Author SHA1 Message Date
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
Michael Aaron Murphy
d6e23fe977
fix(segmented_button): text bounds off when an icon is used 2024-01-23 22:40:12 +01:00
Michael Aaron Murphy
ca92049ab6 feat(segmented_button): paginate tabs when width is too narrow 2024-01-23 22:09:11 +01:00
Michael Aaron Murphy
05f8ffeef1 fix(segmented_button): clip text that overlaps with close button 2024-01-23 22:09:11 +01:00
Michael Aaron Murphy
bb8be4e3d5 feat(segmented_button): use scroll wheel to switch between tabs 2024-01-22 16:48:18 +01:00
Michael Aaron Murphy
25eea464b9 feat(segmented_button): close tab on middle click 2024-01-22 16:48:18 +01:00
Ashley Wulber
310064ca1d refactor: use theme corner radii everywhere
not all values matched a default value but I picked the next closest in that case
2023-12-13 13:10:39 -05:00
Ashley Wulber
fcfe9ebc59 chore: update iced 2023-12-04 17:53:24 -05:00
Ashley Wulber
17bc373990 clippy fixes 2023-12-04 17:53:24 -05:00
Ashley Wulber
9202383596 chore: update to 0.12 2023-12-04 17:53:24 -05:00
Jeremy Soller
2df8cb8862 Allow segmented buttons to be indented 2023-11-16 08:06:07 -07:00
Ashley Wulber
70077ca985 feat: color picker 2023-10-02 10:24:43 -04:00
Michael Aaron Murphy
8f9fde7fe8 fix(widget): set SegmentedButton icon color to be same as text 2023-09-19 17:22:20 +02:00
Michael Aaron Murphy
48fd076cc8 fix(segmented-button): disappearance of icons from bad layout values 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
9dbc1be269 refactor(widget): improvements to button and icon widgets 2023-09-14 01:38:56 +02:00
Michael Aaron Murphy
4e4eeaac12 feat!(widget): rewrite button & icon widget APIs 2023-09-14 01:38:56 +02:00