fix missing edit icon on offers view

This commit is contained in:
woodser 2025-03-26 09:42:00 -04:00 committed by GitHub
parent 207ff5416c
commit 29e6540234
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View File

@ -39,10 +39,6 @@
-fx-image: url("../../images/remove.png");
}
#image-edit {
-fx-image: url("../../images/edit.png");
}
#image-buy-white {
-fx-image: url("../../images/buy_white.png");
}

View File

@ -20,6 +20,7 @@ package haveno.desktop.main.offer.offerbook;
import de.jensd.fx.fontawesome.AwesomeDude;
import de.jensd.fx.fontawesome.AwesomeIcon;
import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIcon;
import de.jensd.fx.glyphs.materialdesignicons.MaterialDesignIconView;
import haveno.common.UserThread;
import haveno.common.app.DevEnv;
import haveno.common.util.Tuple3;
@ -1082,7 +1083,7 @@ abstract public class OfferBookView<R extends GridPane, M extends OfferBookViewM
button.setPrefWidth(10000);
}
final ImageView iconView2 = new ImageView();
MaterialDesignIconView iconView2 = new MaterialDesignIconView(MaterialDesignIcon.PENCIL);
final AutoTooltipButton button2 = new AutoTooltipButton();
{
@ -1135,7 +1136,7 @@ abstract public class OfferBookView<R extends GridPane, M extends OfferBookViewM
title = Res.get("shared.remove");
button.setOnAction(e -> onRemoveOpenOffer(offer));
iconView2.setId("image-edit");
iconView2.setSize("16px");
button2.updateText(Res.get("shared.edit"));
button2.setOnAction(e -> onEditOpenOffer(offer));
button2.setManaged(true);