Skip to content

Commit ada4a81

Browse files
committed
feat: add icons for language selection and update check menu items
1 parent 49480d3 commit ada4a81

8 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
55
## [1.5.9]
66
- **Library**: Improved tree line color assignment — no parent-child or sibling conflicts.
77
- **Build**: Added Inno Setup configuration and batch compilation script to package the application as a setup.exe installer.
8+
- **UI**: Added a language selection icon to the language menu item.
9+
- **UI**: Added the update check icon to the check for updates menu item.
810

911
## [1.5.8]
1012
- **Library**: Fixed folder sorting to use natural order (`1, 2, 3... 9, 10, 11` instead of `1, 10, 11, 2`).

main.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,9 @@ def create_menu_bar(self):
11891189
view_menu = menubar.addMenu(tr("menu.view"))
11901190

11911191
# Language selection
1192-
lang_menu = view_menu.addMenu(tr("menu.language"))
1192+
lang_menu = view_menu.addMenu(
1193+
self.icons.get("languages", QIcon()), tr("menu.language")
1194+
)
11931195
lang_group = QActionGroup(self)
11941196
lang_group.setExclusive(True)
11951197

@@ -1287,7 +1289,7 @@ def create_menu_bar(self):
12871289
help_menu = menubar.addMenu(tr("menu.help"))
12881290

12891291
check_updates_action = QAction(
1290-
self.icons.get("upload", QIcon()), tr("menu.check_updates"), self
1292+
self.icons.get("update", QIcon()), tr("menu.check_updates"), self
12911293
)
12921294
check_updates_action.triggered.connect(
12931295
lambda: self._check_for_update(force=True)
@@ -2100,6 +2102,8 @@ def _refresh_taskbar_buttons(self):
21002102
def load_icons(self):
21012103
# List of icons to load for the browser
21022104
icon_names = [
2105+
"languages",
2106+
"update",
21032107
"menu_scan",
21042108
"menu_settings",
21052109
"menu_reload",

resources/icons/languages.ico

17.2 KB
Binary file not shown.

resources/icons/languages.png

6.76 KB
Loading

resources/icons/menu_about.ico

12.7 KB
Binary file not shown.

resources/icons/menu_about.png

-321 Bytes
Loading

resources/icons/update.ico

23.3 KB
Binary file not shown.

resources/icons/update.png

8.2 KB
Loading

0 commit comments

Comments
 (0)