euv-ui 0.49.4

Cross-platform UI component library and 17-scheme design system for the euv framework with pixel-consistent rendering across Web, Android, iOS, iPadOS, macOS, Windows, and Linux.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
use super::*;

/// Ordered Strategy Chain facade selecting the optimal chrome geometry for any hardware posture.
impl EuvChromeLayoutPolicy {
    /// Resolves the complete `ResolvedChromeLayout` for `metrics` by evaluating the ordered Strategy Chain.
    ///
    /// # Arguments
    ///
    /// - `&ShellViewportMetrics` - Live viewport, safe-area, and chrome visibility snapshot.
    ///
    /// # Returns
    ///
    /// - `ResolvedChromeLayout` - Complete deterministic chrome and clipped route-stage geometry.
    #[must_use]
    pub fn resolve(metrics: &ShellViewportMetrics) -> ResolvedChromeLayout {
        let desktop: DesktopSidebarStrategy = DesktopSidebarStrategy;
        if desktop.matches(metrics) {
            return desktop.resolve(metrics);
        }
        let watch: WatchCompactStrategy = WatchCompactStrategy;
        if watch.matches(metrics) {
            return watch.resolve(metrics);
        }
        let side_rail: SideSafeRailStrategy = SideSafeRailStrategy;
        if side_rail.matches(metrics) {
            return side_rail.resolve(metrics);
        }
        let top_safe: TopSafeHeaderStrategy = TopSafeHeaderStrategy;
        if top_safe.matches(metrics) {
            return top_safe.resolve(metrics);
        }
        BottomFloatingDockStrategy.resolve(metrics)
    }
}

/// Desktop / PC / wide landscape tablet strategy (`>= 960dp`).
impl ChromeLayoutStrategy for DesktopSidebarStrategy {
    /// Matches desktop-width viewports (`>= DESKTOP_LAYOUT_BREAKPOINT`).
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `bool` - `true` for desktop viewports.
    fn matches(&self, metrics: &ShellViewportMetrics) -> bool {
        metrics.get_viewport_width().max(CHROME_MIN_VIEWPORT_CLAMP) >= DESKTOP_LAYOUT_BREAKPOINT
    }

    /// Resolves desktop layout with persistent left sidebar and zero floating bottom dock.
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `ResolvedChromeLayout` - Desktop layout plan.
    fn resolve(&self, metrics: &ShellViewportMetrics) -> ResolvedChromeLayout {
        let vp_w: f32 = metrics.get_viewport_width().max(CHROME_MIN_VIEWPORT_CLAMP);
        let vp_h: f32 = metrics.get_viewport_height().max(CHROME_MIN_VIEWPORT_CLAMP);
        let safe: SafeAreaInsets = metrics.get_safe_area();
        let top_raw: f32 = safe.get_top().max(0.0);
        let right_raw: f32 = safe.get_right().max(0.0);
        let left_raw: f32 = safe.get_left().max(0.0);
        let top_in_safe: bool = top_raw >= CHROME_TOP_SAFE_HEADER_MIN_HEIGHT;
        let corner_h: f32 = resolve_curved_corner_header_inset(vp_w, vp_h, safe);
        let (mobile_header_height, mobile_header_padding): (f32, Edges) = if top_in_safe {
            resolve_top_safe_header(vp_w, top_raw, left_raw, right_raw)
        } else {
            resolve_standard_mobile_header(top_raw, left_raw, right_raw, corner_h)
        };
        ResolvedChromeLayout {
            posture: ChromePosture::Desktop,
            dock_placement: NavDockPlacement::Hidden,
            dock_orientation: NavDockOrientation::Horizontal,
            dock_icon_only: false,
            dock_frameless: false,
            dock_allow_auto_hide: false,
            top_bar_in_safe_area: top_in_safe,
            top_bar_allow_auto_hide: !top_in_safe,
            show_dock: false,
            dock_left: 0.0,
            dock_top: None,
            dock_bottom: None,
            dock_width: 0.0,
            dock_height: 0.0,
            dock_hide_dx: 0.0,
            dock_hide_dy: 0.0,
            mobile_header_top_inset: top_raw,
            mobile_header_height,
            mobile_header_padding,
            route_stage_insets: Edges::all(0.0),
            content_extra_bottom_pad: safe.get_bottom().max(0.0),
            top_divider_left_inset: 0.0,
            top_divider_right_inset: 0.0,
        }
    }
}

