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
303b0aa6Add libxml2 to build time dependencies
It's used by "glib-compile-resouces" for stripping spaces in XML.
That command produces a warning to stderr if the "xmllint" command is
not available (for example, on NixOS.)
Shota FUJI
authored at
Shota FUJI
comitted at
d24ded32Do not disable category list during loading
Even an instant, if the list goes "sensitive = false", it loses focus
thus user have to manually re-focus to the list. This change enables
users to rapidly send API requests, but I believe that's not an issue as
requests are identified by "Request-Id" header.
Shota FUJI
authored at
Shota FUJI
comitted at
692a4071Fix pressing Tab key on category list changes category
This is unintuitive and inaccessible, as it was virtually impossible to
"select a category then select an item" only via keyboard.
<https://codeberg.org/pocka/plac-for-gtk4/issues/23>
Shota FUJI
authored at
Shota FUJI
comitted at
7e2ca927Fix loading spinner is shown even when no artwork image is available
Upon opening Plac when there is no playback queue, artwork section shows
loading spinner even though nothing to show there.
That spin animation consumes CPU resource. It also has been visually
annoying.
<https://codeberg.org/pocka/plac-for-gtk4/issues/22>
Shota FUJI
authored at
Shota FUJI
comitted at
3378919dAllow setting fixed discovery UDP port number
For firewalled environment.
https://codeberg.org/pocka/plac-for-gtk4/issues/21
Shota FUJI
authored at
Shota FUJI
comitted at
8ef35b20Use treefmt for formatting
dprint-plugin-exec doesn't work inside non-FHS environment.
I'm not a fan of treefmt's overall design: file paths rather than
stdin/stdout, noisy CLI outputs, over-complicated mechanism, etc.
Shota FUJI
authored at
Shota FUJI
comitted at
139b96a3Do not use flake-utils
Dependency just for just several lines is ridiculous.
Shota FUJI
authored at
Shota FUJI
comitted at
03aef5b8Use unstable nixpkgs
`nix flake update`
I'm not seeing benefits of using stable channel. When using this flake
from other flake, 99.9% of the time the caller sets `nixpkgs.follows` so
using stable is rather problematic.
Shota FUJI
authored at
Shota FUJI
comitted at