kfocus / kfocus-source

Kubuntu Focus Source Packages
https://kfocus.org
GNU General Public License v2.0
12 stars 1 forks source link

Prepare qml-power-app for testing and polishing #3

Closed ArrayBolt3 closed 1 year ago

ArrayBolt3 commented 1 year ago

OK, this ended up being slightly trickier than it looked like on the surface, however I believe this is mostly ready.

Full list of changes:

If needed, I can split these changes up into individual commits.

Things that may still need to be done:

ArrayBolt3 commented 1 year ago

For the problem with text spillage if the window is too small horizontally, I'm pretty sure that can be fixed by just bumping up the minimum window width to be the same as the default width. I'm happy to implement that if that's an acceptable way to resolve that.

mmikowski commented 1 year ago

That sounds like a very reasonable solution, and I trust your judgement on that.

On Fri, Mar 17, 2023, 15:37 Aaron Rainbolt @.***> wrote:

For the problem with text spillage if the window is too small horizontally, I'm pretty sure that can be fixed by just bumping up the minimum window width to be the same as the default width. I'm happy to implement that if that's an acceptable way to resolve that.

— Reply to this email directly, view it on GitHub https://github.com/kfocus/kfocus-source/pull/3#issuecomment-1474476232, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACV5LKYCY2QO7AT3R5GCRLW4TRSVANCNFSM6AAAAAAV63NLK4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

ArrayBolt3 commented 1 year ago

K, I also noticed that the original minimum vertical size let some elements go off the bottom of the screen, so I enforced a higher minimum there too.

mmikowski commented 1 year ago

The work you've done is very good and brings this one major step closer to completion. I've reviewed the changes and the app, and here is my assessment of what remains to be done. Most of this boils down to fixing kfocus-power-set -p to work better with the app, and then updating the app to take advantage of these changes. Also, now that we have a POC, it is a good idea to remove the most hacked features. All of these ideas are expressed below:

  1. Header information should also come from kfocus-power-set -p.
  2. When keyboard LEDs are not supported, they should not be returned from kfocus-power-set -p nor in the header.
  3. Model sensing should likely be done in kfocus-power-set to decide whether certain capabilities are available and return information accordingly (again, see LEDs)
  4. When present, the keyboard LEDs should present as 'On' or 'Off', not 0 or 1. This might be handled by kfocus-power-set -p which would return those strings instead of the numbers.
  5. See kfocus-power for guidance. Once this project is complete, the wrapper will BECOME kfocus-power.
ArrayBolt3 commented 1 year ago

Glad you're happy with where things are going! I'll see if I can look into the points you've mentioned soon. Also, on IRC you said some things about scaling and capability sensing - is the capability sensing stuff already in the above five points, or is that another point that needs work? (EDIT: Nevermind, my brain finally finished registering that yes, you did indeed mention capability sensing in the above.) I'll also hopefully fiddle with display scaling and see if I can find what it's doing wrong and how to fix it there.