Comments (20)
I'm playing right now with this, I think the actual layout is not the best for multiples resolutions, If I got it right I'm going to submit a PR
from opensnitch.
from opensnitch.
On most DEs/WMs you wouldn-t be able to resize the window (seemingly by design). I have hit this bug too, it just haven't really reached my list of priorities yet.
from opensnitch.
Ideally the whole dialog should resize in order to properly show the text ... problem is, I have no idea how to do it, my GUI-fu is weak :)
from opensnitch.
from opensnitch.
absolutely no idea, this is the very first time I see/use Qt in my life
from opensnitch.
from opensnitch.
what ware you using to generate a code for the ui.py? pyuic5 resources/dialog.ui > ui.py or something else because I got the design right but the code end up messed up. If anyone of you do know pythonqt library you should only add gridlayout as the basic layout in window can be easily done in the qtcreator and after that the dialog should act as we want. I'm just really rusty now in Qt and never done a python3-qt project. But that should be way to go because I was back in the days making some Qt/Cpp apps.
from opensnitch.
Just submmited a PR (#60), I think it can be a partial solution to this until we figure it out how to do proper scaling in PyQt
@in1t3r I'm not using pyuic 'cause the .ui file it's loaded with PyQt5.uic.loadUiType
from opensnitch.
@melizeche Cool! I noticed another problem (except for the UI being huge).
If you resize the window too small things start being outside of the window.
This is already a great improvement though!
Slightly tangential but related: If anyone tries to take a stab at improving the UI I would like to see QML evaluated as an option for us.
This has some interesting properties like being able to run with the same UI code on platforms such as Sailfish OS and Plasma Mobile, just a modified QML file, this may also (I don't know yet) largely solve the scaling issues.
from opensnitch.
I just now also noticed another issue in an application with a huge command line.. There is still some problems seeing the whole thing..
from opensnitch.
I send a pull request that solve this issue completely you can resize it from as small to as big as you want and the text will follow and wrap. :)
from opensnitch.
@in1t3r any way to auto resize everything according to the text's length without having the user to do it manually? This huge dialog, when text is short, is very ugly imo
from opensnitch.
from opensnitch.
If the text is not long, there's a huge empty space above the buttons, I'd love to have that space remove (thus the dialog height resized) accordingly.
from opensnitch.
no rush, take your time, and thanks! <3 :)
from opensnitch.
PS: @in1t3r I just sent u an email.
from opensnitch.
Does this looks better? I still kept your defaults just make it smaller. i can make it wider and really small in height by default. If this looks better/
from opensnitch.
A little bigger, the minimum amount needed to correctly display the icon
from opensnitch.
Much better now! Thanks @in1t3r
from opensnitch.
Related Issues (20)
- Add a rules 'import' and 'export' option to the APT package. HOT 1
- Fedora: regexps lists not working HOT 1
- opensnitch.io does not host project site any more HOT 4
- Upgraded from Ubuntu 20 to 22.04.4, Opensnitch UI not opening HOT 2
- Uninitialized firewall and logger causing SIGSEGV on master branch (c3bbb92) HOT 3
- incompatibility with python 3.12 HOT 5
- opensnitch UI crashes when deleting a rule HOT 3
- Windows OS Daemon HOT 1
- GUI Not opening on Fedora 40 HOT 1
- arm64 support: eBPF monitoring mode HOT 2
- OpenSnitch lies about what rule caused packets to be approved HOT 9
- Build error: ui/protocol/ui_grpc.pb.go: undefined: grpc.StaticMethod HOT 9
- [Feature Request] Have the ability to choose and kill live connection. HOT 2
- opensnitch runs on startup even when service is disabled HOT 1
- [Feature Request] Please add command line support
- Generates large number of error logs: `Error parsing rule Created date (it should be in RFC3339 format)` HOT 2
- SyntaxWarning: invalid escape sequence '\.'
- Build error: verifying module: missing GOSUMDB
- [Feature Request] Reject by default instead of Drop HOT 1
- nmap syn packages drop with enabled opensnitch without notification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensnitch.