-
Notifications
You must be signed in to change notification settings - Fork 35
Moved content picker into a popover #414
base: xenial
Are you sure you want to change the base?
Conversation
3f68991
to
2d99be1
Compare
2d99be1
to
a3e458d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This appears to introduce a warning when the content picker is opened by tapping on a download:
file:///usr/lib/arm-linux-gnueabihf/qt5/qml/Ubuntu/Content/ContentPeerPicker13.qml:196: TypeError: Type error
We should investigate why this happens, and if possible fix it, before merging.
a3e458d
to
0fe15d9
Compare
I can't find exactly what's causing the error so I decided to just fix those annoying I've also rebased it and fixed the conflicts. I also enabled the commented out codes for opening files from the downloads dialog. |
@@ -1,5 +1,5 @@ | |||
/* | |||
* Copyright 2015-2016 Canonical Ltd. | |||
* Copyright 2021 UBports Foundation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops... In this case, both copyright statements would be kept. The code was under copyright by Canonical, and now we've added some stake with our changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, that file was created in #415
i actually noticed that there are a few others that we missed in that PR 😅
I'm planning to correct them in a separate PR but I just corrected this one here since I modified it anyway.
But this is definitely a lesson learned for me moving forward - don't just copy paste copyright texts 😀
I changed the dialog from UITK to QQC2 since it's more flexible with placement and sizing. This also sets the qt version to 5.12 because it was needed to set the dimming background of the popup. |
Oh. This is a improvement. I see the dialog on portrait is anchored to the bottom. They should center vertically as well. Question (out of curiosity): Why did you choose a Dialog instead of a Page? |
I can't remember exactly the logic when it anchors at the bottom but I think it only happens at certain height and width and not just when in portrait. Otherwise, the dialog is centered (see last picture). I designed it like that so that it's easily reachable. It's a bit similar with android's dialog when opening a file or an intent.
A dialog can be positioned more freely and can be designed with convergence in mind. The content picker doesn't need to be always displayed full especially on large screens.
These are existing actions that were not implemented on this PR. In my understanding, one opens the local copy of the file in the browser while the other opens the original dowload link of the file. |
Dialogs in UT are centered horizontally and vertically. Moprh being a core app should follow the same UI design. Thanks for the other answers :) |
Then maybe we should change that design 😝 |
I've changed the behavior of the popup. It's now full screen for most phones, not anchored at the bottom. |
There is a dancing sheep somewhere :) |
what is blocking this PR :3 |
Originally from #336