/// Compact smartwatch strategy (`< 300dp` on either axis).
impl ChromeLayoutStrategy for WatchCompactStrategy {
    /// Matches smartwatch viewports (`< CHROME_WATCH_VIEWPORT_MAX`).
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `bool` - `true` for smartwatch viewports.
    fn matches(&self, metrics: &ShellViewportMetrics) -> bool {
        let w: f32 = metrics.get_viewport_width().max(CHROME_MIN_VIEWPORT_CLAMP);
        let h: f32 = metrics.get_viewport_height().max(CHROME_MIN_VIEWPORT_CLAMP);
        w < CHROME_WATCH_VIEWPORT_MAX || h < CHROME_WATCH_VIEWPORT_MAX
    }

    /// Resolves round/squircle watch layout with centered icon-only bottom dock inside the lower chord.
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `ResolvedChromeLayout` - Watch layout plan.
    fn resolve(&self, metrics: &ShellViewportMetrics) -> ResolvedChromeLayout {
        let vp_w: f32 = metrics.get_viewport_width().max(CHROME_MIN_VIEWPORT_CLAMP);
        let safe: SafeAreaInsets = metrics.get_safe_area();
        let top_raw: f32 = safe.get_top().max(0.0);
        let right_raw: f32 = safe.get_right().max(0.0);
        let bottom_raw: f32 = safe.get_bottom().max(0.0);
        let left_raw: f32 = safe.get_left().max(0.0);
        let show_dock: bool = metrics.get_has_bottom_nav() && !metrics.get_is_fullscreen();
        let dock_h: f32 = CHROME_WATCH_DOCK_HEIGHT;
        let dock_bottom: f32 = (bottom_raw * 0.60).max(16.0);
        let max_w: f32 = (vp_w - 32.0).max(124.0);
        let dock_w: f32 = (vp_w - (left_raw + right_raw) * 0.85).clamp(124.0, max_w);
        let dock_left: f32 = ((vp_w - dock_w) * 0.5).max(12.0);
        let stage_left: f32 = if metrics.get_is_fullscreen() {
            0.0
        } else {
            (left_raw * 0.55).max(8.0)
        };
        let stage_right: f32 = if metrics.get_is_fullscreen() {
            0.0
        } else {
            (right_raw * 0.55).max(8.0)
        };
        let extra_bottom: f32 = if show_dock {
            dock_h + dock_bottom + 8.0
        } else {
            bottom_raw
        };
        let eff_top: f32 = (top_raw * 0.55).min(20.0);
        let (mobile_header_height, mobile_header_padding): (f32, Edges) =
            resolve_standard_mobile_header(eff_top, left_raw, right_raw, 0.0);
        ResolvedChromeLayout {
            posture: ChromePosture::WatchCompact,
            dock_placement: if show_dock {
                NavDockPlacement::WatchBottomCompact
            } else {
                NavDockPlacement::Hidden
            },
            dock_orientation: NavDockOrientation::Horizontal,
            dock_icon_only: true,
            dock_frameless: false,
            dock_allow_auto_hide: true,
            top_bar_in_safe_area: false,
            top_bar_allow_auto_hide: true,
            show_dock,
            dock_left,
            dock_top: None,
            dock_bottom: Some(dock_bottom),
            dock_width: dock_w,
            dock_height: dock_h,
            dock_hide_dx: 0.0,
            dock_hide_dy: dock_h + dock_bottom + 12.0,
            mobile_header_top_inset: eff_top,
            mobile_header_height,
            mobile_header_padding,
            route_stage_insets: Edges::new(0.0, stage_right, 0.0, stage_left),
            content_extra_bottom_pad: extra_bottom,
            top_divider_left_inset: stage_left,
            top_divider_right_inset: stage_right,
        }
    }
}

