Xfce Forum

Sub domains
 

You are not logged in.

#1 2009-03-05 17:45:54

budman
Member
Registered: 2009-03-05
Posts: 6

Changing Titlebar Height

Hi

Is there a way to change the titlebar height?

The Window Mgr offers to change the font and size, but it does not change the height of the bar or the buttons (close, hide, maximize, etc.).
I tried fonts size like 24 pt but it ends up bleeding over the edges.  Is there anything I can add to the theme rc files?

I'm using Xfce 4.6 Final.

Thanks
Rich

Offline

#2 2009-03-09 15:51:45

Squall
Member
Registered: 2009-03-07
Posts: 24

Re: Changing Titlebar Height

Hi budman,

I think it depends on the font size and on the size of the background image. Maybe you can check /usr/share/themes.

Offline

#3 2009-05-11 00:31:00

edward
Member
From: Boston
Registered: 2008-03-23
Posts: 11

Re: Changing Titlebar Height

The title bar itself is dependent on the theme used and it is independent of XFCE.  The setting you are looking for, should be in your Linux distribution desktop settings.


[img]http://img.userbars.pl/135/26800.png[/img]
Xubuntu 9.10

Offline

#4 2012-05-14 21:53:14

laforge
Member
Registered: 2012-05-14
Posts: 1

Re: Changing Titlebar Height

xfce's DPI settings change everything except title bar height.

from usr/share/themes:
style "frame_title" {

        fg[NORMAL]        = lighter (@fg_color)
}

Would really like this bug fixed. Are any temporary hax/ theme edits possible?
Thanks

Offline

#5 2012-05-15 18:01:19

Keith Hedger
Member
From: Torrington,Devon,UK
Registered: 2012-04-01
Posts: 46
Website

Re: Changing Titlebar Height

The window manager (xfwm4) takes care of the title bar it is a set of pixmaps so the font size and/or gtk settings are irrelevant if you want a larger title bar you must use a different theme or tweak one your self, have a look in say /usr/share/themes/Crux/xfwm4 to see the general layout of the titlebar.

Offline

#6 2024-04-21 13:02:16

leisti
Member
From: Tampere, Finland
Registered: 2024-04-21
Posts: 3

Re: Changing Titlebar Height

I'll post the same answer I posted on the Superuser site:  https://superuser.com/a/1839862/117908.

1. Determine the theme you want to modify. It's the one you've selected in "Settings" > "Window Manager", tab "Style", setting "Theme".

2. Find the directory where that theme is stored. It's probably either ~/.themes/, ~/.local/share/themes/, or /usr/share/themes/. Open your terminal and cd to that directory.

3. Assuming that <theme_name> is the subdirectory that contains the theme you want to modify, in your terminal, command "cp -a <theme_name> <theme_name>_modified". (If the directory it's contained in is /usr/share/themes/, instead command "cp -a <theme_name> ~/.themes/<theme_name>_modified", so you don't have to use sudo.)

4. In the new directory <theme_name>_modified, there should be five files named title-N-active.xpm and five files named title-N-inactive.xpm, where N is a digit from 1 to 5. There should also be four files named top-left-active.xpm, top-right-active.xpm, top-left-inactive.xpm, and top-right-inactive.xpm. Open all these 14 files for editing. The contents of one of the files should look something like the following. (This example is taken from theme xfwm4-theme-pixa-master.)

/* XPM */
static char *title_1_active[] = {
"1 26 1 1 ",
".      c #2878C8 s active_color_1",
".",
".",
".",
[20 identical lines omitted]
".",
".",
"."};

5. The number 26 on the third row means the height of the title bar in pixels. In each of the 14 files, change it to what you want the new title bar height to be. Also, in each of the 14 files, add or delete lines containing '".",' so as to keep the number of those lines equal to the new height in pixels. Save the edited files.

6. Open the settings editor "Settings" > "Window Manager", and go to tab "Style". The theme <theme_name>_modified should appear in the list widget of setting "Theme". Select it. Your modified theme should now become active, with the height of the title bar changed from that of the original theme.

Offline

#7 2024-04-21 23:23:24

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 519

Re: Changing Titlebar Height

This is a 15 year old thread! Talk about a necro bump.


Siduction
Debian Sid
Xfce 4.18

Offline

#8 2024-04-22 04:03:17

leisti
Member
From: Tampere, Finland
Registered: 2024-04-21
Posts: 3

Re: Changing Titlebar Height

This was one of the pages I found while looking for an answer to the question. Since this page had no detailed answer, I thought that others googling about this problem might benefit from the solution.

Last edited by leisti (2024-04-22 04:04:12)

Offline

#9 2024-10-19 09:00:44

jiyahana
Member
Registered: 2024-10-19
Posts: 6
Windows 10Microsoft Edge 129.0

Re: Changing Titlebar Height

To change the title bar height, you'll need to modify the theme files. Look for the title-N-active.xpm files in your theme directory and adjust the height value to your preference, then select the modified theme in the Window Manager settings.

Offline

#10 2024-10-19 17:53:28

leisti
Member
From: Tampere, Finland
Registered: 2024-04-21
Posts: 3
LinuxChrome 129.0

Re: Changing Titlebar Height

jiyahana wrote:

To change the title bar height, you'll need to modify the theme files. Look for the title-N-active.xpm files in your theme directory and adjust the height value to your preference, then select the modified theme in the Window Manager settings.

That is the gist of my answer above.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] CCBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 555.85 KiB (Peak: 573.13 KiB) ]