diff --git a/lib/Exd/Gui/Instance.pm b/lib/Exd/Gui/Instance.pm index d55ede2..9c9050a 100644 --- a/lib/Exd/Gui/Instance.pm +++ b/lib/Exd/Gui/Instance.pm @@ -300,7 +300,7 @@ sub _show_paywall( $self, $overlay ) { my $inner_paywall_box = Gtk4::Box->new( 'vertical', 10 ); my $title = Gtk4::Label->new; $title->set_markup('This program is not activated'); - my $activate = Gtk4::Button->new_with_label('Pay and activate'); + my $activate = Gtk4::Button->new_with_label('Activate'); my $about = Gtk4::Button->new_with_label('More about the program'); my $remind_me_later = Gtk4::Button->new_with_label('Remind me later'); $about->signal_connect( @@ -708,28 +708,36 @@ sub _on_receive_price($self) { return; } my $box = Gtk4::Box->new( 'horizontal', 10 ); - $box->set_halign('center'); - my $discount_label = Gtk4::Label->new(undef); - $discount_label->set_markup("-$discount%"); - $starting_price =~ s/^(.)$/0$1/; - $starting_price =~ s/(..)$/.$1/; - $starting_price =~ s/^\./0./; - $price =~ s/^(.)$/0$1/; - $price =~ s/(..)$/.$1/; - $price =~ s/^\./0./; - my $starting_price_label = Gtk4::Label->new; - $starting_price_label->set_markup("$starting_price€"); - $discount_label->add_css_class('discount'); + { + $box->set_halign('center'); + $starting_price =~ s/^(.)$/0$1/; + $starting_price =~ s/(..)$/.$1/; + $starting_price =~ s/^\./0./; + if ($price < 2) { + my $label_free = Gtk4::Label->new(undef); + $label_free->set_markup("Free now forever for limited time! Normal price: $starting_price"); + $box->append($label_free); + next; + } + my $discount_label = Gtk4::Label->new(undef); + $discount_label->set_markup("-$discount%"); + $price =~ s/^(.)$/0$1/; + $price =~ s/(..)$/.$1/; + $price =~ s/^\./0./; + my $starting_price_label = Gtk4::Label->new; + $starting_price_label->set_markup("$starting_price€"); + $discount_label->add_css_class('discount'); - if ( !defined $price ) { - return; - } - my $price_label = Gtk4::Label->new(undef); - $price_label->set_markup("$price€"); - $box->append($price_label); - if ( defined $discount && $discount > 2 ) { - $box->append($starting_price_label); - $box->append($discount_label); + if ( !defined $price ) { + return; + } + my $price_label = Gtk4::Label->new(undef); + $price_label->set_markup("$price€"); + $box->append($price_label); + if ( defined $discount && $discount > 2 ) { + $box->append($starting_price_label); + $box->append($discount_label); + } } $window_price_discount->set_child($box); } diff --git a/me.sergiotarxz.Exd.metainfo.xml b/me.sergiotarxz.Exd.metainfo.xml index 4a24fb2..7982596 100644 --- a/me.sergiotarxz.Exd.metainfo.xml +++ b/me.sergiotarxz.Exd.metainfo.xml @@ -30,6 +30,11 @@ + + +

Adding the option to have free giveaways of the app.

+
+

The required bluez API for Cat-Printers is not warranted to be there