Commit graph

1,165 commits

Author SHA1 Message Date
Gustavo Iñiguez Goia
1856f9f245
ui: fixed destination port label
Closes: #1365.
2025-07-25 20:00:09 +02:00
Gustavo Iñiguez Goia
1634950752
ui: fixed restoring maximized state
Maximized state of the main window was not being restored.

Closes: #1374.
2025-07-25 16:51:14 +02:00
Gustavo Iñiguez Goia
4559dd8b0a
ui: added new theme dark_white
Closes: #1372
2025-07-23 21:57:39 +02:00
Gustavo Iñiguez Goia
d88abd0f93
ui: updated themes information 2025-07-23 21:53:54 +02:00
Gustavo Iñiguez Goia
b65acadb6b
ui: improved loading custom themes
Instead of displying the whole path to the theme on the Preferences
dialog, show just the name of the theme.
2025-07-23 01:41:30 +02:00
Gustavo Iñiguez Goia
b216d50ed4
ui: updated the list of contributors 2025-07-23 01:25:20 +02:00
Gustavo Iñiguez Goia
b56ea1551d
ui: don't crash if configured theme doesn't exist 2025-07-22 22:13:37 +02:00
Gustavo Iñiguez Goia
4d268c44e2
ui,themes: fixed loading icons, class moved to its own package
- In some distros, qt-material icons have stopped loading at startup:
   qt.svg: Cannot open file '.../icon:/primary/slider.svg'

   The cause of the error is still unknown, but this fix solves it
   for now.

 - Themes() class moved to its own file.

Closes: #1373.
2025-07-21 17:04:32 +02:00
Gustavo Iñiguez Goia
3f7449362a ui,popups: updated appimages regular expression
Match random characters from 6 to 7 characters.

More details: #1377.
2025-07-20 22:12:16 +02:00
Gustavo Iñiguez Goia
7c438de082
ui,fw: fixed editing rules
Editing a fw rule by right-clicking on a rule -> edit was silently
failing.
2025-07-03 21:50:58 +02:00
Gustavo Iñiguez Goia
039a5af862
ui,fw: fixed loading ports definition
The first item was not being loaded.
2025-07-03 21:47:11 +02:00
Gustavo Iñiguez Goia
9ad6e11b14
ui,popups: fixed crash when using some languages
Some checks failed
CI - build eBPF modules / build (6.0, 1.5.0) (push) Has been cancelled
CI - build eBPF modules / build (6.0, master) (push) Has been cancelled
Test resources validation / Install tools (push) Has been cancelled
Build status / Build (push) Has been cancelled
Closes: #1353.
2025-06-27 10:13:46 +02:00
Gustavo Iñiguez Goia
acd5b8886b
Bumped versions to v1.7.1 2025-06-18 01:10:23 +02:00
Gustavo Iñiguez Goia
f87c3ae655
ui,popups: improved checksums verification
Verify the checksum of complex rules. Previously we only verified rules
of type Simple.
2025-06-12 00:28:58 +02:00
Gustavo Iñiguez Goia
f230b706b7
ui: improved downloader plugin
Create the paths where the files will be downloaded.
2025-06-08 23:59:51 +02:00
munix9
6bbed9dd67
check whether dist_path exists
"dist_path" seems to be a debian thing, in openSUSE for example the path does not exist.
2025-06-05 11:31:44 +02:00
Gustavo Iñiguez Goia
856c83f84b
Merge pull request #1355 from tioguda/master
i18n: updated Brazilian Portuguese translation
2025-06-04 02:13:03 +02:00
tioguda
222fce1e93
i18n: updated Brazilian Portuguese translation 2025-06-03 20:18:53 -03:00
Gustavo Iñiguez Goia
54a8efb32f
i18n: renamed ukranian translation file 2025-05-29 00:34:56 +02:00
Gustavo Iñiguez Goia
7a3ad173e1
i18n: added ukranian translation 2025-05-29 00:24:50 +02:00
Gustavo Iñiguez Goia
2fbbf12e0a
ui: translations updated 2025-05-28 22:35:00 +02:00
Gustavo Iñiguez Goia
9009eef635
ui: added HighContrast theme icons
The HighContrast theme is part of the gnome-themes-standard [0] package
, which is not always available.

Instead of just setting the theme by code, now we distribute the icons.
This ensures that the icons are always clearly visible when using a
qt-material dark theme.

For qt-material light themes and system themes, we'll use the system
icons.

[0] https://download.gnome.org/sources/gnome-themes-standard/
2025-05-23 22:30:19 +02:00
Gustavo Iñiguez Goia
3f5b6b45a7
ui: added default terminal icon for popups
By default we try to discover the icon of an app, but if we don't find
any, we'll use a default terminal icon (from HighContrast theme).
2025-05-21 19:10:43 +02:00
Gustavo Iñiguez Goia
913a88ccd6
ui: use HighContrast icons for dark qt-material themes
By default we use the system icons theme in the GUI.
The Desktop Environment usually is responsible of switching between
dark and light styles.

However if the user selected a qt-material dark theme from the
Preferences, the icons were not updated, and sometimes they were
practically invisible.

Now if the user selects a qt-material dark theme, we set the
HighContrast icon theme, which ensures that all icons are visible
against dark backgrounds.
2025-05-19 01:22:51 +02:00
Jost Alemann
f09ae22c61 ui: remove unused imports 2025-05-18 20:40:39 +02:00
Gustavo Iñiguez Goia
582823d34a
ui: added English language to the preferences
Allow to select English language from the Preferences.

This is a static entry like "System default".

It will not load a QTranslator object, so the GUI will use the strings
defined in the code, which are in English.

