You are not logged in.
Is it possible to remove/change the 'title bar' of the root menu in pekwm? It is currently the same as all of my windows and I'd like it as something else/removed.
Solution: Menus and Windows have different themes, I had them set to the same in the theme file.
Last edited by BaconPie (2010-11-11 09:37:56)
Offline
That should be defined in your theme's theme file. What theme are you using?
- [ My Blog ] | [ AUR Packages ] | [ My deviantART ] | [ screenFetch ] | [ SilverIRC ] -
Offline
What theme are you using?
My own theme, which I used the default one as a template. Here is the file:
$ cat .pekwm/themes/BlueLine-pekwm_0.1.12/theme
# BlueLine, a PekWM 0.1.12 theme
# Extract this theme directory under ~/.pekwm/themes/ and the
# themes menu will pick it up automatically.
# Changelog:
#
$FONT = "XFT#Sans:size=7#Left"
$FONT_TITLE = "XFT#Sans:size=7#Left"
Define = "BaseDecor"
{
Height = "17"
# Increase first number to bring title text downwards
Pad = "1 5 5 0"
Focused = "Image titlebar.png"
Unfocused = "Image titlebar_unfocus.png"
Tab
{
Focused = "Image titlebar.png"
FocusedSelected = "Image titlebar.png"
Unfocused = "Image titlebar_unfocus.png"
UnfocusedSelected = "Image titlebar_unfocus.png"
}
Separator
{
Focused = "Image tab-separator.png"
Unfocused = "Image tab-separator_unfocus.png"
}
Font
{
Focused = "$FONT_TITLE"
}
FontColor
{
Focused = "#FFFFFF"
FocusedSelected = "#FFFFFF"
Unfocused = "#c3c3c3"
UnfocusedSelected = "#c3c3c3"
}
Border
{
Focused
{
TopLeft = "Image top-left.png"
Top = "Image top-border.png"
TopRight = "Image top-right.png"
Left = "Image left-border.png"
Right = "Image right-border.png"
BottomLeft = "Image bottom-left.png"
Bottom = "Image bottom-border.png"
BottomRight = "Image bottom-right.png"
}
Unfocused
{
TopLeft = "Image top-left_unfocus.png"
Top = "Image top-border_unfocus.png"
TopRight = "Image top-right_unfocus.png"
Left = "Image left-border_unfocus.png"
Right = "Image right-border_unfocus.png"
BottomLeft = "Image bottom-left_unfocus.png"
Bottom = "Image bottom-border_unfocus.png"
BottomRight = "Image bottom-right_unfocus.png"
}
}
}
Define = "BaseButtons"
{
Buttons
{
Right = "Close"
{
Focused = "Image close.png"
Unfocused = "Image close_unfocus.png"
Hoover = "Image close_hover.png"
Pressed = "Image close_pressed.png"
Button = "1" { Actions = "Close" }
Button = "3" { Actions = "Kill" }
}
Right = "Maximize"
{
Focused = "Image max.png"
Unfocused = "Image max_unfocus.png"
Hover = "Image max_hover.png"
Pressed = "Image max_pressed.png"
Button = "1" { Actions = "Toggle Maximized 1 1" }
}
Right = "Iconify"
{
Focused = "Image min.png"
Unfocused = "Image min_unfocus.png"
Hover = "Image min_hover.png"
Pressed = "Image min_press.png"
Button = "1" { Actions = "Set Iconified" }
}
Left = "Shade"
{
Focused = "Image shade.png"
Unfocused = "Image shade_unfocus.png"
Hover = "Image shade_hover.png"
Pressed = "Image shade_pressed.png"
Button = "1" { Actions = "Toggle Shaded" }
}
}
}
Define = "EmptyDecor"
{
Focused = "Empty"
Unfocused = "Empty"
Tab
{
Focused = "Empty"
FocusedSelected = "Empty"
Unfocused = "Empty"
UnfocusedSelected = "Empty"
}
Separator
{
Focused = "Empty"
Unfocused = "Empty"
}
Font
{
Focused = "Empty"
}
FontColor
{
Focused = "Empty"
FocusedSelected = "Empty"
Unfocused = "Empty"
UnfocusedSelected = "Empty"
}
Border
{
Focused
{
TopLeft = "Empty"
Top = "Empty"
TopRight = "Empty"
Left = "Empty"
Right = "Empty"
BottomLeft = "Empty"
Bottom = "Empty"
BottomRight = "Empty"
}
Unfocused
{
TopLeft = "Empty"
Top = "Empty"
TopRight = "Empty"
Left = "Empty"
Right = "Empty"
BottomLeft = "Empty"
Bottom = "Empty"
BottomRight = "Empty"
}
}
}
PDecor
{
Decor = "Default"
{
Title
{
@BaseDecor
@BaseButtons
}
}
Decor = "Menu"
{
Title
{
@BaseDecor
}
}
Decor = "Titlebarless"
{
Title {
@EmptyDecor
}
}
Decor = "Statuswindow" {
Title
{
@EmptyDecor
}
}
}
Harbour
{
Texture = "Solid #f9f9f9"
}
Menu
{
Pad = "1 1 4 1"
Focused
{
Font = "$FONT"
Background = "Solid #FFFFFF"
Item = "Empty"
Text = "#000000"
Separator = "Image menuline.png#Scaled"
Arrow = "Image arrow.png"
}
Unfocused
{
Font = "$FONT"
Background = "Solid #FFFFFF"
Item = "Empty"
Text = "#000000"
Separator = "Image menuline.png#Scaled"
Arrow = "Image arrow.png"
}
Selected
{
Font = "$FONT"
Background = "Solid #000000"
Item = "Image item_focus.png"
Text = "#ffffff"
Arrow = "Image arrow_selected.png"
}
}
CmdDialog
{
Font = "$FONT"
Texture = "Solid #ffffff"
Text = "#000000"
Pad = "3 0 1 10"
}
Status
{
Font = "$FONT"
Texture = "Solid #ffffff"
Text = "#8b8b89"
Pad = "2 2 10 10"
}
What do I change?
Offline
The default theme is a little bit unclear imo
Decor = "Menu"
{
Title
{
@BaseDecor
}
}
Those lines set the menu theme, and as you see it refers to "BaseDecor" witch is defined in the beginning of the file. In fact you you can remove @BaseDecor and define a completely different theme for your menu by using the same options that is stated in BaseDecor.
Hope that made it a little bit more clear. If you want I can send you another theme as template with more options shown, you'll have to edit a bit more but hopefully it will be more accurate (and maybe easier to understand than my crappy explanation )
edit: realized I forgot the most important; the line you want to change is ' Height = "17" ' which is the height in pixels. Although the top border will still be shown.
Last edited by ri (2010-11-10 21:44:04)
Offline
That makes perfect sense, I was using the 'BaseDecor' as the theme for the menu. I've edited it now and it's perfect.
Cheers.
Offline