/// Borderless, persistent vertical left/right safe-area rail strategy for iPhone Duo folded/unfolded/rotated/split postures.
impl ChromeLayoutStrategy for SideSafeRailStrategy {
    /// Matches viewports with an asymmetric left or right hardware safe-area strip wide and tall enough for vertical navigation buttons.
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `bool` - `true` when either left or right safe-area strip is wide, asymmetric over the opposite edge, and tall enough for vertical buttons.
    fn matches(&self, metrics: &ShellViewportMetrics) -> bool {
        let vp_h: f32 = metrics.get_viewport_height().max(CHROME_MIN_VIEWPORT_CLAMP);
        let safe: SafeAreaInsets = metrics.get_safe_area();
        let right_raw: f32 = safe.get_right().max(0.0);
        let left_raw: f32 = safe.get_left().max(0.0);
        let has_right_rail: bool = right_raw >= CHROME_SIDE_SAFE_RAIL_MIN_WIDTH
            && (right_raw - left_raw) >= CHROME_SIDE_SAFE_RAIL_ASYMMETRY_MIN;
        let has_left_rail: bool = left_raw >= CHROME_SIDE_SAFE_RAIL_MIN_WIDTH
            && (left_raw - right_raw) >= CHROME_SIDE_SAFE_RAIL_ASYMMETRY_MIN;
        metrics.get_has_bottom_nav()
            && vp_h >= CHROME_SIDE_SAFE_RAIL_MIN_HEIGHT
            && (has_right_rail || has_left_rail)
    }

    /// Docks borderless, non-auto-hiding vertical navigation buttons directly inside the active left or right hardware safe-area strip, centered strictly within the clear vertical span after excluding signal icons and the camera punch hole.
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `ResolvedChromeLayout` - Frameless persistent left or right safe-rail layout plan.
    fn resolve(&self, metrics: &ShellViewportMetrics) -> ResolvedChromeLayout {
        let vp_w: f32 = metrics.get_viewport_width().max(CHROME_MIN_VIEWPORT_CLAMP);
        let vp_h: f32 = metrics.get_viewport_height().max(CHROME_MIN_VIEWPORT_CLAMP);
        let safe: SafeAreaInsets = metrics.get_safe_area();
        let top_raw: f32 = safe.get_top().max(0.0);
        let right_raw: f32 = safe.get_right().max(0.0);
        let bottom_raw: f32 = safe.get_bottom().max(0.0);
        let left_raw: f32 = safe.get_left().max(0.0);
        let is_right: bool = right_raw >= left_raw;
        let strip_w: f32 = if is_right { right_raw } else { left_raw };
        let show_dock: bool = metrics.get_has_bottom_nav() && !metrics.get_is_fullscreen();
        let dock_w: f32 = (strip_w - CHROME_SIDE_RAIL_INSET_PAD * 2.0)
            .clamp(CHROME_SIDE_RAIL_MIN_DOCK_W, CHROME_SIDE_RAIL_MAX_DOCK_W)
            .min((strip_w - 8.0).max(40.0));
        let optical_shift: f32 = if strip_w >= 76.0 {
            CHROME_SIDE_RAIL_OPTICAL_INSET
        } else {
            0.0
        };
        let dock_left: f32 = if is_right {
            let centered_left: f32 = vp_w - right_raw + (right_raw - dock_w) * 0.5;
            (centered_left - optical_shift).clamp(vp_w - right_raw + 4.0, vp_w - dock_w - 4.0)
        } else {
            let centered_left: f32 = (left_raw - dock_w) * 0.5;
            (centered_left + optical_shift).clamp(4.0, (left_raw - dock_w - 4.0).max(4.0))
        };
        let (usable_top, usable_bottom): (f32, f32) =
            compute_side_rail_vertical_bounds(vp_w, vp_h, safe, is_right);
        let usable_span: f32 = (usable_bottom - usable_top).max(160.0);
        let max_dock_h: f32 = if vp_w > vp_h && vp_h < 600.0 {
            CHROME_SIDE_RAIL_LANDSCAPE_MAX_DOCK_H
        } else {
            CHROME_SIDE_RAIL_MAX_DOCK_H
        };
        let icon_only: bool = usable_span < CHROME_VERTICAL_RAIL_LABEL_MIN_HEIGHT || dock_w < 50.0;
        let target_h: f32 = if icon_only {
            usable_span.clamp(160.0, 224.0)
        } else {
            usable_span.clamp(CHROME_VERTICAL_RAIL_LABEL_MIN_HEIGHT, max_dock_h)
        };
        let dock_h: f32 = target_h.min(usable_span);
        let raw_top: f32 = usable_top + (usable_span - dock_h) * 0.5;
        let max_safe_top: f32 =
            (vp_h - CHROME_SIDE_RAIL_BOTTOM_CORNER_GAP - dock_h).max(usable_top);
        let dock_top: f32 = raw_top.clamp(usable_top, max_safe_top);
        let stage_left: f32 = if metrics.get_is_fullscreen() {
            0.0
        } else {
            left_raw
        };
        let stage_right: f32 = if metrics.get_is_fullscreen() {
            0.0
        } else {
            right_raw
        };
        let corner_h: f32 = resolve_curved_corner_header_inset(vp_w, vp_h, safe);
        let (mobile_header_height, mobile_header_padding): (f32, Edges) =
            resolve_standard_mobile_header(top_raw, left_raw, right_raw, corner_h);
        let posture: ChromePosture = if is_right {
            ChromePosture::SideSafeRailRight
        } else {
            ChromePosture::SideSafeRailLeft
        };
        let dock_placement: NavDockPlacement = if !show_dock {
            NavDockPlacement::Hidden
        } else if is_right {
            NavDockPlacement::RightSafeRail
        } else {
            NavDockPlacement::LeftSafeRail
        };
        ResolvedChromeLayout {
            posture,
            dock_placement,
            dock_orientation: NavDockOrientation::Vertical,
            dock_icon_only: icon_only,
            dock_frameless: true,
            dock_allow_auto_hide: false,
            top_bar_in_safe_area: false,
            top_bar_allow_auto_hide: true,
            show_dock,
            dock_left,
            dock_top: Some(dock_top),
            dock_bottom: None,
            dock_width: dock_w,
            dock_height: dock_h,
            dock_hide_dx: 0.0,
            dock_hide_dy: 0.0,
            mobile_header_top_inset: top_raw,
            mobile_header_height,
            mobile_header_padding,
            route_stage_insets: Edges::new(0.0, stage_right, 0.0, stage_left),
            content_extra_bottom_pad: bottom_raw,
            top_divider_left_inset: left_raw,
            top_divider_right_inset: right_raw,
        }
    }
}

