Skip to content

Commit

Permalink
Added automatic update and release of translations, reorganize code f…
Browse files Browse the repository at this point in the history
…or icons theme and names, small bug fixes
  • Loading branch information
nicola02nb committed Sep 17, 2024
1 parent 44b4c96 commit 55feaa3
Show file tree
Hide file tree
Showing 24 changed files with 391 additions and 295 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
*.out
*.app

#Translations
*.qm

# Folders
build/*

Expand Down
11 changes: 7 additions & 4 deletions HeadsetControl-GUI.pro
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,21 @@ FORMS += \
src/UI/settingswindow.ui

TRANSLATIONS += \
src/Resources/tr/HeadsetControl_GUI_en_US.ts \
src/Resources/tr/HeadsetControl_GUI_it_IT.ts
src/Resources/tr/HeadsetControl_GUI_en.ts \
src/Resources/tr/HeadsetControl_GUI_it.ts

RESOURCES += \
src/Resources/icons.qrc \
src/Resources/translations.qrc
src/Resources/icons.qrc

RC_FILE = src/Resources/appicon.rc

DISTFILES += \
.gitignore

CONFIG += lrelease
QM_FILES_RESOURCE_PREFIX=/translations/tr
CONFIG += embed_translations

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
Expand Down
20 changes: 10 additions & 10 deletions src/Resources/icons.qrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<RCC>
<qresource prefix="/">
<file>icons/battery-charging.png</file>
<file>icons/battery-level-full.png</file>
<file>icons/battery-low.png</file>
<file>icons/battery-medium.png</file>
<file>icons/headphones.png</file>
<file>icons/battery-charging-inv.png</file>
<file>icons/battery-level-full-inv.png</file>
<file>icons/battery-low-inv.png</file>
<file>icons/battery-medium-inv.png</file>
<file>icons/headphones-inv.png</file>
<file>icons/battery-charging-dark.png</file>
<file>icons/battery-level-full-dark.png</file>
<file>icons/battery-low-dark.png</file>
<file>icons/battery-medium-dark.png</file>
<file>icons/headphones-dark.png</file>
<file>icons/battery-charging-light.png</file>
<file>icons/battery-level-full-light.png</file>
<file>icons/battery-low-light.png</file>
<file>icons/battery-medium-light.png</file>
<file>icons/headphones-light.png</file>
</qresource>
</RCC>
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading

0 comments on commit 55feaa3

Please sign in to comment.