Commit graph

302 commits

Author SHA1 Message Date
LinuxBoy-96
2c5d30baa4 Update cosmic_player.ftl
typo
2025-03-31 17:24:56 -06:00
LinuxBoy-96
17a11c8682 Update cosmic_player.ftl
more translation
2025-03-31 17:24:56 -06:00
Cristian Dinu
6d5c2f020d feat(controls): Hide header bar if no mouse movement
We hide the title bar similarly on how we hide the controls bar.

The difference between the header bar and the controls bar is that in
`Fullscreen` mode we don't display the header bar even if we have mouse
movement.

If a menu or sub-menu is open, but then the user makes no mouse
movement, then the menus will be hidden when the header bar is hidden.

I'm not sure how to handle the side panel, the `nav_bar`, what I call
"the playlist". I decided to not handle it's hiding based on mouse
movement because it is still displayed when we put the window in
`Fullscreen` mode.

Closes #37
2025-03-31 09:22:42 -06:00
neko0xff
776b4c7338 fix bug: string 2025-03-31 09:21:53 -06:00
neko0xff
ab5de3b33b i18n(zh-TW): add zh-TW translation 2025-03-31 09:21:53 -06:00
Cristian Dinu
59cd966a30 fix(args): Eliminate the binary from arguments
For an executable the first argument is always the binary itself.
Because of this we have to skip it.

If we don't skip it, then it will be treated as another URL, therefore
`cosmic-player` will end up opening two URLs, one for the binary and one
for the actual file we want to play.

When opening multiple files `cosmic-player` will show the side panel /
playlist with the list of files.

The regression this commit fixed was introduced by `01be9152`.

Closes #96.
2025-03-27 08:49:09 +01:00
LinuxBoy-96
01be9152a7
feat: add help and version flags to argument parser 2025-03-26 16:42:39 +01:00
David Carvalho
69475d098c i18n (pt-BR) Update translations 2025-03-26 14:55:40 +00:00
铺盖崽
d29d47f5e3 i18n(zh-CN): update zh-CN translation 2025-03-23 00:49:27 +00:00
Hugo
07ed2615d0 Add daemon mode support 2025-03-22 19:22:22 +00:00
Jeremy Soller
b59418e60b
Accept a list of URLs in desktop file 2025-03-13 14:10:27 -06:00
Aaron Honeycutt
57172c14d0 add shell.nix file 2025-03-13 12:18:18 -06:00
Josh Megnauth
701fc818f7 Playlist with multiple, mixed items
Prior to this commit, projects/playlists were limited to folders even if
file URLs were passed as arguments. With this commit both files and
folders are added to projects from the command line.

This doesn't affect opening a file from the GUI yet, but this patch
implements the required plumbing for that as well.
2025-03-13 12:17:54 -06:00
Josh Megnauth
3fd8641df2 Parse multiple URLs via command line
Closes: #44, #47

I used pico-args over clap because the former only adds about 1KB of
binary bloat whereas clap adds almost 1MB.
2025-03-13 12:17:54 -06:00
Matthew Fallah (マシュー・ファラー)
f441d24760 Update cosmic_player.ftl (jp) 2025-03-13 12:16:11 -06:00
Matthew Fallah (マシュー・ファラー)
aed3947ea0 Update cosmic_player.ftl for Japanese 2025-03-13 12:16:11 -06:00
João Ribeiro
6e584ea6fc i18n(pt): update portuguese translation 2025-03-13 12:15:10 -06:00
Weeesly
27cfc3d419 Create cosmic_player.ftl 2025-03-07 13:45:51 -07:00
Giuseppe Catillo
56678a4090 i18n(it): update italian translation 2025-02-24 11:51:08 -07:00
Aindriú Mac Giolla Eoin
45a02a2f92 Updating Irish translations since Decemeber 24 2025-02-24 08:35:38 -07:00
Kamil Lihan
ee421895fb i18n(sk): Add Slovak translations 2025-02-24 08:34:59 -07:00
Benjamin Weis
9c93c3b249 i18n(de): add German translation 2025-02-22 15:49:11 -07:00
therealmate
92badbc20c Update Hungarian translations 2025-02-22 15:48:02 -07:00
VandaLHJ
5796e09704 Update cosmic_player.ftl PL translation missing metadata
Added missing metadata
2025-02-11 15:10:23 -07:00
Feike Donia
8a444ff227 i18n(nl) update Dutch translation 2025-02-11 15:10:10 -07:00
buildingpkgs
91f4448889 Update Hungarian translations 2025-02-11 15:09:57 -07:00
Luna Jernberg
5b29964ebf Update cosmic_player.ftl
Update Swedish translation again
2025-02-11 15:09:43 -07:00
Josh Megnauth
011c633a8a Open folder passed as command line arg
Allows opening a folder on the command line rather than only a single
file. This is useful for Freedesktop compliant file managers as they
pass files URLs to media players.