/// Tall top safe-area header strategy (e.g. iPhone Duo unfolded portrait / rotated top-safe) hosting the page top bar inside the top safe strip while keeping tab navigation docked at the bottom.
impl ChromeLayoutStrategy for TopSafeHeaderStrategy {
    /// Matches wide viewports (`>= 440dp`) with a tall top safe-area strip (`>= 72dp`) and no right safe-area rail.
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `bool` - `true` when the page top bar should dock inside the top safe area avoiding top-right signals while tab navigation sits at the bottom.
    fn matches(&self, metrics: &ShellViewportMetrics) -> bool {
        let vp_w: f32 = metrics.get_viewport_width().max(CHROME_MIN_VIEWPORT_CLAMP);
        let safe: SafeAreaInsets = metrics.get_safe_area();
        safe.get_top() >= CHROME_TOP_SAFE_HEADER_MIN_HEIGHT
            && vp_w >= CHROME_TOP_SAFE_HEADER_MIN_WIDTH
    }

    /// Places the page top bar inside the tall top safe area (avoiding the top-right hardware safe/signal zone and occupying only the remaining left region), disables top-bar auto-hide, and places `EuvBottomNav` cleanly at the bottom.
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `ResolvedChromeLayout` - Top-safe header with bottom navigation dock layout plan.
    fn resolve(&self, metrics: &ShellViewportMetrics) -> ResolvedChromeLayout {
        let vp_w: f32 = metrics.get_viewport_width().max(CHROME_MIN_VIEWPORT_CLAMP);
        let safe: SafeAreaInsets = metrics.get_safe_area();
        let top_raw: f32 = safe.get_top().max(0.0);
        let right_raw: f32 = safe.get_right().max(0.0);
        let left_raw: f32 = safe.get_left().max(0.0);
        let show_dock: bool = metrics.get_has_bottom_nav() && !metrics.get_is_fullscreen();
        let dock_box: BottomFloatingDockBox = resolve_bottom_floating_dock_box(metrics, show_dock);
        let (mobile_header_height, mobile_header_padding): (f32, Edges) =
            resolve_top_safe_header(vp_w, top_raw, left_raw, right_raw);
        let stage_left: f32 = if metrics.get_is_fullscreen() {
            0.0
        } else {
            left_raw
        };
        let stage_right: f32 = if metrics.get_is_fullscreen() {
            0.0
        } else {
            right_raw
        };
        ResolvedChromeLayout {
            posture: ChromePosture::TopSafeHeader,
            dock_placement: if show_dock {
                NavDockPlacement::BottomHorizontal
            } else {
                NavDockPlacement::Hidden
            },
            dock_orientation: NavDockOrientation::Horizontal,
            dock_icon_only: false,
            dock_frameless: false,
            dock_allow_auto_hide: true,
            top_bar_in_safe_area: true,
            top_bar_allow_auto_hide: false,
            show_dock,
            dock_left: dock_box.get_dock_left(),
            dock_top: None,
            dock_bottom: Some(dock_box.get_dock_bottom()),
            dock_width: dock_box.get_dock_width(),
            dock_height: dock_box.get_dock_height(),
            dock_hide_dx: 0.0,
            dock_hide_dy: dock_box.get_dock_height() + dock_box.get_dock_bottom() + 12.0,
            mobile_header_top_inset: top_raw,
            mobile_header_height,
            mobile_header_padding,
            route_stage_insets: Edges::new(0.0, stage_right, 0.0, stage_left),
            content_extra_bottom_pad: dock_box.get_content_extra_bottom_pad(),
            top_divider_left_inset: left_raw,
            top_divider_right_inset: right_raw,
        }
    }
}

