Re: Toolbar text size in "both" mode.
- From: Alexandre Rostovtsev <tetromino gentoo org>
- To: desktop-devel-list gnome org
- Subject: Re: Toolbar text size in "both" mode.
- Date: Mon, 2 Apr 2012 18:56:54 -0400
On Sun, Apr 1, 2012 at 6:39 AM, Denis Cheremisov <denis cheremisov net> wrote:
> Hello, I used "both" mode for toolbar, with icons and text below.
> With gtk-2.0 I used the following in ~/.gtkrc-2.0:
>
> style "smaller-text" {
> font_name = "8"
> }
>
> widget_class "*ToolButton*" style "smaller-text"
> widget_class "*StatusBar*" style "smaller-text"
> widget_class "*ToolMenuButton*" style "smaller-text"
>
> See the attachments how gtk2 toolbar looks and how does gtk3.
>
> How can I replicate this behavior in gtk 3?
$ gsettings set org.gnome.desktop.interface toolbar-style "both"
$ cat ~/.config/gtk-3.0/gtk.css
GtkToolItem GtkLabel {
font: 8;
}
/* Reset font size for item labels in GtkMenuToolButton's popup menu */
GtkMenuToolButton GtkMenu GtkLabel {
font: 10;
}
For an introduction to css theming in gtk3, see
http://developer.gnome.org/gtk3/stable/GtkCssProvider.html and
http://gnomejournal.org/article/107/styling-gtk-with-css
Hope this helps.
-Alexandre.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]