Commit graph

130 commits

Author SHA1 Message Date
b2126a9f2b fix: appeler refresh_volume_limits sur app, pas self
Some checks failed
Continuous Integration / formatting (push) Has been cancelled
Continuous Integration / linting (push) Has been cancelled
Le patch yoda 5b838a67 est conserve (il initialise les plafonds sink ET
source, contrairement au code inline amont) mais il est desormais dans
une closure recevant `app: &mut Self` : l appel sur `self` ne compilait
plus.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-19 22:18:37 +02:00
673547dc52 Merge remote-tracking branch 'upstream/master' into yoda-dock-magnification
# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	cosmic-app-list/src/app.rs
#	cosmic-applet-audio/src/lib.rs
#	cosmic-applet-input-sources/Cargo.toml
#	cosmic-applet-input-sources/src/lib.rs
#	cosmic-applet-status-area/src/components/app.rs
#	cosmic-panel-button/src/lib.rs
2026-08-19 22:04:42 +02:00
Michael Aaron Murphy
73d727814c fix(audio): debounce volume updates by 128ms 2026-08-18 17:23:33 +02:00
5b838a6795 fix(audio): initialize volume ceilings at startup
max_sink_volume and max_source_volume were only computed in the
TogglePopup handler, so they kept their Default value of 0 until the
popup had been opened once. The scroll-to-adjust handler clamps against
max_sink_volume, which meant every wheel event resolved to
SetSinkVolume(0) until the user had clicked the applet icon: scrolling
up did nothing and scrolling down muted the sink.

Extract refresh_volume_limits() and call it from init() as well as from
TogglePopup, so the popup still picks up amplification config changes
made during the session.

This is the actual cause of "scroll does not adjust volume until the
applet is clicked once" — the wheel events were reaching the widget all
along, which is why a single click made scrolling work on plain hover
from then on.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-31 09:33:16 +02:00
a9f15d67a2 fix: handle wheel events before cursor bounds check in MouseArea
Some checks failed
Continuous Integration / formatting (push) Has been cancelled
Continuous Integration / linting (push) Has been cancelled
Move the on_mouse_wheel handler before the cursor.is_over(bounds)
guard. The panel's nested compositor only routes axis events to the
applet surface when the pointer is over it, making the bounds check
redundant for scroll events. This fixes scroll-to-adjust-volume not
working on the audio applet after a fresh login, when the cursor
coordinates sent by the panel may not match the applet's surface-local
coordinate space.
2026-07-29 11:59:32 +02:00
Votre Nom
c117f172cb fix(audio): accumuler les rafales scroll Pixels au lieu de signum()
Avec Wayland axis_v120 (scroll haute-résolution sur souris HID modernes),
un cran physique génère 5–8 events ScrollDelta::Pixels (~15–20px chacun).
L'ancien code passait chaque sub-event par .signum() puis -1/+1 à sink_volume,
donc un seul cran physique faisait varier le volume de 5 à 40% — résultat :
scroll up sur l'icône audio panel / dock coupait le son si le volume était
déjà bas.

Fix : thread_local accumulator des deltas Pixels, émission seulement
au passage du seuil de 15px par cran logique. Lines (souris classique
sans axis_v120) reste proportionnel y * WHEEL_STEP. round() au lieu de
truncation finale pour ne pas perdre les fractions de pourcent.

