Xfce Forum

Sub domains
 

You are not logged in.

#1 2012-08-25 07:03:55

ewenss
Member
Registered: 2012-08-25
Posts: 3

Make Font Bold in Applications and Logout Menu

On the XFCE Panel, how does one make the font bold? I mean, specifically, as shown in the screenshot below - only on the panel, not system-wide or in the menus.

screenshot0825201201592.png

Direct link screenshot: http://img834.imageshack.us/img834/8442 … 201592.png

A relevant portion of my theme's gtkrc is:

____________________________________________________________________
# XFCE panel theming.
widget "*Xfce*Panel*" style "panel"
class "*Xfce*Panel*" style "panel"

style "bold-panel-item" {
    font_name = "Sans Bold"

    engine "murrine"
    {
        roundness = 2
    }
}

widget "*Panel*MenuBar*" style "bold-panel-item"
widget "*gimmie*" style "bold-panel-item"
widget "*clock-applet-button*" style "bold-panel-item"
____________________________________________________________________

While running xfwm4 from terminal, the following theme errors occur:

____________________________________________________________________
gtkrc:381: error: invalid string constant "bold-panel-item", expected valid string constant
gtkrc:381: error: invalid string constant "bold-panel-item", expected valid string constant
gtkrc:381: error: invalid string constant "bold-panel-item", expected valid string constant
gtkrc:381: error: invalid string constant "bold-panel-item", expected valid string constant
gtkrc:378: error: invalid string constant "bold-panel-item", expected valid string constant
gtkrc:378: error: invalid string constant "bold-panel-item", expected valid string constant
gtkrc:381: error: invalid string constant "bold-panel-item", expected valid string constant
gtkrc:379: error: invalid string constant "bold-panel-menu", expected valid string constant
____________________________________________________________________

I've tried fixing those by tweaking my code with some code from a 2010 theme:

____________________________________________________________________
# The following lines make panel-menu-applet and gimmie applet's text bold.
style "bold-panel-menu"
{
#font_name = "Bold"
}

widget "*Panel*MenuBar*" style "bold-panel-menu" 
widget "*gimmie*" style "bold-panel-menu"
____________________________________________________________________

That breaks my theme.

The following code makes the font bold both on the Applications Menu AND on Windows Buttons (which I do not want - I want it bold only on the Applications Menu):

____________________________________________________________________
style "panel"
{
  font_name = "Droid Sans Bold 11"   ## change to whatever you wish
}
widget "*Xfce*Panel*" style "panel"
____________________________________________________________________

Any insight would be appreciated!

Last edited by ewenss (2012-08-25 07:48:22)

Offline

#2 2014-01-30 22:35:30

herbie643
Member
Registered: 2013-04-05
Posts: 42

Re: Make Font Bold in Applications and Logout Menu

I opened up my panel.rc and

style "theme-panel"
{
    xthickness = 4 # The spacing (padding) inside and between applets. Add a lower value for a more compact look.
    ythickness = 0

added

    font_name        = "Bold"

Worked great

Offline

Board footer

Powered by FluxBB