Commits at a50feb86980f2ec7cde8aa0dc917fc43e4e9ba2f
a50feb86Add "Disable changing sensitivity before and after API calls" option
https://codeberg.org/pocka/plac-for-gtk4/issues/27
To workaround GTK4 moves focus to a sensitive widget when a widget goes
to insensitive state. Although the option suppress the safeguard, GTK4
still moves focus on pressing "play" and "pause", because it's two
buttons changing visibility instead of a single button swapping
appearance and label.
Shota FUJI
authored at
Shota FUJI
comitted at
96f826feDefine preferences dialog UI in XML file
Application.vala got too messy.
Shota FUJI
authored at
Shota FUJI
comitted at
73949790Add options to change seekbar's step/jump size
It has been fixed to 1s/10s. Ideal seekbar step size depends on personal
preferences, so I made it customizable. I changed my config to 5s/20s
after little fiddling.
https://codeberg.org/pocka/plac-for-gtk4/issues/25
Shota FUJI
authored at
Shota FUJI
comitted at
767d22f8Add stop button to playback toolbar
It works like the one on a cassette player.
I wanted it to behave like other apps, but Roon API lacks "clear queue"
functionality. It does have "subscribe to queue changes" and "play from
this queue item" but using those are hacky and fragile.
<https://codeberg.org/pocka/plac-for-gtk4/issues/24>
Shota FUJI
authored at
Shota FUJI
comitted at
25338e79Add "Default category" option
I personally don't use "Explorer" category much. The most frequently
used category differs by person, or even same person can change the
preferred category over time.
Shota FUJI
authored at
Shota FUJI
comitted at
5459e704Add "Hide window titlebar" preference option
Close button and window title does not make sense for certain kind of
window managers.
Shota FUJI
authored at
Shota FUJI
comitted at
d625bacfReorganize preference items
To use more common terminology.
Shota FUJI
authored at
Shota FUJI
comitted at
0f73b5a7Get rid of treefmt
It's not good. Overall design, speed, touches git, etc.
dprint is simple, and `buildFHSEnv` is enough for NixOS.
Shota FUJI
authored at
Shota FUJI
comitted at
2c161d22Make app menu available at server discovery window
Otherwise user has to manually edit dconf entry in order to set UDP
port.
Shota FUJI
authored at
Shota FUJI
comitted at
ba96062dFocus browse items on load
Because of Plac disables controls to prevent race-condition during API
calls, focus jumps back to unnatural position after every load. This
opt-in feature brings smoother keyboard experience. What follows after
selecting a category is select an item or browse items on list,
therefore moving focus to the list is the most suited in this case.
Shota FUJI
authored at
Shota FUJI
comitted at
de662386Do not output warning log for missing artwork image
It's an expected status code.
Shota FUJI
authored at
Shota FUJI
comitted at
1a6e7d04Output debug log by default for "zig build run"
99.9% of the time I use "zig build run" need debug logs.
Shota FUJI
authored at
Shota FUJI
comitted at
d5bbef62Update flake input (nixpkgs)
Changes to ".nix" files:
* Rename "nixfmt-rfc-style" to "nixfmt", as it has graduated to non-RFC
official tool.
* Remove "zig.hook", as it has been integrated to the "pkgs.zig".
Shota FUJI
authored at
Shota FUJI
comitted at
cffc0847Set mnemonic to static elements
Not great keyboard experience, but I guess this is the ideal GTK way of
doing it?
Shota FUJI
authored at
Shota FUJI
comitted at
e88c3248Focus next widget on pressing Tab at browse list
The default behavior is focus a next list item, or next widget if the
currently focused item is the last item. As user can focus sibling list
item using an arrow key, Tab should be reserved for focusing playback
toolbar. If the list contains many items, it would be tedious to reach
playback toolbar by only using keyboard.
Shota FUJI
authored at
Shota FUJI
comitted at