This currently only handles one URL whereas the spec allows multiple.
2025-02-03 08:19:00 -07:00
Heitor Augusto
61a16a1eb2
i18n(pt-BR): update translations (#66) 2025-01-31 16:18:28 -07:00
Luna Jernberg
f75bd0590e
Update Swedish translation (#67)
* Update cosmic_player.ftl

Update Swedish translation

* Update cosmic_player.ftl

Update Swedish translation
2025-01-31 16:18:15 -07:00
Jeremy Soller
493831db56
Merge pull request #68 from VandaLHJ/patch-2
Update cosmic_player.ftl PL translation
2025-01-31 16:18:02 -07:00
Feike Donia
5669dc2d45
i18n(nl) improve Dutch translation (#69)
* spell check and improve Dutch translation

* Make consistent

* i18n(nl) improve Dutch translation
2025-01-31 16:17:49 -07:00
hemingtsai
cda6efdd05 i18n(zh-CN):Update translation of zh-CN 2025-01-31 16:17:35 -07:00
Jeremy Soller
3466b064e9
Support missing metadata, fixes #56 2025-01-31 16:13:56 -07:00
Jeremy Soller
fe143a689f
Adjust text color 2025-01-31 16:09:17 -07:00
Jeremy Soller
d65acd4979
Use bg_component_color as background for audio 2025-01-31 15:34:32 -07:00
Jeremy Soller
67caa89151
Show metadata for audio files, part of #56 2025-01-31 15:19:01 -07:00
VandaLHJ
a612728454
Update cosmic_player.ftl PL translation 2025-01-29 00:06:41 +01:00
therealmate
aa9913b2a0 Update Hungarian translations 2025-01-27 14:04:34 -07:00
therealmate
63735cda02 Add Hungarian translations 2025-01-24 14:08:46 -07:00
Jeremy Soller
841816e8d1
Add tree view, fixes #52, fixes #53 2025-01-24 14:05:50 -07:00
Jeremy Soller
0169cccfa2
Add recent media, part of #53 2025-01-24 12:49:02 -07:00
Jeremy Soller
fd1df4f098
Fix deadlocks when opening files while another file is playing 2025-01-24 12:23:57 -07:00
Luna Jernberg
d19e2324ad Update cosmic_player.ftl
Update Swedish translation
2025-01-23 11:35:50 -07:00
Jeremy Soller
4fee3f84fa
Scale down album art image 2025-01-19 10:25:46 -07:00
Jeremy Soller
22c7a76f41
Show open with button when no media loaded, fixes #55 2025-01-19 10:19:47 -07:00
Jeremy Soller
5c6163eed7
Move seek to second line when condensed, fixes #54 2025-01-19 10:08:24 -07:00
Jeremy Soller
0ad6d5e3e0 Improve argument handling 2025-01-18 10:09:08 -07:00
Jeremy Soller
73f524c95e
Implement MPRIS and album art, fixes #57, fixes #59, part of #56 2025-01-18 08:47:47 -07:00
lucamosca1
7c080feb86
Update cosmic_player.ftl ITA (#50) 2025-01-13 08:30:44 -07:00