This repository has been archived by the owner on Jun 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Port no_plugin_window to PreferencesWindow
- Loading branch information
Showing
2 changed files
with
11 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,19 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template GradienceNoPluginPrefWindow: Adw.Window { | ||
template GradienceNoPluginPrefWindow : Adw.PreferencesWindow { | ||
title: _("Plugin Preferences"); | ||
modal: true; | ||
default-width: 400; | ||
search-enabled: false; | ||
default-height: 400; | ||
resizable: true; | ||
deletable: true; | ||
|
||
ShortcutController { | ||
Shortcut { | ||
trigger: "Escape"; | ||
action: "action(window.close)"; | ||
} | ||
} | ||
|
||
Adw.Leaflet leaflet { | ||
can-unfold: false; | ||
|
||
Gtk.Box main_view { | ||
orientation: vertical; | ||
|
||
Adw.HeaderBar titlebar { | ||
styles ["flat"] | ||
} | ||
default-width: 400; | ||
modal: true; | ||
|
||
Adw.StatusPage { | ||
name: "empty"; | ||
icon-name: "action-unavailable-symbolic"; | ||
title: _("No Preferences"); | ||
description: _("This plugin doesn't have any preferences."); | ||
} | ||
Adw.PreferencesPage { | ||
Adw.StatusPage { | ||
name: "empty"; | ||
icon-name: "action-unavailable-symbolic"; | ||
title: _("No Preferences"); | ||
description: _("This plugin doesn't have any preferences."); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters