feat(client/linux): preferences at 830 px — category tabs in the header bar
apple / swift (push) Successful in 1m20s
apple / screenshots (push) Successful in 6m29s
ci / web (push) Successful in 54s
ci / docs-site (push) Successful in 1m4s
ci / bench (push) Successful in 5m5s
android / android (push) Successful in 14m15s
decky / build-publish (push) Successful in 21s
docker / build-push (--build-arg FEDORA_VERSION=44, ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora44-rpm) (push) Successful in 10s
deb / build-publish (push) Successful in 10m12s
docker / build-push (., web/Dockerfile, punktfunk-web) (push) Successful in 11s
docker / build-push (ci, ci/fedora-rpm.Dockerfile, punktfunk-fedora-rpm) (push) Successful in 10s
deb / build-publish-host (push) Successful in 9m36s
docker / build-push (docs-site, docs-site/Dockerfile, punktfunk-docs) (push) Successful in 1m10s
arch / build-publish (push) Successful in 21m29s
docker / build-push (ci, ci/rust-ci-noble.Dockerfile, punktfunk-rust-ci-noble) (push) Successful in 9m48s
docker / build-push (ci, ci/rust-ci.Dockerfile, punktfunk-rust-ci) (push) Successful in 10m32s
flatpak / build-publish (push) Successful in 6m21s
ci / rust (push) Has been cancelled
docker / deploy-docs (push) Has been cancelled
rpm / build-publish (43, bazzite, punktfunk-fedora-rpm) (push) Has been cancelled
rpm / build-publish (44, fedora-44, punktfunk-fedora44-rpm) (push) Has been cancelled

AdwPreferencesDialog parks its view switcher in a bottom bar whenever the
dialog is narrower than 110pt × page count (≈ 733 px for our five pages),
and the default float width (~640 px) is always under that — so the tabs
could never reach the header. 830 px puts them there for good (the tabbed
look the Apple and Windows clients share) with margin to spare, and gives
the caption-bearing rows room to breathe. A window too small to grant the
width still collapses the switcher to the bottom bar on its own.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 20:00:21 +02:00
parent c2bba13405
commit 9296e1bed7
+5
View File
@@ -365,6 +365,11 @@ pub fn show(
let dialog = adw::PreferencesDialog::new();
dialog.set_title("Preferences");
dialog.set_search_enabled(true);
// Wide enough that the category switcher sits in the HEADER BAR (the tabbed look the
// Apple/Windows clients have): AdwPreferencesDialog moves it to a bottom bar below a
// breakpoint of 110pt × page count (≈ 733 px for our five pages). In a window that
// can't give the dialog this width it still collapses to the bottom bar on its own.
dialog.set_content_width(830);
let inline = gamescope_session();
// ---- Display: Resolution ----