#only uncomment the following line if you want a fixed width!
#width = parentwidth - by DEFAULT the width will always equal the parentwidth and change on resize events
#width = 200
height = 28

#old: 2
var dist = -1

this.height = 28

border.width = 5
border.height = 5


#BELOW, title.width is bugged, it gives -1 instead of the real value. Check up on that bug!!
#21 below, title.height
#title.height = ~formheight - $title.Y
#title.width = ~width

title.X = (~formwidth - ~width) / 2
title.Y = 7


#I just added the 'maximized' value. If the window is maximized, the value is 1, if not it's 0
#In this case what it does is make the close buttons move to the corner of the application when the window is maximized
#and then make them move away again when the window is not maximized, to show the round corners nicely
buttonExit.X = ~formwidth - ~width - 1 - (1 - ~maximized) * 10
buttonExit.Y = 0

buttonMaximize.X = $buttonExit.X - ~width - $dist
buttonMaximize.Y = $buttonExit.Y

buttonMinimize.X = $buttonMaximize.X - ~width - $dist
buttonMinimize.Y = $buttonMaximize.Y


# TRANSPARENT AREAS. An element is added to the list of transparent regions if the .type is set.
# Multiplying the values by (1 - ~is(maximized)) will make sure that the round transparent corners go away when you maximize the window.
# If you want to remove transparent areas from one particular form (all forms inherit the areas defined here)
# Then all you have to do is create an area with the same name there
# i.e.:
# top_left_0.type = empty
# The empty is optional, the only two valid types are 'Rectangle' and 'Ellipse' but since you wont use the area you can put whatever in there.


# TOP LEFT CORNER
#0 QRect(0,0 10x1)
top_left_0.type = Rectangle
top_left_0.X = 0
top_left_0.Y = 0
top_left_0.width = 10 * (1 - ~is(maximized))
top_left_0.height = 1 * (1 - ~is(maximized))

#1 QRect(0,1 8x1)
top_left_1.type = Rectangle
top_left_1.X = 0
top_left_1.Y = 1
top_left_1.width = 8 * (1 - ~is(maximized))
top_left_1.height = 1 * (1 - ~is(maximized))

#2 QRect(0,2 7x1)
top_left_2.type = Rectangle
top_left_2.X = 0
top_left_2.Y = 2
top_left_2.width = 7 * (1 - ~is(maximized))
top_left_2.height = 1 * (1 - ~is(maximized))

#3 QRect(0,3 6x1)
top_left_3.type = Rectangle
top_left_3.X = 0
top_left_3.Y = 3
top_left_3.width = 6 * (1 - ~is(maximized))
top_left_3.height = 1 * (1 - ~is(maximized))

#4 QRect(0,4 4x2) 
top_left_4.type = Rectangle
top_left_4.X = 0
top_left_4.Y = 4
top_left_4.width = 4 * (1 - ~is(maximized))
top_left_4.height = 2 * (1 - ~is(maximized))

#5 QRect(0,6 3x1) 
top_left_5.type = Rectangle
top_left_5.X = 0
top_left_5.Y = 6
top_left_5.width = 3 * (1 - ~is(maximized))
top_left_5.height = 1 * (1 - ~is(maximized))

#6 QRect(0,7 2x1) 
top_left_6.type = Rectangle
top_left_6.X = 0
top_left_6.Y = 7
top_left_6.width = 2 * (1 - ~is(maximized))
top_left_6.height = 1 * (1 - ~is(maximized))

#7 QRect(0,8 1x2)
top_left_8.type = Rectangle
top_left_8.X = 0
top_left_8.Y = 8
top_left_8.width = 1 * (1 - ~is(maximized))
top_left_8.height = 2 * (1 - ~is(maximized))


# TOP RIGHT CORNER
#0 QRect(0,0 10x1)
top_right_0.type = Rectangle
top_right_0.width = 10 * (1 - ~is(maximized))
top_right_0.height = 1 * (1 - ~is(maximized))
top_right_0.X = ~formwidth - ~width
top_right_0.Y = 0

#1 QRect(0,1 8x1)
top_right_1.type = Rectangle
top_right_1.width = 8 * (1 - ~is(maximized))
top_right_1.height = 1 * (1 - ~is(maximized))
top_right_1.X = ~formwidth - ~width
top_right_1.Y = 1

#2 QRect(0,2 7x1)
top_right_2.type = Rectangle
top_right_2.width = 7 * (1 - ~is(maximized))
top_right_2.height = 1 * (1 - ~is(maximized))
top_right_2.X = ~formwidth - ~width
top_right_2.Y = 2

#3 QRect(0,3 6x1)
top_right_3.type = Rectangle
top_right_3.width = 6 * (1 - ~is(maximized))
top_right_3.height = 1 * (1 - ~is(maximized))
top_right_3.X = ~formwidth - ~width
top_right_3.Y = 3

#4 QRect(0,4 4x2) 
top_right_4.type = Rectangle
top_right_4.width = 4 * (1 - ~is(maximized))
top_right_4.height = 2 * (1 - ~is(maximized))
top_right_4.X = ~formwidth - ~width
top_right_4.Y = 4

#5 QRect(0,6 3x1) 
top_right_5.type = Rectangle
top_right_5.width = 3 * (1 - ~is(maximized))
top_right_5.height = 1 * (1 - ~is(maximized))
top_right_5.X = ~formwidth - ~width
top_right_5.Y = 6

#6 QRect(0,7 2x1) 
top_right_6.type = Rectangle
top_right_6.width = 2 * (1 - ~is(maximized))
top_right_6.height = 1 * (1 - ~is(maximized))
top_right_6.X = ~formwidth - ~width
top_right_6.Y = 7

#7 QRect(0,8 1x2)
top_right_8.type = Rectangle
top_right_8.width = 1 * (1 - ~is(maximized))
top_right_8.height = 2 * (1 - ~is(maximized))
top_right_8.X = ~formwidth - ~width
top_right_8.Y = 8