Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/lainsce/colorway
Browse files Browse the repository at this point in the history
  • Loading branch information
lainsce committed Jan 29, 2024
2 parents 5233bd4 + ff125b9 commit 6bf4ce9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/window.vala
Original file line number Diff line number Diff line change
Expand Up @@ -518,18 +518,16 @@ namespace Colorway {
string export_txt = "";

export_txt += box.hex + "\n";

switch (color_rule_dropdown.get_selected ()) {
case 2:
export_txt += sbox.hex + "\n";
break;
default:
export_txt += tbox.hex + "\n";
break;
export_txt += sbox.hex + "\n";

uint selected = color_rule_dropdown.get_selected ();
if (selected == 2) {
export_txt += tbox.hex + "\n";
} else if (selected >= 3) {
export_txt += tbox.hex + "\n";
export_txt += ubox.hex + "\n";
}

export_txt += ubox.hex + "\n";

// Put this ext_txt in clipboard
var display = Gdk.Display.get_default ();
unowned var clipboard = display.get_clipboard ();
Expand Down

0 comments on commit 6bf4ce9

Please sign in to comment.