Skip to content

Commit

Permalink
Added edit icon, currently disabled
Browse files Browse the repository at this point in the history
Issue #16
  • Loading branch information
blackjackshellac committed Apr 26, 2021
1 parent db119ba commit a05baf9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion clippie@blackjackshellac.ca/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ class ClipMenuItem extends PopupMenu.PopupMenuItem {
this.label.set_text(clip.label_text());

box.add_child(new ClipItemControlButton(clip, clip.lock ? 'lock' : 'unlock'));
//box.add_child(new ClipItemControlButton(clip, 'edit'));
box.add_child(this.label);
box.add_child(new ClipItemControlButton(clip, 'delete'));

Expand Down Expand Up @@ -235,7 +236,8 @@ class ClipMenuItem extends PopupMenu.PopupMenuItem {
var CICBTypes = {
'lock': { icon: 'changes-prevent-symbolic', style: 'clippie-menu-lock-icon' },
'unlock': { icon: 'changes-allow-symbolic', style: 'clippie-menu-lock-icon' },
'delete' : { icon: 'edit-delete-symbolic' , style: 'clippie-menu-delete-icon' }
'delete' : { icon: 'edit-delete-symbolic' , style: 'clippie-menu-delete-icon' },
'edit' : { icon: 'document-edit-symbolic', style: 'clippie-menu-edit-icon' }
}

var ClipItemControlButton = GObject.registerClass(
Expand Down Expand Up @@ -264,6 +266,9 @@ class ClipItemControlButton extends St.Button {

connect_type() {
switch(this.type) {
case 'edit':
// TODO
break;
case "lock":
case "unlock":
this.connect('clicked', (cb) => {
Expand Down
6 changes: 6 additions & 0 deletions clippie@blackjackshellac.ca/stylesheet.css
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@
icon-size: 1em;
}

.clippie-menu-edit-icon {
border-left: 0px;
border-right: 5px;
icon-size: 1em;
}

.clippie-menu-content {
font-weight: normal;
font-size: smaller;
Expand Down

0 comments on commit a05baf9

Please sign in to comment.