Owner request 2026-10-05: an option to hide the scroll bars but still scroll. ui.hide_scrollbars (bool, default 0, App only - AgentReads false). A bar's visibility is bound inside its scroller's template, so no style reaches it: Services/ScrollBarHiding registers one class handler on ScrollViewer's Loaded at start (beside DialogKeyboard) and, while on, sets an Auto or Visible axis to Hidden - WPF's "no bar, still scrolls" for wheel, keyboard and touch - keeping the scroller's own value on it; a Disabled axis is never touched (it lays its content out at the viewport's width). The Settings toggle applies to the open windows at once (posted to the dispatcher from another thread), and off puts every kept value back. Read at start beside ui.fps_decimals. Strings en/vi/ja (ja marked review). Tests: ScrollBarHidingTests (a plain scroller, a disabled one, a DataGrid's, a multi-line TextBox's and a FlowDocumentScrollViewer's: on hides every bar and the wheel still scrolls; off restores each scroller's own setting; one that loads while on is hidden and one that loads after off is left alone), SettingsViewModelTests.HidingScrollBars..., SettingsRegistryTests. The class joins the strings-culture collection (process-wide state, runs alone). Docs: 06_DATA_MODEL (settings row), 08_UI (Settings), 16_WPFUI_SYNTAX (gotcha), CHANGELOG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
1.2 KiB
C#
21 lines
1.2 KiB
C#
// SPDX-License-Identifier: GPL-3.0-only
|
|
// Copyright (C) 2026 poli0981 - additional terms under GPLv3 section 7: see NOTICE
|
|
|
|
namespace FrameLedger.App.Tests;
|
|
|
|
/// <summary>
|
|
/// The collection every test class that WRITES the process-wide <c>Strings.Culture</c> belongs to, so they run one after
|
|
/// another. The property is a static the App sets once at start-up; eight test classes set it to <c>en</c> around their
|
|
/// assertions and <see cref="StringsTests"/> sets it to <c>vi</c>, and as separate collections they ran in parallel: the
|
|
/// first gate run on xUnit.net v3 4.0.1 (2026-09-21) read "Settings" where it had just written <c>vi</c>. The race was
|
|
/// always there; the new scheduler found it. An implicit collection: no fixture, so no definition class is needed.
|
|
/// Since beta.8 it also holds the classes that write <c>FpsDecimals.Two</c> or read FPS text the setting changes — the
|
|
/// same kind of process-wide formatting state — and since beta.14 <see cref="ScrollBarHidingTests"/>, whose option is a
|
|
/// process-wide flag that <c>SettingsViewModelTests</c> writes too.
|
|
/// </summary>
|
|
internal static class StringsCultureCollection
|
|
{
|
|
public const string Name = "strings-culture";
|
|
}
|
|
|