Skip to content

Commit

Permalink
Project: add app icon; update locale files; fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ForSuhr committed Sep 16, 2023
1 parent 322ff31 commit 01d3f9f
Show file tree
Hide file tree
Showing 12 changed files with 330 additions and 126 deletions.
39 changes: 30 additions & 9 deletions desktop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ set(PROJECT_SOURCES
utils/TabBar.h
utils/TabBar.cpp
FlowLink.qrc
asset/icon/FlowLink.rc
)

set(PROJECT_TRANSLATE
Expand All @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion desktop/FlowLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)"));
Expand Down
1 change: 1 addition & 0 deletions desktop/FlowLink.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
<file>asset/style/lumos/btnFolderOpenHover.svg</file>
<file>asset/style/lumos/hideLocalHost.svg</file>
<file>asset/style/lumos/showLocalHost.svg</file>
<file>asset/icon/FlowLink.png</file>
</qresource>
</RCC>
1 change: 1 addition & 0 deletions desktop/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ int main(int argc, char *argv[])
}

FlowLink w;
w.setWindowIcon(QIcon(":/asset/icon/FlowLink.png"));
w.show();
return a.exec();
}
Binary file added desktop/asset/icon/FlowLink.ico
Binary file not shown.
Binary file added desktop/asset/icon/FlowLink.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
57 changes: 57 additions & 0 deletions desktop/asset/icon/FlowLink.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 63 additions & 3 deletions desktop/translate/de_DE.qph
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE QPH>
<QPH sourcelanguage="en_US" language="zh_CN">
<QPH sourcelanguage="en_US" language="de_DE">
<phrase>
<source>File</source>
<target>Datei</target>
Expand Down Expand Up @@ -29,11 +29,71 @@
<target>Geräte</target>
</phrase>
<phrase>
<source>Save Perspective</source>
<target>Perspektive speichern</target>
<source>Save As Current Perspective</source>
<target>Als aktuelle Perspektive speichern</target>
</phrase>
<phrase>
<source>Perspective Name:</source>
<target>Name der Perspektive:</target>
</phrase>
<phrase>
<source>New Perspective</source>
<target>Neue Perspektive</target>
</phrase>
<phrase>
<source>Progress</source>
<target>Fortschritt</target>
</phrase>
<phrase>
<source>Delete Current Perspective</source>
<target>Aktuelle Perspektive löschen</target>
</phrase>
<phrase>
<source>Can not delete last perspective!</source>
<target>Die letzte Perspektive lässt sich nicht löschen!</target>
</phrase>
<phrase>
<source>Connect to local network</source>
<target>Verbinden mit lokalem Netzwerk</target>
</phrase>
<phrase>
<source>Disconnect from local network</source>
<target>Vom lokalen Netzwerk abtrennen</target>
</phrase>
<phrase>
<source>Show/Hide local host</source>
<target>Lokalen Host anzeigen/verbergen</target>
</phrase>
<phrase>
<source>Common</source>
<target>Allgemein</target>
</phrase>
<phrase>
<source>&lt;b&gt;Download Directory&lt;/b&gt;</source>
<target>&lt;b&gt;Herunterladen-Directory&lt;/b&gt;</target>
</phrase>
<phrase>
<source>Select Directory</source>
<target>Directory auswählen</target>
</phrase>
<phrase>
<source>Appearance</source>
<target>Aussehen</target>
</phrase>
<phrase>
<source>&lt;b&gt;Language&lt;/b&gt;</source>
<target>&lt;b&gt;Sprache&lt;/b&gt;</target>
</phrase>
<phrase>
<source>&lt;b&gt;Style&lt;/b&gt;</source>
<target>&lt;b&gt;Stil&lt;/b&gt;</target>
</phrase>
<phrase>
<source>* The language will be changed after restarting the application.</source>
<target>* Die Sprache wird nach einem Neustart der Applikation geändert.</target>
</phrase>
<phrase>
<source>Exit</source>
<target>Beenden</target>
</phrase>
</QPH>
Loading

0 comments on commit 01d3f9f

Please sign in to comment.