2 Copyright (C) 2011 by Cuong Le <metacuong@gmail.com>
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>
30 Default value of properties
33 property int radius: 4
34 property string border_color: "#e28282"
35 property string background_color: "white"
37 property int shadow_height: 10
38 property string shadow_begin_color: "#000000"
39 property string shadow_end_color: "#fff7f7"
41 property string caption: ""
42 property string caption_color: "black"
43 property string caption_font: "Tahoma"
44 property int caption_font_size: 18
45 property bool caption_font_bold : true
64 color: parent.background_color
66 border.color: parent.border_color
74 font.bold: parent.caption_font_bold
75 font.pointSize: parent.caption_font_size
76 font.family: parent.caption_font
78 color: parent.caption_color
80 x:btn_minimize.width + 5*2
81 y:(main_title.height/2) - (height/2)
98 height: title_bar.height - 10
106 radius: parent.radius
112 width: parent.width - 15
113 height: parent.height - 15
115 border.color: "white"
123 width: parent.width - 15
124 height: parent.height - 15
126 border.color: "white"
134 onClicked: title_bar.minimize()
137 parent.color = "blue"
141 parent.color = "transparent"
154 x:title_bar.width - 50
158 height: title_bar.height - 10
165 radius: parent.radius
170 anchors.centerIn: parent; font.bold: true
171 text: "X"; style: Text.Raised; styleColor: "black"
173 font.family: "Tahoma"
179 onClicked: title_bar.close()
182 parent.color = "blue"
186 parent.color = "transparent"