diff --git a/desktop/CMakeLists.txt b/desktop/CMakeLists.txt
index 5e64b8c..a1fe761 100644
--- a/desktop/CMakeLists.txt
+++ b/desktop/CMakeLists.txt
@@ -49,6 +49,7 @@ set(PROJECT_SOURCES
utils/TabBar.h
utils/TabBar.cpp
FlowLink.qrc
+ asset/icon/FlowLink.rc
)
set(PROJECT_TRANSLATE
@@ -63,16 +64,36 @@ set(TS_FILES
${CMAKE_CURRENT_SOURCE_DIR}/translate/de_DE.ts
)
-if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
- qt_add_executable(FlowLink
- MANUAL_FINALIZATION
- ${PROJECT_SOURCES}
- ${PROJECT_TRANSLATE}
- )
- qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
+if (WIN32)
+ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
+ qt_add_executable(FlowLink WIN32
+ MANUAL_FINALIZATION
+ ${PROJECT_SOURCES}
+ ${PROJECT_TRANSLATE}
+ )
+ qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
+ else()
+ add_executable(FlowLink WIN32
+ ${PROJECT_SOURCES}
+ ${PROJECT_TRANSLATE}
+ )
+ qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
+ endif()
else()
- add_executable(FlowLink ${PROJECT_SOURCES} ${PROJECT_TRANSLATE})
- qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
+ if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
+ qt_add_executable(FlowLink
+ MANUAL_FINALIZATION
+ ${PROJECT_SOURCES}
+ ${PROJECT_TRANSLATE}
+ )
+ qt_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
+ else()
+ add_executable(FlowLink
+ ${PROJECT_SOURCES}
+ ${PROJECT_TRANSLATE}
+ )
+ qt5_create_translation(QM_FILES ${CMAKE_SOURCE_DIR} ${TS_FILES})
+ endif()
endif()
target_include_directories(FlowLink PRIVATE "${CMAKE_SOURCE_DIR}/3rdparty/ads")
diff --git a/desktop/FlowLink.cpp b/desktop/FlowLink.cpp
index 476e60a..acbd373 100644
--- a/desktop/FlowLink.cpp
+++ b/desktop/FlowLink.cpp
@@ -92,7 +92,7 @@ void FlowLink::createConnectionUi()
m_connectAction->setEnabled(true);
m_disconnectAction = new QAction(this);
m_disconnectAction->setIcon(QIcon(R"(:/asset/style/lumos/disconnectAction.svg)"));
- m_disconnectAction->setToolTip(tr("Disonnect from local network"));
+ m_disconnectAction->setToolTip(tr("Disconnect from local network"));
m_disconnectAction->setEnabled(false);
m_toggleShowLocalHostAction = new QAction(this);
m_toggleShowLocalHostAction->setIcon(QIcon(R"(:/asset/style/lumos/hideLocalHost.svg)"));
diff --git a/desktop/FlowLink.qrc b/desktop/FlowLink.qrc
index d44fbc9..0b17ab9 100644
--- a/desktop/FlowLink.qrc
+++ b/desktop/FlowLink.qrc
@@ -14,5 +14,6 @@
asset/style/lumos/btnFolderOpenHover.svg
asset/style/lumos/hideLocalHost.svg
asset/style/lumos/showLocalHost.svg
+ asset/icon/FlowLink.png
diff --git a/desktop/Main.cpp b/desktop/Main.cpp
index c5c5459..59eeaf2 100644
--- a/desktop/Main.cpp
+++ b/desktop/Main.cpp
@@ -17,6 +17,7 @@ int main(int argc, char *argv[])
}
FlowLink w;
+ w.setWindowIcon(QIcon(":/asset/icon/FlowLink.png"));
w.show();
return a.exec();
}
diff --git a/desktop/asset/icon/FlowLink.ico b/desktop/asset/icon/FlowLink.ico
new file mode 100644
index 0000000..a2f4b58
Binary files /dev/null and b/desktop/asset/icon/FlowLink.ico differ
diff --git a/desktop/asset/icon/FlowLink.png b/desktop/asset/icon/FlowLink.png
new file mode 100644
index 0000000..ada3d8f
Binary files /dev/null and b/desktop/asset/icon/FlowLink.png differ
diff --git a/desktop/asset/icon/FlowLink.svg b/desktop/asset/icon/FlowLink.svg
new file mode 100644
index 0000000..b3249e1
--- /dev/null
+++ b/desktop/asset/icon/FlowLink.svg
@@ -0,0 +1,57 @@
+
+
diff --git a/desktop/translate/de_DE.qph b/desktop/translate/de_DE.qph
index 839ff0f..bb58ce0 100644
--- a/desktop/translate/de_DE.qph
+++ b/desktop/translate/de_DE.qph
@@ -1,5 +1,5 @@
-
+
Datei
@@ -29,11 +29,71 @@
Geräte
-
- Perspektive speichern
+
+ Als aktuelle Perspektive speichern
Name der Perspektive:
+
+
+ Neue Perspektive
+
+
+
+ Fortschritt
+
+
+
+ Aktuelle Perspektive löschen
+
+
+
+ Die letzte Perspektive lässt sich nicht löschen!
+
+
+
+ Verbinden mit lokalem Netzwerk
+
+
+
+ Vom lokalen Netzwerk abtrennen
+
+
+
+ Lokalen Host anzeigen/verbergen
+
+
+
+ Allgemein
+
+
+
+ <b>Herunterladen-Directory</b>
+
+
+
+ Directory auswählen
+
+
+
+ Aussehen
+
+
+
+ <b>Sprache</b>
+
+
+
+ <b>Stil</b>
+
+
+
+ * Die Sprache wird nach einem Neustart der Applikation geändert.
+
+
+
+ Beenden
+
diff --git a/desktop/translate/de_DE.ts b/desktop/translate/de_DE.ts
index 3d5e058..de9fe7e 100644
--- a/desktop/translate/de_DE.ts
+++ b/desktop/translate/de_DE.ts
@@ -22,19 +22,19 @@
-
+ Datei
-
+ Bearbeiten
-
+ Aussicht
@@ -45,72 +45,72 @@
-
+
-
+ Beenden
-
+
-
+ Präferenzen
-
-
-
-
+
+
+ Verbinden mit lokalem Netzwerk
-
-
-
+
+
+ Vom lokalen Netzwerk abtrennen
-
-
-
+
+
+ Lokalen Host anzeigen/verbergen
-
-
-
+
+
+
+ Neue Perspektive
-
-
-
+
+
+ Als aktuelle Perspektive speichern
-
-
-
+
+
+ Aktuelle Perspektive löschen
-
-
-
+
+
+ Standardperspektive einstellen
-
-
-
+
+
+ Geräte
-
-
-
+
+
+ Fortschritt
-
-
-
+
+
+ Name der Perspektive:
-
-
-
+
+
+ Die letzte Perspektive lässt sich nicht löschen!
@@ -118,42 +118,42 @@
-
+ Allgemein
-
+ <b>Herunterladen-Directory</b>
-
+ Directory auswählen
-
+ Aussehen
-
+ <b>Sprache</b>
-
+ * Die Sprache wird nach einem Neustart der Applikation geändert.
-
+ <b>Stil</b>
-
+ Präferenzen
diff --git a/desktop/translate/en_US.ts b/desktop/translate/en_US.ts
index 8871361..929906b 100644
--- a/desktop/translate/en_US.ts
+++ b/desktop/translate/en_US.ts
@@ -45,70 +45,70 @@
-
+
-
+
-
-
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
diff --git a/desktop/translate/zh_CN.qph b/desktop/translate/zh_CN.qph
index da1e987..c1955a0 100644
--- a/desktop/translate/zh_CN.qph
+++ b/desktop/translate/zh_CN.qph
@@ -36,4 +36,68 @@
视图布局名称:
+
+
+ 新建视图布局
+
+
+
+ 覆盖保存当前视图布局
+
+
+
+ 删除当前视图
+
+
+
+ 下载进度
+
+
+
+ 无法删除最后一个视图布局
+
+
+
+ 连接到本地网络
+
+
+
+ 从本地网络断开连接
+
+
+
+ 显示/隐藏本地主机
+
+
+
+ 常用
+
+
+
+ <b>下载目录</b>
+
+
+
+ 选择目录
+
+
+
+ 外观
+
+
+
+ <b>语言</b>
+
+
+
+ * 语言选项将在重启后生效
+
+
+
+ <b>风格</b>
+
+
+
+ 离开
+
diff --git a/desktop/translate/zh_CN.ts b/desktop/translate/zh_CN.ts
index 8871361..3cbfa5f 100644
--- a/desktop/translate/zh_CN.ts
+++ b/desktop/translate/zh_CN.ts
@@ -1,6 +1,6 @@
-
+
ChatWindow
@@ -22,19 +22,19 @@
-
+ 文件
-
+ 编辑
-
+ 视图
@@ -45,72 +45,72 @@
-
+
-
+ 离开
-
+
-
+ 偏好设置
-
-
-
-
+
+
+ 连接到本地网络
-
-
-
+
+
+ 从本地网络断开连接
-
-
-
+
+
+ 显示/隐藏本地主机
-
-
-
+
+
+
+ 新建视图布局
-
-
-
+
+
+ 覆盖保存当前视图布局
-
-
-
+
+
+ 删除当前视图
-
-
-
+
+
+ 设为默认视图布局
-
-
-
+
+
+ 设备
-
-
-
+
+
+ 下载进度
-
-
-
+
+
+ 视图布局名称:
-
-
-
+
+
+ 无法删除最后一个视图布局
@@ -118,42 +118,42 @@
-
+ 常用
-
+ <b>下载目录</b>
-
+ 选择目录
-
+ 外观
-
+ <b>语言</b>
-
+ * 语言选项将在重启后生效
-
+ <b>风格</b>
-
+ 偏好设置