/// Standard mobile / tablet portrait / MiniApp / QuickApp / left-safe landscape strategy preserving the canonical floating bottom dock.
impl ChromeLayoutStrategy for BottomFloatingDockStrategy {
    /// Catch-all fallback strategy for standard mobile viewports and postures without a right safe-area rail.
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `bool` - Always `true`.
    fn matches(&self, _metrics: &ShellViewportMetrics) -> bool {
        true
    }

    /// Resolves standard mobile layout with floating horizontal bottom dock and safe-area-clipped route stage.
    ///
    /// # Arguments
    ///
    /// - `&Self` - Strategy instance.
    /// - `&ShellViewportMetrics` - Live viewport snapshot.
    ///
    /// # Returns
    ///
    /// - `ResolvedChromeLayout` - Standard mobile layout plan.
    fn resolve(&self, metrics: &ShellViewportMetrics) -> ResolvedChromeLayout {
        let vp_w: f32 = metrics.get_viewport_width().max(CHROME_MIN_VIEWPORT_CLAMP);
        let vp_h: f32 = metrics.get_viewport_height().max(CHROME_MIN_VIEWPORT_CLAMP);
        let safe: SafeAreaInsets = metrics.get_safe_area();
        let top_raw: f32 = safe.get_top().max(0.0);
        let right_raw: f32 = safe.get_right().max(0.0);
        let left_raw: f32 = safe.get_left().max(0.0);
        let show_dock: bool = metrics.get_has_bottom_nav() && !metrics.get_is_fullscreen();
        let dock_box: BottomFloatingDockBox = resolve_bottom_floating_dock_box(metrics, show_dock);
        let corner_h: f32 = resolve_curved_corner_header_inset(vp_w, vp_h, safe);
        let (mobile_header_height, mobile_header_padding): (f32, Edges) =
            resolve_standard_mobile_header(top_raw, left_raw, right_raw, corner_h);
        ResolvedChromeLayout {
            posture: ChromePosture::StandardMobile,
            dock_placement: if show_dock {
                NavDockPlacement::BottomHorizontal
            } else {
                NavDockPlacement::Hidden
            },
            dock_orientation: NavDockOrientation::Horizontal,
            dock_icon_only: false,
            dock_frameless: false,
            dock_allow_auto_hide: true,
            top_bar_in_safe_area: false,
            top_bar_allow_auto_hide: true,
            show_dock,
            dock_left: dock_box.get_dock_left(),
            dock_top: None,
            dock_bottom: Some(dock_box.get_dock_bottom()),
            dock_width: dock_box.get_dock_width(),
            dock_height: dock_box.get_dock_height(),
            dock_hide_dx: 0.0,
            dock_hide_dy: dock_box.get_dock_height() + dock_box.get_dock_bottom() + 12.0,
            mobile_header_top_inset: top_raw,
            mobile_header_height,
            mobile_header_padding,
            route_stage_insets: Edges::all(0.0),
            content_extra_bottom_pad: dock_box.get_content_extra_bottom_pad(),
            top_divider_left_inset: left_raw,
            top_divider_right_inset: right_raw,
        }
    }
}