mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-02 16:15:28 +08:00
update
This commit is contained in:
@ -171,10 +171,5 @@ if (CMAKE_BUILD_TYPE MATCHES "Release")
|
||||
SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
)
|
||||
|
||||
target_sources(Script-DeployRelease
|
||||
PRIVATE
|
||||
src/component/OpenGLItem.h src/component/OpenGLItem.cpp
|
||||
)
|
||||
endif ()
|
||||
endif ()
|
||||
|
@ -127,7 +127,6 @@
|
||||
<file>qml/global/ItemsOriginal.qml</file>
|
||||
<file>qml/global/qmldir</file>
|
||||
<file>qml/page/T_Acrylic.qml</file>
|
||||
<file>qml/page/T_Awesome.qml</file>
|
||||
<file>qml/page/T_Badge.qml</file>
|
||||
<file>qml/page/T_BreadcrumbBar.qml</file>
|
||||
<file>qml/page/T_Buttons.qml</file>
|
||||
@ -210,6 +209,7 @@
|
||||
<file>res/image/bg_scenic.jpg</file>
|
||||
<file>qml/window/FluentInitializrWindow.qml</file>
|
||||
<file>qml/page/T_OpenGL.qml</file>
|
||||
<file>qml/page/T_Icons.qml</file>
|
||||
</qresource>
|
||||
<qresource prefix="/"/>
|
||||
</RCC>
|
||||
|
@ -87,21 +87,29 @@
|
||||
<context>
|
||||
<name>InitializrHelper</name>
|
||||
<message>
|
||||
<location filename="bin/Debug/source/helper/InitializrHelper.cpp" line="69"/>
|
||||
<location filename="bin/Release/source/helper/InitializrHelper.cpp" line="69"/>
|
||||
<location filename="src/helper/InitializrHelper.cpp" line="69"/>
|
||||
<source>The name cannot be empty</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bin/Debug/source/helper/InitializrHelper.cpp" line="73"/>
|
||||
<location filename="bin/Release/source/helper/InitializrHelper.cpp" line="73"/>
|
||||
<location filename="src/helper/InitializrHelper.cpp" line="73"/>
|
||||
<source>The creation path cannot be empty</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bin/Debug/source/helper/InitializrHelper.cpp" line="78"/>
|
||||
<location filename="bin/Release/source/helper/InitializrHelper.cpp" line="78"/>
|
||||
<location filename="src/helper/InitializrHelper.cpp" line="78"/>
|
||||
<source>The path does not exist</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bin/Debug/source/helper/InitializrHelper.cpp" line="84"/>
|
||||
<location filename="bin/Release/source/helper/InitializrHelper.cpp" line="84"/>
|
||||
<location filename="src/helper/InitializrHelper.cpp" line="84"/>
|
||||
<source>%1 folder already exists</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -425,7 +433,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/global/ItemsOriginal.qml" line="367"/>
|
||||
<source>Awesome</source>
|
||||
<source>Icons</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
@ -774,29 +782,6 @@ Updated content:
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>T_Awesome</name>
|
||||
<message>
|
||||
<location filename="qml/page/T_Awesome.qml" line="9"/>
|
||||
<source>Awesome</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Awesome.qml" line="13"/>
|
||||
<source>Please enter a keyword</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Awesome.qml" line="20"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Awesome.qml" line="55"/>
|
||||
<source>You Copied </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>T_Badge</name>
|
||||
<message>
|
||||
@ -1386,6 +1371,29 @@ My only desire is to be permitted to drive out the traitors and restore the Han.
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>T_Icons</name>
|
||||
<message>
|
||||
<location filename="qml/page/T_Icons.qml" line="9"/>
|
||||
<source>Icons</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Icons.qml" line="13"/>
|
||||
<source>Please enter a keyword</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Icons.qml" line="20"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Icons.qml" line="60"/>
|
||||
<source>You Copied </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>T_Image</name>
|
||||
<message>
|
||||
|
@ -87,21 +87,29 @@
|
||||
<context>
|
||||
<name>InitializrHelper</name>
|
||||
<message>
|
||||
<location filename="bin/Debug/source/helper/InitializrHelper.cpp" line="69"/>
|
||||
<location filename="bin/Release/source/helper/InitializrHelper.cpp" line="69"/>
|
||||
<location filename="src/helper/InitializrHelper.cpp" line="69"/>
|
||||
<source>The name cannot be empty</source>
|
||||
<translation type="unfinished">名称不能为空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bin/Debug/source/helper/InitializrHelper.cpp" line="73"/>
|
||||
<location filename="bin/Release/source/helper/InitializrHelper.cpp" line="73"/>
|
||||
<location filename="src/helper/InitializrHelper.cpp" line="73"/>
|
||||
<source>The creation path cannot be empty</source>
|
||||
<translation type="unfinished">创建路径不能为空</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bin/Debug/source/helper/InitializrHelper.cpp" line="78"/>
|
||||
<location filename="bin/Release/source/helper/InitializrHelper.cpp" line="78"/>
|
||||
<location filename="src/helper/InitializrHelper.cpp" line="78"/>
|
||||
<source>The path does not exist</source>
|
||||
<translation type="unfinished">路径不存在</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="bin/Debug/source/helper/InitializrHelper.cpp" line="84"/>
|
||||
<location filename="bin/Release/source/helper/InitializrHelper.cpp" line="84"/>
|
||||
<location filename="src/helper/InitializrHelper.cpp" line="84"/>
|
||||
<source>%1 folder already exists</source>
|
||||
<translation type="unfinished">%1 文件夹已经存在</translation>
|
||||
@ -425,7 +433,7 @@
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/global/ItemsOriginal.qml" line="367"/>
|
||||
<source>Awesome</source>
|
||||
<source>Icons</source>
|
||||
<translation type="unfinished">图标</translation>
|
||||
</message>
|
||||
<message>
|
||||
@ -781,24 +789,20 @@ Updated content:
|
||||
<context>
|
||||
<name>T_Awesome</name>
|
||||
<message>
|
||||
<location filename="qml/page/T_Awesome.qml" line="9"/>
|
||||
<source>Awesome</source>
|
||||
<translation type="unfinished">图标</translation>
|
||||
<translation type="obsolete">图标</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Awesome.qml" line="13"/>
|
||||
<source>Please enter a keyword</source>
|
||||
<translation type="unfinished">请输入关键字</translation>
|
||||
<translation type="obsolete">请输入关键字</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Awesome.qml" line="20"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished">搜索</translation>
|
||||
<translation type="obsolete">搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Awesome.qml" line="55"/>
|
||||
<source>You Copied </source>
|
||||
<translation type="unfinished">您复制</translation>
|
||||
<translation type="obsolete">您复制</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
@ -1417,6 +1421,29 @@ My only desire is to be permitted to drive out the traitors and restore the Han.
|
||||
<translation type="unfinished">FluentUI 脚手架是一个快速创建项目工具,可帮助您创建和自定义具有各种选项的 Fluent UI 项目</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>T_Icons</name>
|
||||
<message>
|
||||
<location filename="qml/page/T_Icons.qml" line="9"/>
|
||||
<source>Icons</source>
|
||||
<translation type="unfinished">图标</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Icons.qml" line="13"/>
|
||||
<source>Please enter a keyword</source>
|
||||
<translation type="unfinished">请输入关键字</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Icons.qml" line="20"/>
|
||||
<source>Search</source>
|
||||
<translation type="unfinished">搜索</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="qml/page/T_Icons.qml" line="60"/>
|
||||
<source>You Copied </source>
|
||||
<translation type="unfinished">您复制</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>T_Image</name>
|
||||
<message>
|
||||
|
@ -364,9 +364,9 @@ FluObject{
|
||||
onTap: { navigationView.push(url) }
|
||||
}
|
||||
FluPaneItem{
|
||||
title: qsTr("Awesome")
|
||||
title: qsTr("Icons")
|
||||
menuDelegate: paneItemMenu
|
||||
url: "qrc:/example/qml/page/T_Awesome.qml"
|
||||
url: "qrc:/example/qml/page/T_Icons.qml"
|
||||
onTap: { navigationView.push(url) }
|
||||
}
|
||||
}
|
||||
|
@ -6,13 +6,13 @@ import FluentUI 1.0
|
||||
|
||||
FluContentPage {
|
||||
|
||||
title: qsTr("Awesome")
|
||||
title: qsTr("Icons")
|
||||
|
||||
FluTextBox{
|
||||
id:text_box
|
||||
id: text_box
|
||||
placeholderText: qsTr("Please enter a keyword")
|
||||
anchors{
|
||||
top:parent.top
|
||||
top: parent.top
|
||||
}
|
||||
}
|
||||
|
||||
@ -28,43 +28,45 @@ FluContentPage {
|
||||
}
|
||||
}
|
||||
GridView{
|
||||
id:grid_view
|
||||
cellWidth: 80
|
||||
cellHeight: 80
|
||||
id: grid_view
|
||||
cellWidth: 110
|
||||
cellHeight: 110
|
||||
clip: true
|
||||
boundsBehavior: GridView.StopAtBounds
|
||||
model:FluTheme.awesomeList()
|
||||
ScrollBar.vertical: FluScrollBar {}
|
||||
anchors{
|
||||
topMargin: 10
|
||||
top:text_box.bottom
|
||||
top: text_box.bottom
|
||||
left: parent.left
|
||||
right: parent.right
|
||||
bottom: parent.bottom
|
||||
}
|
||||
delegate: Item {
|
||||
width: 68
|
||||
height: 80
|
||||
width: 100
|
||||
height: 100
|
||||
FluIconButton{
|
||||
id:item_icon
|
||||
iconSource:modelData.icon
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
iconSource: modelData.icon
|
||||
iconSize: 30
|
||||
padding: 0
|
||||
verticalPadding: 0
|
||||
horizontalPadding: 0
|
||||
bottomPadding: 30
|
||||
anchors.fill: parent
|
||||
onClicked: {
|
||||
var text ="FluentIcons."+modelData.name;
|
||||
FluTools.clipText(text)
|
||||
showSuccess(qsTr("You Copied ")+text)
|
||||
}
|
||||
}
|
||||
FluText {
|
||||
id:item_name
|
||||
font.pixelSize: 10
|
||||
font.family: FluTextStyle.family
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: item_icon.bottom
|
||||
width:parent.width
|
||||
wrapMode: Text.WrapAnywhere
|
||||
text: modelData.name
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
FluText{
|
||||
width: parent.width
|
||||
horizontalAlignment: Qt.AlignHCenter
|
||||
wrapMode: Text.WrapAnywhere
|
||||
text: modelData.name
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: 60
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -14,5 +14,5 @@ private:
|
||||
public:
|
||||
SINGLETON(AppInfo)
|
||||
|
||||
Q_INVOKABLE [[maybe_unused]] void testCrash();
|
||||
[[maybe_unused]] Q_INVOKABLE void testCrash();
|
||||
};
|
||||
|
Reference in New Issue
Block a user