Cheong Lau
a27bb5e05d
chore: apply clippy suggestions
2025-10-05 04:40:51 +02:00
Vukašin Vojinović
ad1672b881
fix: window corner handling
2025-10-03 14:28:34 -04:00
Ashley Wulber
03f07d2f1e
fix: sharp corners & window state handling
2025-09-30 10:59:51 -04:00
Jeremy Soller
2099dc45cb
fix(header_bar): increase title portion based on maximum left or right portion
2025-07-24 15:45:03 -06:00
Ashley Wulber
50367b96e3
fix(headerbar): handle zero length segments
2025-07-08 23:07:54 +02:00
Jeremy Soller
aaa4b83577
Fix bundling of header bar icons
2025-07-01 09:30:27 -06:00
Joshua Megnauth
46cbce033b
fix(header_bar): Windows build fix
2025-06-26 06:36:52 +02:00
Ashley Wulber
6be5403852
improv(header): remove title if condensed and better handle large fixed size elements
2025-06-18 18:02:21 -04:00
Ashley Wulber
7d7274b801
fix(header-bar): allocate space that accounts for window controls
2025-06-18 09:10:37 +02:00
Vukašin Vojinović
a46483f161
fix(header_bar): add is_ssd field
2025-05-19 19:07:25 +02:00
Vukašin Vojinović
147fc5a2a4
improv(header_bar): reduce chance of end elements being pushed out
2025-05-19 19:07:25 +02:00
Vadim Khitrin
c2a7d63060
fix: Calculate Icons For Header Bar Individually
...
Based on the existing non Linux macro, we are required to calculate
icons individually.
2025-04-14 14:16:00 +02:00
Vukašin Vojinović
1509163230
fix(app): match padding to designs
...
Also makes the maximize button change to restore when the window is maximized.
2025-04-04 18:34:55 +02:00
Vukašin Vojinović
1486569481
chore: use theme::spacing() where applicable
2025-04-02 00:33:21 +02: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
Ashley Wulber
337b80d4ca
feat: Tooltips and Better Surface Management
2025-03-14 16:56:21 +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
Vukašin Vojinović
de0c1921f7
fix(list_column): match padding/spacing to designs
2024-12-02 17:43:19 +01:00
Vukašin Vojinović
8e823f622f
fix(header_bar): match spacing to designs
2024-11-26 16:29:53 +01:00
Ashley Wulber
2ecef3c7b2
feat: better a11y support
2024-11-11 15:02:04 -07:00
Vukašin Vojinović
707f2115eb
fix(context_drawer): center header elements
2024-11-08 15:59:33 +01:00
Vukašin Vojinović
127ce17b85
improv: add window border
2024-11-05 10:02:19 +01:00
Ashley Wulber
0491c4baaa
libcosmic updates
2024-10-18 14:04:39 -04:00
Vukašin Vojinović
e645dee2f0
fix(header_bar): increase compact height
...
Increases Compact header height to 40 (from 36), to better accommodate larger widgets (e.g. the search bar). This makes it distinct from the SSD header, which is now addressed by the `_` match case.
Also makes the horizontal header padding fixed at 8, so that the app window padding can also be 8.
2024-10-03 15:39:00 +02:00
Vukašin Vojinović
0a34660a80
fix: move density to cosmic_theme
2024-09-23 12:40:22 -04:00
Vukašin Vojinović
a415eb60bb
fix: window control button padding
...
Makes the internal padding of window control buttons fixed (can still perfectly fit inside the Compact header bar), since they otherwise become too small when Compact.
2024-09-23 12:40:22 -04:00
Vukašin Vojinović
3c88edb217
feat: interface density
2024-09-23 12:40:22 -04:00
netengy-dakotaraptor
5de9b21e0b
fix: set window control icons as symbolic for non-linux sytems
2024-08-05 12:17:33 +02:00
Michael Aaron Murphy
9e344b15c3
fix: window controls on linux not clickable
2024-07-31 08:06:05 +02:00
wiiznokes
716b3dee56
feat: use cached window control icons on other OSes
2024-07-30 18:29:01 +02:00
leb-kuchen
8e67f3ce1c
feat(headerbar): double click to maximize
2024-07-23 11:58:55 +02:00
Michael Aaron Murphy
1e5828e01c
improv: get window control icons from icon theme
2024-07-22 07:24:07 +02:00
Ashley Wulber
173ddca60f
fix: refactor dnd impl to support responsive widget
2024-05-31 19:14:58 -04:00
Michael Aaron Murphy
af58d81c6f
fix: use spacing of 2 when header density is compact
2024-05-30 22:00:48 +02:00
Michael Aaron Murphy
057ee5f086
feat(headerbar): add field to configure density
2024-05-29 06:25:15 -06:00
Michael Aaron Murphy
6720b8277c
feat: CosmicTk::header_size density config
2024-05-29 06:25:15 -06:00
Michael Aaron Murphy
9292ea647b
feat: inactive window header icon/text colors
2024-05-17 20:58:38 +02:00
Ashley Wulber
745cba1c2c
feat: add drag_destinations for container widgets
2024-04-01 22:14:42 +02:00
Ashley Wulber
01d7e46fea
fix: diff children
2024-03-18 22:00:50 +01:00
Ashley Wulber
e47684ffdb
refactor: icon styling and headerbar icon styling
...
Headerbar icons are transparent when their window is not focused, but otherwise share the same style as icons with selection. This updates the icon styles to match figma when selected.
2024-03-11 16:26:48 -04:00
Ian Douglas Scott
cc8033d74b
feat(header_bar): Show window menu on right click
...
With this, apps like cosmic-term require no changes to show the
compositor window menu when the header is right clicked.
2024-02-13 17:10:04 +01:00
Ashley Wulber
a6785de7ba
cleanup: cargo fmt
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
0299878508
Align headerbar items
2024-01-31 10:07:04 -07:00
Ashley Wulber
8157ed5c63
feat: apply overlay to headerbar when it loses focus
2024-01-11 15:54:32 -05:00
Jeremy Soller
9fb3d874e1
fix(header_bar): shrink start and end
2024-01-10 20:56:07 +01:00
wiiznokes
1bd39b17ae
fmt
2024-01-04 14:13:30 -07:00
wiiznokes
47858bf0aa
bundle close, maximise and minimise icons
2024-01-04 14:13:30 -07:00
Michael Aaron Murphy
9ccd34b5ab
fix(headerbar): center-align title even if start region is empty
2023-11-03 16:41:31 +01:00