Add a standard AdwAboutDialog wired to app metadata, plus the AppStream metainfo file it should share data with. Use when adding an About entry, release notes, credits, or preparing app metadata.
日本語の概要は準備中です。原文の説明を表示しています。
Add a Keyboard Shortcuts help window (Ctrl+question) listing all app accelerators, plus the standard GNOME accelerator set. Use when wiring keyboard shortcuts or the Keyboard Shortcuts menu item.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
The "Keyboard Shortcuts" item in the primary menu (accelerator
Ctrl+? / <primary>question) opens a searchable shortcuts overview.
using Gtk 4.0;
using Adw 1;
Adw.ShortcutsDialog shortcuts_dialog {
Adw.ShortcutsSection {
title: _("General");
Adw.ShortcutsItem { title: _("Show Shortcuts"); accelerator: "<primary>question"; }
Adw.ShortcutsItem { title: _("Preferences"); accelerator: "<primary>comma"; }
Adw.ShortcutsItem { title: _("Quit"); accelerator: "<primary>q"; }
}
Adw.ShortcutsSection {
title: _("Documents");
Adw.ShortcutsItem { title: _("New Document"); accelerator: "<primary>n"; }
Adw.ShortcutsItem { title: _("Save"); accelerator: "<primary>s"; }
}
}
Older libadwaita: use Gtk.ShortcutsWindow (same structure with
GtkShortcutsSection/Group/Shortcut; note it is deprecated in GTK 4.18+).
self.create_action('shortcuts', self._on_shortcuts, ['<primary>question'])
def _on_shortcuts(self, action, param):
builder = Gtk.Builder.new_from_resource('/org/example/MyApp/shortcuts.ui')
builder.get_object('shortcuts_dialog').present(self.props.active_window)
| Accelerator | Action | Accelerator | Action | |
|---|---|---|---|---|
<primary>n | New window/doc | <primary>f | Find | |
<primary>o | Open | <primary>h | Find and replace | |
<primary>s | Save | <primary>z / <primary><shift>z | Undo / Redo | |
<primary><shift>s | Save as | <primary>x/c/v | Cut/Copy/Paste | |
<primary>p | <primary>a | Select all | ||
<primary>w | Close tab/window | <primary>plus/minus/0 | Zoom in/out/reset | |
<primary>q | Quit | F1 | Help | |
<primary>comma | Preferences | F9 | Toggle sidebar | |
<primary>question | Shortcuts | F10 | Open primary menu | |
<primary>t | New tab | F11 | Fullscreen | |
<primary>Page_Down/Page_Up | Next/previous tab | Escape | Cancel/close |
Rules:
use-underline: true + _ in labels.Full table: reference/hig/keyboard.md.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Add a standard AdwAboutDialog wired to app metadata, plus the AppStream metainfo file it should share data with. Use when adding an About entry, release notes, credits, or preparing app metadata.
日本語の概要は準備中です。原文の説明を表示しています。
Make a GTK4/libadwaita app accessible — accessible labels and roles, tooltips on icon-only buttons, keyboard navigation, contrast, and testing with Orca/Accerciser. Use when fixing a11y issues or running the accessibility category of a HIG audit.
日本語の概要は準備中です。原文の説明を表示しています。
Responsive GNOME layouts: AdwBreakpoint conditions, BreakpointBin, MultiLayoutView, BottomSheet, narrow/wide layout swaps. Use when making an app work on phones or narrow windows.
日本語の概要は準備中です。原文の説明を表示しています。
Onboarding tour with AdwCarousel and navigation dots, skippable welcome screens. Use when adding a first-run tour or feature showcase to a GNOME app.
日本語の概要は準備中です。原文の説明を表示しています。
Implement GNOME's 4-tier destructive-action pattern: undo toasts instead of confirmation dialogs, AdwAlertDialog for irreversible actions. Use when adding delete, remove, clear, or other destructive actions.
日本語の概要は準備中です。原文の説明を表示しています。
Loading, empty, and error states with AdwStatusPage and AdwSpinner — placeholder icons, titles, action buttons. Use when an app view can be empty, loading, or failed.
日本語の概要は準備中です。原文の説明を表示しています。