-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Add header bar and use libadwaita"
This reverts commit 5bff26d.
- Loading branch information
Showing
9 changed files
with
77 additions
and
135 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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// GLib, GObject, and Gio are required by GJS so no version is necessary. | ||
// https://gitlab.gnome.org/GNOME/gjs/-/blob/master/doc/ESModules.md | ||
// import "gi://Gio"; | ||
// import "gi://GLib"; | ||
import Gtk from "gi://Gtk?version=4.0"; | ||
import "gi://Gdk?version=4.0"; | ||
|
||
Gtk.init(); |
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
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
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,95 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<interface> | ||
<object class="AdwApplicationWindow" id="window"> | ||
<property name="title">Junction</property> | ||
<object class="GtkApplicationWindow" id="window"> | ||
<property name="resizable">False</property> | ||
<property name="decorated">True</property> | ||
<property name="content"> | ||
<property name="decorated">False</property> | ||
<child> | ||
<object class="GtkBox"> | ||
<property name="orientation">vertical</property> | ||
<child> | ||
<object class="AdwHeaderBar" id="headerbar"> | ||
<property name="decoration-layout">:close</property> | ||
<child type="start"> | ||
<object class="GtkMenuButton"> | ||
<property name="menu-model">menu_app</property> | ||
<property name="icon-name">open-menu-symbolic</property> | ||
</object> | ||
</child> | ||
<child type="title"> | ||
<object class="GtkEntry" id="entry"> | ||
<property name="input-purpose">url</property> | ||
<property name="xalign">0.5</property> | ||
<property name="hexpand">true</property> | ||
<!-- TODO: file a bug - does not seem to be working --> | ||
<property name="primary-icon-activatable">false</property> | ||
<!-- TRANSLATORS: You will find this string in https://gitlab.gnome.org/search?search=This+site+has+no+security&project_id=1906 --> | ||
<property | ||
name="primary-icon-tooltip-text" | ||
translatable="yes" | ||
>This site has no security. An attacker could see any information you send, or control the content that you see.</property> | ||
<property | ||
name="secondary-icon-name" | ||
>edit-copy-symbolic</property> | ||
<property | ||
name="secondary-icon-tooltip-text" | ||
translatable="yes" | ||
>Copy to Clipboard</property> | ||
<style> | ||
<class name="uri" /> | ||
</style> | ||
</object> | ||
</child> | ||
<object class="GtkBox" id="list"> | ||
<style> | ||
<class name="flat" /> | ||
<class name="list" /> | ||
</style> | ||
<property name="orientation">horizontal</property> | ||
<property name="homogeneous">True</property> | ||
<property name="spacing">18</property> | ||
</object> | ||
</child> | ||
<child> | ||
<object class="GtkBox"> | ||
<property name="orientation">vertical</property> | ||
<child> | ||
<object class="GtkBox" id="list"> | ||
<style> | ||
<class name="list" /> | ||
</style> | ||
<property name="orientation">horizontal</property> | ||
<property name="homogeneous">True</property> | ||
<property name="spacing">18</property> | ||
</object> | ||
</child> | ||
<object class="GtkEntry" id="entry"> | ||
<property name="input-purpose">url</property> | ||
<property name="xalign">0.5</property> | ||
<!-- TODO: file a bug - does not seem to be working --> | ||
<property name="primary-icon-activatable">False</property> | ||
<!-- TRANSLATORS: You will find this string in https://gitlab.gnome.org/search?search=This+site+has+no+security&project_id=1906 --> | ||
<property | ||
name="primary-icon-tooltip-text" | ||
translatable="yes" | ||
>This site has no security. An attacker could see any information you send, or control the content that you see.</property> | ||
<property name="secondary-icon-name">edit-copy-symbolic</property> | ||
<property | ||
name="secondary-icon-tooltip-text" | ||
translatable="yes" | ||
>Copy to Clipboard</property> | ||
<style> | ||
<class name="uri" /> | ||
</style> | ||
</object> | ||
</child> | ||
</object> | ||
</property> | ||
</child> | ||
<style> | ||
<class name="main" /> | ||
</style> | ||
</object> | ||
|
||
<menu id="menu_app"> | ||
<section> | ||
<item> | ||
<attribute | ||
name="label" | ||
translatable="yes" | ||
>Keyboard Shortcuts</attribute> | ||
<attribute name="action">app.shortcuts</attribute> | ||
</item> | ||
<item> | ||
<attribute name="label" translatable="yes">About Junction</attribute> | ||
<attribute name="action">app.about</attribute> | ||
</item> | ||
</section> | ||
</menu> | ||
<menu id="menu_remember"> | ||
<section> | ||
<item> | ||
<attribute name="label">github.com</attribute> | ||
</item> | ||
<item> | ||
<attribute name="label">github.com/sonnyp</attribute> | ||
</item> | ||
</section> | ||
</menu> | ||
</interface> |