<RCC>
<qresource prefix="/images">
<file>menubar_background.png</file>
- <file>menubar_normal_background.png</file>
- <file>menubar_full_background.png</file>
+ <file>menubar_fullscreen_background.png</file>
+ <file>menubar_normal_mask.png</file>
+ <file>menubar_fullscreen_mask.png</file>
<file>fullscreen.png</file>
<file>normal.png</file>
<file>split_switch.png</file>
title: 'HomeScreen'
color: "#00000000"
+ Image {
+ id: fullscreen_back
+ anchors.centerIn: parent
+ width: 1920
+ height: 1080
+ source: './images/menubar_fullscreen_background.png'
+ }
+
Image {
id: container
anchors.centerIn: parent
width: 1920
- height: 720
+ height: 1080
scale: 1.0
source: './images/menubar_background.png'
ColumnLayout {
id: menuBar
- anchors.fill: parent
+ width: 1920
+ height: 720
+// y:180
spacing: 0
TopArea {
id: topArea
name: "normal"
PropertyChanges {
target: container
- y: 0
+ y: 180
}
PropertyChanges {
target: topArea
- y: 0
+ y: 180
}
PropertyChanges {
target: applicationArea
- y: 80
+ y: 260
}
PropertyChanges {
target: shortcutArea
- y: 590
+ y: 770
}
},
State {
name: "fullscreen"
PropertyChanges {
target: container
- y: -720
+ y: -900
}
PropertyChanges {
target: topArea
- y: -80
+ y: -260
}
PropertyChanges {
target: applicationArea
- y: -510
+ y: -590
}
PropertyChanges {
target: shortcutArea
- y: 720
+ y: 900
}
}
]
anchors.right: parent.right
anchors.rightMargin: 17
anchors.top: parent.top
- anchors.topMargin: 2
+ anchors.topMargin: 182
z: 1
Image {
id: image
height: 61
anchors.right: switchBtn.left
anchors.top: parent.top
- anchors.topMargin: 2
+ anchors.topMargin: 182
z: 1
property bool enableSplitSwitchBtn: false
Image {
std::unordered_map<std::string, Rect> map_list;
switch(pattern) {
case P_LEFT_METER_RIGHT_MAP:
- map_list["split.main"] = Rect(0, 0, 1280, 720);
- map_list["split.sub"] = Rect(1280, 0, 640, 720);
+ map_list["split.main"] = Rect(0, 180, 1280, 720);
+ map_list["split.sub"] = Rect(1280, 180, 640, 720);
break;
case P_LEFT_MAP_RIGHT_METER:
- map_list["split.main"] = Rect(640, 0, 1280, 720);
- map_list["split.sub"] = Rect(0, 0, 640, 720);
+ map_list["split.main"] = Rect(640, 180, 1280, 720);
+ map_list["split.sub"] = Rect(0, 180, 640, 720);
break;
default:
break;
void TouchArea::init()
{
- bitmapNormal = QPixmap(":/images/menubar_normal_background.png").createHeuristicMask();
- bitmapFullscreen = QPixmap(":/images/menubar_full_background.png").createHeuristicMask();
+ bitmapNormal = QPixmap(":/images/menubar_normal_mask.png").createHeuristicMask();
+ bitmapFullscreen = QPixmap(":/images/menubar_fullscreen_mask.png").createHeuristicMask();
myWindow->setMask(QRegion(bitmapNormal));
}