File: BasicNavigationPage.blp

package info (click to toggle)
deja-dup 49.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 9,332 kB
  • sloc: python: 1,218; sh: 161; xml: 48; makefile: 15
file content (38 lines) | stat: -rw-r--r-- 737 bytes parent folder | download
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
/* -*- Mode: Blueprint; indent-tabs-mode: nil; tab-width: 2 -*-
 *
 * SPDX-License-Identifier: CC-BY-SA-4.0
 * SPDX-FileCopyrightText: Michael Terry
 */

using Gtk 4.0;
using Adw 1;

template $BasicNavigationPage: Adw.NavigationPage {
  child: Adw.ToolbarView {
    [top]
    Adw.HeaderBar {
      [end]
      $PrimaryMenuButton {}
    }

    content: Box {
      orientation: vertical;

      $OperationBanner {}

      ScrolledWindow {
        vexpand: true;

        child: Adw.Clamp {
          child: bind template.content;
          margin-bottom: 12;
          margin-end: 12;
          margin-start: 12;
          margin-top: 12;
          maximum-size: 500;
          tightening-threshold: 400;
        };
      }
    };
  };
}