# default pekwm theme
#
# License: GPL
# Author: adriano.src
# Email: adriano.src@gmail.com
# Homepage: http://adrinux.wordpress.com

$FONT_NAME = "XFT#Sans:size=9"
$FONT = "$FONT_NAME#Left"
$FONT_TITLE = "XFT#Sans:size=9:weight=bold#Center#1 1"

Require {
  Templates = "True"
}

Background {
  Texture = "Image pekwm_generated-1920x1080.png#scaled"
}

Define = "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 = "BaseDecor" {
  Height = "20"

  # Increase first number to bring title text downwards
  Pad = "2 5 5 0"

  Focused = "Image title.png"
  Unfocused = "Image title_unfocus.png"

  Tab {
    Focused = "Image title.png"
    FocusedSelected = "Image title.png"
    Unfocused = "Image title_unfocus.png"
    UnfocusedSelected = "Image title_unfocus.png"
  }
  Separator {
    Focused = "Image tab-separator.png"
    Unfocused = "Image tab-separator_unfocus.png"
  }
  Font {
    Focused = "$FONT_TITLE"
  }
  FontColor {
    Focused = "#ffc571 #000000,50"
    FocusedSelected = "#efefef #000000,70"
    Unfocused = "#777777"
    UnfocusedSelected = "#777777"
  }
  Border {
    @Border
  }
}

Define = "BaseButtons" {
  Buttons {
    Right = "Close" {
      Focused = "Image button-close.png"
      Unfocused = "Image button_unfocus.png"
      Hoover = "Image button-close_hover.png"
      Pressed = "Image button-close_press.png"
      Button = "1" { Actions = "Close" }
      Button = "3" { Actions = "Kill" }
    }

    Right = "Maximize" {
      Focused = "Image button-max.png"
      Unfocused = "Image button_unfocus.png"
      Hoover = "Image button-max_hover.png"
      Pressed = "Image button-max_press.png"
      Button = "1" { Actions = "Toggle Maximized 1 1" }
    }

    Right = "Iconify" {
      Focused = "Image button-min.png"
      Unfocused = "Image button_unfocus.png"
      Hoover = "Image button-min_hover.png"
      Pressed = "Image button-min_press.png"
      Button = "1" { Actions = "Set Iconified" }
    }
  }
}

Define = "EmptyDecor" {
  Height = "0"

  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"
    }
  }
}

Define = "BorderOnly" {
  @EmptyDecor

  Border {
    @Border

    Focused {
      TopRight = "Image top-right-no-buttons.png"
    }
  }
}

Decor = "Default" {
  @BaseDecor
  @BaseButtons
}

Decor = "Menu" {
  @BaseDecor

  Border {
    Focused {
      TopRight = "Image top-right-no-buttons.png"
    }
  }
}

Decor = "Titlebarless" {
  @BorderOnly
}

Decor = "Statuswindow" {
  @EmptyDecor
}

Decor = "WorkspaceIndicator" {
  @BorderOnly
}

Harbour {
  Texture = "Solid #f9f9f9"
}

Menu {
  Pad = "0 0 4 4"

  Focused {
    Font = "$FONT"
    Background = "Solid #f9f9f9"
    Item = "Solid #f9f9f9"
    Text = "#8b8b89"
    Separator = "Image menuline.png#Scaled"
    Arrow = "Image arrow.png"
  }
  Unfocused {
    Font = "$FONT"
    Background = "Solid #f9f9f9"
    Item = "Solid #f9f9f9"
    Text = "#777777"
    Separator = "Image menuline.png#Scaled"
    Arrow = "Image arrow.png"
  }
  Selected {
    Font = "$FONT"
    Background = "Solid #f88408"
    Item = "Image item_focus.png"
    Text = "#ffffff"
    Arrow = "Image arrow_focus.png"
  }
}

CmdDialog {
  Font = "$FONT"
  Texture = "Solid #ffffff"
  Text = "#000000"
  Pad = "3 0 1 10"
}

Panel {
  Background = "Image panel.png#Tiled"
  BackgroundOpacity = "90"
  Height = "20"
  Separator = "Solid #aaaaaa 1x20"

  Bar {
    Percent = "100" { Color = "#00ff00" }
    Percent = "70" { Color = "#ffa500" }
    Percent = "10" { Color = "#ff0000" }
  }

  Focused {
    Font = "$FONT_NAME#Center"
    Color = "#000000"
  }
  Unfocused {
    Font = "$FONT_NAME#Center"
    Color = "#333333"
  }
  Iconified {
    Font = "$FONT_NAME:slant=italic#Center"
    Color = "#666666"
  }
}

Status {
  Font = "$FONT"
  Texture = "Solid #ffffff"
  Text = "#8b8b89"
  Pad = "2 2 10 10"
}

WorkspaceIndicator {
  Font = "$FONT_TITLE"
  Background = "Solid #ffffff"
  Workspace = "Solid #cccccc"
  WorkspaceActive = "Solid #aaaaaa"
  Text = "#000000"
  EdgePadding = "5"
  WorkspacePadding = "2"
}