id: text3
x: 10
y: 261
- width: 80
height: 20
text: "Chương trình có tham khảo thuật toán tính <br>Âm Lịch của tác giả Hồ Ngọc Đức.<br><a href='http://www.informatik.uni-leipzig.de/~duc/amlich/'>http://www.informatik.uni-leipzig.de/~duc/amlich/</a>"
anchors.horizontalCenterOffset: 0
id: text1
x: 11
y: 171
- width: 80
height: 20
text: "Lịch Âm Việt Nam <br> OS: Maemo 5 (Fremantle)"
anchors.horizontalCenterOffset: 1
id: text2
x: 10
y: 234
- width: 80
height: 20
text: "Phiên bản : 1.0.2-4 (15/09/2011)<br>\
Phát triển bởi : <a href='mailto:metacuong@gmail.com'>metacuong@gmail.com</a>"
horizontalAlignment: Text.AlignLeft
text: model ? model.day : ""
- color: model ? model.inmonth ? (model.current ? "red" : model.inholiday ? theme_manager.theme.markdate.holidays : "black") : "grey" : "red"
+ color: model ? model.inmonth ? (model.current ? "grey" : model.inholiday ? theme_manager.theme.markdate.holidays : "black") : "grey" : "red"
font.pointSize: parent.width > parent.height ? parent.width ? parent.width / 6 : 1 : parent.width / 4
font.bold: true
}
horizontalAlignment: Text.AlignBottom
text: model ? model.lunar_day : ""
- color: model ? model.inmonth ? (model.current ? "red" : "#700070") : "grey" : "red"
+ color: model ? model.inmonth ? (model.current ? "white" : "#700070") : "grey" : "red"
font.pointSize: parent.width > parent.height ? parent.width ? parent.width / 8 : 1 : parent.width / 5
}
Item {
id: screen
- width: 480
- height: 800
+ width: 800
+ height: 480
state:"mainscreen"
x: 151
y: 330
height: 20
- color: "#f0f0f5"
+ color: theme_manager.theme.markdate.lunardate
text: Script.__txtDAYAmLich_format()
horizontalAlignment: Text.AlignHCenter
anchors.horizontalCenter: parent.horizontalCenter
},
State {
name: "switchX";
+ PropertyChanges { target: titleBar; y: -50 }
PropertyChanges { target: toolBar; y: screen.height }
PropertyChanges { target: toolBar }
PropertyChanges { target: mouseareaMM;enabled:false }
-import QtQuick 1.1
+import QtQuick 1.0
Item {
id:theme
- property alias titlebar: titlebar
- property alias datepicker: datepicker
- property alias toolbar: toolbar
property alias markdate: markdate
- property string root_dir : "file:/opt/usr/share/LichViet/themes/default/"
+ property string root_dir : "file:/opt/usr/share/LichViet/themes/default/"
property string background_image: root_dir+"background.jpg"
- property real background_opacity: 0.3
+ property real background_opacity: 1.0
property string switch_on: root_dir+"switch_on.png"
property string switch_off: root_dir+"switch_off.png"
- Item{
- id:titlebar
- property string button: root_dir+"quit.png"
- property string button_pressed: root_dir+"quit_pressed.png"
- property string button_active: root_dir+"quit.png"
- property string sci: root_dir+"titlebar.sci"
-
- property string minimize_button: root_dir+"minimize.png"
- property string minimize_button_pressed: root_dir+"minimize_pressed.png"
- }
-
- Item{
- id:toolbar
- property string sci: root_dir+"titlebar.sci"
- property string button_sci: root_dir+"toolbutton.sci"
- property string button_pressed_sci: root_dir+"toolbutton_pressed.sci"
- property string button_active_sci: root_dir+"toolbutton.sci"
- }
-
- Item{
- id:datepicker
- property string button: root_dir+"dp_button.png"
- property string button_pressed: root_dir+"dp_button_pressed.png"
- property string button_active: root_dir+"dp_button_active.png"
- }
-
Item{
id:markdate
property string sunday:"red"
property string otherday:"grey"
property string otherday_selected:"#FFFFFF"
property string holidays:"yellow"
- property string not_holidays:"#FFFF99"
+ property string not_holidays:"#FFFF99"
+ property string lunardate:"white"
}
}