GithubHelp home page GithubHelp logo

Comments (20)

melizeche avatar melizeche commented on August 22, 2024 2

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.

MarkoShiva avatar MarkoShiva commented on August 22, 2024 1

from opensnitch.

adisbladis avatar adisbladis commented on August 22, 2024

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.

evilsocket avatar evilsocket commented on August 22, 2024

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.

MarkoShiva avatar MarkoShiva commented on August 22, 2024

from opensnitch.

evilsocket avatar evilsocket commented on August 22, 2024

absolutely no idea, this is the very first time I see/use Qt in my life

from opensnitch.

MarkoShiva avatar MarkoShiva commented on August 22, 2024

from opensnitch.

MarkoShiva avatar MarkoShiva commented on August 22, 2024

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.

melizeche avatar melizeche commented on August 22, 2024

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.

adisbladis avatar adisbladis commented on August 22, 2024

@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!

opensnitch-resize-bug

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.

adisbladis avatar adisbladis commented on August 22, 2024

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.

MarkoShiva avatar MarkoShiva commented on August 22, 2024

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.

evilsocket avatar evilsocket commented on August 22, 2024

@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.

MarkoShiva avatar MarkoShiva commented on August 22, 2024

from opensnitch.

evilsocket avatar evilsocket commented on August 22, 2024

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.

evilsocket avatar evilsocket commented on August 22, 2024

no rush, take your time, and thanks! <3 :)

from opensnitch.

evilsocket avatar evilsocket commented on August 22, 2024

PS: @in1t3r I just sent u an email.

from opensnitch.

MarkoShiva avatar MarkoShiva commented on August 22, 2024

2017-05-11-174417_526x147_scrot
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.

evilsocket avatar evilsocket commented on August 22, 2024

A little bigger, the minimum amount needed to correctly display the icon

from opensnitch.

melizeche avatar melizeche commented on August 22, 2024

Much better now! Thanks @in1t3r

from opensnitch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.