Re: How to change colors fro button and increase font size for button text
- From: Emmanuele Bassi <bassi-e libero it>
- To: gtk-perl mailing list <gtk-perl-list gnome org>
- Subject: Re: How to change colors fro button and increase font size for button text
- Date: Tue, 30 Sep 2003 19:11:09 +0200
* Chas Owens <alas widomaker com>:
and it worked. You can create the label first and add it latter like this:
$label = Gtk2::Label->new;
$label->set_markup("This is <span size='xx-large'>xx-large</span>");
$button = Gtk2::Button->new;
$button->add($label);
Since TIMTOWTDI also in GTK, you could use PangoFontDescription on the
Gtk2::Label, like this:
my $fd = Gtk2::Pango::FontDescription->new;
# set bold face, 14pt size.
$fd->set_weight('bold');
$fd->set_size(14 * Gtk2::Pango->scale);
my $label = Gtk2::Label->new('Some Text in Bold');
$label->modify_font($fd);
Your considerations about changing colors still apply: that is a theme
issue, and the programmer should not tamper with it.
Regards,
Emmanuele.
--
Emmanuele Bassi (Zefram) [ http://digilander.libero.it/ebassi/blog ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738 08BD 8ECC DB8F A432 0FF4
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]