-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify sidebar behavior Log: pms: TASK-361721
- Loading branch information
Showing
20 changed files
with
169 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ Item { | |
} | ||
// 阴影 | ||
Loader { | ||
y: 2 | ||
y: 1 | ||
z: 0 | ||
width: parent.width | ||
height: parent.height | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,24 @@ | ||
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd. | ||
// SPDX-License-Identifier: GPL-3.0-or-later | ||
// import QtQuick 2.15 | ||
.pragma library | ||
|
||
function copyFont(srcFont, propertys) { | ||
return Qt.font({ | ||
"family" : propertys.hasOwnProperty("family") ? propertys.family : srcFont.family, | ||
"bold" : propertys.hasOwnProperty("bold") ? propertys.bold : srcFont.bold, | ||
"italic" : propertys.hasOwnProperty("italic") ? propertys.italic : srcFont.italic, | ||
"underline" : propertys.hasOwnProperty("underline") ? propertys.underline : srcFont.underline, | ||
"pointSize" : propertys.hasOwnProperty("pointSize") ? propertys.pointSize : srcFont.pointSize, | ||
"pixelSize" : propertys.hasOwnProperty("pixelSize") ? propertys.pixelSize : srcFont.pixelSize | ||
}) | ||
"family": propertys.hasOwnProperty("family") ? propertys.family : srcFont.family, | ||
"bold": propertys.hasOwnProperty("bold") ? propertys.bold : srcFont.bold, | ||
"italic": propertys.hasOwnProperty("italic") ? propertys.italic : srcFont.italic, | ||
"underline": propertys.hasOwnProperty("underline") ? propertys.underline : srcFont.underline, | ||
"pointSize": propertys.hasOwnProperty("pointSize") ? propertys.pointSize : srcFont.pointSize, | ||
"pixelSize": propertys.hasOwnProperty("pixelSize") ? propertys.pixelSize : srcFont.pixelSize | ||
}) | ||
} | ||
|
||
function getMargin(w) { | ||
if (w > 1300) { | ||
return (w - 1200) / 2 | ||
} | ||
if (w >= 600) { | ||
return 50 | ||
} | ||
return (w - 500) / 2 | ||
} |
Oops, something went wrong.