RustDesk/flutter/lib/desktop/widgets
lukecgg c403cd8440 Gate multi-edge docking behind a settings toggle; default = horizontal slide
Replaces the activation-zone approach with an explicit opt-in setting
in Settings -> Other ("Allow docking remote toolbar to any window
edge"). This addresses the concern that a low-intent horizontal drag
shouldn't be able to trigger a high-impact orientation change, while
still letting users who want multi-edge docking opt in cleanly.

Default (toggle off):
  - The original horizontal slide is preserved.
  - The bug fix from the first commit still applies: dragging the
    handle moves the whole toolbar, and the position persists across
    collapse/expand (no more re-center on re-open).
  - Draggable is axis-locked to horizontal so the feedback widget
    stays on the top line during drag.

Opt-in (toggle on):
  - Full nearest-edge wins with the live preview ghost and corner
    hysteresis; toolbar reflows vertically on left/right docks.
  - Draggable is unlocked for 2D drag.

Reads the option via mainGetLocalBoolOptionSync so the toolbar's
default state matches what the settings checkbox shows; the option
key uses the allow- prefix so unset defaults to off.

Takes effect on next session (setting is read at session init).

The setting key (allow-multi-edge-toolbar-dock) is read by the
existing local-options machinery and persists per-install without
needing to be registered in libs/hbb_common's KEYS_LOCAL_SETTINGS.
Can add that registration in a parallel hbb_common PR if preferred.
2026-05-18 10:15:22 +10:00
..
button.dart add auto-size-text for installCard button 2022-10-24 15:58:24 +08:00
dragable_divider.dart remove stupid group, bad implementation, buggy, and not usable 2023-06-23 17:05:48 +08:00
kb_layout_type_chooser.dart feat: web v2 keyboard (#9175) 2024-08-26 12:13:11 +08:00
list_search_action_listener.dart feat: make file manager draggable 2023-02-24 15:57:22 +08:00
material_mod_popup_menu.dart try out 3.22.2 2024-06-21 12:33:24 +08:00
menu_button.dart file rename (#9089) 2024-08-16 12:55:58 +08:00
popup_menu.dart refact: init values from initState to Constractor (#8817) 2024-07-25 10:45:51 +08:00
refresh_wrapper.dart fix: synchronize macOS window theme on flutter theme changed. 2023-02-02 13:57:40 +08:00
remote_toolbar.dart Gate multi-edge docking behind a settings toggle; default = horizontal slide 2026-05-18 10:15:22 +10:00
tabbar_widget.dart fix(custom-client): desktop, incoming only, touch drag (#14928) 2026-05-11 12:58:32 +08:00
titlebar_widget.dart showTitle default to false, change titlebar logo 2023-02-10 15:05:35 +08:00
update_progress.dart refact: macos, update, preparing for installation (#12581) 2025-08-08 14:25:22 +08:00