-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#38 - refactor structure to display initial details window, add styli…
…ng, and add empty click handler for items in the key list
- Loading branch information
1 parent
972323e
commit 0b9329a
Showing
11 changed files
with
246 additions
and
42 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 |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<interface> | ||
<object class="GtkBox" id="KeyDetails"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<property name="orientation">vertical</property> | ||
<property name="baseline-position">top</property> | ||
<child> | ||
<object class="GtkLabel" id="keyDetailsHeader"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<property name="halign">GTK_ALIGN_CENTER</property> | ||
<property name="label" translatable="yes">Key Details</property> | ||
<style> | ||
<class name="header"/> | ||
</style> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">True</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkBox" id="keyDetailsPublicKeyRow"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<child> | ||
<object class="GtkLabel" id="publicKeyPathLabel"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<property name="label" translatable="yes">Public key:</property> | ||
<style> | ||
<class name="pathLabel"/> | ||
</style> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">True</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkLabel" id="publicKeyPath"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<property name="halign">start</property> | ||
<property name="label" translatable="yes">~/.ssh/id_rsa.pub</property> | ||
<style> | ||
<class name="path"/> | ||
</style> | ||
</object> | ||
<packing> | ||
<property name="expand">True</property> | ||
<property name="fill">True</property> | ||
<property name="position">1</property> | ||
</packing> | ||
</child> | ||
<style> | ||
<class name="publicKey"/> | ||
</style> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">True</property> | ||
<property name="position">1</property> | ||
</packing> | ||
</child> | ||
<style> | ||
<class name="keyDetail"/> | ||
</style> | ||
</object> | ||
</interface> |
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,26 +1,30 @@ | ||
<interface> | ||
<object class="GtkBox" id="KeyListEntry"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<property name="orientation">vertical</property> | ||
<property name="baseline-position">top</property> | ||
<object class="GtkButton" id="KeyListEntry"> | ||
<child> | ||
<object class="GtkLabel" id="keyListEntryLabel"> | ||
<object class="GtkBox" id="KeyListEntryBox"> | ||
<property name="visible">True</property> | ||
<property name="halign">GTK_ALIGN_START</property> | ||
<property name="can-focus">False</property> | ||
<property name="orientation">vertical</property> | ||
<property name="baseline-position">top</property> | ||
<child> | ||
<object class="GtkLabel" id="keyListEntryLabel"> | ||
<property name="visible">True</property> | ||
<property name="halign">GTK_ALIGN_START</property> | ||
<property name="can-focus">False</property> | ||
<style> | ||
<class name="keyEntryPath"/> | ||
</style> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">True</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<style> | ||
<class name="keyEntryPath"/> | ||
<class name="keyEntry"/> | ||
</style> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">True</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<style> | ||
<class name="keyEntry"/> | ||
</style> | ||
</object> | ||
</interface> |
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,5 @@ | ||
@define-color default-bg blue; | ||
|
||
@define-color keylist-entry-public-bg red; | ||
@define-color keylist-entry-private-bg green; | ||
@define-color keylist-entry-pair-bg yellow; |
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 @@ | ||
package gui | ||
|
||
import "github.com/coyim/gotk3adapter/gtki" | ||
|
||
func (u *ui) populateKeyDetails(box gtki.Box) { | ||
b, _ := buildObjectFrom[gtki.Box](u, "KeyDetails") | ||
box.Add(b) | ||
} |
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 @@ | ||
package gui |
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