// SPDX-FileCopyrightText: 2024 Luca Weiss // SPDX-License-Identifier: GPL-3.0-only using Gtk 4.0; using Adw 1; template $LpaGtkESimDetail : Gtk.Box { Adw.ToastOverlay overlay { hexpand: true; vexpand: true; Gtk.ScrolledWindow { hexpand: true; vexpand: true; Gtk.Box { orientation: vertical; spacing: 12; margin-top: 2; margin-start: 12; margin-end: 12; Adw.PreferencesGroup { Adw.EntryRow name_row { title: _("Name"); text: bind template.name; show-apply-button: true; [suffix] Button name_reset_button { styles [ "flat" ] icon-name: "edit-undo-symbolic"; visible: bind template.name_modified; valign: center; } } } Adw.PreferencesGroup { Adw.ActionRow { styles [ "property" ] title: _("Service Provider Name"); subtitle: bind template.service_provider_name; [suffix] Button spn_copy_button { styles [ "flat" ] icon-name: "edit-copy-symbolic"; valign: center; } } Adw.ActionRow { styles [ "property" ] title: _("ICCID"); subtitle: bind template.iccid; [suffix] Button iccid_copy_button { styles [ "flat" ] icon-name: "edit-copy-symbolic"; valign: center; } } Adw.ActionRow { styles [ "property" ] title: _("ISD-P AID"); subtitle: bind template.isdp_aid; [suffix] Button isdp_aid_copy_button { styles [ "flat" ] icon-name: "edit-copy-symbolic"; valign: center; } } } ListBox { selection-mode: none; styles [ "boxed-list-separate" ] Adw.ButtonRow enable_button { title: _("Enable"); visible: bind template.state_enabled; } Adw.ButtonRow disable_button { title: _("Disable"); visible: bind template.state_enabled inverted; } Adw.ButtonRow delete_button { styles [ "destructive-action", ] title: _("Delete"); } } } } } }