Leyoda 2026 - GPLv3
2026-07-04 10:55:18 +02:00
Ashley Wulber
69d358ec34 chore: cleanup and update deps 2026-07-01 23:26:15 -04:00
Ashley Wulber
f0ca9e7aee chore: update libcosmic 2026-06-30 13:17:39 -04:00
Ashley Wulber
405fddda2d wip: blur 2026-06-30 13:17:37 -04:00
Ashley Wulber
456d052535 improv(audio): adjust popup size based on window size 2026-06-22 22:09:48 +02:00
Michael Murphy
95eda40878
feat(sound): use cosmic-settings-daemon's varlink API 2026-06-15 21:09:25 +02:00
Ashley Wulber
e125ae0b58 update libcosmic after reexports are removed 2026-04-16 15:27:25 -06:00
Ashley Wulber
71d9d6d5bb
chore: updates after iced-rebase 2026-03-31 22:34:59 +02:00
lorduskordus
7998dffb5d
fix(audio-applet): Replace hardcoded string with existing fluent key (#1256) 2026-01-13 11:22:29 -07:00
Michael Aaron Murphy
a3fb55a2b8 feat(audio): share cosmic-settings' new sound library 2025-11-26 11:54:00 -05:00
Ashley Wulber
836c0e378b applet overlap
chore: mpris dep

fix: dock buttons

improv: battery and audio improvements

feat: overlapping padding

fix: input source text button

fix: apply panel spacing to app tray

chore: update libcosmic

fix: spacing and padding

fix(minimize): hide when empty
2025-11-11 16:49:48 -05:00
Cheong Lau
38c037c977 perf: use unstable sorting when async
Unstable sorting should be slightly faster than stable sorting, and if
the vector was built asynchronously then preserving the initial order
doesn't matter too much.

Continue to use stable sorting where the vector is not built
asynchronously, or if the vector is partially sorted (e.g. when new
elements are pushed to a sorted vector).
2025-10-07 17:04:51 +02:00
Cheong Lau
dd0158d8f0 perf: refactor to reduce memory allocations and cpu work 2025-10-07 17:04:51 +02:00
Cheong Lau
8e0f1c4a09
chore: apply recommendations from clippy 2025-10-04 02:51:18 +02:00
Alex Rennie
3daffb4fba feat(audio): MPRIS Raise functionality 2025-10-01 17:44:54 +02:00
Ashley Wulber
1ecbc3ed8e fix(audio): respect amplification config for scroll 2025-09-18 10:30:16 -04:00
Ashley Wulber
1e185dff4e fix(audio): scale scroll Lines 2025-09-18 10:30:16 -04:00
antronset
21c62440fd fix(audio): normalize tray wheel to ±5% per event; drop magic constant 2025-09-18 10:30:16 -04:00
Vukašin Vojinović
5a4f4c2018 feat(audio): respect amplification config 2025-09-12 23:33:31 -04:00
Vukašin Vojinović
2b7b4cba56 chore: update to Rust 2024 edition 2025-08-18 16:44:50 +02:00
Vukašin Vojinović
c3fafd3910 chore: use std::sync::LazyLock
Removes `once_cell` as a direct dependency.
2025-08-18 16:44:50 +02:00
Ian Douglas Scott
417f43a0f5 Update to zbus 5.x 2025-05-28 13:40:23 -04:00
Jason Hansen
bffc9b2550
feat(sound): update volume sliders when volume changes externally 2025-05-28 17:22:54 +02:00
19MisterX98
98aa83893b
fix: text disappearing when moving sliders 2025-05-12 16:15:06 +02:00
Ashley Wulber
6b47c3b5b9
chore: update cosmic-settings-subscriptions 2025-03-28 15:45:51 +01:00
Ashley Wulber
c54ddeb38a chore: udpate libcosmic 2025-03-14 14:26:42 -04:00
Ashley Wulber
61d1d1b91d fix: use fixed window width for all applets 2025-03-14 14:26:42 -04:00
Ashley Wulber
0de336d0d7 update libcosmic: adds tooltip support 2025-03-14 14:26:42 -04:00
Ashley Wulber
406cdd3627 fix(audio): delay retries 2025-03-04 17:47:44 +01:00
Ashley Wulber
f486b3b1ad update libcosmic 2024-12-04 16:52:49 +01:00
Justin Gross
8991bb1866 feat: overamplification support for audio applet like cosmic system settings 2024-12-03 15:17:00 -05:00
Vukašin Vojinović
6b740c59be fix(app-list): use context menu radius from theme 2024-11-04 08:47:36 -05:00
Ashley Wulber
5b5cd77e7c update iced 2024-10-31 17:52:33 -04:00
l-const
7b005f977f fix(audio-applet): Render input volume level instead of output. 2024-10-13 23:57:10 -04:00
Vukašin Vojinović
941cbf546b
fix: padding, spacing, context menu style, and settings buttons 2024-09-24 15:52:17 +02:00
wiiznokes
6b8d3dc415 improv: filter firefox player 2024-09-12 17:03:11 +02:00
Michael Aaron Murphy
c8d91a8a9a perf(audio): further reduce CPU usage 2024-09-12 17:02:29 +02:00
wiiznokes
fe598a7a60
fix(audio): fix high CPU usage 2024-09-09 21:37:25 +02:00
Luca Biendl
7e61e8b829
fix(audio): panic when pulseaudio channel is full 2024-09-09 14:35:45 +02:00
Vukašin Vojinović
d657b1941a fix: use text::body 2024-09-03 16:52:59 +02:00
Vukašin Vojinović
02b3fbdb11 fix: use cosmic::widget::text instead of cosmic::iced::widget::text 2024-09-03 16:52:59 +02:00
Vukašin Vojinović
e61de72c9c update libcosmic
Also fixes the padding of some things to better match designs.
2024-08-15 10:18:19 +02:00
lazytanuki
e51ca81f7d
feat: toggle popups on press down 2024-08-13 19:03:34 +02:00
Ashley Wulber
af658aa14d fix(audio): rtl media title overlap on controls 2024-08-13 19:01:18 +02:00
Vukašin Vojinović
8f3131615a
chore(audio): add cosmic-settings button 2024-08-13 18:32:40 +02:00