Closes: #1342
2025-05-14 23:24:38 +02:00
Gustavo Iñiguez Goia
8248c2e0ed ui: better app icon discovery
On some DEs like Xfce4 (Ubuntu 24) we were not displaying icons on the
popups.
2025-04-25 17:30:14 +02:00
Gustavo Iñiguez Goia
7ca5c0905f
added network_aliases init file 2025-04-24 16:49:23 +02:00
Gustavo Iñiguez Goia
c8bec89d70
reorganized network aliases feature
- Moved to their own files/dirs.
 - Added Nolan Carouge as author and contributor.
2025-04-24 16:06:11 +02:00
Gustavo Iñiguez Goia
3ef922ef84
ui,fw: improved fw rule dialog buttons layout
Closes: #1330
2025-04-23 14:11:31 +02:00
Gustavo Iñiguez Goia
c8d96d030e
Merge pull request #1324 from petterreinholdtsen/duration-12-hours
Introduce new 12 hour duration option.
2025-04-23 13:13:50 +02:00
Petter Reinholdtsen
dc3d7c7eee Introduce new 12 hour duration option.
Fixes #1286
2025-04-19 00:25:24 +02:00
Self Denial
f69d64d067
ui,stats: handle dict-wrapped notifs in callback
Modify the `_cb_notification_callback` method to properly process notifications that are wrapped in a dictionary to ensure consistent handling regardless of how they're sent from different
parts of the codebase.
2025-04-16 00:19:45 -06:00
Gustavo Iñiguez Goia
1b17fe246e
ui: better errors when saving the preferences
Don't overwrite errors if any, to avoid shadowing possible problems.
2025-04-15 12:12:56 +02:00
Tim
fc7b4243ad
Update i18n ru_RU 2025-04-03 15:25:51 +02:00
Gustavo Iñiguez Goia
9d5d53d07f
ui,stats: improved rules selection
Some checks failed
CI - build eBPF modules / build (6.0, 1.5.0) (push) Has been cancelled
CI - build eBPF modules / build (6.0, master) (push) Has been cancelled
Test resources validation / Install tools (push) Has been cancelled
Build status / Build (push) Has been cancelled
Use the Time column to select rows when in detail view, and the Name
column when listing app rules.
2025-04-01 11:57:33 +02:00
Gustavo Iñiguez Goia
320ec18b31
ui: improved rows selection (4)
discard current selection:
 - if the user right clicked on a row not part of a selection.
 - if the user clicked on a row, and there's only one row selected.
 - if the user clicked on a row already selected.
2025-03-31 14:51:12 +02:00
Gustavo Iñiguez Goia
fe715a5cf1
ui: fixed crash selecting rows on old PyQt versions
In PyQt < 5.15 isRowSelected() requires two arguments (row and parent).
Since 5.15, the parent argument is optional, and the default value is an
empty QModelIndex().

In order to support old PyQt versions (Ubuntu 20.x), we add always
the second argument.

- Misc: headers reorganization.
2025-03-30 19:21:20 +02:00
Gustavo Iñiguez Goia
e6bd14e816 ui,stats: fixed copying selected rows 2025-03-30 19:06:35 +02:00
Gustavo Iñiguez Goia
b2f2e44b8a
ui: improved diplaying default icons
In some DEs, like Enlightenment, some builtins icons may be empty.
The icon is not Null, but there're no available sizes, and the
pixmap is empty.

For now we'll use SP_FileIcon as the default icon, which exists
in this scenario, but we should create a new default icon, and
distribute it with the GUI.
2025-03-29 17:05:34 +01:00
Gustavo Iñiguez Goia
f2eb3fab13 ui: fixed selecting rows when in detail view
When the user double clicked on a rule to view the details, we were not
using the correct column to track selections.
2025-03-27 23:56:27 +01:00
Gustavo Iñiguez Goia
b276d36786
ui: fixed deleting rules with DEL key
Adapted to the latest changes.
2025-03-26 00:13:16 +01:00
Gustavo Iñiguez Goia
a3d75476ac
Merge pull request #1298 from atriwidada/l10n-update
Update Indonesian translation
2025-03-21 13:11:26 +01:00
Gustavo Iñiguez Goia
5e91442dfc
ui: display highlighted text properly
when the cells of a table are customized.
2025-03-21 11:15:22 +01:00
Gustavo Iñiguez Goia
7db4c9a9aa
ui: added needed import to highlight rows 2025-03-21 10:13:38 +01:00
Gustavo Iñiguez Goia
12af2c3eb9
ui: fixed displaying highlighted color of cells
When the properties of a cell was customized, the background color of
the highlighted cell was not respected/restored.
2025-03-21 00:43:39 +01:00
Gustavo Iñiguez Goia
f1c8b16281
ui: restore deleted line 2025-03-21 00:04:39 +01:00
Gustavo Iñiguez Goia
0fbbbcca10
ui: improved rows selection (3)
- Pressing the Space key on a view paginates the view forward.
 - Apply rule actions both to visible selections (the ones the user
   sees), and non-visible selections (those out of the viewport).
 - Right clicking on a selection does not discard the selection.
 - Left clicking on a selection discards the selection and selects the
   clicked row.
 - Left clicking on a selected row selects/deselects the row.

ref: #1291
2025-03-20 23:50:11 +01:00
Andika Triwidada
fcd14bc0e9 Update Indonesian translation 2025-03-20 12:18:35 +00:00
Gustavo Iñiguez Goia
b113ed0960
ui: improved rows selection (2)
- Fixed the use of Ctrl + mouse dragging to select/deselect rows of
   an existing selection.
 - Misc: fixed var name, removed unused code, avoid adding non valid
   rows to the selection.

ref: #1291
2025-03-19 16:35:05 +01:00